Extream errors in my rpt (AI slow to respond or die)

jasonpointer

Valued Member!
Hey all,

Im getting insane errors as this does 20k lines of this non stop
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-A:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-A:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-A:3 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-D:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-D:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-D:3 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-K:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-K:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-K:3 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:3 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:4 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:5 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:6 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:7 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:8 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:9 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,O 1-1-D:10 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-A:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-A:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-F:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-F:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-F:3 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-B:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-E:1 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-E:2 REMOTE,false]"
"WARNING illegal RE rhideObjectcode with args:[any,R 1-1-E:3 REMOTE,false]"

What is causing this?
 
I had this happening in my local RPT, is that where you see this too? If so, I have a not very good but working fix I can share.
 
Alright, so the issue is in UPSMON.sqf: Around line 262 and 908 there's two sections that look like this:

Code:
// reset the group
{
    _x allowDamage true;
    [nil, _x, "per", rHideObject, false] call RE;
    _x enableAI "FSM";
} foreach units _npc;
and
Code:
    // reset the group in case something went wrong earlier
{
    _x allowDamage true;
    [nil, _x, "per", rHideObject, false] call RE;
    _x enableAI "FSM";
} foreach units _npc;

Now, unfortunately I don't know enough on the inner workings of this stuff so hopefully someone sees this (maybe Sarge) and has a much more elegant fix in mind.

The problem is that "call RE", which is calling rHideObject. This is a banned remote execute in Dayz 1.7.7, and it's called via the mission file's init.sqf like so:
Code:
#include "\z\addons\dayz_code\system\REsec.sqf"

The easy way out would be to just run without REsec.sqf (either comment it out or delete the line). Many other scripts call for that, and many other people do it, however I wanted to see if I could create a workaround. My solution was to remove hideObject from the banned list of RE commands:

1. Extract REsec.hpp and REsec.sqf from dayz_code\system
2. Copy them both into the root of your mission folder, or wherever else you like if you want to keep organized
3. Modify REsec.hpp by taking "hideObject" out of the #ifndef REMOVED_LIB section
4. In your init.sqf, call REsec.sqf pointing to the mission file: #include "REsec.sqf"
5. Pack your mission.pbo

I think that's all I did, but let me know if you have any issues. It's a terrible solution, but it fixed the rpt log spam I was getting which cut down on some lag.


Cheers
 
Back
Top