Post reply

The message has the following error or errors that must be corrected before continuing:
Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Other options
Shortcuts: ALT+S post or ALT+P preview

Topic summary

Posted by SimDing0
 - January 12, 2005, 06:31:33 PM
I suspect that similarly, 2950000 is the maximum for an imported ToB character, while newly created characters are granted 2500000.

QuoteAccording Chevar's notice that it is the third occurence of 0xA02526 it is the offset 0x6B7264 for my bgmain.exe version (lenght 7839790).
Right, that's what I've got, yeh... I guess it changes for versions other than 26498 though.
Posted by Baronius
 - January 12, 2005, 10:57:11 AM
161000 is the experience cap of Tales of the Sword Coast...
If you start a new character in SoA, (s)he will have 89000 XP, however if you import a BG1 character having more than 161000 XP, his/her experience will be decreased to 161000.
Posted by Vlasák
 - January 12, 2005, 10:31:00 AM
According Chevar's notice that it is the third occurence of 0xA02526 it is the offset 0x6B7264 for my bgmain.exe version (lenght 7839790).

BTW on 0x6B7258 is the SoA starting XP as we already now, but following dword (0x6B725C) has the value 161000 and another following (0x6B7260) 2950000 - these values are suspicious too... what is 161000 XP? I can't remember and not enough time for experiments with it... highest amount of XP for imported character? 2950000 is xpcap that can be removed by .2da... any ideas what can these values mean? (does the starting XPs in Tob differ for import from save game, character file and for the whole new game? I think that it does, at least in the case of starting XP for imports and new game).
Posted by SimDing0
 - January 10, 2005, 10:30:20 PM
This was useful, thanks, but does anyone know the ToB starting XP offsets for the various sizes of the EXE?
Posted by egm
 - January 04, 2005, 02:56:06 PM
THANKS!
Posted by Vlasák
 - January 04, 2005, 11:33:16 AM
Egm:
the offset differs for the different length of the .exe. According readme included with xppatcher:

lenght     - offset
-----------------------
7381038 - 0x64f8b0
7385134 - 0x6508b8
7417902 - 0x658970
7831598 - 0x6b5258
7839790 - 0x6b7258
7843886 - 0x6b6270
Posted by egm
 - January 03, 2005, 03:54:41 PM
Okay then, I have a last question: what is exactly the offset which set the starting XP in BGII: SoA?
Posted by CamDawg
 - December 31, 2004, 02:51:25 AM
Quote from: ChevarWEIDU can patch the exe? How?
WeiDU Documentation. Read it. Love it. Memorize it. (In this case specifically read, love and memorize WRITE_BYTE, WRITE_SHORT, and WRITE_LONG.)
Posted by Awake
 - December 31, 2004, 01:24:20 AM
My guess is probably one of the commands such as WRITE_SHORT or WRITE_BYTE, but I don't know much about that sort of thing, but it would make sense.
Posted by Chevar
 - December 31, 2004, 12:55:28 AM
Quote from: igiThe ToB starting area offset is already known.
I'd be grateful if you could post the ToB starting xp offset.

Weidu can handle .exe patching. You could also use a tiny nsis 'installer' to do the patching.
Sorry Igi, but my other computer (the one with the hex editor) is all tied up at the moment, so I can't get you the offset offhand. I'd love to trade info, however.. run a search for (hex) A02526 It's the third occurence. It's written in reverse of course. so if you change it to A0 00 00 you end up with 160 starting exp.. A02526 is the 2,500,000 starting exp (2625A0 in hex)

WEIDU can patch the exe? How?
Posted by igi
 - December 30, 2004, 04:23:00 PM
BG2 as in BG2: Soa (ie. without ToB), or BG2 as in "not the other IE games"?

Either way, the starting XP for normal BG2 (without ToB) is hard-coded, but the offset is known, so we can edit the .exe file to change it.

The starting XP is probably hard-coded in the other IE games as well, but, iirc, they all start at 0, so... theres no point in changing it down, and it's probably easier to change it up via script or some such.
Posted by egm
 - December 30, 2004, 03:31:35 PM
I have a question: is the starting XP of BGII alone hardcoded???
Posted by igi
 - December 30, 2004, 09:25:38 AM
The ToB starting area offset is already known.
I'd be grateful if you could post the ToB starting xp offset.

Weidu can handle .exe patching. You could also use a tiny nsis 'installer' to do the patching.
Posted by Awake
 - December 30, 2004, 06:26:05 AM
Oh, real nice, dragon_lord. It's more than hypocrisy, considering you're on more than I am. :P

I have done a little bit of work... I have, really!

Anyways, so, who are we going to ask to make this patcher program. Like I said already, it's not a HUGE file, but like you said, it would be better to just distribute a patcher. Unless of course the patcher ended up being larger than the .exe.... Umm...yeah. OK, so now we all need to go into the ideas thread and see what we're going to do about the start area. I'm still for the idea that we put our guy in the room with no doors or windows and the guy teleports in. Anyways.... w00t.
Posted by dragon_lord
 - December 30, 2004, 06:01:53 AM
Wohoo. Nice work Chevar, glad to see someones doing some work around here instead of loitering around in IRC  ^_^.
*dragon_lord looks in awake's direction and then realises the hypocrisy of doing so :P