Hello everybody,
I encountered this problem some weeks ago, and I posted in the general mod makers Q&A thread about it. Unfortunately, nobody there could help me fix it. So I'm gonna try my luck by making a new thread for this problem, where there's no distraction by other problems.
The problem is simple: whenever I call the operation (spawn_agent, troop_id), the game will hang for a few seconds, then crash-to-desktop. I've tried lots of possible combinations of ode before calling this one, but nothing works. I simplified the code as much as possible to ensure that it wasn't affected by some other script, but it wtill causes a CTD.
I already searched the forums, and found some threads that had the same problem and got it solved, but when I tried to follow their steps it didn't work for me. Any help would be much appreciated.
The current code is as follows
It's called from a mission_template that calls this script when [key_k] is pressed. I'm using normal Mount&Blade, not Warband or WFaS. One other thing I'm worried about which I think might be causing the crashes is the fact that I added a lot of new troop_slots, 56 to be precise. Perhaps they are causing this bug? This is the one thing I can't really test, as taking them out will make about two-thirds of my current code invalid, meaning it won't compile anymore.
Thanks in advance,
~~ArcaneSaint
I encountered this problem some weeks ago, and I posted in the general mod makers Q&A thread about it. Unfortunately, nobody there could help me fix it. So I'm gonna try my luck by making a new thread for this problem, where there's no distraction by other problems.
The problem is simple: whenever I call the operation (spawn_agent, troop_id), the game will hang for a few seconds, then crash-to-desktop. I've tried lots of possible combinations of ode before calling this one, but nothing works. I simplified the code as much as possible to ensure that it wasn't affected by some other script, but it wtill causes a CTD.
I already searched the forums, and found some threads that had the same problem and got it solved, but when I tried to follow their steps it didn't work for me. Any help would be much appreciated.
The current code is as follows
Code:
("testing_uniquename_debug",
[(get_player_agent_no, ":player_no"),
(agent_get_team, ":team", ":player_no"),
(agent_get_position, pos1, ":player_no"),
(position_move_y, pos1, 150),
(set_spawn_position, pos1),
(spawn_agent, "trp_xykon_zombie"),
(assign, ":new_agent", reg0),
(agent_set_position, ":new_agent", pos1),
(agent_set_team, ":new_agent", ":team"),
]),
Thanks in advance,
~~ArcaneSaint