adding new planet types
Posted: Mon Jan 28, 2013 11:40 pm
Hi everyone.
I'm trying to incorporate a new planet type 'commerce_center' (in Privateer Gemini Gold). What I did so far:
Added the type to the <planet> section in wcuniverse.xml (milky_way.xml).
Added a planet of this type to a system in wcuniverse.xml (milky_way.xml) and the appropriate system file. For the planet texture called by the system file I created a commerce_center.png.
Added a line to units.csv (simply copied an existing planets line and changed the first column to 'commerce_center__planets').
Created a commerce_center.py file in \bases\ directory (simply copied/renamed agricultural.py).
Ok, what happens in game:
The new planet shows up correctly and is called 'Commerce Center: ...' in the HUD. The correct texture is applied (so I assume the system file and wcuniverse.xml work correctly).
But when I land on the planet mostly the error message 'no rooms specified' appears. Strangely sometimes the correct base screens appear but the links to the guilds / bar / mission computer and commodity exchange have gone. The only link that works is the link to the landing bay, where I can launch my ship just normally.
My question is: What did I miss? Is there any other file that needs to be changed? What string in what file tells the engine what .py-file is used for creating the base screens?
One more hint: Checking the stderr.txt there are several entries with "commerce_centerdaymerchant.py" or "commerce_centerday.py". Where does this come from? What does it mean?
Any help is much appreciated.
I'm trying to incorporate a new planet type 'commerce_center' (in Privateer Gemini Gold). What I did so far:
Added the type to the <planet> section in wcuniverse.xml (milky_way.xml).
Added a planet of this type to a system in wcuniverse.xml (milky_way.xml) and the appropriate system file. For the planet texture called by the system file I created a commerce_center.png.
Added a line to units.csv (simply copied an existing planets line and changed the first column to 'commerce_center__planets').
Created a commerce_center.py file in \bases\ directory (simply copied/renamed agricultural.py).
Ok, what happens in game:
The new planet shows up correctly and is called 'Commerce Center: ...' in the HUD. The correct texture is applied (so I assume the system file and wcuniverse.xml work correctly).
But when I land on the planet mostly the error message 'no rooms specified' appears. Strangely sometimes the correct base screens appear but the links to the guilds / bar / mission computer and commodity exchange have gone. The only link that works is the link to the landing bay, where I can launch my ship just normally.
My question is: What did I miss? Is there any other file that needs to be changed? What string in what file tells the engine what .py-file is used for creating the base screens?
One more hint: Checking the stderr.txt there are several entries with "commerce_centerdaymerchant.py" or "commerce_centerday.py". Where does this come from? What does it mean?
Any help is much appreciated.