Where is the Statisitcs Maximums stored on the server?

Requests for assistance and other HOWTOs.

Moderator: Board moderators

mrbrklyn
Regular
Posts: 59
Joined: Fri Sep 10, 2004 11:09 am
Location: Brooklyn USA
Contact:

Where is the Statisitcs Maximums stored on the server?

Post by mrbrklyn »

Is the maximum stat levels stored ina file somewhere on the server? playername.pl seems to not to store it.

Ruben
http://www.nylxs.com
The New York Free Software Scene
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post 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.
lordyoukai.DA
My wraith is cooler than your dragon.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post 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...
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post 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.
lordyoukai.DA
My wraith is cooler than your dragon.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post by cavesomething »

It is already there, the file is called settings.
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post 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,.
lordyoukai.DA
My wraith is cooler than your dragon.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post 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.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post 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
bort
Forum Junkie
Posts: 607
Joined: Sun Jun 20, 2004 9:40 pm
Location: LG

Post by bort »

Does it do anything else except the luck thing?
lordyoukai.DA
My wraith is cooler than your dragon.
cavesomething
Forum Fanatic
Posts: 852
Joined: Sun Jun 13, 2004 2:07 am
Location: Hemel Hempstead

Post 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.)
Post Reply