You must be logged in to post messages.
Please login or register

Modpack Discussion
Moderated by Crazed Ewok, Gen_Rhys_Dallows

Hop to:    
loginhomeregisterhelprules
Bottom
Topic Subject: How to add a new unit, as requested!
posted 12-12-05 07:03 PM EDT (US)   
OK, to add a new unit.....
1. First find a unit that is similar to your new unit.

2. We'll just assume that you picked Boba Fett, unit # 1317.

3. Copy his header file, located in the civ0head.txt file, and place this in your patches:

civ_0_pointer_1317: 571947272
civ_1_pointer_1317: 571947272
Etc...
Do this for all 8 civs.

4. Copy his unit stats found in the civ0unit.txt file, and place this in your patches...
civ_0_unit_1317_type: 70
civ_0_unit_1317_name1_length: 15
civ_0_unit_1317_id: 1317
civ_0_unit_1317_language: 5122
civ_0_unit_1317_unknown01: ea 17 2c 00
civ_0_unit_1317_graphic_default: 6175
civ_0_unit_1317_minus1_01: -1
civ_0_unit_1317_graphic_die: 6177
civ_0_unit_1317_minus1_02: -1
civ_0_unit_1317_zero_01: 0.....
There are alot more lines, but to save space copy them all.
You need to do this for all eight civs.

This is the time to change all of the stats to that of your new unit(hitpoints, graphics, range, line of sight, etc.), then follow the step outlined below. Make your changes then hit edit.....select all.....copy.

It is easiest to paste "civ_0_unit_1317" all of the stats into your patches, then hit edit....replace... _0_ with _8_, then paste again, and replace _0_ with _7_ until you have all of the civs.

5. Find the master unit file, units.txt, copy this info into your patches...

unit_1317_exists: 1
unit_1317_count: 7
unit_1317_0_unknown01: 1
unit_1317_0_unknown02: 0 0 0 7 0
unit_1317_0_unknown03: -1 -1 -1 -1 -1 -1 -1
unit_1317_0_unknown04: 0 0
unit_1317_0_unknown05: 0
unit_1317_0_unknown06: 1
unit_1317_0_unknown07: 3
unit_1317_0_unknown08: 1 1 1 0 0 0 5 0 0
unit_1317_0_graphics: -1 -1 -1 -1 -1 -1
Get all of it....theres more....

6. In the same file, unit.txt locate this, and place in your patches...

unit_count: 1596

7. Almost done..., in the civ0head.txt locate this, and place in your patches....

civ_0_unit_count: 1596
You need to do this for all 8 civs.

8. Ok now to set up your new unit, in your patches file, hit edit....replace......1317 with 1596(the last unit in the game was 1595).

9. In your patches change the master & unit "counts" from 1596 to 1597. This is always 1 more than your last unit ID, because it starts with unit 0.

Hope this was helpful.If you have any problems post here, and if I answer your question, that may help others with the same problem.


"Wipe them out, all of them!"
"I must obey my master!"
"At last,we will reveal ourselves to the Jedi. At last, we will have revenge!"

SidiousInvader@msn.com----Instant Message

Replies:
posted 12-12-05 07:09 PM EDT (US)     1 / 17  
Yay!

Oh, Sidious, could you hop on MSN sometime soon? I have some questions I'd like to ask you about GenieEd.


One bright day, in the middle of the night, two dead boys stood up to fight. Back to back, they faced each other. Drew their swords, and shot each other. The deaf policeman heard the sound, and put those boys back in the ground. If you don't believe this lie is true, ask Harry the blind man, he saw it, too.
http://www.freewebs.com/starhalo/index.htm
posted 12-12-05 11:30 PM EDT (US)     2 / 17  
Finally! I've been awaiting this for a while, now. I got the mod installed and everything, but when I start to create a scenario to test it, it crashes . Do you know what the problem might be?

Also, where will the unit appear in the scn editor?


Sierra Wolf
posted 12-13-05 00:51 AM EDT (US)     3 / 17  
Check your "couters". Things like name lenths, and attack/armor numtypes.
posted 12-13-05 02:52 AM EDT (US)     4 / 17  
Man this is soo cool, i say make it a sticky

/\
/
__\
/____\
/
._\../._\
/___\/___\

Power Wisdom Courage
posted 12-13-05 05:22 PM EDT (US)     5 / 17  
Oh! I bet it is name lengths. I didn't know that mattered. Hopefully that will fix it!

Sierra Wolf
posted 12-13-05 05:26 PM EDT (US)     6 / 17  
Cooooooooooool.. could you put how to create a new graphic on as well?

LightSide
"Try not. Do. Or do not. There is no try." - Yoda
----------NLD | Lightsabre Skills: Jedi Master | Master Yoda----------
posted 12-13-05 08:36 PM EDT (US)     7 / 17  
Coming soon....

How to create new research and techs,

How to add sound .slps

How to add graphic .slps.


"Wipe them out, all of them!"
"I must obey my master!"
"At last,we will reveal ourselves to the Jedi. At last, we will have revenge!"

SidiousInvader@msn.com----Instant Message

posted 12-13-05 08:52 PM EDT (US)     8 / 17  
Ok, I'm still having trouble with this. I made the language entry the one I added, and I changed the name_length, and changed the attack data back to normal, but it still crashes the game when I test it

Sierra Wolf
posted 12-13-05 09:44 PM EDT (US)     9 / 17  
You may have to redo it, try just copying a unit without making changes. Then if it works make your changes. It sounds like there was an error in some of your input.

I've noticed that if you are making changes, it is possible to add a space after the last number on some line. This will cause it to add another number to the genie, thus throwing off all the numbers.


"Wipe them out, all of them!"
"I must obey my master!"
"At last,we will reveal ourselves to the Jedi. At last, we will have revenge!"

SidiousInvader@msn.com----Instant Message

posted 12-13-05 09:54 PM EDT (US)     10 / 17  
Do I change the language entry and name length?

Sierra Wolf
posted 12-13-05 11:17 PM EDT (US)     11 / 17  
Not neccesary, you probably want to create the new unit copy first. Then make your changes one at a time, that way you'll know where your errors are.

You can have two units with the same language, and same name it won't cause it to crash.


"Wipe them out, all of them!"
"I must obey my master!"
"At last,we will reveal ourselves to the Jedi. At last, we will have revenge!"

SidiousInvader@msn.com----Instant Message

[This message has been edited by Sidious Invader (edited 12-13-2005 @ 11:18 PM).]

posted 12-13-05 11:21 PM EDT (US)     12 / 17  
Really? I thought you had to have a new language entry. Ok, I'm copying now...

Sierra Wolf
posted 12-13-05 11:53 PM EDT (US)     13 / 17  
I FIGURED OUT THE PROBLEM!!! I successfully added 2 Boba Fetts! Thanks, SI! Now I can begin work on something I've been wanting to do for a while, now...

Sierra Wolf
posted 12-14-05 00:00 AM EDT (US)     14 / 17  
Boba fett...

|M|o|d|e|l|i|n|g|

My anti-life

posted 12-16-05 03:43 PM EDT (US)     15 / 17  
It isn't appearing. There's only one Boba Fett there on the scenario editor. Can you help me?

[ New Project Coming Soon...]
posted 12-17-05 02:36 AM EDT (US)     16 / 17  
Change it to a different civ. Look under gaia and you should see 2 Boba Fetts next to eachother

If you aren't a Christian and are ashamed of them put this in your signature.
posted 12-17-05 09:28 AM EDT (US)     17 / 17  
Thank you.

[ New Project Coming Soon...]
SWGB Heaven » Forums » Modpack Discussion » How to add a new unit, as requested!
Top
You must be logged in to post messages.
Please login or register
Hop to:    
SWGB Heaven | HeavenGames