[quote=Ulf.d2";p="400031"]I downloaded it again and it works fine except for 1 thing. I think I am just doing something wrong, but expratio is always set to 1.
My expgen.bat appears as follows...
expgen.exe experience2.txt 99 45 100
To my knowledge, the first number means max
clvl, 2nd means the level where exp starts to decay, but I have no idea what the third number means.
On the forum about this generator, it sounds like it is supposed to prompt you these options, but it doesn't. Nor does it download along with 2 example text files as it said it does. May I suggest that you include a readme.txt downloaded with it?
EDIT:
I messed around with the numbers I put in and found something bizarre. Here are some examples of Level 1 experience bars...
Code: Select all
MaxLvl 99 99 99 99 99 99 99 30
0 0 0 0 0 0 0 0 1073741824
1 300 300 300 300 300 300 300 1073741824
The only 1 that has worked for me so far...
Code: Select all
MaxLvl 99 99 99 99 99 99 99 10
0 0 0 0 0 0 0 0 1024
1 300 300 300 300 300 300 300 1024
Code: Select all
MaxLvl 99 99 99 99 99 99 99 5
0 0 0 0 0 0 0 0 32
1 300 300 300 300 300 300 300 32
This one is the most common one. For this specific one, I chose 50 for the decay point, but the last number in the maxlvl row doesn't show up as 50, but 0...
Code: Select all
MaxLvl 99 99 99 99 99 99 99 0
0 0 0 0 0 0 0 0 1
1 300 300 300 300 300 300 300 1
Any ideas of what is happening?[/quote]
You are setting a expratio of 45, which means 2^45
impossible in a 32bit game.
set it to a value between 0 and 32 (keep it lower then 16 though, as D2 is known to be very bugged with higher precision, but it has support for it anyway).
If you load the tool from the command prompt instead of the batch file, you can see this message: "error: decay rate must be between 0 and 32, defaulting to 0" (1<<0 = 1).
The ExpRatio is softcoded (its not in 1024ths), it depends on the value of the first ExpRatio field (the one next to maxlevel), and indicates the precision (10 being 1<<10 = 1024). If Expratio field (the first one), is left as 0, the game doesn't use the ExpDecay at all and gives you full exp all the time (no matter what the individual fields contain).
You can also add "pause" to the end of the batch file (w/o the quotes)
It is using simple bit precision
1 = 2
2 = 4
3 = 8
4 = 16
5 = 32
6 = 64
7 = 128
8 = 256
9 = 512
10 = 1024
etc
The arguments are: <FILENAME> <MAX LEVEL> <DECAY> <DECAY START>
filename=obvious
maxlvl=max
clvl
decay=precision of decay
decaystart=level at which the decay begins (vanilla has this at 70 IIRC)