purplystuff Posted April 7, 2013 Author Share Posted April 7, 2013 Sometimes when I warp in game the engine crashes.. source says a direction block error… Anybody know why or how to fix...```' check directional blockingIf isDirBlocked(Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).DirBlock, Direction + 1) Then CheckDirection = True Exit FunctionEnd If``` Link to comment Share on other sites More sharing options...
Lavos Posted April 7, 2013 Share Posted April 7, 2013 never had any problems with warping. Are you able to recreate this error? Link to comment Share on other sites More sharing options...
purplystuff Posted April 7, 2013 Author Share Posted April 7, 2013 Yea several times. Link to comment Share on other sites More sharing options...
Yuko Posted April 8, 2013 Share Posted April 8, 2013 "Do not blame the coding, blame the coder."^ Some quote that may or may not have been created but I'll take credit for posting it ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png) Link to comment Share on other sites More sharing options...
Matt Posted April 8, 2013 Share Posted April 8, 2013 > "Do not blame the coding, blame the coder."> > ^ Some quote that may or may not have been created but I'll take credit for posting it ![^_^](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/happy.png)This is nothing helpful.Purply, tell me as much as you can about the tile you're warping to. Does it matter which tile you're warping to, or is it any tile? What edits were made to the engine, or is it vanilla? Link to comment Share on other sites More sharing options...
Yuko Posted April 8, 2013 Share Posted April 8, 2013 > This is nothing helpful.> > Purply, tell me as much as you can about the tile you're warping to. Does it matter which tile you're warping to, or is it any tile? What edits were made to the engine, or is it vanilla?It can be helpful ![;)](http://www.touchofdeathforums.com/community/public/style_emoticons/<#EMO_DIR#>/wink.png) Link to comment Share on other sites More sharing options...
escfoe2 Posted April 12, 2013 Share Posted April 12, 2013 I know what issue you're having. I fixed it in TFF. I usually don't do this but I'll give you all my code.```Dim blockVar As ByteOn Error Resume NextblockVar = Map.Tile(GetPlayerX(MyIndex), GetPlayerY(MyIndex)).DirBlock' If debug mode, handle error then exit outIf Options.Debug = 1 Then On Error GoTo ErrorHandlerCheckDirection = False' check directional blockingIf isDirBlocked(blockVar, direction + 1) And Player(MyIndex).Walkthrough = False Then CheckDirection = True Exit FunctionEnd If```Just a quick way to clear it up. I'm sure there's a better way, but this works effectively. 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