Posted: Mon Jul 08, 2013 1:36 am Post subject: Bug: Disassembled code with space in module won't compile
Disassembled instructions (including in templates) don't include quotes around the module name and the autoassembler throws an error. This happened to me when writing a script for Prison Architect, the original code:
When creating a template the instruction put into enable as original code and into disable to restore was the exact same and wouldn't compile without putting quotes around the module name.
I don't know what solution would be best, but I think either the disassembler should put in the quotes or the assembler should handle the instruction without quotes (I vote for the latter).
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
Posted: Mon Jul 08, 2013 4:11 am Post subject:
I'll go with the disassembler. With the assembler there is the problem that spaces and commas are token seperators, and values are fetched during the tokenizer pass _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum