[TOOL] X4 Galaxy Creator

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

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

saa044
Posts: 6
Joined: Sat, 5. Jan 19, 17:11

Re: [TOOL] X4 Galaxy Creator

Post by saa044 » Wed, 9. Jan 19, 13:08

@celludriel awesome, thanks for the reply. Would be really cool if you could add backdrop and music in a dropdown, but not expected. A list will be awesome though.

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Wed, 9. Jan 19, 17:04

saa044 wrote:
Wed, 9. Jan 19, 13:08
@celludriel awesome, thanks for the reply. Would be really cool if you could add backdrop and music in a dropdown, but not expected. A list will be awesome though.
First of here is our trello board

https://trello.com/b/eKmvOxoT/x4-galaxy-creator

next the list of music

Code: Select all

        <music ref="music_cluster_01" />
        <music ref="music_cluster_01_sector_01" />
        <music ref="music_cluster_01_sector_02" />
        <music ref="music_cluster_01_sector_03" />
        <music ref="music_cluster_02" />
        <music ref="music_cluster_03" />
        <music ref="music_cluster_04" />
        <music ref="music_cluster_04_sector_01" />
        <music ref="music_cluster_04_sector_02" />
        <music ref="music_cluster_05" />
        <music ref="music_cluster_06" />
        <music ref="music_cluster_06_sector_01" />
        <music ref="music_cluster_06_sector_02" />
        <music ref="music_cluster_07" />
        <music ref="music_cluster_08" />
        <music ref="music_cluster_09" />
        <music ref="music_cluster_10" />
        <music ref="music_cluster_11" />
        <music ref="music_cluster_12" />
        <music ref="music_cluster_13" />
        <music ref="music_cluster_14" />
        <music ref="music_cluster_15" />
        <music ref="music_cluster_15_sector_01" />
        <music ref="music_cluster_15_sector_02" />
        <music ref="music_cluster_16" />
        <music ref="music_cluster_17" />
        <music ref="music_cluster_18" />
        <music ref="music_cluster_19" />
        <music ref="music_cluster_19_sector_01" />
        <music ref="music_cluster_19_sector_02" />
        <music ref="music_cluster_20" />
        <music ref="music_cluster_21" />
        <music ref="music_cluster_21_sector_01" />
        <music ref="music_cluster_21_sector_02" />
        <music ref="music_cluster_22" />
        <music ref="music_cluster_23" />
        <music ref="music_cluster_24" />
        <music ref="music_cluster_25" />
        <music ref="music_cluster_25_sector_01" />
        <music ref="music_cluster_25_sector_02" />
        <music ref="music_cluster_26" />
        <music ref="music_cluster_26_sector_01" />
        <music ref="music_cluster_26_sector_02" />
        <music ref="music_cluster_27" />
        <music ref="music_cluster_28" />
        <music ref="music_cluster_29" />
        <music ref="music_cluster_29_sector_01" />
        <music ref="music_cluster_29_sector_02" />
        <music ref="music_cluster_30" />
        <music ref="music_cluster_31" />
        <music ref="music_cluster_32" />
        <music ref="music_cluster_32_sector_01" />
        <music ref="music_cluster_32_sector_02" />
        <music ref="music_cluster_33" />
        <music ref="music_cluster_09" />
        <music ref="music_cluster_23" />
        <music ref="music_cluster_23" />
        <music ref="music_cluster_22" />
        <music ref="music_cluster_22" />
        <music ref="music_cluster_03" />
        <music ref="music_cluster_13" />
        <music ref="music_cluster_13" />
        <music ref="music_cluster_19" />
        <music ref="music_cluster_19_sector_01" />
        <music ref="music_cluster_19_sector_02" />
        <music ref="music_cluster_19" />
        <music ref="music_cluster_19_sector_01" />
        <music ref="music_cluster_08" />
        <music ref="music_cluster_08" />
        <music ref="music_cluster_30" />
        <music ref="music_cluster_18" />
These are all the backdrops

