Presumably until everyone uses the latest build.
adding a nudge to update to a Mafia daily build would be nice.
... if it could work at all.
Remind me again, why don't we have a "require_mafia_version" statement that would croak during the parse phase, if fed to sufficiently non-advanced mafia version?
Yes, but grabbing said info isn't completely reliable, either, because of the way it's stored in your preferences. It's also not likely to help most of the time, either. See this thread for more info.
That being said, I'd be all for a version of check_version() that made use of what info is available on releases, and probably will incorporate it into my own version regardless.
Rinn said:Seems to me the solution would be implement an internal function that returns the date and time the build was compiled, rather then the version.
GMT (or kol time), and if it was down to the second it wouldn't matter if a newer build was posted a half hour later. The script author could just use whatever compile time of mafia they're currently on because clearly if they're writing a script in some version it has all the functionality needed. At worst it would force people to get a newer daily build when they don't actually need it, which they should be doing anyway if they're running daily builds in the first place. None of this is different then using the version value, except that it solves the problem of multiple different numbers because now you don't have to maintain two version checks, just a single date-time check. Either way, version or time, if you want to prevent fifty people from asking how to solve the exact same issue you need to have some kind of error checking in the first place to solve the problem for them.Script authors live in different time zones (solvable by requiring the TZ to be specified). Also, script authors probably wouldn't appreciate having to look up dates/times for particular versions/revisions of mafia (just because you are not seeing newer version now doesn't mean one wasn't committed in the past ~half hour).