Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 I'm using Alatar's quest system and when I wrote /editquest I got an error from server subscript out of range 9\. I checked the tutorial and my suorce and there is no difference. I tired to delete quest files, but still not work. Help! Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 Run it in debug (Run it in VB6) if you cant fix it do you have a back up? Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 I get(In Class Modules –> clsBuffer)Public Sub WriteBytes(ByRef nByte() As Byte)Dim nLength As Long **nLength = (UBound(nByte) - LBound(nByte)) + 1** If WriteHead + nLength - 1 > BufferSize Then Allocate nLength CopyMemory Buffer(WriteHead), nByte(0), nLength WriteHead = WriteHead + nLengthEnd SubI don't have backup :S Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 Did you try asking on the Alatar's quest system topic? Bet he can help. Cant do much with a few line's of code xD Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 Alatar last active January 02, 2012, 10:54:22 PM Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 Oh… Wow xD do you mind sending me a copy, i can try to find the problem? Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 http://www.mediafire.com/?3pwpf081lba2pa2 Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 ok, well you just gave your source code out to every one i kinda ment msg xD i'm working on it. ;p Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 Thanks for helping.I alredy shared my source here:http://www.touchofdeathforums.com/smf/index.php/topic,78122.html Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 can't you just use that? xD isn't that backed up? I'm looking at the code atm your sever takes along time to load ;p Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 I have no backup, sorry, and thet bugged too Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 Next Time, make a back up xD Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 If I get next time :( Link to comment Share on other sites More sharing options...
lexkymbeth Posted March 18, 2012 Share Posted March 18, 2012 im sry i cant help your server wont load ? just freezes when i join, ill try and get it later, have to go if you figure out why its doing this message me! Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 ??!It's not freeze for me Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 18, 2012 Share Posted March 18, 2012 In modEnumerations client side, your ClientPackets should match modEnumerations ClientPackets server side (the comments don't matter though).So client-side take find this (modEnumerations > Enum ClientPackets):``` CSaveDoor CRequestDoors CRequestEditDoors```and move it up before:```'ALATAR```* * *End result:```' Packets sent by client to serverPublic Enum ClientPackets CNewAccount = 1 CDelAccount CLogin CAddChar CUseChar CSayMsg CEmoteMsg CBroadcastMsg CPlayerMsg CPlayerMove CPlayerDir CUseItem CAttack CUseStatPoint CPlayerInfoRequest CWarpMeTo CWarpToMe CWarpTo CSetSprite CGetStats CRequestNewMap CMapData CNeedMap CMapGetItem CMapDropItem CMapRespawn CMapReport CKickPlayer CBanList CBanDestroy CBanPlayer CRequestEditMap CRequestEditItem CSaveItem CRequestEditNpc CSaveNpc CRequestEditShop CSaveShop CRequestEditSpell CSaveSpell CSetAccess CWhosOnline CSetMotd CSearch CSpells CCast CQuit CSwapInvSlots CRequestEditResource CSaveResource CCheckPing CUnequip CRequestPlayerData CRequestItems CRequestNPCS CRequestResources CSpawnItem CRequestEditAnimation CSaveAnimation CRequestAnimations CRequestSpells CRequestShops CRequestLevelUp CForgetSpell CCloseShop CBuyItem CSellItem CChangeBankSlots CDepositItem CWithdrawItem CCloseBank CAdminWarp CTradeRequest CAcceptTrade CDeclineTrade CTradeItem CUntradeItem CHotbarChange CHotbarUse CSwapSpellSlots CAcceptTradeRequest CDeclineTradeRequest CPartyRequest CAcceptParty CDeclineParty CPartyLeave CSaveDoor CRequestDoors CRequestEditDoors 'ALATAR CRequestEditQuest CSaveQuest CRequestQuests CPlayerHandleQuest CQuestLogUpdate '/ALATAR CProjecTileAttack ' Make sure CMSG_COUNT is below everything else CMSG_COUNTEnd Enum``` Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 18, 2012 Share Posted March 18, 2012 "End Result" assuming there are no other edits…. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 18, 2012 Share Posted March 18, 2012 @Ryoku:> "End Result" assuming there are no other edits….No. I used the source code he posted above. ;) Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 Thank you, so much! You saved my project!Now time to make a backup… Link to comment Share on other sites More sharing options...
Peter120 Posted March 18, 2012 Author Share Posted March 18, 2012 And also Advanced doors, keys, and switches are working too now XD, thanks again Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 18, 2012 Share Posted March 18, 2012 @Peter120:> And also Advanced doors, keys, and switches are working too now XD, thanks againYep. When you send a packet (say CLogin) it actually sends a number (in this case, 3, because it is the third packet in the enumeration). If CLogin was 2, but 3 server-side, the server would read 2, and instead activate the code for CDelAccount (which is packet #2 server-side). This would delete the player's account instead of logging in! You're lucky it gave an error to let you know something was wrong. :) Link to comment Share on other sites More sharing options...
RyokuHasu Posted March 18, 2012 Share Posted March 18, 2012 @Peter120:> And also Advanced doors, keys, and switches are working too now XD, thanks againYAY! =D glad you are using that! Cant wait to see a project page if you make one ;D 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