Error with map_get_random_position_around_position operation

Users who are viewing this thread

Cephas369

Recruit
Code on mission_templates:
(ti_on_agent_killed_or_wounded, 0, 0, [],
[
(store_trigger_param_1, ":dead_agent_no"),
(agent_get_position, pos2, ":dead_agent_no"),
(map_get_random_position_around_position, pos1, pos2, 2),
])
When i enter on a quick battle and someone get's wounded the game crashes and closes
Looking on the wse_crash_log.txt file i have this:
Type: EXCEPTION_ACCESS_VIOLATION (0xC0000005, 0x00000000, 0x00000010)
> Stack trace
0x00429B7B mb_warband.exe+0x29B7B (??+0x0)
0x005426BA mb_warband.exe+0x1426BA (??+0x0)
0x0315BD34 ??+0x315BD34 (??+0x0)
0x0315BD2C ??+0x315BD2C (??+0x0)
0x42E5A393 ??+0x42E5A393 (??+0x0)
0x42E5A393 ??+0x42E5A393 (??+0x0)
> Scripting context
Statement block: Mission Template [35] mst_quick_battle_battle Trigger [6] Consequences
Statement: 3
Opcode: 1627
I only get this when i put the map_get_random_position_around_position function line, does anyone know how can i fix it ?
 
This thread should be in Modding Q&A because it is a modding issue and not a TW-made bug. The game crashes because your trigger is for a scene and you have an operation for a map. There is a difference between scene (a level where agents are) and world map (a level where parties are). In other words, just do not use the last command in the trigger.
 
Back
Top Bottom