Jump to content

trouble with Tile Changes


Schneestern
 Share

Recommended Posts

by now my friend and I are unable to solve one Problem: Tile Changes. We do not use tiled, cause we simply prefere Mappy and so. (And tiled couldn't solve my problem... I've tried it... :/ )
I was going through Arch's Boot camp Ep. 16 and the "tile changes"-post in "event hacking for dummies" (I've read/watched it many many times), but I still don't know, where I'm mistaking.

funfacts: I've got one ROM, where the door of my testmap opens, but it is replaced by a tile that I didn't choose. (even if I change the reference code of the tile I wish to use, the door is simply replaced by the same tile)
If I use a other ROM (a earlier copy of the ROM I mentioned) and assemble the same txt-files, then the door-tile won't be replaced (but my Thief is able to use the "door"-order and his Lockpicks durability decreases by 1).

here's the relevant passages (well... I think/hope that these passages are relevant xD ) :

The MapChange-file:
________________________
//Prologue Map Changes
#define TileMap(TCN,X1,X2,L1,L2,TilePointer) "BYTE TCN X1 X2 L1; BYTE L2 0x00 0x00 0x00; POIN TilePointer"

ORG 0xC9C9CC+(4*0x0E)

POIN TileChanges

ORG 0x8CE1D20

TileChanges:
TileMap(0x00,0x09,0x07,0x02,0x01,Portal)
TileMap(0x01,0x09,0x07,0x02,0x01,Portal)
WORD 0xFF
WORD 0x00
WORD 0x00

Portal:
BYTE 0x24 0x0D 0x24 0x0D

MESSAGE Map changes end at offset currentOffset
_____________________________



and the location based events, from the event-file.

___________________________

LocationBasedEvents:
LOCA 0x3 [0,8] 0xF
DOOR 0x00 [9,7] 0x10
DOOR 0x01 [10,7] 0x10
END_MAIN

___________________________

hope someone can help me out D:

tia

~Schneestern

EDIT: nobody able to help me? T___T

Edited by Schneestern
Link to comment
Share on other sites

ORG 0x8CE1D20

Notice how in the same event file, there's a similar line here?

ORG 0xC9C9CC+(4*0x0E)

You'll see that you don't actually need (and shouldn't use) the 8 at the start.

Try changing it to:

ORG 0xCE1D20

The EA doesn't need the 8 at the beginning. You might be telling the EA to write stuff to an address that doesn't exist.

Edited by Agro
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...