Xlithan Posted September 9, 2016 Author Share Posted September 9, 2016 So getting an error here.I've been developing a project for many years now. It is a heavily modified version of Mirage Source, and I've recently attempted to update the networking system to use packet buffers.However, after doing the conversion, I'm getting this error when I try to connect: **Runtime Error 91: Object variable or With block variable not set.**It highlights the following line of code within **_Sub IncomingData:_**_TempPlayer(index).buffer.WriteBytes buffer()_Any help would be appreciated. Thanks. Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 9, 2016 Share Posted September 9, 2016 either TempPlayer or the .buffer variable has not been initialized Link to comment Share on other sites More sharing options...
Xlithan Posted September 9, 2016 Author Share Posted September 9, 2016 I've copied everything over from Skywyre so not sure what I'm missing here* * *I'm just wondering. In my source, I have a lot of **"player(index)."**, where as in SkyWyre it uses **"TempPlayer(index)."**Should I replace these and use TempPlayer? Do you think that's what the issue is, because TempPlayer doesn't hold any value as it's never set? Link to comment Share on other sites More sharing options...
Genusis Posted September 10, 2016 Share Posted September 10, 2016 If you have not already added this then make sure you addSet TempPlayer(Index).Buffer = New clsBufferto the Sub ClearPlayer as that will initialize the buffer for use. Link to comment Share on other sites More sharing options...
Xlithan Posted September 11, 2016 Author Share Posted September 11, 2016 No it's still producing the error. Would it be affected now that I've added multiple characters per account? Link to comment Share on other sites More sharing options...
BeNjO Posted September 12, 2016 Share Posted September 12, 2016 Multiple character's does not mean an edit to this sub/lineMake sure you have the correct Enums in the correct order at a guess. And if it was originall player(index)…. then change it back and test? Link to comment Share on other sites More sharing options...
Xlithan Posted September 15, 2016 Author Share Posted September 15, 2016 Well, what I have is Player(Index) which uses the AccountRec (TempPlayer on Skywyre), and Player(Index).Char(x) which uses the CharacterRec (or whatever it is) I've checked over both sources to ensure that it's right and it seems to be correct, just not sure why it's producing this error. 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