Edit: It appears that the spawn_weight takes a { base = value } - However, setting this hasn't actually resulted in anything that hasn't already been happening. While I no longer get the errors below, my empires are still starting on barren worlds. It would seem that for now you have to hardcode in your classes... shame
I have recently been wracking my brain trying to work out a problem that seems to be affecting not just myself, but every other person attempting to create static galaxies ( judging from all released static galaxies so far )
When creating a galaxy any empire is spawned in solar systems upon the most random planets (and stars) possible. No matter what system initializer you use, it still won't spawn your empires correctly and will instead result in most planets (near enough all planets ) being barren.
So I looked through the error.log file to see if I could find some sort of solution.
Whenever I attempt to generate a custom static galaxy I receive an error on attempting to generate the galaxy: (from error.log)
However, upon attempting to modify my static script to include some form of spawn_weight the game crashes during galaxy generation. The error log then contains the following:
It seems like somewhere along the way, the spawn_weight variable messes up the parsing and then completely destroys the script. I imagine it's because I'm using float or int values, and it could be a case of it only accepting string values?
Just wondering if others have found a solution, or if a developer could point me in the right direction.
Thanks
I have recently been wracking my brain trying to work out a problem that seems to be affecting not just myself, but every other person attempting to create static galaxies ( judging from all released static galaxies so far )
When creating a galaxy any empire is spawned in solar systems upon the most random planets (and stars) possible. No matter what system initializer you use, it still won't spawn your empires correctly and will instead result in most planets (near enough all planets ) being barren.
So I looked through the error.log file to see if I could find some sort of solution.
Whenever I attempt to generate a custom static galaxy I receive an error on attempting to generate the galaxy: (from error.log)
[08:49:44][galaxy_generator.cpp:2071]: Could not find starting systems for all empires. Too few systems have spawn_weight!
However, upon attempting to modify my static script to include some form of spawn_weight the game crashes during galaxy generation. The error log then contains the following:
[08:53:17][meantimetohappen.cpp:200]: unknown command 'id' for MTTH in file map/setup_scenarios/woopgal.txt line : 15
It seems like somewhere along the way, the spawn_weight variable messes up the parsing and then completely destroys the script. I imagine it's because I'm using float or int values, and it could be a case of it only accepting string values?
Just wondering if others have found a solution, or if a developer could point me in the right direction.
Thanks
Last edited: