How to start a custom game in a custom galaxy?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums
How to start a custom game in a custom galaxy?
If I go to start a game in a custom galaxy, it's always starting with the base discoverer and no other options.
How can I change things so that the start in a custom galaxy launches the custom game setup as well?
There is the additional problem that I never got any of the external script editors to work for me, so I would prefer a solution that can be done without needing them, even if it means editing xml files with notepad or so.
Can anyone help? Thanks
How can I change things so that the start in a custom galaxy launches the custom game setup as well?
There is the additional problem that I never got any of the external script editors to work for me, so I would prefer a solution that can be done without needing them, even if it means editing xml files with notepad or so.
Can anyone help? Thanks
Re: How to start a custom game in a custom galaxy?
When you start a custom game you get a dialog box with game settings. There is an 'extras' section at the bottom where you set up the HUB, HQ and Terran spy mission.
Re: How to start a custom game in a custom galaxy?
And what does that have to do with my question?
I know that you can setup that there, but you CANNOT choose a different galaxy map, the custom game always launches the default map.
Re: How to start a custom game in a custom galaxy?
I have used Map Generator viewtopic.php?f=201&t=456167 to generate a random map and started a game using that.
Re: How to start a custom game in a custom galaxy?
And how did you do that?
That was my question - the custom game has no option to select a custom galaxy, and if I select the custom galaxy I can't select the custom start - those are two different start options
That was my question - the custom game has no option to select a custom galaxy, and if I select the custom galaxy I can't select the custom start - those are two different start options
Re: How to start a custom game in a custom galaxy?
Install the map generator as explained here https://www.nexusmods.com/x3terranconflict/mods/121.
Launch MapGen.exe, create a random map and save.
Now when you go to start a game in a custom galaxy you can choose the map you just created.
Launch MapGen.exe, create a random map and save.
Now when you go to start a game in a custom galaxy you can choose the map you just created.
Re: How to start a custom game in a custom galaxy?
if you plan to write a script, there are too ways you can do it.
first, is create the init script, it should be called galaxy.GALAXYNAME.initplayership
with GALAXYNAME the name of your custom galaxy.
this is run when the game is created, and the ship you return from the script will be used as main player ship.
The other is to create a setup script that runs once when the game first loads, and opens the custom start dialog
the script name needs to start with setup.*
if you cant use the external editors (make sure you have the FL version)
then you can just use the internal one
editing the xml file directly is not advised
first, is create the init script, it should be called galaxy.GALAXYNAME.initplayership
with GALAXYNAME the name of your custom galaxy.
this is run when the game is created, and the ship you return from the script will be used as main player ship.
The other is to create a setup script that runs once when the game first loads, and opens the custom start dialog
the script name needs to start with setup.*
Code: Select all
if not get global variable 'run.once.init'
set global variable 'run.once.init' value=[TRUE]
$gamestart.id = get game start id
if $gamestart.id == -1
START call script 'plugin.customstart.run'
end
end
then you can just use the internal one
editing the xml file directly is not advised
Re: How to start a custom game in a custom galaxy?
Something must have gone wrong with my first installation, because the custom setup never came up for me in a custom galaxy, I was always left with 1000cr and a discoverer.
That is why I asked this topic
I reinstalled the package and now the custom game setup launches with a custom galaxy.
So problem solved
Thanks for the info
I tried to use the init script before, but it never worked - likely because I didn't know that the player ship would have to be given as a return value.
With your added info I should be able to use both methods correctly.