View Full Version : adding more races
Sgt_Bosse
29th Aug 06, 3:03 AM
I was wondering if there is a bulletproof way of adding more races than the 3 (hgn, vgr, kpr) That are able to build ships
(and also about adding AI to new races)
Can someone lead me to a howto guide on this?
The Druid
29th Aug 06, 6:13 AM
I'm pretty sure you do it like anything else as far as race building goes. Currently I have the original 2+ keepers, kadeshi, turanics, and hiigaran pirates with no problems.
4E534B
29th Aug 06, 7:26 AM
Yeah it's possible -- don't mess with "Random" race or you'll run into trouble, that's cause slot FIVE (?) is HARD-CODED for random.
As far as AI is concerned, I'd say you use constants, for race index(es) ( ie instead of Race_xxx, use the indice of the race, anything immediately after random is SIX )
Sgt_Bosse
3rd Sep 06, 1:36 AM
ok - so i added a new race after the random selection and made it Playable in the races.lua file. i also added a folder with the RaceName00 in the starting fleets (currently using the vaygr mothership) and added the race in the build and research menus (just copied the vaygr items for starters). It seems that the starting fleet part is working ok - but nothing happens when i press the build button and the research menu is empty. So what more do i need to do to be able to do research and build ships?
4E534B
3rd Sep 06, 1:40 AM
You need to modify:
Scripts\Building And Research\RaceName\Build.lua
Scripts\Building And Research\RaceName\Research.lua
I think. Don't remember the paths though, something like this
Sgt_Bosse
3rd Sep 06, 11:21 AM
Did that allready... The build menu doesn't open - and the research menu is all empty...
TenGam
4th Sep 06, 9:29 PM
Sgt_Bosse I sent you a pm about it. if you have any more questions I can give you my email or aim name for more direct contact. I'm pretty sure I understand your problem and it involves the fact that one race cannot build another races ships. what you would have to do to have your race build vaygr ships is copy all the vaygr ships and then rename them to your race. plus you have to do this in both the build script and the research script. I have some files around here somewhere but it will take me a bit of time to find them and remember what I was doing.
PS. oh yeah the build menu thing. Check the .ship file to make sure that you have your mother ship is capapble to build your new race's ships.
Edit
Sgt_Bosse. I found the files I was referring to so if you want to look at them just let me know.
Another Edit
You might want to look through this thread as well.
http://forums.relicnews.com/showthread.php?t=73876&page=1&pp=15
I have not read through it but I bet it covers your problem.
vBulletin v3.0.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.