Larian Banner
Previous Thread
Next Thread
Print Thread
Some more hex offsets... #288183
14/01/05 06:45 PM
14/01/05 06:45 PM
Joined: Jan 2005
Posts: 2
D
Destruct Offline OP
stranger
Destruct  Offline OP
stranger
D

Joined: Jan 2005
Posts: 2
Well, having finished DD, i decided to have some more fun... Poked around with savegame editor, item editor, but still they offer quite little possibilities... So i decided to find the interesting stuff myself... Hope this might be usefull to someone, couldn't find topics on this subject on the forum... I assume you're quite comfortable with basic hex-editing, understand what a relative offset and reverse byte order is and ofcourse your favourite hex-editing application supports relative offsets... I understand this's not very newbie-friendly and stuff compared to masterpieces in this aspect like that threads on hex-editing coordinates. One more note on relative offsets... When i say offset +0x123 from letter a in word save this means you have to click in such a way so cursor blinks right before a... So if you press insert now(enable overwrite mode) and type a character - it will replace a. And ofcourse we are speaking of editing data.000 of savegames. 2 relative indicators are used, SkillsV and AgentsV - just search for them. All offsets found in version 1.0034, dunno whether valid for other versions. So here it goes:

Unlock Path of the Divine anytime:
SkillsV0.935 25-02-2002.`
offset(from first S in skills) +0x24
change 00 to 01
Edit resistances to magic:
AgentsV0.935 25-02-2002 offset +0x6A5 from A in agents.
Consequently 4 4-byte values are innate resistances(formed by magic barrier skill and drug-potions) to lighting, fire, poison, spirit respectively in order. Reverse order if value more than FF. To clear up what a 4-byte value is, 4-byte 1 is 00000001. Offset valid while not necroshifted, polymorphed, transformed by statuette or spirit-form power.
Class change:
Appearance & special move:
AgentsV0.935 25-02-2002 then search for Hero idle
After that what's after 000C and before new npc defines look & special move
Strings are:
000000010000000000000000000000000000000000000008000000 - wizard male
00000004000000000000000000000000000000A032000008000000 - wizard female
000000000000000000000008000000 - warrior male
000000030000000000000008000000 - warrior female
00000002000000000000000000000008000000 - survivor male
00000005000000000000000000000008000000 - survivor female
Valid while not necroshifted, polymorphed, transformed by statuette or spirit-form power.
Yes, they are of different length and you must consider that - delete everything between 000c and new npc and just paste the new string entirely.
Actual class value:
AgentsV0.935 25-02-2002
Offset +0x6EC from "A" in Agents
Values:
00 - warrior
01 - mage
02 - survivor
Defines damage, offense, defense, vitality and mana bonuses and ofcourse displayed class in stats screen... People will still call you wizard even if you change class here and change appearance to appropriate but started the game as wizard, since probably more values are still stored somewhere else, but this is of little consequence... It's perfectly fine to have appearance&special move of one class and actual class & bonuses of other one.
Move speed :
AgentsV0.935 25-02-2002
Offset +0x247
Reverse byte order current form move speed 2 bytes.
0401 - normal speed
0801 - frog walk
Very high values make you walk through walls or whatever(often, but still random... Obviously game obstacle calculation algorithm is quite buggy and undesigned with that speeds in mind). Really high values make it really uncontrollable. Polymorphing, using statuettes, spirit form power etc reset the speed. Other than that can be used to just enable frog-walk for any class easily or give even faster speed than frog walk. Teleport pyramids really highly recommended if used for fun with semi-noclip.
Sight value
AgentsV0.935 25-02-2002
Offset +0x6A0 from A in Agents
Base innate starting sight value = 12(0C)
Gets changed with elven/ranger sight or can become permanently penalised by having max elven sight and equipping an item with + 1 elven sight bonus, in which case editing this is the easiest way to restore.
Hearing
AgentsV0.935 25-02-2002
Offset +0x6A4 from A in Agents
Base innate starting hearing value = 12(0C)
Never gets changed by normal means ingame, but sure you're free to edit.
Diplomacy:
After AgentsV0.935 25-02-2002 searh for Hero
If you find Hero0 - that's your current "side". If you find just Hero - that means you're polymorphed, necroshifted, spirit-formed, transformed using a statuette or something like that. Just before that you can read your current diplomatic side in plain text. You can find a list of sides by searching for AlerothHealers. Side determines whom you can attack and whom can attack you. So you could for example put yourself on side of orcs - castle guards will attack you on sight, orcs won't touch you, you can directly target and attack guards but can't do that with orcs.
Current level value:
AgentsV0.935 25-02-2002
Offset +0x668 from A in agents
Ofcourse affects available skill & exp level requirement to reach next level...
DISPLAYED Reputation value:
AgentsV0.935 25-02-2002
Offset +0x240 from A in agents, 1 byte value
Doesn't matter since real reputation value is stored elsewhere, not in AgentSV section.

Re: Some more hex offsets... #288184
08/01/06 02:55 AM
08/01/06 02:55 AM
Joined: Jan 2006
Posts: 2
Gr00ver Offline
stranger
Gr00ver  Offline
stranger

Joined: Jan 2006
Posts: 2
Quote:

DISPLAYED Reputation value:
AgentsV0.935 25-02-2002
Offset +0x240 from A in agents, 1 byte value
Doesn't matter since real reputation value is stored elsewhere, not in AgentSV section.






Due to a bug, I reveived negative(!) reputation points (poisoned harvest quest with Hugh). So it would be of great value to me, if you could tell me, where the "real reputation value" is actually stored!

The guy in this thread has the same problem, but it hasn't been solved:

Thanks in advance
Gr00ver

Re: Some more hex offsets... #288185
08/01/06 09:22 AM
08/01/06 09:22 AM
Joined: Mar 2003
Posts: 27,629
Canada
Raze Offline

Larian Studios
Raze  Offline

Larian Studios

Joined: Mar 2003
Posts: 27,629
Canada
Unless your reputation is low enough people have stopped talking to you, or it happens again, I'd suggest you simply ignore this bug. Unfortunately, I don't see any practical way to fix it.

There are several problems with trying to find the real reputation value;
  • Other stuff is added or updated when a quest is solved, so the size of the data files change. The size difference makes it much more complicated to look for changes between files, and I am not aware of a freeware program which can do so. Even with a very well designed payware program, it would take a fair amount of effort to isolate a specific single-byte change.
  • Since reputation is a single byte value, there will be many matching instances of that value, most or all of which would have nothing to do with reputation. If the number were larger (like experience points late in the game) you could search for matches and check a few results by trial and error, but that is not practical in this case.
  • The base reputation is stored in the story.* files (see below for description). While this makes things easier in that these files only keep track of quest information (a lot more things can change in the data.000 file), the size difference after a quest update would still make it hard to track down a specific change, and (unlike the data.000 file) there are no ASCII strings in the story files that could help in figuring out the data structure.
  • Since the game is keeping track of individual NPCs' opinions of you separately and adds it to the base amount anyway, the game might not actually store the total base reputation value anywhere. When loading a save and reading the quest information, it could simply add up the individual amounts. It may also keep track of the base reputation with several variables, possibly associated with various factions, rather than per quest.

    I loaded an old save before talking to Homer about killing the trolls (reputation 4, Homer's opinion 14, wife's opinion 4) and then talked to him to get a +3 bonus (base rep 7, Homer's opinion 67, wife's opinion 32). After copying the story files from before completing the quest into a copy of the save afterwards, the base reputation dropped to 4, Homer's opinion stayed at 67, and his wife's dropped to 4. I went over to the army barracks to get caught stealing (-10 penalty, so my base reputation was -6. Homer's opinion dropped to 4 (ie 14 minus 10), while his wife's opinion dropped to -6.
    The fact that Homer's opinion was initially unchanged implies that a temporary (or display) value is stored in the data.000 file, but when the story files are updated, so are those values (so he lost the bonus from completing the troll quest). His wife's boosted opinion of me after completing the quests was not cached in the data.000 file because I had not talked to her yet at that point. If I talk to her, then save and replace the story files, her opinion stays at 32 (at least until the next quest log update).


    In any case, your reputation does not matter much (as long as people will still talk to you). The merchants you trade with most often, or NPCs you help directly, are going to have a high opinion of you regardless of your base reputation.



    Welcome to the forum.

  • Re: Some more hex offsets... #288186
    08/01/06 01:47 PM
    08/01/06 01:47 PM
    Joined: Jan 2006
    Posts: 2
    Gr00ver Offline
    stranger
    Gr00ver  Offline
    stranger

    Joined: Jan 2006
    Posts: 2
    Big Thanks to Raze for that insightful answer (saves me a lot of work...)!

    Unfortunately, the problem with reputation is that it has to be >19 to get the key to the garden from Blake (see this thread, last post)

    Edit: Raze was right (see below). You don't need a rep. of 19. The invitation to the castle is obviously sufficient, because I got the key from Blake yesterday night and my rep. was only 10. Actually, I think I got two invitations: one by poisoning the orc well and the other by solving the Dr. Elrath quest

    (... deleted the rest of the original post...)

    Last edited by Gr00ver; 09/01/06 08:20 PM.
    Re: Some more hex offsets... #288187
    08/01/06 05:36 PM
    08/01/06 05:36 PM
    Joined: Mar 2003
    Posts: 27,629
    Canada
    Raze Offline

    Larian Studios
    Raze  Offline

    Larian Studios

    Joined: Mar 2003
    Posts: 27,629
    Canada

    Have you done any of the quests which give you an invitation to the castle? That should be enough to have Blake offer you the key, despite his mention of reputation.


    In the download version or the updated disk version (CD version patch) you can open the Nericon garden gate with level 5 Lockpick. You can get 2 levels of Lockpick by joining the thieves guild in Verdistis, though that results in a small reputation drop. If you have not done so already, you need to join if you want to complete the holy item quest. One level of Lockpick is gotten
    Click to reveal..
    by loosing a bet

    There is another key in the potion seller's back room in Ars Magicana. For a description on how to get to it, see Stealing from Alchemist Walker and part 2.

    Alternately, you can get past the gate or get a replacement key;

    Teleporting Anywhere, via hex editor
    or
    Lost Items - guide and directory of inventory files

    Last edited by Raze; 04/12/12 12:08 AM. Reason: fixed broken links
    Re: Some more hex offsets... [Re: Destruct] #621155
    25/09/17 01:18 PM
    25/09/17 01:18 PM
    Joined: Sep 2017
    Posts: 10
    Halicor Offline
    stranger
    Halicor  Offline
    stranger

    Joined: Sep 2017
    Posts: 10
    First off - sorry for necroing, but I thought it would be better than to start a completely new topic over something so specific for such an old game.


    I have tried the character model change and the game seems to crash whenever I load the game back up with the modified data.000

    Anyhow - My goal is to change my avatar to the Knight/Templar NPC model. Now I think the Avatar model is largely different from NPC models as I have observed with different, extra animations the PC has over most NPC's. That may be the reason this has never worked for me unlike the class/gender change mentioned earlier.

    But if it does not work that directly, maybe there is another route to be taken? I'm thinking about the morph statuettes basically turning you into an NPC without crashing the game. If anyone knows where to look for the code that allows this or can even read it, then tell me it would be greatly appreciated, because from there I can probably figure out how to turn the PC into the Knight model, since I have already figured out it's display ID which is: 00CF0000000100

    However as I mentioned, if I simply replace the PC avatar model ID with it, the game crashes on load. I need a way for the game to accept the NPC model for the PC. Thanks in advance and greetings to you Raze! ^-^

    EDIT: God, thanks for not answering right away to point out the obvious mistake I made. I feel so dumb now...
    I completely forgot that this game has a static camera and angular movement... which means it's not running on 3D models but 2D sprites. So in order to do some modelchanging, I would first need to get access to said sprites and replace them. Anybody know a program to open the \static\imagelists with? Or maybe -THE- program they used back then? Now I don't know if it's ok for me to ask for a possibly copyrighted developer resource, but I think my reasons are harmless.

    Last edited by Halicor; 27/09/17 03:50 PM.

    Moderated by  Dom_Larian, Larian_QA, Lar_q, Lynn, Macbeth 

    Powered by UBB.threads™ PHP Forum Software 7.6.2