In my module when i go into a fight, the following error is given
SCRIPT ERROR ON OPCODE 1992: Invalid Mesh ID: 703; LINE NO: 6:
At Tableau Material [4] tab_game_troop_label_banner. At Tableau Material [4] tab_game_troop_label_banner.
in combination with this error the banners above my troops get white like it can't get the banner mesh
Any idea what causes this error/where in the module system i can find this piece of code?
cheers godarcher
it has something to do with
tableau_game_troop_label_banner = 4
i found this part in mission templates
common_battle_init_banner = (
ti_on_agent_spawn, 0, 0, [],
[
(store_trigger_param_1, ":agent_no"),
(agent_get_troop_id, ":troop_no", ":agent_no"),
(call_script, "script_troop_agent_set_banner", "tableau_game_troop_label_banner", ":agent_no", ":troop_no"),
(call_script, "script_init_agent_modifiers", ":agent_no"),
])
which leads to
#script_troop_agent_set_banner
# INPUT: agent_no
# OUTPUT: none
("troop_agent_set_banner",
[
(store_script_param, ":tableau_no",1),
(store_script_param, ":agent_no", 2),
(store_script_param, ":troop_no", 3),
(call_script, "script_agent_troop_get_banner_mesh", ":agent_no", ":troop_no"),
#MOTO bug fix chief
(try_begin),
(agent_is_active, ":agent_no"),
(else_try),
(call_script, "script_agent_troop_get_banner_mesh", -1, ":troop_no"),
(try_end),
(cur_agent_set_banner_tableau_material, ":tableau_no", reg0),
#MOTO bug fix end
]),
which led me to
#script_agent_troop_get_banner_mesh
which i compared to a backup which sees the last lines swapped
(val_sub, ":banner_spr", banner_scene_props_begin),
(store_add, ":banner_mesh", ":banner_spr", arms_meshes_begin),
swapped them back
This did the trick, thanks kalarhan for the help