Jump to content

BigEgg

Member
  • Posts

    362
  • Joined

  • Last visited

  • Days Won

    28

Posts posted by BigEgg

  1. On 7/19/2022 at 5:08 PM, iDSwitch said:

    Hi BigEgg i loved your epoch admin tool but now new epoch was released it don't work anymore well not correctly, Players backpacks just clear and safes disappear. i checked the RPT file and when people maintain plot poles i get this error 

     14:50:29 "MAINTAIN AREA BY Switch - 393 Objects at [13857.8,11755.3,0], Grid: 138036."
    14:50:29 Error in expression < %1 objects located @ %2', count _objs, mapGridPosition _pobj];
                } else {
                    >
    14:50:29   Error position: <mapGridPosition _pobj];
                } else {
                    >
    14:50:29   Error mapgridposition: Type String, expected Array,Object

    Hope you can help :)

     

    Please see this fix I applied for RC4+ - I believe this will fix your issue:

    https://github.com/BigEgg17/Epoch-Antihack-Admin-Tools/commit/8fc6400e337115784ddaf6bedf1790e980fa83be

  2. Version 1.0.4 has been released - please be sure to update your Antihack.dll and Antihack.ini files accordingly. This should fix issues with logging relating to the no longer available global ban API.

    https://github.com/BigEgg17/Epoch-Antihack-Admin-Tools/archive/refs/tags/1.0.4.zip

    Change Log
    [v1.0.4] - 4/15/2022 - (Last build backward compatible with 1.0.7)
    Changes:
    Updated "No Build Restrictions" admin toggle for compatibility with 1.0.7.1
    Updated check for Z_persistentMoney for compatibility with 1.0.7.1
    "No Build Restrictions" toggle now keeps the built item in the admin's inventory, meaning one metal floor in the inventory can be used to build several
    "No Build Restrictions" toggle now keeps items used to upgrade a buildable in the admin's inventory (4 cinder blocks and 1 mortar can be used to upgrade multiple half walls)
    Removed _egb configuration option as the global ban API is no longer available
    Fixes:
    Fixed logging issues due to deprication of the global ban API (new DLL - Antihack.ini updated to remove API login)

     

  3. On 12/30/2021 at 5:22 AM, rareware said:

    starting from a fresh install of epoch 1.0.7 and installing this antihack won't let me enter the server...

    all the logs say that there was no errors on the server side, but this one comes up on the clients logs.

    %appdata% arma 2 OA RPT log  last line = "Date and time not synced", otherwise all fine

    server rpt log

    ---

    13:02:42 "MPframework inited"
    13:02:42 "dayz_preloadFinished reset"
    13:02:42 "<Epoch-AH>: Initializing Epoch Antihack/Admin Tools"
    13:02:42 "<Epoch-AH>: Config loaded successfully"
    13:02:42 "<Epoch-AH>: Admins sorted successfully"
    13:02:42 "<Epoch-AH>: _kfc_sz: BEcP9Qeh1Qg965suQ1"
    13:02:42 "<Epoch-AH>: _kfc_re: QUkQ8btqOrB9ggQGo"
    13:02:42 "<Epoch-AH>: _kfc_sz1: VFw5BcO0aHs9nc4"
    13:02:42 "<Epoch-AH>: _kfc_sz2: UIo9CdU31xE63eJd"
    13:02:42 "<Epoch-AH>: _kfc_sz3: KTP5HwaWi4G"
    13:02:42 "<Epoch-AH>: _kfc_mic: LOktdgK3tzw7"
    13:02:42 "<Epoch-AH>: _kfc_msg: CXl75iLYx84Q1fdRPy"
    13:02:42 "<Epoch-AH>: _kfc_get: HErmP0XwwMueM"
    13:02:42 "<Epoch-AH>: _kfc_got: LPIm80nzmPxAjapx"
    13:02:42 "<Epoch-AH>: _kfc_ban: KIj55Syp1fY7B"
    13:02:42 "<Epoch-AH>: _kfc_oef: FZ7K84i4uYkST7l2Y9"
    13:02:42 "<Epoch-AH>: _kfc_pvs: WUa8ZfjT2R"
    13:02:42 "<Epoch-AH>: _kfc_msg1: MB39H188oSYlF9SsM"
    13:02:42 "<Epoch-AH>: _kfc_gvar: IB7qv8r8ndH"
    13:02:42 "<Epoch-AH>: _kfc_init: RGDHql46qQgXwZXMv8"
    13:02:42 "<Epoch-AH>: _kfc_gtrd: WI2ncFI8hrCZ1srSJN"
    13:02:42 "<Epoch-AH>: _kfc_atrd: OLO9V2AXHZ"
    13:02:42 "<Epoch-AH>: _kfc_ntrd: EFfZhE2g32uxt6si"
    13:02:42 "<Epoch-AH>: _kfc_akey: TLFASCc4C"
    13:02:42 "<Epoch-AH>: _kfc_strd: XSCVVib6S4Z6"
    13:02:42 "<Epoch-AH>: _kfc_info: WVGgdtDN80QQf"
    13:02:42 "<Epoch-AH>: _kfc_pveh: BCnkHHJMW8Y6o"
    13:02:42 "<Epoch-AH>: _kfc_keys: YGQu932pRBk1CObC"
    13:02:42 "<Epoch-AH>: _kfc_gclnt: EZvHLA3RapZLI"
    13:02:42 "<Epoch-AH>: _kfc_sclnt: SQ087LaQ039"
    13:02:42 "<Epoch-AH>: _kfc_nclnt: TT489eU4DaVV"
    13:02:42 "<Epoch-AH>: _kfc_rekey: LOs23MTqrdq6Gc7cfgx"
    13:02:42 "<Epoch-AH>: _kfc_atrd_cfg: BMF3BeerA1846QpSl"
    13:02:42 "<Epoch-AH>: _kfc_strd_cfg: DBa0eVynLydc4gf99"
    13:02:42 "<Epoch-AH>: Global client compiled successfully"
    13:02:42 "<Epoch-AH>: Normal client compiled successfully"
    13:02:42 "<Epoch-AH>: Staff client compiled successfully"
    13:02:42 "<Epoch-AH>: SERVER: Created 156 safe zone bubbles"
    13:02:42 "<Epoch-AH>: Server code compiled successfully"
    13:02:42 "<Epoch-AH>: Epoch Antihack/Admin Tools Initialized"
    13:02:42 "<Epoch-AH>: SERVER: Processing mission files..."
    13:02:57 "<Epoch-AH>: SERVER: Mission files processed successfully"
    13:02:59 "HIVE: Starting"
    13:02:59 "HIVE: trying to get objects"
    13:02:59 "HIVE: found 300 objects"
    13:02:59 "HIVE: Request sent"
    13:02:59 "HIVE: Streamed 300 Objects."
    13:03:00 "Res3tting B!S effects..."
    13:03:00 Old style reload used in bin\config.bin/CfgVehicles/T810A_PKT_ACR_DZ/AnimationSources/
    13:03:05 "HIVE: Streamed 0 Objects and 300 Vehicles."
    13:03:05 "HIVE: BENCHMARK - Server_monitor.sqf finished streaming 300 objects in 5.645 seconds (unscheduled)"
    13:03:05 "Total Number of spawn locations 6"
    13:03:15 "<Epoch-AH>: bin laden (76561198117498517): Connected to the server"
    13:03:15 "CLEANUP: INITIALIZING Vehicle SCRIPT"
    13:03:15 Weather Forecast: Overcast: 0.255078, Fog: 0.13592, Rain: 0, WindX: -0.978436, WindY: -1.57101, Snow: 0, Blizzard: false, Change Time: 1455.35
    13:03:15 "Static Summer Weather Enabled"
    13:03:15 "HIVE: Vehicle Spawn limit reached!"
    13:03:15 "HIVE: Spawning # of Debris: 500"
    13:03:16 "<Epoch-AH>: SERVER: Staff client sent to bin laden (76561198117498517)"
    13:03:16 "INFO - Player: PID#3(bin laden)(UID:76561198117498517/CID:1) Status: LOGGING IN"
    13:03:20 "INFO - Player: PID#3(bin laden)(UID:76561198117498517/CID:1) Status: LOGIN PUBLISHING, Location Prigorodki [077122]"
    13:03:55 "HIVE: Spawning # of Ammo Boxes: 3"
    13:03:55 "HIVE: Spawning # of Veins: 50"
    13:03:56 "HIVE: BENCHMARK - Server finished spawning 0 DynamicVehicles, 500 Debris, 3 SupplyCrates and 50 MineVeins in 51.252 seconds (scheduled)"
    13:04:24 "<Epoch-AH>: SERVER: FPS: 45 | AI: 0 | Players: 1 | Uptime: 04:35:15"
    13:05:11 "INFO: OnPlayerDisconnect exiting. Player is near respawn_west. This is normal after death. ["76561198117498517","bin laden"]"
    13:05:11 "<Epoch-AH>: bin laden (76561198117498517): Disconnected from the server"
    13:05:11 Client: Remote object 3:5 not found

    ---

    server.log 
    ---
    13:02:32 Host identity created.
    13:02:32 Game Port: 2302, Steam Query Port: 2303
    13:02:36 bin laden uses modified data file
    13:02:36 Player bin laden connecting.
    13:02:36 Mission DayZ Epoch Chernarus read from directory.
    13:02:37 Player bin laden connected (id=76561198117498517).
    13:02:39 Roles assigned.
    13:02:39 Reading mission ...
    13:02:42 Mission read.
    13:03:15 Game started.

    ---

     

    hive log 

    ---

    2021-12-30 13:02:59 HiveExt: [Information] HiveExt 
    2021-12-30 13:02:59 Database: [Information] Connected to MySQL database localhost:3306/dayz_epoch client ver: 5.7.20 server ver: 5.5.5-10.4.22-MariaDB
    2021-12-30 13:02:59 Database: [Information] Connected to MySQL database localhost:3306/dayz_epoch client ver: 5.7.20 server ver: 5.5.5-10.4.22-MariaDB
    2021-12-30 13:02:59 HiveExt: [Information] Method: 302 Params: 11:false:
    2021-12-30 13:02:59 HiveExt: [Information] Result: ["ObjectStreamStart",300,"a2a5f2becd686096642bc8e72cbeab99"]
    2021-12-30 13:02:59 HiveExt: [Information] Method: 302 Params: 11:false:
    2021-12-30 13:02:59 HiveExt: [Information] Result: "ObjectDataa2a5f2becd686096642bc8e72cbeab99.sqf"
    2021-12-30 13:02:59 HiveExt: [Information] Method: 302 Params: ObjectData9241e8a76dbf88eae98c5eac794be78d.sqf:false:
    2021-12-30 13:02:59 HiveExt: [Information] Result: ["NOTICE","ObjectData9241e8a76dbf88eae98c5eac794be78d.sqf has been deleted"]
    2021-12-30 13:03:16 HiveExt: [Information] Method: 101 Params: 76561198117498517:11:bin laden:
    2021-12-30 13:03:16 HiveExt: [Information] Result: ["PASS",false,"1",[],[[],[]],["",[],[]],[82,93,93,0],0,"Survivor2_DZ",[],0,0,0.97]
    2021-12-30 13:03:16 HiveExt: [Information] Method: 103 Params: 76561198117498517:1:2:
    2021-12-30 13:03:16 HiveExt: [Information] Result: ["PASS"]
    2021-12-30 13:03:20 HiveExt: [Information] Method: 102 Params: 1:
    2021-12-30 13:03:20 HiveExt: [Information] Result: ["PASS",[],[0,0,0,0],[],[],2500,11]
    2021-12-30 13:03:20 HiveExt: [Information] Method: 103 Params: 76561198117498517:1:1:
    2021-12-30 13:03:20 HiveExt: [Information] Result: ["PASS"]
     

    ---

     

    tried disabling BE , BE filters, etc.. 

    can join the vanilla server before adding the antihack fine, but cant join after installing following the instructions on github
     

    Untitled.png

     

     

    edit: running the server in a VM (so "not" on the same computer) fixed the problem, yay i guess...

    Glad this was resolved

  4. On 8/14/2021 at 4:24 PM, Killmore said:

    Godmode is switched on and green DZAI and WAI are default after shooting me quite a few times it knocks me to the ground into a knocked out animation  and I can't do anything but I can see my character laid out on the ground but it doesn't get killed just incapacitated I have no control over the character at all cant heal it from the admin panel even when I tp away it is still in a knocked out animation I have to go to lobby and back and re-join the game it is installed correctly and no errors in server or client RPT everything else is working fine no issues but this has been an issue for me for some reason

    Please disable DZAI and confirm that the issue with god mode persists with WAI only.

  5. 23 hours ago, Brick said:

    Good day sir.  First I have to say that this is by far one of the best mods I've ever seen for A2 and surpasses other AH mods.  Overall i have no bugs, but I do have something i cant quite figure out and I don't know if its a fat finger or something else. 

    The issue is when an owner logs in it is remembering his pass settings such as, god mod, infinite ammo, and a couple other settings.  However it only remembers certain ones.  So for example each time he logs in he has to click invisible each time for example, but all the others will be turned on.  So before I started to dig in I wanted to see if the experts could guide me in the right direction if there is a particular setting for this.

    This is because the configuration has been cached. Please turn them all off, and then double click "Cache Toggle Configuration" - this will cache them turned off, meaning that when you log in they will not turn on. To make others turn on when logging in, turn them on and double click the "Cache Toggle Configuration" again.

  6. 14 hours ago, bumnutz72 said:

    Hi BigEgg,

    First of all I would like to say thanks for these tools they are really nice, but I am getting a error in my RPT:

    16:39:37 Error in expression <!= "ARRAY") then {_name = [_name]};
    if (_noad != "") then {(_sorted select 8) se>
    16:39:37   Error position: <_noad != "") then {(_sorted select 8) se>
    16:39:37   Error Undefined variable in expression: _noad
    16:39:37 File z\addons\dayz_server\antihack\antihack.sqf, line 40
    16:39:37 Error in expression <!= "ARRAY") then {_name = [_name]};
    if (_noad != "") then {(_sorted select 8) se>
    16:39:37   Error position: <_noad != "") then {(_sorted select 8) se>
    16:39:37   Error Undefined variable in expression: _noad
    16:39:37 File z\addons\dayz_server\antihack\antihack.sqf, line 40
    16:39:37 Error in expression <!= "ARRAY") then {_name = [_name]};
    if (_noad != "") then {(_sorted select 8) se>
    16:39:37   Error position: <_noad != "") then {(_sorted select 8) se>
    16:39:37   Error Undefined variable in expression: _noad
    16:39:37 File z\addons\dayz_server\antihack\antihack.sqf, line 40
    16:39:37 Error in expression <!= "ARRAY") then {_name = [_name]};
    if (_noad != "") then {(_sorted select 8) se>
    16:39:37   Error position: <_noad != "") then {(_sorted select 8) se>
    16:39:37   Error Undefined variable in expression: _noad
    16:39:37 File z\addons\dayz_server\antihack\antihack.sqf, line 40
    16:39:37 "Admins sorted successfully"

    I have installed the latest version, but I get this error, any help would be appreciated :)

     

    Make sure you have updated your admin configurations, as there was a new option added.

  7. 9 minutes ago, Vladick said:

    Hi there,

    Just wanted to report some weirdness happening with the vote day/night function in this mod. It seems that after a vote for day or night, when a player gets killed or disconnects when they relog it's different from what it was before but just for that player. So it's night for some players and day for others. I have confirmed this by using two accounts on two different PCs at one time. While it's day on one account, it's night on the other. BTW, I have my server set to -11 GMT if that makes any difference. I used to just have it set to 24/7 day but some players are wanting some nigh time play so I changed it.

    Any idea what the problem could be here or Is there some other config I need to change to make this work as expected?

    Thanks for your help!

    Vlad

    Please update to the latest version of the antihack (v1.0.1)

  8. On 5/5/2021 at 11:51 AM, looter809 said:

    I'm sure I have both .dll files in my server root. I also have now tried on three separate systems and all of them are no luck. I have also tried not using the folder directory and still no. 

    Any other ideas?

    I've tried a fresh install and following the instructions word for word and still nothing. On your testing, are you using the API login or just the default?

    I am certain this has to be an issue with you not having one of the required DLLs.

  9. On 4/28/2021 at 5:19 PM, Voltan said:

    I have updated my Antihack to the latest version and am getting this error in my .rpt:

    
    8:11:25 "<Epoch-AH>: any"
     8:11:25 Error in expression < {
    			diag_log format['<Epoch-AH>: %1', _log];
    		} else {
    			if (_opt == 1) then>
     8:11:25   Error position: <_log];
    		} else {
    			if (_opt == 1) then>
     8:11:25   Error Undefined variable in expression: _log
     8:11:25 Error in expression <s, format['%1: %2', call AH_fnc_uptime, _log]];
    					'Death'
    				};
    			};
    			'An>
     8:11:25   Error position: <_log]];
    					'Death'
    				};
    			};
    			'An>
     8:11:25   Error Undefined variable in expression: _log
     8:11:25 Error in expression <lExtension format['Log|%1|%2%3', _type, _log, format[' | Uptime: %1 Map: %2-%3',>
     8:11:25   Error position: <_log, format[' | Uptime: %1 Map: %2-%3',>
     8:11:25   Error Undefined variable in expression: _log
     8:11:25 Error in expression <= ''; local _puid = '';
    		if (typeName _log == 'ARRAY') then {_log = toString _>
     8:11:25   Error position: <_log == 'ARRAY') then {_log = toString _>
     8:11:25   Error Undefined variable in expression: _log
     8:11:25 Error in expression <!= 'unknown'}) then {
    				local _type = _param select 0;
    				if (_type == 'kill>
     8:11:25   Error position: <_param select 0;
    				if (_type == 'kill>
     8:11:25   Error Undefined variable in expression: _param

    It doesn't seem to be breaking my server, but any ideas?

    Please update your antihack.sqf and your config.sqf to the latest one on the github repository

  10. On 4/28/2021 at 11:47 AM, looter809 said:

    Server is on my local machine (windows 10). I haven't made any changes to permissions. Test server is setup on my E drive (not network attached) with the DZE_Server_Config folder outside the root of the epoch server for security (or so I'm told). This is my .ini file, but even beofre adding "antihack-logs\" before the log file locations it still didn't work. 

    
    # Logging system (log-LogName=LogPath) - paths can be relative or exact
    [Log]
    # {0} = date, {1} = message
    logformat={0} | {1}
    filedate=dd-MM-yyyy
    logdate=d/M/yyyy h:mm:ss tt
    
    log-Admin=antihack-logs\Admin.log
    log-Hack=antihack-logs\Hack.log
    log-SafeZone=antihack-logs\SafeZone.log
    log-Trader=antihack-logs\Trader.log
    log-Lock-Unlock=antihack-logs\Lock-Unlock.log
    log-Maintenance=antihack-logs\Maintenance.log
    log-Player=antihack-logs\Player.log
    log-Surveillance=antihack-logs\Surveillance.log
    log-New-Player=antihack-logs\New Players.log
    log-Death=antihack-logs\Deaths.log
    
    # Path to your bans.txt file - all AH bans will be added here
    [Ban]
    file="E:\Epoch Server 1.0.7\DZE_Server_Config\BattlEye\bans.txt"
    defaultreason=AH Auto-Ban ID: VOID
    
    # Global ban API login information - see installation instructions
    [API]
    [email protected]
    password=password

    (Note: "Epoch Server 1.0.7" is not the root of my server)

    I'm lost on what I could be doing wrong. Are other people not having any issues with the log system? 

     

    Edit: I will add that I was previously using infistar with it's .dll log file and it worked just fine (and before you ask, I did remove the infistar .dll file and the infistar files/folder).

    Hello, I tried to reproduce and I believe you have not also installed the Newtonsoft.Json.dll file. You need both the Antihack.dll and the Newtonsoft.Json.dll in your server's root directory.

     

    I will add this explicitly to the install instructions

     

    EDIT: This step is already in the instructions

  11. On 4/28/2021 at 8:48 PM, looter809 said:

    I'm getting this error at line 40 too but not your _log and _param errors.

    _noad is being initialized so I'm not sure why we are getting that error.

    On 4/28/2021 at 5:34 PM, Voltan said:

    And this error:

     

    Please update your config.sqf to the latest version as I added a new admin parameter

     

     

  12. On 4/28/2021 at 11:47 AM, looter809 said:

    Server is on my local machine (windows 10). I haven't made any changes to permissions. Test server is setup on my E drive (not network attached) with the DZE_Server_Config folder outside the root of the epoch server for security (or so I'm told). This is my .ini file, but even beofre adding "antihack-logs\" before the log file locations it still didn't work. 

    
    # Logging system (log-LogName=LogPath) - paths can be relative or exact
    [Log]
    # {0} = date, {1} = message
    logformat={0} | {1}
    filedate=dd-MM-yyyy
    logdate=d/M/yyyy h:mm:ss tt
    
    log-Admin=antihack-logs\Admin.log
    log-Hack=antihack-logs\Hack.log
    log-SafeZone=antihack-logs\SafeZone.log
    log-Trader=antihack-logs\Trader.log
    log-Lock-Unlock=antihack-logs\Lock-Unlock.log
    log-Maintenance=antihack-logs\Maintenance.log
    log-Player=antihack-logs\Player.log
    log-Surveillance=antihack-logs\Surveillance.log
    log-New-Player=antihack-logs\New Players.log
    log-Death=antihack-logs\Deaths.log
    
    # Path to your bans.txt file - all AH bans will be added here
    [Ban]
    file="E:\Epoch Server 1.0.7\DZE_Server_Config\BattlEye\bans.txt"
    defaultreason=AH Auto-Ban ID: VOID
    
    # Global ban API login information - see installation instructions
    [API]
    [email protected]
    password=password

    (Note: "Epoch Server 1.0.7" is not the root of my server)

    I'm lost on what I could be doing wrong. Are other people not having any issues with the log system? 

     

    Edit: I will add that I was previously using infistar with it's .dll log file and it worked just fine (and before you ask, I did remove the infistar .dll file and the infistar files/folder).

    Please try it without the folder path (you may not have perms to make a folder on the system)

  13. 20 hours ago, looter809 said:

    The 2 .dll files and the .ini are in the root of the server. I've so far only tried on my local test server as I try to fix the issues I'm running into. The only instruction I haven't followed yet is doing the autoloadbans = true part because my test server isn't running BEC.

    I was also getting kicked on my non-admin account for BE script restriction:

    
     #14 ""htmlzV4","htrukilojhkukvh","hub","HumanityVal","i","I_love_rustler_and_jet","i_t_s__m_e_o","iaimon","iammox","iBeFlying","idont"

    As well as:

    
    #127 "' addPublicVariableEventHandler {AN4v77AmbedE5k545X = nil; [toString(_this select 1), 2] call MDl7POcLw53vERA8uo8};
    
    	FSKG2jzdQT"

    I can fix the BE issues myself, but I was just curious if there was already a list of BE restrictions to allow.

    There is no current list of BE filters to allow.

    Is the storage for your server network attached or do you know for certain if the folder structure has the correct permissions for file writing?

  14. On 4/25/2021 at 5:55 PM, looter809 said:

    Hey BigEgg, love all the work you have done.

    My logs don't seem to be writing to file, do I need the API for this to work or do you think I installed it wrong?

    I was also wondering if you have a list of BattlEye scripts to add

    Make sure the DLL is in the root of the server folder, and no you do not need the API.

    Is your server hosted?

  15. Hello everyone,

     

    Here is the public release of my Antihack / Admin tools. Both myself and Movinggun put a lot of work into this, so I hope you all can benefit. The culmination of my time spent on this game went into this, and I hope you all enjoy it just as much as I did.

    Unfortunately due to time, I will not be able to actively add to this project, but I will always be around to approve pull requests. This project can easily live on through the community, and I hope you all the enjoy the complexity of everything involved with it.

     

    The repository that contains install instructions can be found here:

    https://github.com/BigEgg17/Epoch-Antihack-Admin-Tools

     

    I will add source code for the DLL as soon as it is received from Movinggun, along with the source for the executable file.

    I will also create an official release on the Github as soon as everything is successfully converted for compatibility with 1.0.7.

     

    Best wishes to the community, I look forward to applying all changes desired, and to answering any questions members may have.

     

    It's been a blast and I will never forget some of the memories and friends made on this game.

     

    - BigEgg

  16. On 11/6/2018 at 4:01 PM, Sandbird said:

    Hi Biggy, 
    Yeah i know that. Maybe a better example would be the server_monitor.sqf (here).
    The problem is that you have to call compile the result and then select the array (the select 1 select 0 part). While what you said is true..the select part always breaks in the server_monitor because the varchar entries come back as strings even though they are as arrays in the database. So i would have to do what you said almost everywhere for every single varchar entry that comes from the database....which of course is tedious and not to mention crazy :) There has to be an easier way to 'tell' extdb3 how to treat the outcome of the query...like it does with non-async calls. Premade queries have that option (look here), but since i dont want to rewrite every single query as a prepared statement (some people might wanna write their own sql queries for their own crazy mod ideas) having a robust 'hive_write', instead of 20 different queries helps a lot to that end. Arma2Net wasnt like that...i remember having the same problem with Arma2net at some point..but adding the queries inside double quotes for some reason negated that effect.

    I contacted the author of arma2net about the battleye block, and he sent a request to them to add it to their exception list. Hopefully we'll be able to return to A2Net at some point.

    Can you paste an example result? I know that for example, when you retrieve a number, it will come back as a string and you can call compile it. However, I am not understanding what the issue is with the arrays. I see you are call compiling it even after you have removed the " from the return.

    The KRON function is returning a string, which is why I see you call compiling it. But my question is, why do we need the KRON function? It looks like it is doing the exact same thing the call compile below it will do.

    If the first result from the database is:

    _result = "[blah,blah]";

    _result = call compile _result;

    _var = _result select 0; - this should now equal blah without error.

    Now, if what you meant above was something like this:

    _result = "['[array1]', '[array2]']";

    I would see the purpose in the KRON function.

    Let me know what I am not understanding correctly.

  17. On 10/24/2018 at 4:13 PM, Sandbird said:

    I had to use some very shameful ways to fix values coming from the database (varchar values) that were coming back inside quotes (ie: "[blah, blah]"   when it should come back as [blah, blah]).
    You can see my trickery inside \dayz_server\compile\server_publishVehicle2.sqf  line 46. I am manually removing the quotes and convert the string back to a proper arma array.

    If anyone knows how to properly tell extDB3 to return these values as arrays and not strings feel free to share it cause every time i see that ugly code i am pulling my hair :P

    You only need this line (line 48):

    _result = call compile _result;

     

    If _result is "[blah,blah]", the above line will return the following:

    _result = [blah,blah];

    Call compile removes the string.

  18. The script is likely failing because you cannot take a distance from a classname.

    I have written up a quick script for this below, please try it out and let me know how it works :)

    private ["_noAI", "_noZeds"];
    
    _noAI = true; // Remove AI within plot radius (true = enabled, false = disabled).
    _noZeds = true; // Remove zombies within plot radius (true = enabled, false = disabled).
    
    while {69 == 69} do {
    	private "_plots";
    
    	_plots = player nearEntities ["Plastic_Pole_EP1_DZ", DZE_PlotPole select 0];
    
    	if (count _plots > 0) then {
    		private "_plot";
    
    		_plot = _plots select 0;
    
    		if (_noZeds) then {
    			{deleteVehicle _x} count (_plot nearEntities ["zZombie_Base", DZE_PlotPole select 0]);
    		};
    
    		if (_noAI) then {
    			{
    				if (!isPlayer _x && {_x distance _plot <= (DZE_PlotPole select 0)}) then {_x setDamage 1};
    			} count allUnits;
    		};
    	};
    	uiSleep 5;
    };

    Just name it whatever you would like, then call it from the !isDedicated section of the init.sqf, down at the bottom:

    if (!isDedicated) then {
        // CODE FROM INIT HERE
        execVM "FILENAMEHERE.sqf";
    };

     

×
×
  • Create New...