Features for D-mod developers
Although YeOldeDink is designed to ultimately be transparent in terms of features when compared to Freedink, there are a few new DinkC commands and other caveats to be aware of. Included in 0.86 and later is Phoenix's DinkLua backend which allows for Lua 5.4 to be used instead of DinkC. The use of DinkLua is covered separately.
Debug mode
After activating debug mode, a setting may be found in the relevant menu to switch on "Developer mode". This displays the normally hidden functions such as the inbuilt cheat, and potentially data-destructive sprite and map editors.
PNG Graphics
The Portable Network Graphic format may be used for sprites and tiles as d-mod resources (not main data). All colour depths should be supported.
Sound effects
Versions from 0.7 support the loading of MP3, Ogg Vorbis, and FLAC files as sound effects with load_sound().
New DinkC commands
get_client_fork()
will return 3 to check for YeOldeDink.get_client_version()
returns the version string multiplied by 100. For example, v0.91 will return "91".get_platform()
returns the platform corresponding with RTDink's valuesplay_mod_order(int pattern)
changes the pattern number for tracker formats.playavi(string filename)
will allow you to play a video file of some sort. Requires FFMPeg's FFPlay to be installed on the user's computer.
All of these are available under DinkLua as well as part of the "dink" table such that get_platform()
becomes dink.get_platform()
etc.
Changed DinkC commands
Specifying a frequency of zero to playsound() will cause the sound to be played back at its native speed.