Loading...
  OR  Zero-K Name:    Password:   

Post edit history

Tweakdef lua is fucked

To display differences between versions, select one or more edits in the list using checkboxes and click "diff selected"
Post edit history
Date Editor Before After
6/29/2024 9:37:07 AMNOrankSuperyard before revert after revert
6/29/2024 9:36:34 AMNOrankSuperyard before revert after revert
6/29/2024 9:28:21 AMNOrankSuperyard before revert after revert
Before After
1 Yeah, but thankfully syntax errors can be fixed by parsing the code into a site like https://onecompiler.com/lua to check if it works. 1 Yeah, but thankfully syntax errors can be fixed by parsing the code into a site like https://onecompiler.com/lua to check if it works.
2 \n 2 \n
3 @GoogleFrog I wish I could say which string fails, but I do not know. I simply know that it must be amongst the lines that I included. 3 @GoogleFrog I wish I could say which string fails, but I do not know. I simply know that it must be amongst the lines that I included.
4 \n 4 \n
5 Using the function n_in_table in an if-statement works fine in the online lua compiler, but it doesn't work ingame. No idea if it is the if-statement or something in the functon that breaks. 5 Using the function n_in_table in an if-statement works fine in the online lua compiler, but it doesn't work ingame. No idea if it is the if-statement or something in the functon that breaks.
6 \n 6 \n
7 Same with round_to_number and multiply_and_round. I suspect there might be a problem when a function passes one of its arguments to another function? 7 Same with round_to_number and multiply_and_round. Maybe there's a problem when a function passes one of its arguments to another function?
8 \n 8 \n
9 Though I have a function which does this, but works just fine. See and compare: 9 Though I have a function which does this, but works just fine. See and compare:
10 https://pastebin.com/raw/emrz1Jdf 10 https://pastebin.com/raw/emrz1Jdf
11 \n 11 \n
12 \n 12 \n