武装突袭3

武装突袭3

Improved Melee System
DAVEFAR 2024 年 8 月 18 日 上午 2:09
Switching players
Perfect mod, but there is one issue when switching players. Try this test: switch players 20 times in the vanilla game and then 20 times in IMS. After the second test, the game starts to crash.

Here is the cause:

WebKnight_StarWars_Mechanic/ XEH_postInit.sqf
< >
正在显示第 1 - 1 条,共 1 条留言
DAVEFAR 5 月 7 日 上午 11:01 
XEH_postInit.sqf with correction:
https://drive.google.com/file/d/1mnpgyyrP6_-w9qxUR9Gg-df6fR-0A5kC/view?usp=sharing

CHATGPT
There is an issue with XEH_postInit.sqf: the TeamSwitch handler executes XEH_postInit.sqf recursively without a safeguard, which causes crashes after multiple switches.
Suggested fix: check if the player has already been initialized before executing again.
Add this check:
if (!(_newUnit getVariable ["WBK_AlreadyInitialized", false])) then { ... }
最后由 DAVEFAR 编辑于; 5 月 7 日 上午 11:05
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50