Rindille Posted December 22, 2016 Share Posted December 22, 2016 So I tried to hack chapter 1. But this dead circle happened...After the worldmap event, it won't enter into the chapter but started playing the prologue.Could someone tell me the reason of this? And how to fix it?Thanks :D Here's my chapter 1 event code #define DISABLE_TUTORIALS#include EAstdlib.eventEventPointerTable(0x01,Pointers)ORG 0xD801F0Pointers:POIN Turn_eventsPOIN Character_eventsPOIN Location_eventsPOIN Misc_eventsPOIN TrapData TrapDataPOIN Bad Bad Bad BadPOIN Good Good Good GoodPOIN Opening_event Ending_eventBad:UNIT 0x67 0x39 0x00 Level(3, Enemy, 0) [8,9] [6,9] [0x1F] AttackInRangeUNITGood:UNIT 0x03 0x02 0x00 Level(1, Ally, 0) [0,2] [1,3] [0x01] NoAIUNIT 0x1A 0x28 0x00 Level(15, Ally, 0) [0,3] [0,3] [0x01] NoAIUNITTurn_events:TurnEventPlayer(0x0,Opening_event,1)End_MAINCharacter_events:End_MAINLocation_events:End_MAINMisc_events:CauseGameOverIfLordDiesDefeatAll(Ending_event)End_MAINTrapData:End_MAINOpening_event:OOBBLOU1 GoodENUNLOU1 BadENUNENDAEnding_event:MNCH (0x02)ENDA// Events// Manual Movement// Scripted Fights// Units// Shop DataMESSAGE Events end at currentOffset Quote Link to comment Share on other sites More sharing options...
Lamia Posted December 22, 2016 Share Posted December 22, 2016 (edited) when the game is force reset, it is essentially a game crash. it is important to note EXACTLY when the crash happens. it could be anything from improper dialogue coding to the map not being inserted correctly Edited December 22, 2016 by Lamia Quote Link to comment Share on other sites More sharing options...
Rindille Posted December 23, 2016 Author Share Posted December 23, 2016 when the game is force reset, it is essentially a game crash. it is important to note EXACTLY when the crash happens. it could be anything from improper dialogue coding to the map not being inserted correctly I rewrote my event code and this time it run well. Thanks! Quote Link to comment Share on other sites More sharing options...
CT075 Posted December 23, 2016 Share Posted December 23, 2016 on the off chance anybody else stumbles on this topic and wonders what the solution was (OP, next time, if you find the solution on your own please tell us what you did!), the mistake that I see is that the line EventPointerTable(0x1, ThisChapter)is writing the events to pointer 0x1 in the event table, which is not the prologue events but actually the graphics for the Sacae Plains tileset. Obviously, event data isn't quite the same thing as a compressed graphic, so it just breaks and resets. Quote Link to comment Share on other sites More sharing options...
Rindille Posted December 26, 2016 Author Share Posted December 26, 2016 on the off chance anybody else stumbles on this topic and wonders what the solution was (OP, next time, if you find the solution on your own please tell us what you did!), the mistake that I see is that the line EventPointerTable(0x1, ThisChapter)is writing the events to pointer 0x1 in the event table, which is not the prologue events but actually the graphics for the Sacae Plains tileset. Obviously, event data isn't quite the same thing as a compressed graphic, so it just breaks and resets. There's something wrong with my pointer ID so as you said I changed it, which solved the problem. (Sorry for reply soooo late :P) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.