Code: Select all

         <component connection="space" ref="Cluster_01" />
          <component connection="space" ref="Cluster_02" />
          <component connection="space" ref="Cluster_03" />
          <component connection="space" ref="Cluster_04" />
          <component connection="space" ref="Cluster_05" />
          <component connection="space" ref="Cluster_06" />
          <component connection="space" ref="Cluster_07" />
          <component connection="space" ref="Cluster_08" />
          <component connection="space" ref="Cluster_09" />
          <component connection="space" ref="Cluster_10" />
          <component connection="space" ref="Cluster_11" />
          <component connection="space" ref="Cluster_12" />
          <component connection="space" ref="Cluster_13" />
          <component connection="space" ref="Cluster_14" />
          <component connection="space" ref="Cluster_15" />
          <component connection="space" ref="Cluster_16" />
          <component connection="space" ref="Cluster_17" />
          <component connection="space" ref="Cluster_18" />
          <component connection="space" ref="Cluster_19" />
          <component connection="space" ref="Cluster_20" />
          <component connection="space" ref="Cluster_21" />
          <component connection="space" ref="Cluster_22" />
          <component connection="space" ref="Cluster_23" />
          <component connection="space" ref="Cluster_24" />
          <component connection="space" ref="Cluster_25" />
          <component connection="space" ref="Cluster_26" />
          <component connection="space" ref="Cluster_27" />
          <component connection="space" ref="Cluster_28" />
          <component connection="space" ref="Cluster_29" />
          <component connection="space" ref="Cluster_30" />
          <component connection="space" ref="Cluster_31" />
          <component connection="space" ref="Cluster_32" />
          <component connection="space" ref="Cluster_33" />
          <component connection="space" ref="Cluster_34" />
          <component connection="space" ref="Cluster_35" />
          <component connection="space" ref="Cluster_36" />
          <component connection="space" ref="Cluster_37" />
          <component connection="space" ref="Cluster_38" />
          <component connection="space" ref="Cluster_39" />
          <component connection="space" ref="Cluster_40" />
          <component connection="space" ref="Cluster_41" />
          <component connection="space" ref="Cluster_42" />
          <component connection="space" ref="Cluster_43" />
          <component connection="space" ref="Cluster_44" />
          <component connection="space" ref="Cluster_45" />
          <component connection="space" ref="Cluster_46" />
          <component connection="space" ref="Cluster_47" />
You could technically use your own music and backdrops, just not with the tool in its current state

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

Re: [TOOL] X4 Galaxy Creator

Post by killerog » Wed, 9. Jan 19, 17:48

The link to the Trello board is in my first post. So keep an eye on that for any bugs you might see. If its not on there post it here and we can add it to the list.

If I get time tonight I will fix the sectors not changing on adding/updating stations as well as merging the changes celludriel has already done and get a new version out for you guys to play with.
Image

User avatar
OneOfMany
Posts: 448
Joined: Thu, 15. May 14, 14:25
x4

Re: [TOOL] X4 Galaxy Creator

Post by OneOfMany » Wed, 9. Jan 19, 21:01

This has real potential.

Great job folks.

Tomonor
EGOSOFT
EGOSOFT
Posts: 1703
Joined: Wed, 12. Sep 07, 19:01
x4

Re: [TOOL] X4 Galaxy Creator

Post by Tomonor » Wed, 9. Jan 19, 23:25

Huge potential. Very-very awesome work!

Is it possible you guys can figure out to implement superhighways? I want to create Rebirth-style universe with the most superhighway eyecandy. I'm speaking of connecting planetary bodies real-time while buzzing the magic tube's directions up-down-left-right.
Image

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

Re: [TOOL] X4 Galaxy Creator

Post by killerog » Thu, 10. Jan 19, 00:07

New version released. This includes bug fixes by celludriel and a new version of the generator, along with changing/adding stations changes cluster colours.
Image

saa044
Posts: 6
Joined: Sat, 5. Jan 19, 17:11

Re: [TOOL] X4 Galaxy Creator

Post by saa044 » Thu, 10. Jan 19, 07:39

I have not looked in the new version yet and to be honest I forgot for a moment if there are silicon asteroids, to many space games lol. But if there are, I could not find silicon rocks in the generator.

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Thu, 10. Jan 19, 13:35

saa044 wrote:
Thu, 10. Jan 19, 07:39
I have not looked in the new version yet and to be honest I forgot for a moment if there are silicon asteroids, to many space games lol. But if there are, I could not find silicon rocks in the generator.
The regular ORE belt has a mix of silicon and ore so there is always available.

saa044
Posts: 6
Joined: Sat, 5. Jan 19, 17:11

Re: [TOOL] X4 Galaxy Creator

Post by saa044 » Thu, 10. Jan 19, 17:13

celludriel wrote:
Thu, 10. Jan 19, 13:35
saa044 wrote:
Thu, 10. Jan 19, 07:39
I have not looked in the new version yet and to be honest I forgot for a moment if there are silicon asteroids, to many space games lol. But if there are, I could not find silicon rocks in the generator.
The regular ORE belt has a mix of silicon and ore so there is always available.
Ahh I see, thank you.

Hornet108
Posts: 343
Joined: Thu, 15. Nov 12, 13:46
x4

Re: [TOOL] X4 Galaxy Creator

Post by Hornet108 » Thu, 10. Jan 19, 21:44

Problem seemed to be the ID's, changing them for number strings seems to have fixed it. Probably better to just use numbers anyway, much more straight forward and reduces complexity

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Fri, 11. Jan 19, 17:06

