zacktm Posted November 22, 2011 Share Posted November 22, 2011 Tried It.. But As I But A Door.. And Move On It's Tile… An Error Appears On ServerRun-time error"9":Subscript out of rangeAny Solution !!! Link to comment Share on other sites More sharing options...
benedek11 Posted December 8, 2011 Share Posted December 8, 2011 The same happens with me. Everything is working, but when i go on the door's tile: subscript our of range 9? :o Link to comment Share on other sites More sharing options...
Justn Posted December 8, 2011 Share Posted December 8, 2011 I haven't had any issues with this updated version are you guys sure you are not putting "empty/blank" doors on the map? Link to comment Share on other sites More sharing options...
Murdoc Posted December 11, 2011 Share Posted December 11, 2011 @Justn:> I haven't had any issues with this updated version are you guys sure you are not putting "empty/blank" doors on the map?Don't think theyre lying since I had it in "eclipse omega" and people were complainin about the same shit.. Ryoku could fix it if he knew how Link to comment Share on other sites More sharing options...
RyokuHasu Posted December 11, 2011 Author Share Posted December 11, 2011 hmmm… I guess I could update it with my special blend that i kept for myself... I did further debug it, but I just never updated it.I'll do that later I guess, right now its late and i'm gona sleep. Link to comment Share on other sites More sharing options...
Justn Posted December 11, 2011 Share Posted December 11, 2011 @Murdoc:> Don't think theyre lying since I had it in "eclipse omega" and people were complainin about the same shit.. Ryoku could fix it if he knew howi dont think they are lying but this tutorial has been updated since eclipse omega came out not sure if he fixed it or not :p Link to comment Share on other sites More sharing options...
Murdoc Posted December 12, 2011 Share Posted December 12, 2011 @Justn:> i dont think they are lying but this tutorial has been updated since eclipse omega came out not sure if he fixed it or not :pHe didn't. Just check the last few posts in this thread. ;-) Link to comment Share on other sites More sharing options...
Justn Posted December 12, 2011 Share Posted December 12, 2011 this is a completely new thread that he made after fixing the 2.0 version didnt know if this was the version u used or the older one for omega… but hope he fixes it i havent had any runtime 9 errors since 3.0 i couldnt even use 2.0 cause of runtime errors maybe u guys just did better stress testing it than i have so far but hope u guys get it worked out :) Link to comment Share on other sites More sharing options...
Murdoc Posted December 12, 2011 Share Posted December 12, 2011 @Justn:> this is a completely new thread that he made after fixing the 2.0 version didnt know if this was the version u used or the older one for omega… but hope he fixes it i havent had any runtime 9 errors since 3.0 i couldnt even use 2.0 cause of runtime errors maybe u guys just did better stress testing it than i have so far but hope u guys get it worked out :)I used this one for eclipse omega.. i thought it was working fine too, until i got complaints about the rte 9. Link to comment Share on other sites More sharing options...
Whackeddie99 Posted January 1, 2012 Share Posted January 1, 2012 so..does this work for EO2 Yes or no? Link to comment Share on other sites More sharing options...
erkro1 Posted January 1, 2012 Share Posted January 1, 2012 Yes Link to comment Share on other sites More sharing options...
Whackeddie99 Posted January 1, 2012 Share Posted January 1, 2012 everyone seems to be complaining about RTE 9 Link to comment Share on other sites More sharing options...
Justn Posted January 3, 2012 Share Posted January 3, 2012 I don't really understand why and nobody posted an error cause I haven't had one yet and I have been playing around with it for months off and on only thing I left out was the party member thing :S Link to comment Share on other sites More sharing options...
karpaz Posted March 7, 2012 Share Posted March 7, 2012 ??? this tutorial make me one hour and the result …[![](http://img252.imageshack.us/img252/5172/sracka.png)](http://imageshack.us/photo/my-images/252/sracka.png/) Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 7, 2012 Author Share Posted March 7, 2012 1\. PlayerDoors goes at the bottom of the Player rec2\. the Doors rec must be above the Player rec Link to comment Share on other sites More sharing options...
Peter120 Posted March 10, 2012 Share Posted March 10, 2012 Hello!I added the code but in admin panel when I click on my door button nothing happens.It's name: cmdADoorCode in it:>! ```Private Sub cmdADoor_Click()' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler>! If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then Exit Sub End If SendRequestEditdoors ' Error handler Exit Suberrorhandler: HandleError "cmdAItem_Click", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit Sub>! End Sub```Help! Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 10, 2012 Author Share Posted March 10, 2012 I cant see code when you put it in a spoiler tag. Link to comment Share on other sites More sharing options...
Peter120 Posted March 10, 2012 Share Posted March 10, 2012 Private Sub cmdADoor_Click()' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler If GetPlayerAccess(MyIndex) < ADMIN_DEVELOPER Then Exit Sub End If SendRequestEditdoors ' Error handler Exit Suberrorhandler: HandleError "cmdAItem_Click", "frmMain", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 10, 2012 Author Share Posted March 10, 2012 Ok then, show me the Sub SendRequestEditdoors, then show me the Handle for the server side.the thing about programming is that its connected, that parts good, now lets check the next part. Link to comment Share on other sites More sharing options...
Peter120 Posted March 10, 2012 Share Posted March 10, 2012 Sub SendRequestEditdoors(Bottom of mod client TCP)```Public Sub SendRequestEditdoors()Dim Buffer As clsBuffer ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteLong CRequestEditDoors SendData Buffer.ToArray() Set Buffer = Nothing ' Error handler Exit Suberrorhandler: HandleError "SendRequestEditdoors", "modClientTCP", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub```Bottom of modHandleData (server)```' //////////////////////////////////' //Request/Save edit Door packets//'//////////////////////////////////Sub HandleEditDoors(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) Dim Buffer As clsBuffer ' Prevent hacking If GetPlayerAccess(Index) < ADMIN_DEVELOPER Then Exit Sub End If Set Buffer = New clsBuffer Buffer.WriteLong SDoorsEditor SendDataTo Index, Buffer.ToArray() Set Buffer = NothingEnd SubSub HandleRequestDoors(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) SendDoors IndexEnd SubPrivate Sub HandleSaveDoor(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long) Dim DoorNum As Long Dim Buffer As clsBuffer Dim DoorSize As Long Dim DoorData() As Byte ' Prevent hacking If GetPlayerAccess(Index) < ADMIN_DEVELOPER Then Exit Sub End If Set Buffer = New clsBuffer Buffer.WriteBytes Data() DoorNum = Buffer.ReadLong ' Prevent hacking If DoorNum < 0 Or DoorNum > MAX_DOORS Then Exit Sub End If DoorSize = LenB(Doors(DoorNum)) ReDim DoorData(DoorSize - 1) DoorData = Buffer.ReadBytes(DoorSize) CopyMemory ByVal VarPtr(Doors(DoorNum)), ByVal VarPtr(DoorData(0)), DoorSize ' Save it Call SendUpdateDoorToAll(DoorNum) Call SaveDoor(DoorNum) Call AddLog(GetPlayerName(Index) & " saved Door #" & DoorNum & ".", ADMIN_LOG)End Sub``` Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 10, 2012 Author Share Posted March 10, 2012 Did you add the stuff in InitMessages()?and what does your Client handle look like? Link to comment Share on other sites More sharing options...
Peter120 Posted March 10, 2012 Share Posted March 10, 2012 I added the stuff in InitMessages()and my Modhandledata (bottom)```Private Sub HandleDoorsEditor() Dim i As Long With frmEditor_Doors Editor = EDITOR_DOORS .lstIndex.Clear ' Add the names For i = 1 To MAX_DOORS .lstIndex.AddItem i & ": " & Trim$(Doors(i).Name) Next .Show .lstIndex.ListIndex = 0 DoorEditorInit End WithEnd SubPrivate Sub HandleUpdateDoors(ByVal Index As Long, ByRef Data() As Byte, ByVal StartAddr As Long, ByVal ExtraVar As Long)Dim DoorNum As LongDim Buffer As clsBufferDim DoorSize As LongDim DoorData() As Byte ' If debug mode, handle error then exit out If Options.Debug = 1 Then On Error GoTo errorhandler Set Buffer = New clsBuffer Buffer.WriteBytes Data() DoorNum = Buffer.ReadLong DoorSize = LenB(Doors(DoorNum)) ReDim DoorData(DoorSize - 1) DoorData = Buffer.ReadBytes(DoorSize) ClearDoor DoorNum CopyMemory ByVal VarPtr(Doors(DoorNum)), ByVal VarPtr(DoorData(0)), DoorSize Set Buffer = Nothing ' Error handler Exit Suberrorhandler: HandleError "HandleUpdateDoors", "modHandleData", Err.Number, Err.Description, Err.Source, Err.HelpContext Err.Clear Exit SubEnd Sub``` Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 10, 2012 Author Share Posted March 10, 2012 WTH! >.< I can't find anything wrong with the code!unless you left something out of the client InitMessages() o.o…..I'm at a loss... Link to comment Share on other sites More sharing options...
Peter120 Posted March 10, 2012 Share Posted March 10, 2012 :C What Should I do? Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 10, 2012 Author Share Posted March 10, 2012 reload the editor to the project. 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