[TOOL] X4 Galaxy Creator

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Cappy1401
Posts: 313
Joined: Sun, 27. Apr 08, 02:16
x4

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Mon, 28. Jan 19, 21:00

Found problems in the Galaxy Creator.


The removal Button for Gates has no effect, a placed Gate can not be removed.

The randomly chosen Clusters for the Datafaults in PlacedObjects.xml do not always correspond with Clusters to existing in the Galaxy.
There are double occupancy of Clusters.

The Generator not comply with existing conventions.


example

The generator generates macro of a zone

<macro name = "x3g_zone002_cluster01_sector001_macro" class = "zone">
_______________________________^ Underscore missing, change the case of zone to Zone and cluster to Cluster and add the underscore to Cluster = Cluster_

Original Macro of a Zone from X4 Stand V1.50

<macro name = "Zone003_Cluster_01_Sector001_macro" class = "zone">

The prefix may be Optional, as it is not mandatory.
The Generator should comply with existing conventions.
So the Mod remains compatible with Egosoft and other Mods.

Manual work is still needed to start the Game with the exported Galaxy.

Missing spaces between the Tags in Arrys in the Jobs.xml which causes problems when starting the Jobships.

Instead of:

[factionlogic, freighter, trader]

the Generator writes:

[Factionlogic,freighter,trader] <-- causes problems on Start

Job Editor lacks all existing jobs from Antigon, Scaleplate, Hatikvah and Ministry.




Here is an archive in which I have saved several export tests.
Information about the export errors are stored in the XML file.

Archive




To the map editor:

Even if there are factions that are not claimable. So you should still have your own colors.
Because this way, you know where you have placed these factions and you will not have to search for them later.

Also an info page would be a very good idea that you can call in the Menu and displays all information about the Galaxy.

In individual Tabs kann be displayed, for example.

Which Factions are present in the Galaxy.
Is the Ffaction claimable or not?
In which Sector is the HQ
Where are Shipyards, Equipmentdocks and Tradingstations.
Likewise a page indicating where ships or other has been placed in Sectors.

So you can easily make changes after some time, because you can see where you have placed something.

Greeting Cappy1401

sorry google translate is :doh: :doh: :doh:
Jedes Kriegsschiff, das unsere Werften verlässt, jedes abgefeuerte Geschütz bedeutet letztlich einen Diebstahl an denen, die sich nicht wehren können, nämlich an unseren Kindern. Eine Welt bewaffnet bis an die Zähne feuert nicht nur gebündelte Energie allein. Sie feuert auch oft genug die Hoffnung ihrer Kinder nutzlos in den Weltraum hinaus. Doch hin und wieder lässt man uns keine Wahl, dann jedoch besteht jede Salve aus der geballten Hoffnung das endlich wieder Frieden herrscht.

Der Amazone

killerog
Posts: 3464
Joined: Fri, 28. Oct 05, 16:31
x4

Re: [TOOL] X4 Galaxy Creator

Post by killerog » Mon, 28. Jan 19, 21:06

Quick reply before I head out.

I have already fixed it in the next version so you can remove gates.

The colour of the sector is related to who owns that sector - as some factions can not own sectors they do not get there own colour. I would like to add more info to a sector hex (or its popup) that will make it easier at a glance to see what is in each sector.

A sort of sector overview sounds like it could be a good idea. Ill think about that.

The stuff todo with the generation I will leave to celludriel to answer as I think that's to do with his tool (tho I could be wrong in a rush).
Image

Cappy1401
Posts: 313
Joined: Sun, 27. Apr 08, 02:16
x4

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Mon, 28. Jan 19, 22:28

what would you say if the non-claimable factions share the color with the claimable factions?
Described differently.

Non-claimable factions have their own color, but do not stand by themselves.

The color occupies only one third of a sector, so it would be visible, that there is also a non Clamaible faction present and it is recognizable which one is.


Cappy1401
Jedes Kriegsschiff, das unsere Werften verlässt, jedes abgefeuerte Geschütz bedeutet letztlich einen Diebstahl an denen, die sich nicht wehren können, nämlich an unseren Kindern. Eine Welt bewaffnet bis an die Zähne feuert nicht nur gebündelte Energie allein. Sie feuert auch oft genug die Hoffnung ihrer Kinder nutzlos in den Weltraum hinaus. Doch hin und wieder lässt man uns keine Wahl, dann jedoch besteht jede Salve aus der geballten Hoffnung das endlich wieder Frieden herrscht.

