BeNjO Posted September 21, 2012 Share Posted September 21, 2012 would love to get this working, on a side note that might be stopping this from working;one of the filenames is 1 and the other is 0, even though im on map 6? And you dont have a map0 its starts on 1 and ends on 99. Link to comment Share on other sites More sharing options...
Stein Posted September 21, 2012 Share Posted September 21, 2012 Send a request client-side that'll check if the map exists and return a query to the server, then if the user doesn't have it warp the player to the normal map first, and THEN instance them.(or alternatively, just send the map data and the instance command after that).. If they have it, great and just send them to the instance. Link to comment Share on other sites More sharing options...
BeNjO Posted September 21, 2012 Share Posted September 21, 2012 im sure you just spoke Chinese, i would not know where to start with what you said,Filename = map100.datFilename2 = map0.datand neither existi think i found the place of error,in the playermove sub```If .Type = TILE_TYPE_INSTANCE Then' Check if already on instanced mapIf GetPlayerMap(Index) >= 100 ThenMoved = NOElse' New InstanceFor i = 1 To MAX_MAPS ''' it was i = 100 to max_mapsIf GetTotalMapPlayers(i) > 0 ThenCanWarp = FalseElseCanWarp = TrueEnd IfIf CanWarp Then' Save Previous CoordsPlayer(Index).PrevMap = GetPlayerMap(Index)Player(Index).PrevX = GetPlayerX(Index)Player(Index).PrevY = GetPlayerY(Index)' Instance New MapCall InstanceMap(.Data1, i, Index)' Warp Player(s)If TempPlayer(Index).inParty ThenCall PartyWarp(Index, i, .Data2, .Data3, True)ElseCall PlayerWarp(Index, i, .Data2, .Data3)End IfExit ForEnd IfNext iEnd IfMoved = YESEnd IfEnd With```but still pulls map numbers: Filename=map1.dat and Filename2= map0.dat although im on map 6upon further testing, if you put this instead```Call InstanceMap(.Data1, MapNum, Index)```it pulls the correct map number instead of the player index number, but still fails to copy, so i changed```' Save new copyfilename = App.path & "\data\maps\map" & mapCopyNum & ".dat"Filename2 = App.path & "\data\maps\map" & mapCopyNum & ".dat"```for testing purposes, i have the map "6" but still same runtime error Link to comment Share on other sites More sharing options...
Stein Posted September 21, 2012 Share Posted September 21, 2012 Well, what I just said had nothing to do with that issue.. I was just stating how the whole instance thing could be fixed so that it doesn't crash on maps you haven't been to yet. And your above problem.. Not a clue, never cared to look into this system. Link to comment Share on other sites More sharing options...
Whackeddie99 Posted September 21, 2012 Share Posted September 21, 2012 I fixed this bug…then my client froze and I hadn't saved, went to CTRL ALT DELETE and ended the process...ended the server by accident...lost everything. But I'm pretty sure the problem lies with the optInstance code, or something like that. It's got SOMETHING to do with the warp. If I remember for sure I'll post! Link to comment Share on other sites More sharing options...
BeNjO Posted September 21, 2012 Share Posted September 21, 2012 I have just used a backup for now until this is more stable, same with the auction house problem im having.Thanks Link to comment Share on other sites More sharing options...
bunny123 Posted September 22, 2012 Share Posted September 22, 2012 _Ahem…_ Can you fix it **_PLEASE_**? ![:wacko:](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wacko.png) Link to comment Share on other sites More sharing options...
JohnPony Posted September 23, 2012 Author Share Posted September 23, 2012 I thought i included the code to create the cached map client side, when i have more time ill look and see if i left it out.There are so many things i left out this tutorial and the instance system, i'm just going to rewrite them both and take it slow.Until then i'm locking this. 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