Page 1 of 2

Experience percentage

Posted: Tue Mar 22, 2005 5:52 am
by bort
Would It be cool if there was an extra bar (like hp or Sp) that said the total xp out of the xp to next level?
Like in diablo 2, and that would be cool 8)

Posted: Tue Mar 22, 2005 1:14 pm
by Aaron
should be easy, it already says it on the top.

in the gtk client then, it should give you the option to have a gfx stats thing too.

Posted: Tue Mar 22, 2005 11:51 pm
by bort
But the current xp bar doesnt add a '/<required to get to next level xp>' peice in it. :(

Posted: Wed Mar 23, 2005 12:07 am
by Aaron
there is no bar currently. but i was saying it should be easy to add, since it already prints it out...

Posted: Wed Mar 23, 2005 1:08 am
by cavesomething
but it doesn't print out the lower limit, so the protocol needs extended to give that information so that the bar can be scaled.

Posted: Wed Mar 23, 2005 1:26 pm
by Aaron
theres already an in-gam table. type 'stats

f it can give the experience needed for an arbitrary level, then just set the lower side to xp_needed_for_next( current_level - 1 ) or something like that. the top would be the xp_needed_for_next( currenet_level ), and the bar would be drawn to current_scr_for_skill( skill )...

Posted: Wed Mar 23, 2005 2:24 pm
by cavesomething
I know about the statistics command, that is what I was refering to.

Your change seems like a client feature, not something that should impact the server.

Either you need to modify the statistics command, and write a client side parser (ugly) or you need to have some other call to the server to get the lower experience value.

AFAIK the client doesn't ever request exp table information directly.

Posted: Wed Mar 23, 2005 11:38 pm
by Aaron
umm, just have the client ask the sever for the level one lower. the server shouldnt care, and then the client will have acces to both numbers.

Posted: Thu Mar 24, 2005 12:11 am
by cavesomething
Have you checked if that is how the protocol works atm?

I thought the server sent the current experience values when requested, and that the client used them, I am not sure there is a nice way to add arbitrary level xp values, and the only ugly way I can think of OTTOMH involves interval bisection....

The point is that AFAIK there isn't any 'asking' for levels that goes on.

Having said that I haven't ever looked too deeply at the server client interconnect, networking code isn't something that interests me.

Posted: Thu Mar 24, 2005 1:51 pm
by Aaron
i havent checked any of the code yet. but i know there are tables, so i assumed that the system wold be fairly sane... so maybe the client can just have the table built in... then it can grab any level data it needs...