Just getting a bunch of errors while edited a specific word into another word

正在查看此主题的用户

Emilian

Regular
I have tried to edit a word in all .py files with Notepad++ (tried to change Swadian into Empiral) but I am just getting a bunch of errors. I tried this with just the module_*.py files and all the .py files. Almost all the errors say:

插入代码块:
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Users\Emilian\Desktop\Modden\Module_system 1.143\process_operations.p
y", line 17, in <module>
    from module_party_templates import *
  File "C:\Users\Emilian\Desktop\Modden\Module_system 1.143\module_party_templat
es.py", line 101, in <module>
    ("kingdom_1_reinforcements_a", "{!}kingdom_1_reinforcements_a", 0, 0, fac_co
mmoners, 0, [(trp_Empiral_recruit,5,10),(trp_Empiral_militia,2,4)]),
NameError: name 'trp_Empiral_recruit' is not defined

This is just al example of one, there are more like this. I know the name of Empiral Recruit is not defined, but exactly what do I need to change? I just started out and I am sorry if this sounds like a stupid question, but can somebody help me?
 
You changed the troop id name and not the name which you can see ingame.

If you also want to change the troop id name, then you have to correct all errors by changing the troop id's names in each .py file where an error is located... But this is way more work than just changing the ingame troop names.
 
后退
顶部 底部