The Dink Network

Reply to load_tile() bug

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
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.