Hornet108 wrote:
Thu, 10. Jan 19, 21:44
Problem seemed to be the ID's, changing them for number strings seems to have fixed it. Probably better to just use numbers anyway, much more straight forward and reduces complexity
This has been fixed in the latest release

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

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Thu, 17. Jan 19, 20:27

It is not possible to export a map as soon as a station has been set in the map.

When comparing the JSON files from two maps, huge differences are also visible.

Have both maps as an archive.

In the folder functional is the file of the map which can be exported with stations.
In the second folder is the file, which I have created, this can only be exported without any station.
If only one station is set in my map, the export is no longer possible.

Please take a look at it, because the great thing about it is really awesome.

Map-Archive


Sorry for Bad Englisch, its Googletrans :doh:

Greeting 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

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Thu, 17. Jan 19, 21:00

Thanks I found a bug in the json output, the new private fields should never have gone into the json.

I'll put in a fix and see if badger has time to release a new version

Seems someone beat me to it :)

https://github.com/killeroguk/X4GalaxyCreator/pull/26

I've asked badger to merge the fixes and bring out a release

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

Re: [TOOL] X4 Galaxy Creator

Post by killerog » Thu, 17. Jan 19, 21:58

Merged the fixes, so thanks to whoever did that. Ill release a new version tomorrow night or at the weekend with these fixes included.
Image

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

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Fri, 18. Jan 19, 08:57

Thank you for your prompt reply.

I also noticed something.

Some of the Factions have the same color for me, including: Ministry, Player, Ownerless and None.

The color is a kind of pink, which makes it impossible to determine which faction it is.

Here are four screenshots.

In the upper left corner are the four sectors where it will show.

On the right is visible, which factions are set.

I use Win 10-64Bit

Screenshot 1

Screenshot 2

Screenshot 3

Screenshot 4

Greeting Cappy1401
Last edited by Cappy1401 on Mon, 28. Jan 19, 20:39, edited 1 time in total.
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

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Fri, 18. Jan 19, 17:08

Cappy1401 wrote:
Fri, 18. Jan 19, 08:57
Some of the Factions have the same color for me, including: Ministry, Player, Ownerless and None.
These factions cannot claim space for themselfes. So they are treated as empty sectors. The pink color is the unowned color. This is normal behavior
Cappy1401 wrote:
Fri, 18. Jan 19, 08:57
!!! EDIT !!!

I just noticed the following.

With version 1.0.2 please do not create maps, this is not functional, Map is destroyed
It comes in the attempt to display the map to the CTD.
I'm not sure what you mean, since 1.0.2 you have to select the map editor from the editors menu option explicitly. This has to do with having to initialize some parameters. It's more a hack not to have to do all to complicated stuff. I just tested it myself and as far as I know no map is being destroyed. It does seem description is required in my java generator and the editor allows to have an empty description that is something I either have to make mandatory in the editor or fix in the generator.

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

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Sat, 19. Jan 19, 10:43

Here is the map that I created with V1.0.2.
The map can be loaded via the menu after starting the program.
If I choose the Mapeditor in the menu, it comes to the CTD.

Map


Edit

Saving with V1.0.0 does not help, there is still a CTD
Last edited by Cappy1401 on Sat, 19. Jan 19, 11:17, edited 1 time in total.
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

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Sat, 19. Jan 19, 11:11

Cappy1401 wrote:
Sat, 19. Jan 19, 10:43
Here is the map that I created with V1.0.2.
The map can be loaded via the menu after starting the program.
If I choose the Mapeditor in the menu, it comes to the CTD.

Map
You seem to have connections without a targetClusterId

Code: Select all

   {
      "id": "270",
      "name": "{7,127000}",
      "description": "xenon hub",
      "music": "music_cluster_02",
      "sunlight": "1",
      "economy": "0.75",
      "security": "0.75",
      "x": 3,
      "y": -1,
      "backdrop": "cluster_01",
      "connections": [
        {
          "connectionType": "N"
        }
      ],
      "belts": [],
      "stations": [
        {
          "type": "DEFENCE",
          "race": "ARGON",
          "owner": "PLAYER",
          "faction": "PLAYER"
        }
      ],
      "spaceObjects": []
    },
I'll make a bug ticket so the application doesn't crash but gives a warning of some sort

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

Re: [TOOL] X4 Galaxy Creator

Post by Cappy1401 » Sat, 19. Jan 19, 11:26

FULLEDIT

Have found a second goal without a goal and deleted.
You can find the gate if you are looking for {7,135000}
The map can now be displayed again in the map editor.
Export but not possible.

Cappy1401


EDIT OF EDIT

I just remembered.
The removal for gates has no effect, a set gate can not be removed.
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 » Sat, 19. Jan 19, 12:54

Version 1.0.3 released with bug fixes from ianb1987.
Image

Post Reply

Return to “X4: Foundations - Scripts and Modding”