#ValkyRiver's upgrade mod (in progress)
1 messages · Page 1 of 1 (latest)
Um... I've gotten into a stuck situation. There is a problem with my current files, and there's an error:
[SMODS upgrademod "upgrademod.lua"]:633: '}' expected near '='
which implies that there is a missing }. But there isn't a missing }, or at least in this section of the code!
What happened to the original message? And is there a modding thread for this new mod?
I don't know what happened to the original message
Anyway, I only know that the error doesn't appear if I made the array config empty (i.e. config = {},), but if even there's a single item in config, the error will come back.
The error even occurs if I add an extra }.
Here's what I'm trying to do:
What I tried to do was to add three decks to the mod: the Level 2 Deck, Level 3 Deck, and Level 4 Deck. In each of these decks, all things in the game will start from the corresponding levels.
However, I couldn't find a way to store all of these levels as saveable variables (rather than global variables), so I tried using G.GAME, but this led to other problems. Even with the decks part removed, it led to attempt to index value GAME (a nil value).