Home » SIRTECH CLASSICS » Jagged Alliance: Unfinished Business » Tools and Guides Repository (Archive) » Creating custom IMPs - A Tutorial
Creating custom IMPs - A Tutorial[message #188780] Sun, 15 June 2008 13:47 Go to next message
Brms08

 
Messages:35
Registered:June 2008
Hi all,

Just to give something back to the community, here's how I always create my custom IMPs.

First, the list of tools/files you need:

1. JA2 Custom MERC Editor v1.03 (JA2CME.EXE)
2. HEX Editor (HxD.EXE or any other)
3. An empty IMP.dat
4. CALC.EXE for HEX conversions (Scientific Mode)
5. \Data-1.13\TableData\Items.xml

The first three are in this package:

http://rapidshare.com/files/122574427/IMPEDIT_TOOLS.zip

Now, follow these steps:

PART I - Create an IMP

1. Copy 'IMP.dat' into \Data-1.13\ folder.

2. If you want all the 6 IMPs (3 male + 3 female) then you have to create 6 copies of 'IMP.dat'.

To do this, simply select IMP.dat and press CTRL+C, then press CTRL+V six times. Now you have 6 copies of IMP.dat.

I'm going to rename these files as '1.dat', '2.dat',..., '6.dat'.

http://img205.imageshack.us/img205/9640/02ss0.jpg

I'm going to create only one IMP using '1.dat' though, as an example.

3. Now, run JA2CME.EXE

Here's how it looks like

http://img518.imageshack.us/img518/2691/03zz8.jpg

4. Click on 'Set IMP.dat path' button and select 'Jagged Alliance 2 (Gold)\Data-1.13\' folder.

In the file open dialog box, type '*' as 'File Name' and press 'ENTER'. Now, you will be able to select '1.dat'.

http://img261.imageshack.us/img261/5522/04jt2.jpg

Click on '1.dat' and click 'Open'.

5. JA2CME does not read the values in .dat files automatically,
so you need to click on 'Read/Reset Custom' button once.

6. Click on 'Name' button and give your IMP a name and a call sign.
I choose 'John Doe' and 'JD'.

http://img229.imageshack.us/img229/4513/06wn5.jpg

7. Click on 'Portrait' button and choose a portrait for your IMP.

http://img146.imageshack.us/img146/260/07mm6.jpg

8. Click on 'Appearance' button and customize the appearance of your IMP.

http://img110.imageshack.us/img110/1893/08il5.jpg

9. You can use the 'Inventory' section to give equipment to your IMP but this program is not fully compatible with 1.13 items, so only a few of the weapons such as P90, FAMAS and C7 will work with 1.13. The rest probably won't. So I recommend using the following method to give your IMP weapons, armor or other items. So I'm going to skip the 'Inventory' button here.

10. You can now choose the Attributes, Experience, Sex, Voice, Traits and Personality of your new IMP.

http://img156.imageshack.us/img156/174/10dj5.jpg

11. Ok, now let's save it. Click 'Save Custom'.

[color:#FF0000]
There are a few BUGS in JA2CME.EXE:

- JA2CME.EXE won't read the skin color from the file properly, but it saves it without any problem. So be sure the skin color is what you wanted before saving the IMP file.

- If you create a male IMP which uses the 2nd voice, the program will not save it properly. You'll need to use the HEX editor to fix it. I'm going to explain it a bit later, it's really simple to fix.
[/color]


PART II - Equip your IMP (the dirty way)

This part involves a bit of HEX editing but it's really easy.

12. Run the HEX editor HxD.EXE and open '1.dat' that you've just saved.

13. Adjust 'Bytes per Row' as 8 (The red part in the pic).

http://img214.imageshack.us/img214/1314/13gq6.jpg

14. To fix the bug I mentioned earlier (2nd voice), simply change the highlighted value from 33 to 34.

http://img146.imageshack.us/img146/6526/14kw5.jpg

15. Now, go to the offset 000001A8. The highlighted area in the pic is where we add all of our items, such as armor, weapons, etc.

http://img110.imageshack.us/img110/3690/15ch4.jpg

Every 4 HEX digit represents an item, so we can't have more than 19 items.

16. Now, open Items.xml and Windows calculator.

17. Here's how to calculate the HEX value of an item:

Choose an item from Items.xml. Let's take 'FO Dyneema Vest' as an example.

As you can see below the item number for FO Dyn. Vest is 869.

869

http://img518.imageshack.us/img518/1987/170gg4.jpg

Now, we need to convert 869 to HEX. We can use Windows Calculator to do this.

Type 869 in the calculator and then click on the 'Hex' radio button. Now you see the HEX value 365 which means the value we're going to enter in HxD is 6503.

http://img261.imageshack.us/img261/5953/171uj5.jpg
http://img229.imageshack.us/img229/7391/172eb6.jpg

I prepared an MS Excel worksheet to make things easier for you. Here's how it looks like.

http://img146.imageshack.us/img146/7130/173mm2.jpg

Mind you, some of these items may only work in Scifi mode, such as SO Vest etc. So you should either edit Items.xml or choose another item.

18. Let's enter these items in the HEX editor.

http://img146.imageshack.us/img146/9274/18tf4.jpg


19. Save the file.

20. Create a new game in JA2, go to IMP website and type '1', then press 'ENTER' and enjoy.


That's it. Wink


[Credits to authors of JA2CME]


Report message to a moderator

Private 1st Class
Re: Creating custom IMPs - A Tutorial[message #240271] Sat, 19 December 2009 00:57 Go to previous messageGo to next message
Sincleanser is currently offline Sincleanser

 
Messages:60
Registered:November 2009
Location: Houston

I'm relatively sure about this, but, this is outdated now by the main game 1.13 and the XML Editor, correct?

[Updated on: Sat, 19 December 2009 00:58] by Moderator

Report message to a moderator

Corporal
Re: Creating custom IMPs - A Tutorial[message #240272] Sat, 19 December 2009 01:13 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
there are rumours the pope might be a catholic

the times when imps were stored in *.dat-files are gone with the dinosaurs :pawprint:

Report message to a moderator

Captain
Re: Creating custom IMPs - A Tutorial[message #240283] Sat, 19 December 2009 16:43 Go to previous messageGo to next message
Burzmali is currently offline Burzmali

 
Messages:248
Registered:March 2007
Location: Estonia
i'm sure glad that dinosaurs are still alive in NightOps and DoM :wave:

Report message to a moderator

Sergeant 1st Class
Re: Creating custom IMPs - A Tutorial[message #240285] Sat, 19 December 2009 16:54 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
he was talking about main 1.13, wasn't he?

i guess with DoM and nOps the 6-imp-batch is working

Report message to a moderator

Captain
Re: Creating custom IMPs - A Tutorial[message #242392] Sat, 23 January 2010 22:34 Go to previous messageGo to next message
vikcasar is currently offline vikcasar

 
Messages:9
Registered:November 2009
So how do you edit the imps now?
Lets say Ill create my guy in game on the imp website, so i can get the STOMP traits working, then i quit the game and edit the file of the merc with some real guns and and equipment.
Speaking about latest 1.13 with HAMSTOMP, where is the imp guy stored?

Report message to a moderator

Private
Re: Creating custom IMPs - A Tutorial[message #244340] Tue, 16 February 2010 09:00 Go to previous messageGo to next message
lei75jkt is currently offline lei75jkt

 
Messages:11
Registered:February 2010
Location: Indonesia
i only know to edit the IMP Gears through IMPItemChoices.xml file, but it must be create using the IMP creation from the game it self.

the easy way is this :
search for : Marksmanship[/name]
now you will see there many tag under the Marksmanship, all you have to do is fill the tag with Item gun id found in Items.xml

example :

631[/bItemNo1]
631[/bItemNo2]
631[/bItemNo3]
631[/bItemNo4]
1[/bItemNo5]
644[/bItemNo6]
1076[/bItemNo7]
1076[/bItemNo8]
23[/bItemNo9]
630[/bItemNo10]

as you can see, i fill the tag bItemNo9 with id 23 = Diemaco C7A2 in Items.xml
the tag work like this,
bItemNo7 = marksmanship value between 61 - 70
bItemNo8 = marksmanship value between 71 - 80
bItemNo9 = marksmanship value between 81 - 90
bItemNo10 = marksmanship value between 91 - 100

so if my IMP has marksmanship between 81 - 90 the he/she will get the Diemaco C7A2

to fill other gears, you can start to experiment with other tag traits like Sniper, Ranger etc

oh don't forget about this tag :
2[/ubChoices]
2[/ubNumItems]

that mean there 2 choice of item and all of it will be assign to the IMP.

i had to change the "<>" into "[]" because it seems the forum doesn't allow it




[Updated on: Tue, 16 February 2010 09:03] by Moderator

Report message to a moderator

Private
Re: Creating custom IMPs - A Tutorial[message #274374] Thu, 24 February 2011 00:16 Go to previous messageGo to next message
Sincleanser is currently offline Sincleanser

 
Messages:60
Registered:November 2009
Location: Houston

This can be done using the base XML editor that comes with 1.13? If so... THANK YOU SO MUCH!

If so, how? And, when using STOMP traits, which traits apply to which traits? Does STOMP use foo expert only? Random Item tab in particular, how does it calculate which item to give to the merc?

[Updated on: Thu, 24 February 2011 07:55] by Moderator

Report message to a moderator

Corporal
Re: Creating custom IMPs - A Tutorial[message #322654] Sat, 13 July 2013 04:05 Go to previous messageGo to next message
SharkD is currently offline SharkD

 
Messages:352
Registered:July 2003
necro


Is this post still accurate and the recommended way of altering IMPs?

Also, I've been looking here about IMPItemChoices.xml, but the wiki page does not seem to be up-to-date, and is written in poor English (incomplete sentences, grammar, punctuation). I especially am confused about how ubNumItems and ubChoices work. Can anyone elucidate these for me?

Report message to a moderator

Master Sergeant
Re: Creating custom IMPs - A Tutorial[message #322656] Sat, 13 July 2013 04:17 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
The wiki is outdated, but in this case, the system described is still used.

ubChoices are the number of items the game can choose from. Have that be the number of entries there, otherwise the game will crash (not sure why we don't check instead of just crashing, but that's not the point). ubNumItems is the number of items taken from that list. So if you have ubChoices = 7 and ubNumItems = 2, we will take 2 items from that 7-item list.

Report message to a moderator

Captain

Re: Creating custom IMPs - A Tutorial[message #322657] Sat, 13 July 2013 04:33 Go to previous message
SharkD is currently offline SharkD

 
Messages:352
Registered:July 2003
Thanks! Are the choices selected randomly?

Report message to a moderator

Master Sergeant
Previous Topic: Improving Original JA2 graphics
Next Topic: Create Custom Faces & Voices
Goto Forum:
  


Current Time: Fri Apr 19 04:08:48 GMT+3 2024

Total time taken to generate the page: 0.01213 seconds