Justin Knight Posted September 9, 2014 Author Share Posted September 9, 2014 After the leader of a party leaves the new leader kills something and the server crashes. Is this only for me? Link to comment Share on other sites More sharing options...
Officer Johnson Posted September 9, 2014 Share Posted September 9, 2014 eo 3 is old version best thing to do is get vb6 and find what line the error happens on Link to comment Share on other sites More sharing options...
Justin Knight Posted September 10, 2014 Author Share Posted September 10, 2014 Okay, just thought I'd find out if someone else had a solution for this. I'm still new to vb6\. My friend had a good idea though, until i can fix the issue I think I'll just disband the party when the leader leaves. Link to comment Share on other sites More sharing options...
Officer Johnson Posted September 10, 2014 Share Posted September 10, 2014 How is that a good idea, leaving a bug in your game that could be fixed and having to do stuff manually. If you have vb6 run your client in vb and have server live sign in start party tell us what line it highlights on error? then tell us here and will see if we can help without info not much we can do. Link to comment Share on other sites More sharing options...
Justin Knight Posted September 11, 2014 Author Share Posted September 11, 2014 Okay well, I ran the server in vb6 and made a party. The party can earn EXP all day but when one person leaves and the party gets smaller the new party crashes the server on the next kill. the error happens here:Server side```Function GetPlayerExp(ByVal index As Long) As Long > GetPlayerExp = Player(index).expEnd Function``` Link to comment Share on other sites More sharing options...
xXaden Posted September 11, 2014 Share Posted September 11, 2014 its trying to pull an index that is outs of bounds, if you hover over the word index it would probably say 0.just means that when the leader leaves its not kicking people properly and unloading everything, its trying to continue the party and boom error. Link to comment Share on other sites More sharing options...
Justin Knight Posted September 11, 2014 Author Share Posted September 11, 2014 OMG found the fix… maybe. We'll see but for now it looks like its working :)Edit the server in Public Sub Party_ShareExpFind```' find out the equal shareexpShare = exp \ (Party(partyNum).MemberCount - LoseMemberCount)leftOver = exp Mod (Party(partyNum).MemberCount - LoseMemberCount)```Replace with```' recount the freaking party membersParty_CountMembers partyNum' find out the equal shareexpShare = exp \ (Party(partyNum).MemberCount - LoseMemberCount)leftOver = exp Mod (Party(partyNum).MemberCount - LoseMemberCount)``` Link to comment Share on other sites More sharing options...
Justin Knight Posted September 11, 2014 Author Share Posted September 11, 2014 > its trying to pull an index that is outs of bounds, if you hover over the word index it would probably say 0.> > just means that when the leader leaves its not kicking people properly and unloading everything, its trying to continue the party and boom error.Thanks :) I'm sure my fix isnt the best way to handle this issue but I'll see what happens 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