Not compling "quick_strings.txt" and Troop error

正在查看此主题的用户

状态
不接受进一步回复。

Hank

Sergeant Knight
For some reason, my build_module.bat won't compile quick_strings.txt, and thereby I can't get into the game because it's missing.

Now I've tried copying and pasting the quick_strings.txt from native to my mod, which seems to work fine, but now the new units I've added (or, rather, the units I renamed over the old ones) aren't appearing in the game. It's really quite weird. Here's what the build_module.bat does.

Err... I actually have NO idea how to copy and paste the build_module.bat compile into here, does anyone know?

Well, here's a screen of something that keeps getting spammed:

errorspamps2.jpg

插入代码块:
Initializing...
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_troops.py", line 4, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Exporting particle data...
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_party_tmps.py", line 2, in <module>
    from module_party_templates import *
  File "C:\ModuleSystem\module_party_templates.py", line 43, in <module>
    ("manhunters","Manhunters",icon_gray_knight,0,fac_manhunters,soldier_persona
lity,[(trp_manhunter,9,40)]),
NameError: name 'trp_manhunter' is not defined
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 7, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_mission_tmps.py", line 8, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\ModuleSystem\process_operations.py", line 14, in <module>
    from module_troops import *
  File "C:\ModuleSystem\module_troops.py", line 1093
    upgrade(troops,"farmer","watchman")
          ^
SyntaxError: invalid syntax

______________________________

Script processing has ended.
Press any key to exit. . .

Odd thing is, I checked that line and there doesn't seem to be anything wrong with it? Here it is:

插入代码块:
#Troop upgrade declarations

upgrade(troops,"farmer","watchman")
upgrade(troops,"townsman","watchman")
upgrade(troops,"watchman","caravan_guard")
upgrade(troops,"caravan_guard","mercenary")
upgrade(troops,"mercenary","hired_blade")
upgrade2(troops,"villager","medium_spear","spear_thrower")
upgrade2(troops,"medium_spear","heavy_spear","mounted_spear")
upgrade(troops,"heavy_spear","leader_spear")
upgrade(troops,"mounted_spear","heavy_mounted")
upgrade(troops,"spear_thrower","pummeler")

(the spear units are new units)

I have no idea what's wrong.

Thanks.
 
I updated the post with what the build_module.bat gives me - I wonder if anyone knows what's wrong?
 
That is kind of or maybe IS what has been going on with my new 2 troops so I deleted them... Make sure you didn't change the troop ID and the troop name instead or something.

Not sure what is going on  but this should help find an error you did.

Note I am not an expert modder. :wink:
 
Chucker 说:
That is kind of or maybe IS what has been going on with my new 2 troops so I deleted them... Make sure you didn't change the troop ID and the troop name instead or something.

Not sure what is going on  but this should help find an error you did.

Note I am not an expert modder. :wink:

That's ok, neither am I - thanks for replying though.

Basically what I did was take Vaegir Veteran (for instance) and changed the ID, Name and the Plural name.

It worked for the Swadian faction, but it didn't work for all the other factions, which is weird.

Of course, I changed the trees around aswell.

It keeps telling me something is wrong with the farmer and watchman tree, but there doesn't seem to be anything and I never touched the farmer, except for changing it's not.
 
Well make sure your new troops are at the bottm.

Yoiu will see player six scene battle something and a bracket under it " ] "

move the bracket down a few lines. Then copy and paste the troops in.  That's suppose to be where the new troops ar and so far the only new troop that is working is the hero that I am trying to make in a sort of priest to sell prisoners for a soldier/experience.
 
Chucker 说:
Well make sure your new troops are at the bottm.

Yoiu will see player six scene battle something and a bracket under it " ] "

move the bracket down a few lines. Then copy and paste the troops in.  That's suppose to be where the new troops ar and so far the only new troop that is working is the hero that I am trying to make in a sort of priest to sell prisoners for a soldier/experience.

Ah, ok - I'll give that a shot, thank you.

Actually while MOVING the units, I discovered that I hadn't closed the brackets properly - thanks Chucker!

For now, problem is solved :smile:
 
状态
不接受进一步回复。
后退
顶部 底部