The Dink Network

load_tile() bug

October 30th 2007, 09:12 PM
slayer.gif
rabidwolf9
Peasant He/Him United States
twitch.tv/rabidwolf9 
Category: Game Info
Version: 1.08+

Prototype:
void load_tile(string[191] tile_bmp, int tile_index);

load_tile replaces the tiles at tile_index with tile_bmp. By default, TS01.bmp through TS41.bmp are loaded into indexes 1-41. By default, this command will look in the D-Mod's tiles directory, and if tile_bmp cannot be found, it will look in Dink's tiles directory...


This only works if the tile sheet is in the DMOD's directory. It doesn't check the original Dink's tiles as said. I've tested this and I am 100% sure.

-I copied the darkland tiles to my DMOD's tiles section.
-I tested to make sure my code was right.
-All the tiles changed properly.
-I deleted them from my DMOD's tiles directory.
-The tiles no longer change.

I double-checked myself by putting the tiles back in my DMOD. They started working again. I didn't mess with any scripting or the map in between. I deleted them again. Now they stopped working again. It seems as if the tiles I'm loading need to be in the DMOD's directory.

Edit: This occurs in both aural+ and v1.08. Truecolor and non.
October 31st 2007, 12:32 AM
burntree.gif
fireball5
Peasant He/Him Australia
Let me heat that up for you... 
wow. you really have done some testing, havn't you?
October 31st 2007, 04:51 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Yeah, that's what you usually do before you ask questions: try everything you can.