The Dink Network

Updated Source Project: reDink v0.02

I've updated reDink to v0.02. New additions include 3 bug fixes, 14 new DinkC commands, and an easy way for a D-Mod author to distribute reDink with their D-Mod.

Check the Comments for a full explanation of all additions.

Bug Fixes:
* v1.07 wasn't properly exited when you hit Alt-F4, this has been fixed (thanks Invertigo). However, this might also cause some weird problems for Win2k people, as it might take 15-20 seconds to close.
* All versions of Dink had a confusing time format in the load game screen. If you had played 2 hours and 5 minutes, it would say 2:5. Now it will say 2:05.
* The first water and fire tiles didn't animate. Thanks to SimonK for urging me to fix this bug.

General Improvements:
* There are two .exe's included: reDink.exe is a general dink.exe replacement, and reDmod.exe is an exe meant for D-Mod authors to put in the directory of their D-Mod. reDmod.exe doesn't try to update dinksmallwood.ini, doesn't allow the use of the -game parameter, and will try to run the D-Mod in the current directory instead of /dink. That way D-Mod developers don't have to worry about whether or not the player has reDink installed in order to use it. The player does have to be smart enough to run the included exe when prompted from within the game though. Thanks to SimonK for the suggestion.

DinkC Additions:
* get_compatibility(string value, int version); //PARTIALLY IMPLEMENTED. It is meant to check to see if the current exe supports a DinkC command or another feature, but to get it to work properly would take a long time. So for now, it only works with get_compatibility So do something like "int is_reDink = get_compatibility("get_compatibility",1);" and it will return 1 with reDink, but nothing with the regular Dink. More detailed information will be included in later versions of reDink.
* get_time_game(); //Returns the number of minutes that the engine thinks the game has been played. Please Note: this number isn't entirely accurate, and is based on the same number that's on the save/load game screens.
* get_time_real(); //Returns the number of minutes in the day. So if it is 3 pm, it will return '900'.
* get_date_year(); //Returns the current year, such as '2003'.
* get_date_month(); //Returns the current month, such as '9' for September.
* get_date_day(); //Returns the current day, such as '6' if it is the 6th.
* load_tile(string location, int tile_index); //Allows you to load a tile to replace an existing one. So to replace TS02 with TS03.bmp, just do load_tile("tiles\TS03.bmp",2);
* math_abs(int value); //Returns absolute value of value
* math_mod(int value, int modulo); //Returns (value % modulo)
* math_sqrt(int value); //Returns the square root of value
* math_sin(int value); //Returns the sine of the value
* math_cos(int value); //Returns the cosine of the value
* math_tan(int value); //Returns the tangent of the value
* set_save_game_info(char[78] value); //Default is "Level &level". Replaces that portion of the save game name with anything you want.