The Dink Network

Reply to Re: Why Can't I Quit You, DinkC?

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:
 
 
December 18th 2013, 07:44 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
I'll try reproducing the problem. I'll let you know how it goes.

Very weird indeed. I have found the solution, and I have no idea why it helps. Put a wait(1); statement before the function call. If you don't do that, the file's main function will be called before the function itself, resulting in infinite recursion. Another solution which works (I tried that first, but it's uglier) is to put the regen function in a separate file, which doesn't have a main function.

To make a guess at what's happening: during draw_screen, any script that is called is assumed to need its main function called first. With the wait, draw_screen will first exit before the rest of the script is executed.

And as to why it would work this way: ehm, well, let's just say that this is DinkC, and we've seen worse. But I sure wouldn't mind if someone would make freedink work with a real language like lua.