Page 1 of 1
Where is the Statisitcs Maximums stored on the server?
Posted: Tue Feb 15, 2005 3:56 am
by mrbrklyn
Is the maximum stat levels stored ina file somewhere on the server? playername.pl seems to not to store it.
Ruben
Posted: Tue Feb 15, 2005 3:58 am
by bort
Are you talking about Stats?
If so, I believe that should be in the server code.
If you are talking maximum level, that is stored in the exp table file.
There are many things that should be put in a conf file for crossfire server.
Posted: Tue Feb 15, 2005 5:52 am
by cavesomething
Yes, but actually doing that is an utter nightmare, there is some extreme funkyness with the settings struct, adding a property to it is non-trivial.
I was trying to add a variable luck penalty on death, so that Mike can easily turn it off (negative?) on cat2.
if anyone knows what 'initializer element is not computable at load time' means, please tell me.
/me runs back to Fortran90 and nice data type handling...
Posted: Tue Feb 15, 2005 6:15 am
by bort
Perhaps it is high time to add a crossfire.conf file? Parse ability would be strict, but it would have an advantage at tweaking options like luck and death that hurts.
Posted: Tue Feb 15, 2005 6:24 am
by cavesomething
It is already there, the file is called settings.
Posted: Tue Feb 15, 2005 6:26 am
by bort
True, but nobody really did group as many game-dependent options into that file. Sure, there is the no permdeath option, but what about the no_luck_decrease for pk's, etc,.
Posted: Tue Feb 15, 2005 6:35 am
by cavesomething
That is what I have been trying to add.
When I figure out why the compiler whines at me about it (/me curses pointers) then I will release it as a patch.
Posted: Wed Feb 16, 2005 9:05 am
by cavesomething
Update, I succeeded in getting it to work, turns out I was being even more stupid than usual...
Anyway, patch is on the sourceforge tracker for anyone who wants to play with it.
http://sourceforge.net/tracker/index.ph ... tid=313833
Posted: Wed Feb 16, 2005 7:35 pm
by bort
Does it do anything else except the luck thing?
Posted: Wed Feb 16, 2005 11:07 pm
by cavesomething
Nope, kept it as small as possible.
It also keeps the luck overflow bug in place, so I limited the values it can take (proper thing to do is alter the change_luck(op, int) function.)