.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

BCT Commander- Save $6.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars > Scenarios, Maps & Mods

Reply
 
Thread Tools Display Modes
  #1  
Old December 18th, 2004, 10:20 PM
Verjigorm's Avatar

Verjigorm Verjigorm is offline
Second Lieutenant
 
Join Date: Dec 2004
Location: BF Illinois
Posts: 445
Thanks: 13
Thanked 27 Times in 21 Posts
Verjigorm is on a distinguished road
Default Re: Modding command questions

What is the number for the 4th hand slot?
This is what the modding manual says, but it doesn't say why....
Value Item Slots
1 Nothing
2 1 hand
6 2 hands
14 3 hands
256 1 head
768 2 heads
1024 1 body
2048 1 feet
4096 1 misc
12288 2 miscs
28672 3 miscs
61440 4 miscs
3334 2 hands, head, body, feet
13574 2 hands, head, body, 2 misc

The system uses binary flags to set the slots--by ORing them together, you get the full inventory (just add the values below)
1st hand slot: 2 (2^1)
2nd hand slot: 4 (2^2)
3rd hand slot: 8 (2^3)
4th hand slot: 16 (2^4)
5th hand slot: 32 (2^5)
6th hand slot: 64 (2^6)
1st head: 128 (2^7)
2nd head: 256 (2^8)
3rd head: 512 (2^9)
Body: 1024 (2^10)
Feet: 2048 (2^11)
1st Misc: 4096 (2^12)
2nd Misc: 8192 (2^13)
3rd Misc: 16384 (2^14)
4th Misc: 32768 (2^15)
5th Misc: 65536 (2^16)
6th Misc: 131072 (2^17)

As you can see by the powers of two, there is no space for a second body or foot slot, or a 3rd head. If the value is stored in a 16-bit integer (unlikely, it's probably a 32-bit value) then 4 Misc is the max. One could reasonably assume that 2^5 through 2^7 have been reserved for more hands, but I have to check that (it would allow for 7 hands). I haven't tested the 4th hand yet, but I'll do it in just a few minutes and post back--I assume it works since the nataraja has 4 hand slots.

>>>>>>>>> UPDATE <<<<<<<<<

The limit appears to be 8 total slots, with up to 6 hands or miscellaneous items AND slot 128 is a head for a maximum of 3 heads.

--Verjigorm
__________________
"Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt." -- Sun Tzu
Reply With Quote
  #2  
Old December 18th, 2004, 10:46 PM
Verjigorm's Avatar

Verjigorm Verjigorm is offline
Second Lieutenant
 
Join Date: Dec 2004
Location: BF Illinois
Posts: 445
Thanks: 13
Thanked 27 Times in 21 Posts
Verjigorm is on a distinguished road
Default Re: Modding command questions

As an addition to your questions, I would like to ask for the following information (perhaps Kristoffer O or someone equally knowledgable would be able to assist).

1: Could we have a complete list of sprite animations for missiles?
2: Assuming that the new #explspr directive is for EXPLosion SPRites, could we have a list of those too? I assume command form is #explspr <spriteNum> <animLength>...
3: Is there a way to give a monster a penalty to magic books (like the dragons' -2 all books in dragon form)?
4: I have tried to look into some of the data files, but I am uncertain of their format/encoding...Data structure(s) and encoding/compression methods would be very nice to have.
__________________
"Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt." -- Sun Tzu
Reply With Quote
  #3  
Old December 19th, 2004, 07:55 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Modding command questions

Greetings, Hunter of Dragons

1) Hmm, I don't think there is one currently. I haven't looked at modding lately, so I'm not sure what is available. I'll take a look and see if it is possible to quicky compile one.

Hmm, found something. Isn't this available in the modding doc (it is in mine, but I'm not sure if it is updated)?

Not sure if you want that. Experiment with the numbers to change sprites. Many of the missing slots are old sprites used in dom1. Old fireballs etc. There is no list available. I would have to open the sprite files and count sprites and numbers to get a complete list.

100 & 1 & Boulder \\
109 & 1 & Arrow \\
110 & 1 & Javelin \\
111 & 1 & Sling stone \\
133 & 4 & Fire swirl \\
137 & 4 & Frost swirl \\
141 & 8 & Multi colored swirl \\
210 & 4 & Lightning bolt \\
274 & 4 & Bane fire arrow \\
304 & 4 & Blade wind missile \\
313 & 4 & Sticky goo \\
339 & 3 & Evil death thingy \\
350 & 4 & Fire arrow \\
354 & 4 & Fire javelin \\
362 & 4 & Fire boulder \\
395 & 4 & Elf shot \\
403 & 1 & Blow gun needle \\
404 & 3 & Green gooey missile \\
411 & 4 & Throwing axe \\
416 & 3 & Web \\
419 & 1 & Vine arrow \\

2) Never heard of it. Hmm, found it in my modding doc.

10001 & Falling shimmering colors \\
10002 & Falling white \\
10003 & Falling red \\
10004 & Falling green \\
10005 & Falling blue \\
10006 & Falling light red \\
10007 & Falling light green \\
10008 & Falling light blue \\
10009 & Falling purple \\
10010 & Falling yellow \\
10011 & Falling orange \\
10012 & Falling cyan \\
10021-10039 & Few falling colors \\
10041-10069 & Rising mists \\
10101-10119 & Explosion \\
10121-10139 & Exploding gas \\
10108 & Cold BLast \\
10113 & Fireball \\
10141 & Rising purple \\
10200 & Curse \\
10206 & Soul Slay \\
10219 & Lightning \\

3) Unfortunately not, but you can use one of the units that gets modified magic and replace it with your own sprite and stats.
- Dragons (-2), red (215), blue (265), green (266), dracolich (644), carrion dragon (1026)
- Capricorn (-1) (1039)
- Siren (-1w land, -1a water) (1055,1054)
- Lady of spiders spider form (-1) (947)
- Sorceress Spider form (magic split in half) (898)
4) Honestly no clue.
__________________
www.illwinter.com
Reply With Quote
  #4  
Old December 19th, 2004, 12:26 PM
Verjigorm's Avatar

Verjigorm Verjigorm is offline
Second Lieutenant
 
Join Date: Dec 2004
Location: BF Illinois
Posts: 445
Thanks: 13
Thanked 27 Times in 21 Posts
Verjigorm is on a distinguished road
Default Re: Modding command questions

Thanks a lot
__________________
"Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt." -- Sun Tzu
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 07:26 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.