New char = dead

Old bugs stored here for reference.
Locked
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

New char = dead

Post by Jabantiz » Mon Aug 12, 2013 12:07 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: New char = dead

Post by John Adams » Mon Aug 12, 2013 12:26 pm

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.

User avatar
alfa
Team Member
Posts: 550
Joined: Fri Jul 27, 2007 6:24 pm
Location: France
Contact:

Re: New char = dead

Post by alfa » Mon Aug 12, 2013 2:17 pm

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
Fight with me... Or die, like the rest.
J.A. say: "I think Xinux tried to tell me this, but I ignore most things he suggests."

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: New char = dead

Post by Jabantiz » Mon Aug 12, 2013 2:47 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: New char = dead

Post by John Adams » Mon Aug 12, 2013 2:59 pm

I added savagery and dissonance, mostly. Few other things too. Thought I left things in their proper order. Perhaps I did not.

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: New char = dead

Post by Jabantiz » Mon Aug 12, 2013 3:07 pm

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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Re: New char = dead

Post by John Adams » Tue Aug 13, 2013 1:10 pm

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.

User avatar
thefoof
Retired
Posts: 630
Joined: Wed Nov 07, 2012 7:36 pm
Location: Florida

Re: New char = dead

Post by thefoof » Mon Sep 09, 2013 5:17 am

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 :P

Locked

Who is online

Users browsing this forum: No registered users and 0 guests