Der Amazone

Dreamtide
Posts: 18
Joined: Wed, 27. Jun 12, 02:31
x4

Re: [TOOL] X4 Galaxy Creator

Post by Dreamtide » Wed, 30. Jan 19, 22:20

My brain's not in the right place to make proper use of this right now, but just wanted to pop in and give this a huge thumbs-up. The potential for creative and awesome scenarios, even shared among different players, makes this idea a massive win for X4 in general. Well done. Keep it up!

DaMuncha
Posts: 1394
Joined: Mon, 1. Nov 10, 10:00
x4

Re: [TOOL] X4 Galaxy Creator

Post by DaMuncha » Fri, 1. Feb 19, 04:36

Would some one remake the X3 galaxy?
Just... another... bug.

celludriel
Posts: 163
Joined: Thu, 12. Sep 13, 11:29
x4

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Mon, 4. Feb 19, 01:50

I needed a little break from X4, after spending what feels like an eternity in md script getting fought by the language every step I took.

I'll have a look at the generator maybe I missed something. However it will have to wait till next weekend. I have a heavy work week ahead of me with plenty of java. Coming home and doing more java would fry my brain.
However here a few observations about your comments.

- The naming of the zones and clusters don't have to be egosofts naming conventions. In fact I chose my own because it was easier to work with.
- The spaces in the arrays don't matter for the arrays. However I do notice Factionlogic has a capital there instead of factionlogic. That could be the culprit.
- The datavaults could pick up the same sector, so two datavaults in one sector is perfectly possible

For now the custom factionlogic code is still not finished, not sure I'll ever be able to finish it. So creating galaxies will always work, having decent gameplay in them less so. The one guy asking to recreate x3 galaxy, I already did. Look for another thread from me where I did that.

DeadAirRT
Posts: 1030
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [TOOL] X4 Galaxy Creator

Post by DeadAirRT » Mon, 4. Feb 19, 21:41

Quick question:

Was there any particular reason this is restricted to only acceleration gates? I just managed to mod in a gate from antigone memorial to second contact XI in my game and was wondering if it would cause problems that I used a jump gate.

celludriel
Posts: 163
Joined: Thu, 12. Sep 13, 11:29
x4

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Tue, 5. Feb 19, 19:30

DeadAirRT wrote:
Mon, 4. Feb 19, 21:41
Quick question:

Was there any particular reason this is restricted to only acceleration gates? I just managed to mod in a gate from antigone memorial to second contact XI in my game and was wondering if it would cause problems that I used a jump gate.
No there shouldn't be a problem to use different models. I just hardcoded the gate in my original galaxy generator. It could be a feature to choose the gate. I just never put any attention to it. When my mod batteries are recharged and I dive in the generator code again I'll see what I can do about that.

However top priority should still be finishing up the custom faction logic. However I just can't bring myself to do any md script. It drains your soul

DeadAirRT
Posts: 1030
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [TOOL] X4 Galaxy Creator

Post by DeadAirRT » Tue, 5. Feb 19, 22:57

Thanks for the info! I barely mess around with the simple stuff, glad there are people like you who will tackle the hard things! Best of luck and don't burn yourself out.

blade21
Posts: 659
Joined: Sun, 8. Feb 04, 02:37
x4

Re: [TOOL] X4 Galaxy Creator

Post by blade21 » Sun, 22. Sep 19, 09:45

nice! hope for more updates!

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Re: [TOOL] X4 Galaxy Creator

Post by Malakie » Tue, 1. Oct 19, 18:31

Can someone post the java files at a different link? I am not going to create an account at oracle just to download the run times.
Take it light.....

Malakie

----------------------------------------------------

killerog
Posts: 3464
Joined: Fri, 28. Oct 05, 16:31
x4

Re: [TOOL] X4 Galaxy Creator

Post by killerog » Tue, 1. Oct 19, 18:36

Try the latest version of java instead it might work with that (no idea if it will or not but worth a shot).
Image

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Re: [TOOL] X4 Galaxy Creator

Post by Malakie » Tue, 1. Oct 19, 23:03

killerog wrote:
Tue, 1. Oct 19, 18:36
Try the latest version of java instead it might work with that (no idea if it will or not but worth a shot).
Do you know of a link that does not require me to have an account to get java files needed?
Take it light.....

Malakie

----------------------------------------------------

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: [TOOL] X4 Galaxy Creator

