Syntax error

正在查看此主题的用户

Afonso

Recruit
So. i tried everything but i always get an error at the last page

SyxtaxError: invalid syntax
Traceback <most recent call last>:
File "process_global_unused.py", line 3, in <module>
from process_operations
File "C:\users\notebook\desktop\Module_system 1.143\process_operations.py", line 22, in <module>
from module_game_menus import*
File "C:\users\notebook\desktop\Module_system 1.143\module_game_menus.py" line 14503
    ]
    ^

And doesn't matter what I do, erased last line, remade as the original archive, every time i get the same error. Someone knows how to solve this?

Appreciate the help.
 
Afonso 说:
File "C:\users\notebook\desktop\Module_system 1.143\module_game_menus.py" line 14503
Go to that line in "module_game_menus.py" Copy and paste a few of the lines that surround it and paste is inside a code block here on the forum for us.
 
you probably forgot to close a line i.e:
...
(eq,1,1),
(display_message, "@lalalala"
(eq,1,1),
 
The lines around

[
(assign, reg4, "$g_player_days_as_marshal"),



(store_div, ":renown_gain", "$g_player_days_as_marshal",4),
(val_min, ":renown_gain", 20),
(store_mul, ":denar_gain", "$g_player_days_as_marshal", 50),
(val_max, ":denar_gain", 200),
(val_min, ":denar_gain", 4000),
(troop_add_gold, "trp_player", ":denar_gain"),
(call_script, "script_change_troop_renown", "trp_player", ":renown_gain"),
(assign, "$g_player_days_as_marshal", 0),
(assign, "$g_dont_give_marshalship_to_player_days", 15),
(assign, reg5, ":denar_gain"),

(faction_get_slot, ":faction_leader", "$players_kingdom", slot_faction_leader),
(str_store_troop_name, s4, ":faction_leader"),
(troop_get_type, reg8, ":faction_leader"),
],

[
      ("continue",[],"Continue",
      [       
        (change_screen_return),       
      ]),       
    ]
  ),
]
 
That's simply the end of the game_menus document.

It's as Ikaguia said. Somewhere, likely far above and definitely in code you edited, you have a ( or [ that didn't get closed with a ) or ]. In Notepad++ use the Ctrl-B feature to match up braces and track down the missing one.
 
You'll have to post that whole section of the menu code, you may have an extra bracket in that. Also, WTH did you edit???
 
the thing wiith the ++note didn't worked, eveything is the way it was supossed t be and this is the motive cauz i can't figure out the poblem, everything seems to work pefectly.

You'll have to post that whole section of the menu code, you may have an extra bracket in that. Also, WTH did you edit???

what you meant by this?
 
ok ok, i was able to correct the touble that was i commented out some lines i couldn't. So, i have another question and one other touble. How can i turn out the "Give an oath" quest, and tuning off others quests. Any help?
 
后退
顶部 底部