SET, which allows for numerical calculations through strings, is a very good library to have for text games. However, the latest Beta update does not let this library compile.
Numbered Steps to Reproduce Problem:
1. Download and include the library
2. Update to current beta version
3. Try to compile the code
Code Snippet (if applicable) to Reproduce Problem:
//this seems to be the proc that triggers the errors
SQRT
operate(list/symbols, position)
var/partner_pos = symbols.Find(partner)
var/Scalar/argument = a_Evaluate(symbols.Copy(position+1, partner_pos))
var/Scalar/exponent = new()
exponent.real = 1/2
var/insert[] = list(argument,new/operator/exponent,exponent)
return symbols.Copy(1, position) + insert + symbols.Copy(partner_pos+1, 0)
//Error messages:
loading test.dme
Documents\BYOND\lib\abyssdragon\set\functions.dm:51:error: exponent: missing comma ',' or right-paren ')'
Documents\BYOND\lib\abyssdragon\set\functions.dm:51:error: exponent: expected end of statement
Documents\BYOND\lib\abyssdragon\set\functions.dm:51:error: ,: expected }
Documents\BYOND\lib\abyssdragon\set\functions.dm:47:error: location of top-most unmatched {
test.dmb - 4 errors, 0 warnings (9/29/17 6:05 pm)
Expected Results:
Dream maker would compile without error
Actual Results:
Dream maker does not let the code compile
Does the problem occur:
Every time? Or how often? Every time
In other games?
In other user accounts?
On other computers?
When does the problem NOT occur?
By downgrading to the current stable version
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds:
Reverting to the current stable version of BYOND
Library in question: http://www.byond.com/developer/AbyssDragon/SET
Works on: 511.1385 (stable version)
No longer compiles on: 512.1386