[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, 09:07

The screen seems to be stuck to the left cutting off part of the galagy. https://ibb.co/r2Tmm2t

HighVelocity
Posts: 189
Joined: Mon, 22. Dec 03, 17:15
x3ap

Re: [TOOL] X4 Galaxy Creator

Post by HighVelocity » Wed, 9. Jan 19, 10:33

With rigth click you can move it around.

And another one: how do i change colours ? They are always pink, regardless of the race and only once it happend that one was blue. But no idea why ?

hv

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

Re: [TOOL] X4 Galaxy Creator

Post by saa044 » Wed, 9. Jan 19, 11:50

HighVelocity wrote:
Wed, 9. Jan 19, 10:33
With rigth click you can move it around.

And another one: how do i change colours ? They are always pink, regardless of the race and only once it happend that one was blue. But no idea why ?

hv
Thanks, yeah I also wanted to know about colours now, and also where to find the backdrops and music.

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

Re: [TOOL] X4 Galaxy Creator

Post by saa044 » Wed, 9. Jan 19, 12:29

HighVelocity wrote:
Wed, 9. Jan 19, 10:33
With rigth click you can move it around.

And another one: how do i change colours ? They are always pink, regardless of the race and only once it happend that one was blue. But no idea why ?

hv
Quick note, I see once you place a station and make race, owner and faction the one you want, save and load, the tile colour will change. It does not change Realtime.

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

Re: [TOOL] X4 Galaxy Creator

Post by celludriel » Wed, 9. Jan 19, 12:33

Hornet108 wrote:
Tue, 8. Jan 19, 22:34
//Edit Moved on - now with a different problem

Code: Select all

Logfile started, time Tue Jan 08 22:38:43 2019
[General] 0.00 ======================================
[=ERROR=] 0.00 Cannot find macro XML file from index 'PUR_galaxy_macro' in file 'index\macros'
[General] 0.00 ======================================
[General] 0.00 ======================================
[=ERROR=] 0.00 Macro not found: PUR_galaxy_macro
[General] 0.00 ======================================
Getting a CTD on that log file, no doubt its got something to do with - [=ERROR=] 0.00 Macro not found: PUR_galaxy_macro - any help would be appreciated :D

Great tool btw, tho a bit rough around the edges. I might PR some fixes in if I get a moment if you guys want the help :D
Something went wrong during the export to mod. Can you get me the json file you created so I can investigate ? Any help is welcome, especially if someone volunteers to write the entire help.html file :twisted:
saa044 wrote:
Wed, 9. Jan 19, 09:07
The screen seems to be stuck to the left cutting off part of the galagy. https://ibb.co/r2Tmm2t
This is a known bug , you should be able to right click drag and drag the galaxy in the middle of the viewport. It's on our todolist to fix
HighVelocity wrote:
Wed, 9. Jan 19, 10:33
With rigth click you can move it around.

And another one: how do i change colours ? They are always pink, regardless of the race and only once it happend that one was blue. But no idea why ?

hv
If you add a station to the sector for a faction DEFENSE, WHARF, SHIPYARD, TRADE... and you open the map editor again it should change colour. It's also a know bug and on the todolist. We have a trello board going where we keep track of bugs. I'm at work now so I don't have the link handy.
saa044 wrote:
Wed, 9. Jan 19, 11:50
HighVelocity wrote:
Wed, 9. Jan 19, 10:33
With rigth click you can move it around.

And another one: how do i change colours ? They are always pink, regardless of the race and only once it happend that one was blue. But no idea why ?

hv
Thanks, yeah I also wanted to know about colours now, and also where to find the backdrops and music.
Backdrops and music can be found in the mapdefaults.xml if you extract the game files from the CAT/DAT files. I could make a list once I get home from work

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: 1682
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

Post Reply

Return to “X4: Foundations - Scripts and Modding”