FreeOrion

Forums for the FreeOrion project
It is currently Mon Dec 11, 2017 11:32 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: How do you add species?
PostPosted: Sat Oct 14, 2017 10:03 am 
Offline
Space Floater
User avatar

Joined: Tue Jun 30, 2015 11:34 am
Posts: 26
... On 0.4.7+ Test version. I slap the Species script file onto default/scripting/species, edited and ran the bld_col_gen.py, added the building into starting_unlocks/items.inf. But it doesn't work - the species does not show up in the list of playable species... :(

Did I miss anything since we separated each species into their own files?


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 10:53 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12040
Location: Munich
Check the client log file. You have a parser error that prevents the species from being included.

Also, make sure you started with an already-playable species or that you added Playable to the script.

I just made a copy of SP_HUMAN.txt, changed the species name to SP_NEW, added SP_NEW to the stringtable, and started the game. "New Species" is in the player species droplist in the single player setup screen.


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 11:09 am 
Offline
Space Floater
User avatar

Joined: Tue Jun 30, 2015 11:34 am
Posts: 26
No, the log file (i.e. User/AppData/Roaming/FreeOrion/freeorion.log) does not complain anything about parser errors or such... (That's why I ask....) (yes I have editing the en.txt stringtable)

I did the exact steps by Geoff and it does not work either... :?

Should the file name be "SP_SPECIES.focs.txt" or "SP_SPECIES.txt"?? Because the former is what I saw from every file in default/scripting/species


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 11:16 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12040
Location: Munich
Do you have FreeOrion installed in Program Files on Windows? Possibly it's preventing you from editing / modifying the contents of that directory. Maybe make a copy of the default directory elsewhere, do the edits there, then set that as the default directory.

Not sure what I named it, or if the .focs is needed, but it'd be safer / more consistent to keep it.


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 11:28 am 
Offline
Space Floater
User avatar

Joined: Tue Jun 30, 2015 11:34 am
Posts: 26
hm.. The game is not installed inside Program Files but under another logical drive.

But well I think I made it work. Basically I have two installations of FO, one thru installer while the other is pulled from source code and have the exe and dll download slapped over it. The former works fine while the latter does not work at all (despite the game opens just fine). Probably that's the issue :?


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 11:50 am 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12040
Location: Munich
It could be taking the scripts from the same place for both installs. Check the options menu, directories tab, resource files locations.


Top
 Profile  
 
PostPosted: Sat Oct 14, 2017 12:26 pm 
Offline
Creative Contributor
User avatar

Joined: Fri Jun 28, 2013 11:45 pm
Posts: 3286
It will almost certainly be taking the default files from the same place if you've got two installs running, and that would be the problem: if you're using a Test build, use the new create persistent config option after editing the location.

If you are going to be changing files &c, I strongly recommend learning to use Git, the learning curve is steep but it's very much worth it once you've got the basics.

(and for what it's worth, the most recent playable species is my addition and I made so many mistakes creating it and then putting it into master it was embarrassing, so don't be put off)

_________________
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group