View Full Version : Someone pls explain how to create a new unit
Take1tEasy
16-03-2005, 00:22
Can someone pls explain it to me, can you just name all the steps (and files) for creating a new unit? In details PLEASE! It doesn't matter which unit you take as an example.
Kakita Matesu
16-03-2005, 15:28
Unit used as example: viking
Advices: extract all files from all *.paks to original directory, using PakMan.
pay attention to small and big letters
1. We will create unit named 'vik'
2. Here are all files you need to copy:
defs\Units\Military\units.txt
defs\Units\Military\units.xls
defs\Units\Military\viking.unit
defs\economy\units.in2
maps\europe\map\TrainUnits.txt
maps\europe\map\TrainUnits.xls
Texts\help\ui_help;01unitdescr.ini
Also search all files with 'viking' in the name, without files from 'Viking' folder.
3. Change 'viking' to 'vik' in file's names.
4. Create new folders, if needed
5. In vik.unit change id, name and eventually file's names from [icons] section. Don't touch anything in [images], because game will crush in battle view.
6. The most difficult thing to do is editing Units.xls and TrainUnits.xls. In another topics are tips how to do it correct. Open these files, add new line with stats of new unit in Units.xls and put her name where you want to be recruitable in TrainUnits.xls. Then save it properly as .txt.
7. In units.in2 define what buildings are requirable for new unit.
8. Put description in ui_help;01unitdescr.ini
9. Copy all files to theirs directory, and have fun
10. If I didn't miss something, you should be able to play game without any problems
Feel free to ask questions, cause I was creating unit some time age, so there could be few mistakes.
Take1tEasy
16-03-2005, 19:56
Ok, i can recruit the unit, only it doesn't seem to have an icon, if i go to political view and select units the game crashes and i get error messages saying how i miss some icon. I must have missed something out?
Kakita Matesu
16-03-2005, 20:58
Probably you've missed icons. Generally you should include files from images\units\icons also try to change paths from 'vik.unit' in [icons]. I've noticed that units.in2 doesn't influence on unit's requirements but in Units.xls is similar column, so....
vBulletin v3.5.4, Copyright ©2000-2007, Jelsoft Enterprises Ltd.