Jump to content

Why is this happening?


Rindille
 Share

Recommended Posts

So I tried to hack chapter 1. But this dead circle happened...
post-27906-0-18663700-1482443242_thumb.png
After the worldmap event, it won't enter into the chapter but started playing the prologue.
post-27906-0-93589800-1482443329_thumb.png
post-27906-0-99901600-1482443365_thumb.png

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.event

EventPointerTable(0x01,Pointers)

ORG 0xD801F0

Pointers:
POIN Turn_events
POIN Character_events
POIN Location_events
POIN Misc_events
POIN TrapData TrapData
POIN Bad Bad Bad Bad
POIN Good Good Good Good
POIN Opening_event Ending_event

Bad:
UNIT 0x67 0x39 0x00 Level(3, Enemy, 0) [8,9] [6,9] [0x1F] AttackInRange
UNIT

Good:
UNIT 0x03 0x02 0x00 Level(1, Ally, 0) [0,2] [1,3] [0x01] NoAI
UNIT 0x1A 0x28 0x00 Level(15, Ally, 0) [0,3] [0,3] [0x01] NoAI
UNIT

Turn_events:
TurnEventPlayer(0x0,Opening_event,1)
End_MAIN

Character_events:
End_MAIN

Location_events:
End_MAIN

Misc_events:
CauseGameOverIfLordDies
DefeatAll(Ending_event)
End_MAIN

TrapData:
End_MAIN

Opening_event:
OOBB
LOU1 Good
ENUN
LOU1 Bad
ENUN
ENDA

Ending_event:
MNCH (0x02)
ENDA

// Events

// Manual Movement

// Scripted Fights

// Units

// Shop Data

MESSAGE Events end at currentOffset

Link to comment
Share on other sites

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 by Lamia
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...