<P ><FONT size=3><FONT face="Times New Roman">New Unit Creation Tutorial by scenario_t_c </FONT></FONT>
<P ><FONT size=3>•<FONT face="Times New Roman"> Red texts are basic steps. </FONT></FONT>
<P ><FONT size=3>•<FONT face="Times New Roman"> Blue texts are actions that should be taken in the showcase example. </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">In order to prepare for making a whole new unit, you should decompress the game database, read the data and convert them into text with GeniEd first. </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">1. The first step to create a whole new unit is to select an existing one as a base and get its unit ID. For example, if I choose to duplicate the militia and modify it further to make a whole new unit, I should find its unit ID: 74. </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">2. Knowing the unit ID, you can open the file "units.txt" (created by the "Convert Data to Text" command in GeniEd) under the "text" folder in "ged_data" directory. Then, you should copy all the lines beginning with "unit_[the unit ID of base unit]_" into "patches.txt" . Continuing the above example, these are the lines you have to copy when using militia as the base unit: </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_exists: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_count: 7 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown01: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown02: 0 0 0 7 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown03: -<st1:chsdate w:st="on" Year="2001" Month="1" Day="1" IsLunarDate="False" IsROCDate="False">1 -1 -1</st1:chsdate> -1 -1 -1 -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown04: 0 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown05: 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown06: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown07: 3 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_unknown08: 1 1 1 0 0 0 5 0 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_0_graphics: -<st1:chsdate w:st="on" Year="2001" Month="1" Day="1" IsLunarDate="False" IsROCDate="False">1 -1 -1</st1:chsdate> -1 -1 -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">... </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown01: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown02: 6 0 0 3 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown03: <st1:chsdate w:st="on" Year="2013" Month="1" Day="1" IsLunarDate="False" IsROCDate="False">13 -1 -1</st1:chsdate> -1 -1 -1 -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown04: 0 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown05: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown06: 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown07: 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_unknown08: 0 0 0 0 0 0 1 0 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">unit_74_6_graphics: -<st1:chsdate w:st="on" Year="2001" Month="1" Day="1" IsLunarDate="False" IsROCDate="False">1 -1 -1</st1:chsdate> -1 -1 -1 </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">3. Now, you should close "units.txt" and open another file in the "text" folder - "civ0units.txt". In this file, you have to copy another series of text lines again, this time beginning with "civ_0_unit_[the unit ID of base unit]_", to " patches.txt". In this case, the lines you need would be like the following: </FONT></FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_type: 70 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_name_length: 6 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_id1: 74 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_name_language: 5079 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_command_language: 6079 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_class: 6 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_graphic_stand01: 1102 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_graphic_stand02: -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_graphic_die01: 1099 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_graphic_die02: -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">... </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_attack_missile_duplication_amount01: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_attack_missile_duplication_amount02: 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_attack_missile_duplication_unknown01: 1 1 1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_attack_missile_duplication_unit: -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_attack_missile_duplication_graphic: -1 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT size=3><FONT face="Times New Roman">civ_0_unit_74_unknown35_12: 0 </FONT></FONT>
<P > <FONT face="Times New Roman" size=3> </FONT>
<P ><FONT face="Times New Roman" size=3>civ_0_unit_74_displayed_pierce_armour: 1</FONT>
[此贴子已经被作者于2006-06-09 00:38:49编辑过]
|