Post by teleportationwars » Tue, 1. Oct 19, 23:53

Malakie wrote:
Tue, 1. Oct 19, 23:03
killerog wrote:
Tue, 1. Oct 19, 18:36
Try the latest version of java instead it might work with that (no idea if it will or not but worth a shot).
Do you know of a link that does not require me to have an account to get java files needed?
I don't think that link requires an account? I only need to accept the license.

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Re: [TOOL] X4 Galaxy Creator

Post by Malakie » Wed, 2. Oct 19, 21:25

teleportationwars wrote:
Tue, 1. Oct 19, 23:53
Malakie wrote:
Tue, 1. Oct 19, 23:03
killerog wrote:
Tue, 1. Oct 19, 18:36
Try the latest version of java instead it might work with that (no idea if it will or not but worth a shot).
Do you know of a link that does not require me to have an account to get java files needed?
I don't think that link requires an account? I only need to accept the license.
It does.. I accept the license and it takes me to the create account or login page
Take it light.....

Malakie

----------------------------------------------------

Madwack
Posts: 10
Joined: Sat, 7. Sep 19, 20:36
x4

Re: [TOOL] X4 Galaxy Creator

Post by Madwack » Sat, 5. Oct 19, 04:33

Malakie wrote:
Wed, 2. Oct 19, 21:25
teleportationwars wrote:
Tue, 1. Oct 19, 23:53
Malakie wrote:
Tue, 1. Oct 19, 23:03


Do you know of a link that does not require me to have an account to get java files needed?
I don't think that link requires an account? I only need to accept the license.
It does.. I accept the license and it takes me to the create account or login page
Here ya go.....

https://java.com/en/download/

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: [TOOL] X4 Galaxy Creator

Post by teleportationwars » Sat, 5. Oct 19, 05:01

Madwack wrote:
Sat, 5. Oct 19, 04:33
Malakie wrote:
Wed, 2. Oct 19, 21:25
teleportationwars wrote:
Tue, 1. Oct 19, 23:53


I don't think that link requires an account? I only need to accept the license.
It does.. I accept the license and it takes me to the create account or login page
Here ya go.....

https://java.com/en/download/
Dude needs the jdk... and yes, that does require a signin. Good to know that Oracle is still evil.

Madwack
Posts: 10
Joined: Sat, 7. Sep 19, 20:36
x4

Re: [TOOL] X4 Galaxy Creator

Post by Madwack » Sat, 5. Oct 19, 17:14

teleportationwars wrote:
Sat, 5. Oct 19, 05:01
Madwack wrote:
Sat, 5. Oct 19, 04:33
Malakie wrote:
Wed, 2. Oct 19, 21:25


It does.. I accept the license and it takes me to the create account or login page
Here ya go.....

https://java.com/en/download/
Dude needs the jdk... and yes, that does require a signin. Good to know that Oracle is still evil.
LOL

FFS now I know why I could not get the damn thing to work.

Edit- I keep getting an error when trying to export as MOD.....Process must exit before requested information can be determined.

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: [TOOL] X4 Galaxy Creator

Post by teleportationwars » Sat, 5. Oct 19, 18:35

Madwack wrote:
Sat, 5. Oct 19, 17:14
teleportationwars wrote:
Sat, 5. Oct 19, 05:01
Madwack wrote:
Sat, 5. Oct 19, 04:33


Here ya go.....

https://java.com/en/download/
Dude needs the jdk... and yes, that does require a signin. Good to know that Oracle is still evil.
LOL

FFS now I know why I could not get the damn thing to work.

Edit- I keep getting an error when trying to export as MOD.....Process must exit before requested information can be determined.
the tool breaks the json pretty often so if you have any issues its either the excitingly undocumented lack of defaults for some required values or malformed json.

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Re: [TOOL] X4 Galaxy Creator

Post by Malakie » Wed, 20. Nov 19, 01:24

Madwack wrote:
Sat, 5. Oct 19, 04:33
Malakie wrote:
Wed, 2. Oct 19, 21:25
teleportationwars wrote:
Tue, 1. Oct 19, 23:53


I don't think that link requires an account? I only need to accept the license.
It does.. I accept the license and it takes me to the create account or login page
Here ya go.....

https://java.com/en/download/
Thanks! Sorry for delay on my end.. real life!
Take it light.....

Malakie

----------------------------------------------------

Post Reply

Return to “X4: Foundations - Scripts and Modding”