The Dink Network

Reply to Dink 1.09 and the undocumented "show_popup()" function

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 24th 2013, 08:57 AM
peasantmb.gif
yeoldetoast
Peasant They/Them Australia
LOOK UPON MY DEFORMED FACE! 
When Seth first came here a while ago with an announcement of a new Dink release we were all incredibly thrilled. When we got to play the beta version what probably was most intriguing were those funny boxes that popped up explaining how to feed the pigs and save your game etc.

Although RTSoft released documentation of a few new commands such as get_platform() in 1.09, there's at least one they didn't explain which is called show_popup(). It takes a rttex file as its first argument and a time value in milliseconds that determines the delay before showing it. Now, making an rttex file is quite simple. First of all you must check out the rtsoft SVN server in order to get the RTPack tool.

Then you must run it from the command line like so "RTpack -8888 'my infile.jpg'" which will spit out an .rttex file of the same name. From there you may copy that file to your DMOD dir and use it for your own purposes like this example. I have not tested whether or not show_popup() will accept a BMP file as an argument, but it is certainly possible. It seems to be hard-coded to play "tip_start.wav" upon showing it which is sort of annoying but whatever.