Jump to content

Freezing after visiting village


Crazycolorz5

Recommended Posts

So there's a village in my map and when I have a mounted unit visit it, when they canto as they leave and you hit "wait" the game freezes up and about 5 seconds later it goes back to the intro. Unpon resuming the chapter and doing it again, it works.

-I do have Nintenlord's More After Battles patch on

- Here's my event code for the village:

HealVillage:

FADI 0x05

BACG 0x02

FADU 0x05

TEX1 0x0A26

REMA

ITGV Heal

ALIGN 4

MAC1 0x03 0x00

ALIGN 4

ENDA

-And here are my tile changes

TileChanges:

CODE 0x04 0x11 0x00 0x03

CODE 0x02 0x00 0x00 0x00

POIN TilePnt2

ALIGN 4

CODE 0x03 0x12 0x01 0x01

CODE 0x01 0x00 0x00 0x00

POIN TilePointer

ALIGN 4

CODE $FF /

CODE $00

CODE $00

TilePointer:

ALIGN 4

CODE 0x10 0x0E

ALIGN 4

ENDA

Any idea?

Link to comment
Share on other sites

// ALIGN goes before labels, never within them.
ALIGN 4
HealVillage:
FADI 0x05
BACG 0x02
FADU 0x05
TEX1 0x0A26
REMA
ITGV Heal
MAC1 0x03 0x00
ENDA

#define Tilemap(TCN,X1,Y1,L1,L2,TilePointer) "CODE TCN X1 Y1 L1; CODE L2 0x00 0x00 0x00; POIN TilePointer"

// First off, I'm going to give you the benefit of the doubt and assume you just didn't show us the EventPointerTable(xx,tileChanges)

ALIGN 4
TileChanges:
// I have no idea wtf you're doing here.
Tilemap(0x0,XX,YY,Width,Height,TilePnt2)
//CODE 0x04 0x11 0x00 0x03
//CODE 0x02 0x00 0x00 0x00
//POIN TilePnt2
Tilemap(0x1,XX,YY,Width,Height,TilePointer)
//CODE 0x03 0x12 0x01 0x01
//CODE 0x01 0x00 0x00 0x00
//POIN TilePointer
CODE $FF
CODE $00
CODE $00

ALIGN 4
TilePointer:
CODE 0x10 0x0ET
// You shouldn't have an ENDA; this isn't executed, only read.

Link to comment
Share on other sites

Yeah I tried used the macro before but for some reason it didn't work so I just decided to do it the long way...

Edit: Maybe I defined it(The macro) wrong or something...

Edit2: Thanks! It no longer freezes.

Edit3: No it doesn't... It seems to not freeze whenever you kill a reinforcement after visiting the village or the other way around...

Edit4: Now it's just freezing if you visit the village before any reinforcements are killed...

Link to comment
Share on other sites

Try getting rid of the tile changes completely (and not just because you did them wrong). If things seem to work ok except for the tilechanges (since they'd be non-existent) then start them from scratch despite how much work it is (not much). You may find some luck.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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