RATools
RATools copied to clipboard
Script interpreter for writing achievements for retroachievements.org
Example of problematic code: ```fs foo = { "start": (fazbar) => always_true() } bar = (fazbar) => always_true() bar(1) start = foo["start"] start(1) ``` While `bar` is invoked successfully, `start`...
Allow using multiple files for the code of one set, like #include in C++. This would help with really big sets where there's just a lot of code to go...
https://discord.com/channels/310192285306454017/533411674162593812/1230177146958385275
With the amount of bitset values I deal with, it would be nice to be able to write binary literals the way that some other languages like Python support. A...
After writing a function in my script, this error is thrown whenever opening the script and none of the achievements properly compile yet no errors are listed. The offending function:...
[Feature Request] `prev()` applied to functions should apply `prev()` to all memory accessors inside
I feel like there might be a good reason why this doesn't exist, either not possible or produces undesirable results. Given a function like this: ``` function paused() => dword_be(0x16F08C)...
Currently, if a function returns an array or dictionary it is impossible to index that returned value directly: ```fs function ReturnsArr() { return [0] } function ReturnsDict() { return {0:...
Basically what it says on the tin. While certainly very minor, I have a scenario which could benefit from this optimization right now. I have leaderboards for individual level runs...
The following code: ```fs function foo(pred=(v) => v) { return always_true() } ``` will create the error `Default value for pred is not constant`. However, the following code: ```fs _...
[16124-RATools.txt](https://github.com/Jamiras/RATools/files/14544910/16124-RATools.txt) Here's a script demonstrating the issue. Look at line 545. This is a testing condition thing where the last value's expression sums a value with itself. The intended result...