Warhammer Dark Omen Forum

Warhammer Dark Omen => Help Section => Topic started by: Jeronimo on November 28, 2013, 08:17:23 AM



Title: How to save the Undead Chariot for multiplayer!
Post by: Jeronimo on November 28, 2013, 08:17:23 AM
Trying to add a new unit for undead army... I found the same problem as Ghabry.
http://en.dark-omen.org/downloads/start-download/2.-modifications/3.-army-lists/singleplayer-regiments.html (http://en.dark-omen.org/downloads/start-download/2.-modifications/3.-army-lists/singleplayer-regiments.html)

Comments:siim paaliste 2010-05-20 19:21:35 i´ve downloaded it. humans and orcs work fine, but undead got problems. units what came with mod, like undead chariot on hand of nagash doesnt work. after buying it shows that soldier cost -23468........... and after u click on ikon, on boobpage or want to add arctifacts, it show error message and throw u to desktop

After a little research, it seems it has no "Regiment Class" assigned in book... which may lead to the crash.
Without it, you cannot buy horses when these die. I will try to find out what to change using HexEditor...

(http://i.imgur.com/tOP7oD4.png)



Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Ghabry on November 28, 2013, 10:49:09 AM
The chariot lacks the initial value for rebuying dead units, too.

see http://forum.dark-omen.org/troops/troop-replacement-cost-formulas-t881.0.html;msg9110#msg9110 (http://forum.dark-omen.org/troops/troop-replacement-cost-formulas-t881.0.html;msg9110#msg9110)


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Jeronimo on November 28, 2013, 12:07:42 PM
With your topic link it's clear what is failing in DO... incomplete data.

Do you know where is located the "troop replacement formulas" in EngRel?
At least I found which code represents the chariot in the Hex... it is [3D] Symbol [=]

-----------------------------
I could change the "4 skulls" for a "Horse", but this is wrong because unit becomes "cavalry" and being "chariot" has its own mechanics... that's why I think the "4 skulls" are a decision to represent chariot types (and not a bug).


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Ghabry on November 28, 2013, 01:12:50 PM
Do you know where is located the "troop replacement formulas" in EngRel?
At least I found which code represents the chariot in the Hex... it is [3D] Symbol [=]

I tell you when I'm at my home pc.

I could change the "4 skulls" for a "Horse", but this is wrong because unit becomes "cavalry" and being "chariot" has its own mechanics... that's why I think the "4 skulls" are a decision to represent chariot types (and not a bug).

My guess is that the type is not initialized either and just points to some random value which is in that case a skulls image. You could check through the icons (forgot the filename of the spr file) with RDose and suggest a better one ;)


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Jeronimo on November 28, 2013, 11:51:56 PM
I found all class icons here: Graphics\Books\BOOKBUT.SPR

I was looking for a "wheel" type icon but there aren't really spare icons.
There are nice icons from Shadow of Horned Rat, still nothing I could use for Chariots.

It's like designers just didn't bother about this class because wasn't going to be present at Multiplayer.
Quite a problem, can't be replaced for another class, because chariot's mechanics are unique.

The horses inflict the damage when hit, Chariot commander by itself is useless.


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: aqrit on November 29, 2013, 08:45:21 AM
SOTHR's BANCART is a wagon wheel on minilia background.


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: olly on November 29, 2013, 04:37:27 PM
I'd love to see them return and realise it's not ideal solution but Darkmancer brought back the Chariots in his Black Prophecy Mod by simply making the chariot and horses into one sprite, yes you loose out on the specific chariot rule but was still great to see them on the battlefield without crashes. There might still be a danger that once properly fixed in Multiplayer it may still cause random crashes, like the banner of wrath, due to the extra calculations during a huge battle.

A worthy project though!

:) 


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Jeronimo on November 29, 2013, 07:47:30 PM
I'm still waiting for Ghabry to return to his home PC, and provide us vital information!


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: Ghabry on November 29, 2013, 10:35:44 PM
I'm everyday evening at my home PC but I had problems locating the position of the data again. ;)

Looks like there is actually a fallback when the unit type is not supported. But the fallback is broken *g*

Untested fix to add chariot as a known unit type:
Should be at 0xBE900

There is FF FF FF FF FF FF FF FF

First 4 FF are for unit type, last 4 index for displayed sprite in book (e.g. horse or sword, in bookbut.spr)

Chariot type is hex 0x38 (111000), so the first 4 FF must be 38 00 00 00.

Note: The CPU is little endian, that means you have to write values backwards. When you fill 0x38 with leading zeros its 00 00 00 38 and then write from right to left: 38 00 00 00.

And now fill the remaining 4 FF with a proper sprite index ;)


Title: Re: How to save the Undead Chariot for multiplayer!
Post by: hari8 on November 30, 2013, 04:23:58 PM
It's like designers just didn't bother about this class because wasn't going to be present at Multiplayer.
Quite a problem, can't be replaced for another class, because chariot's mechanics are unique.

Well why? :D Were they pissed too much of them when they tested? XD
You can't just program a new class?  x)