• Please note that we've updated the Mount & Blade II: Bannerlord save file system which requires you to take certain steps in order for your save files to be compatible with e1.7.1 and any later updates. You can find the instructions here.

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

Users who are viewing this thread

Status
Not open for further replies.

Malik Faris

Squire
M&BWBWF&SNW
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?
 

Malik Faris

Squire
M&BWBWF&SNW
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")
 

yeo

Knight
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.
Top Bottom