Anyone get this error with buildmodule? (how to fix)

Users who are viewing this thread

Status
Not open for further replies.
so build module is telling me there is something wrong with this line:
Code:
upgrade(troops,"farmer", "watchman")

says its syntaxerror: invalid syntax.... but its not.

anyone know how i can figure this out?

and i did add some new troops, that belong to player supporters factions, but only in the troop.py i havent added them elsewhere, is that whats causing it? them not being in the reinforcement strings?
 
yeo said:
you need comma at the end

mmm no i dont think so

Code:
upgrade(troops,"farmer", "watchman")
upgrade(troops,"townsman","watchman")
upgrade2(troops,"watchman","caravan_guard","mercenary_crossbowman")
upgrade2(troops,"caravan_guard","mercenary_swordsman","mercenary_horseman")
upgrade(troops,"mercenary_swordsman","hired_blade")
upgrade(troops,"mercenary_horseman","mercenary_cavalry")
 
ooops, i didnt noticed that he was editing upgrade troops,
my bad.
Besides, if there where comma error then BuildModule would say List must be integers, not tuple.
My bad again, true error is probably becouse of missing ] or ) ,
you should check your new troops added and see if all [] () are closed.
You should count :grin:
 
Status
Not open for further replies.
Back
Top Bottom