Page 1 of 1
New char = dead
Posted: Mon Aug 12, 2013 12:07 pm
by Jabantiz
On my local server when I create a new char I log in with 0hp and laying on the ground, can't do anything until I /kill self
Posting this to see if others have the problem and more importantly so I don't forget.
Re: New char = dead
Posted: Mon Aug 12, 2013 12:26 pm
by John Adams
I saw a guy on EQ2TC laying prone, scooting around me in FFS. So yes, it has happened to someone else. I believe his client was current live. Told Xinux about it on IRC.
[17:38] <~john> is that you in game right now?
[17:39] <~john> tc
[17:39] <@Xinux> nope
[17:39] <@Xinux> i'm on my server
[17:39] <~john> someone is in with me, and I got in no problem this time.
[17:39] <~john> and, their toon is laying flat on the ground scooting along LOL
[17:40] <~john> on my screen, he has no hp, and is laying dead lol.
17:37:30 D World: Name check on: Kalesiir
17:37:30 D World: Response: 1
17:37:31 D Net: AddAuth: 6587 Key: 1375663051
17:37:41 D Packet: Sending Login Accepted packet (LS_LoginResponse, 57048)
Check to make sure I didn't break something with starting_defaults or character_details before blaming code. I did add stuff to both tables.
Re: New char = dead
Posted: Mon Aug 12, 2013 2:17 pm
by alfa
Same thing happend to me on Dev server with new char start dead but can move, if you level up, full life and it's ok
Re: New char = dead
Posted: Mon Aug 12, 2013 2:47 pm
by Jabantiz
Data looks good, no clue how the tables were before but think I see the issue in the code in an sql insert, testing some code to see if it fixes the issue.
Re: New char = dead
Posted: Mon Aug 12, 2013 2:59 pm
by John Adams
I added savagery and dissonance, mostly. Few other things too. Thought I left things in their proper order. Perhaps I did not.
Re: New char = dead
Posted: Mon Aug 12, 2013 3:07 pm
by Jabantiz
It might be related to sta actually giving hp now, my fix was to set `character_details`.`hp` = `starting_details`.`max_hp`. You only log in with about half hp but better then dead, will look into getting it to full hp.
Just committed my code for all my changes today, going around to my other posts to add a EDIT saying code is committed.
Re: New char = dead
Posted: Tue Aug 13, 2013 1:10 pm
by John Adams
Thanks. And the 1/2 dead thing was something Foof copped to, about the new stats calcs. Unless that was you. I was trying to think of a way to max a player's HP/Power on creation AFTER the calcs have been applied so they are born fully healed.
Re: New char = dead
Posted: Mon Sep 09, 2013 5:17 am
by thefoof
I've been thinking of a couple ways we could maybe do this, one would be set a rule for the base sta and power multipliers and add these into the queries in WorldDatabase::InsertCharacterStats().
Another is use charcter history or something like that when it's availible to see if the player is a new toon just logging in for the first time, and check for this on zoning.
We'd probably need to add the latter at some point anyway for tutorial messages and whatnot.
Let me know opinions
