Wing Posted February 23, 2012 Author Share Posted February 23, 2012 Every account I make starts with 255 in every stat, but I didn't change anything. How can I edit the stats you start with? Link to comment Share on other sites More sharing options...
Robin Posted February 23, 2012 Share Posted February 23, 2012 Does it happen in a default EO? If not then you changed something even if you don't realise. Link to comment Share on other sites More sharing options...
MCADAMS Posted February 23, 2012 Share Posted February 23, 2012 Try checking your class.ini, though I don't know how you could subconsciously change the stats of all your classes to 255 manually and then forget. Link to comment Share on other sites More sharing options...
Wing Posted February 23, 2012 Author Share Posted February 23, 2012 Actually its the gender based paper doll that's interfering.I tried taking it away, and everything went fine. I added it again and the problem came back.Its the client side interfering, not the server side.In player rec I added```Sex as Byte```The mod database I added at bottom```Function GetPlayerSex(ByVal index As Long) As Byte If index > MAX_PLAYERS Then Exit Function GetPlayerSex = Player(index).SexEnd FunctionSub SetPlayerSex(ByVal index As Long, ByVal Sex As Byte) If Options.Debug = 1 Then On Error GoTo errorhandler If index > MAX_PLAYERS Then Exit Sub Player(index).Sex = Sex Exit Suberrorhandler: HandleError "SetPlayerSex", "modDatabase", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```And in sub handleplayerdata```Call SetPlayerSex(i, Buffer.Readlong)```and replaced```Call BltPaperdoll(x, y, Item(GetPlayerEquipment(Index, PaperdollOrder(i))).Paperdoll, Anim, spritetop)```with``` If GetPlayerSex(index) = 0 Then Call BltPaperdoll(x, y, Item(GetPlayerEquipment(index, PaperdollOrder(i))).Paperdoll, Anim, spritetop) ElseIf GetPlayerSex(index) = 1 Then Call BltPaperdoll(x, y, Item(GetPlayerEquipment(index, PaperdollOrder(i))).Paperdoll + 1, Anim, spritetop) End If``` Link to comment Share on other sites More sharing options...
Ruins of Hell Posted February 23, 2012 Share Posted February 23, 2012 Make sure the server is actually sending the data to the client (see PlayerData in modServerTCP) and that the data is in the proper order on both sides. Link to comment Share on other sites More sharing options...
Wing Posted February 23, 2012 Author Share Posted February 23, 2012 @Soul:> Make sure the server is actually sending the data to the client (see PlayerData in modServerTCP) and that the data is in the proper order on both sides.I removed```Buffer.WriteLong GetPlayerSex(index)```from serverand```Call SetPlayerSex(i, Buffer.Readlong)```from client and It stops the 255 stat problem.I put them both at the bottom so I don't understand.Problem resolved. Sex was a byte, had to change long to byte. Link to comment Share on other sites More sharing options...
Robin Posted February 24, 2012 Share Posted February 24, 2012 You probably didn't re-cache the PlayerData struct properly. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now