Jump to content
Zupa

[Tool][Realease 1.0] ZupaStats

Recommended Posts

Got it working, amazing app, perfect use for angular well done! If you're taking feedback, I was thinking that some people might not want the uid show/linking to the player profile. Is there anyway for me to easily change this so that the player name is the link with no uid shown? 

 

Only just reading into angular but my idea is that I can create <a> on the player name with the ng-click? (basic idea)

Share this post


Link to post
Share on other sites

Got it working, amazing app, perfect use for angular well done! If you're taking feedback, I was thinking that some people might not want the uid show/linking to the player profile. Is there anyway for me to easily change this so that the player name is the link with no uid shown? 

 

Only just reading into angular but my idea is that I can create <a> on the player name with the ng-click? (basic idea)

 

Ya thats how it's currently build, What u can do easely is go into the player.html and just make the file empty or place a text "Not available on our server". If the profile loads then it just displays that.

If u don't want to PUID to display then go into the html pages where it is showed, the variable is called .puid ^^

 

I'll make some config options for next version.

Share this post


Link to post
Share on other sites

Any suggestions regarding the error logs I mentioned Zupa?

 

Here's the PHP info for my website. Maybe there's something in there that you would notice that indicate a problem? http://gator4148.hostgator.com/~killinze/phpinfo.php

 

http://killinzedz.net/ZupaStats/server/getNoLogDeathLogs.php?date=1423693348112

 

the redis connection gets refused by your server

Share this post


Link to post
Share on other sites

Ya thats how it's currently build, What u can do easely is go into the player.html and just make the file empty or place a text "Not available on our server". If the profile loads then it just displays that.

If u don't want to PUID to display then go into the html pages where it is showed, the variable is called .puid ^^

 

I'll make some config options for next version.

Thanks i'll give it a go, config options would be a great addition. Keep up the good work :)

Share this post


Link to post
Share on other sites

http://killinzedz.net/ZupaStats/server/getNoLogDeathLogs.php?date=1423693348112

 

the redis connection gets refused by your server

 

So the Redis server is refusing the connection from my webserver? I've already put in a ticket to Very Hosting asking about this because I can connect with the desktop tool, so I see no reason why my webserver shouldn't be able to connect.

Share this post


Link to post
Share on other sites

So the Redis server is refusing the connection from my webserver? I've already put in a ticket to Very Hosting asking about this because I can connect with the desktop tool, so I see no reason why my webserver shouldn't be able to connect.

 

Ahm im not an expert on that field but:

 

1) Is your redis port correctly in the php? cus 2406 is a weird one imo ^^

 

is there maybe whitelisting of ip's on the redis?

Share this post


Link to post
Share on other sites

Ahm im not an expert on that field but:

 

1) Is your redis port correctly in the php? cus 2406 is a weird one imo ^^

 

is there maybe whitelisting of ip's on the redis?

 

The port is correct. It's the same port I use for the Redis desktop tool and I don't believe there's a whitelist because Vert Hosting enabled remote connections to the database so I could use the desktop tool and they did not request my IP. I am still waiting for them to reply to my ticket.

Share this post


Link to post
Share on other sites

 

Or change it to this, to get more error logs

<?php
header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');

error_reporting(-1);
ini_set('display_errors', 'On');

 

Hello, i try to install you're awesome work :D but i have no data on my website and when i change getNoLogDeathLogs.php with this code i obtain :

 

Notice: Trying to get property of non-object in C:\xampp\htdocs\ozi-epoch\server\getNoLogDeathLogs.php on line 11 

 

Any idea ? 

My database is on the same server as my arma server on a xampp tools.

 

Thx ! 

Share this post


Link to post
Share on other sites

Hello, i try to install you're awesome work :D but i have no data on my website and when i change getNoLogDeathLogs.php with this code i obtain :

 

Notice: Trying to get property of non-object in C:\xampp\htdocs\ozi-epoch\server\getNoLogDeathLogs.php on line 11 

 

Any idea ? 

My database is on the same server as my arma server on a xampp tools.

 

Thx ! 

 

u edited the config correctly?

Share this post


Link to post
Share on other sites

u edited the config correctly?

 

i think so my conf.php : 

 

<?php
 
$myRedisPass = "mypassword";
$myRedisPort = 6379;
$myRedisHost = '127.0.0.1';
 
$serverlist = '[
{"community":"Ozi-Lan","name": "Ozi-Lan Epoch Server", "dbi": "0", "map":"altis","descr": "EpochMod |Altis |Mission & Ai City |Extra loot | Safe Base| JSRS3"}
 
 
 
 
 
 
]';
 
/*
 * Fill in the config correctly. If redis is on another ip change this aswell and see that redis accepts externall connections than.
 *
 * To add servers look at the example. DBI = database nummer
 * NO COMMA behind the last server
 */
 
 
?>
 
my redis conf in EPOCH : 
 
[Redis]
IP = 127.0.0.1
Port = 6379
DB = 0
Password = mypassword

Share this post


Link to post
Share on other sites

 

<?php

header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');
 
error_reporting(-1);
ini_set('display_errors', 'On');
 
$postdata = file_get_contents("php://input");
$request = json_decode($postdata);
 
$db = $request -> db; <- Line 11
 
require 'Predis/Autoloader.php';
 
require 'config.php';
 

 

the db request :( 

 

$db = $request -> db;

Share this post


Link to post
Share on other sites
<?php
header('Access-Control-Allow-Origin: *');
ini_set('memory_limit', '-1');

error_reporting(-1);
ini_set('display_errors', 'On');

$postdata = file_get_contents("php://input");
$request = json_decode($postdata);

$db = $request -> db;

require 'Predis/Autoloader.php';

require 'config.php';

Predis\Autoloader::register();

$client = new Predis\Client([
    'host'   => $myRedisHost,
    'password' => $myRedisPass,
	'port' => $myRedisPort,
	'database' => $db
]);

$deathlogs  = $client-> llen('deathlog-LOG');
$deathlogs2 = $client-> lrange('deathlog-LOG', 0, $deathlogs);

$dl = [];

foreach($deathlogs2  as  $log){

    $result = [];

    $exploded = explode(" ",$log,3);

    $result['time'] = $exploded[0] . " " . $exploded[1];

    $exploded2 = explode("(",$exploded[2],2);

    $result['killername'] = trim($exploded2[0]);

    $exploded3 = explode(")",$exploded2[1],2);

    $result['killerpuid'] = trim($exploded3[0]);

    $exploded3[1] = str_replace(" killed ","",$exploded3[1]);

    $exploded4 = explode("(",$exploded3[1],2);

    $result['killedname'] = trim($exploded4[0]);

    $exploded5 = explode(")",$exploded4[1],2);

    $result['killedpuid'] = trim($exploded5[0]);

    $exploded5[1] = str_replace(" with weapon","",$exploded5[1]);

    $result['weapon'] = trim($exploded5[1]);

    array_push($dl,$result);
}


echo json_encode($dl);

getNoLogDeathLogs.php

 

Thx :)

Share this post


Link to post
Share on other sites

humm it's seems working but i have no information on my board :/ i will wait the next restart :)

 

Thx for your support and your awesome work ! i'll back later with the result ;)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By JakeQue
      Hi,
       
      I've recently tried to edit the spawn select mod and everytime a player dies, I get the message displayed twice      Bob was Killed     Bob was killed.
      When the player respawns the spawn select isn't there and I spawn into worldspace with the same items as when I died and 2 of my old bodies on the floor.
      Any help would be appreciated.
      arma2oaserver.RPT :
      if (isServer) > 16:01:43 Error Undefined variable in expression: dze_deployables_config 16:01:43 File mpmissions\DayZ_Epoch_11.Chernarus\addons\bike\init.sqf, line 35 16:01:43 "Loading custom server compiles" 16:01:44 "HIVE: Starting" 16:01:44 ["TIME SYNC: Local Time set to:",[2012,8,2,13,1],"Fullmoon:",true,"Date given by HiveExt.dll:",[2017,5,25,13,1]] 16:01:44 "HIVE: trying to get objects" 16:01:44 "HIVE: found 6 objects" 16:01:44 "HIVE: Request sent" 16:01:44 "HIVE: Streamed 6 objects" 16:01:44 "Res3tting B!S effects..." 16:01:44 "HIVE: BENCHMARK - Server_monitor.sqf finished streaming 6 objects in 0.169983 seconds (unscheduled)" 16:01:44 "Total Number of spawn locations 6" 16:01:44 "[DZAI] Initializing DZAI version 2.2.1 Release Build 20141208 using base path z\addons\dayz_server\DZAI." 16:01:44 "[DZAI] Reading DZAI configuration file." 16:01:44 "[DZAI] DZAI configuration file loaded." 16:01:44 "[DZAI] Compiling DZAI functions." 16:01:44 "[DZAI] DZAI functions compiled." 16:01:45 "[DZAI] Epoch classnames loaded." 16:01:45 "[DZAI] DZAI settings: Debug Level: 0. DebugMarkers: false. WorldName: chernarus. ModName: epoch (Ver: dayz epoch 1.0.6.1). DZAI_dynamicWeaponList: true. VerifyTables: true." 16:01:45 "[DZAI] AI spawn settings: Static: false. Dynamic: false. Random: false. Air: false. Land: false." 16:01:45 "[DZAI] AI settings: DZAI_findKiller: false. DZAI_useHealthSystem: false. DZAI_weaponNoise: false. DZAI_zombieEnemy: true." 16:01:45 "[DZAI] DZAI loading completed in 0.240997 seconds." 16:01:45 "SERVER FPS: 43 PLAYERS: 1" 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [8818.56,6352.77,0] with 9 items." 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [9552.11,11592.5,0] with 8 items." 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [7750.49,8778.34,0] with 7 items." 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net1) at [7200.35,5241.69,0] with 5 items." 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [2672.79,6926.47,0] with 7 items." 16:01:45 "DEBUG: Spawning a care package (Misc_cargo_cont_net2) at [6771.79,10043.7,0] with 8 items." 16:01:45 "CRASHSPAWNER: Starting crash site spawner. Frequency: 25±20 min. Spawn chance: 0.75" 16:01:45 "CRASHSPAWNER: Spawning crash site (CrashSite_RU) at [3029.85,11950.4,0] with 6 items." 16:01:46 Strange convex component93 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component94 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component95 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component96 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component99 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component100 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component101 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component102 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component103 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component104 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component105 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component106 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component107 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component108 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component109 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component110 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component111 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component112 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component113 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component114 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component115 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component116 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component117 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component118 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component119 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component120 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component121 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component122 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component123 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component124 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component125 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component126 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component127 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component128 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component129 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component130 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component131 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component132 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component133 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:46 Strange convex component134 in zero_buildings\models\mil_house_i.p3d:geometryView 16:01:55 "HIVE: Vehicle Spawn limit reached!" 16:01:55 "HIVE: Spawning # of Debris: 1" 16:01:56 "HIVE: Spawning # of Ammo Boxes: 3" 16:01:56 "HIVE: Spawning # of Veins: 50" 16:01:57 "HIVE: BENCHMARK - Server finished spawning 0 DynamicVehicles, 1 Debris, 3 SupplyCrates and 50 MineVeins in 11.527 seconds (scheduled)" 16:01:57 "EPOCH EVENTS INIT" 16:01:59 Error in expression <0012207031]; }; _group_8 = createGroup _center_0; _vehicle_627 = objNull; if (> 16:01:59 Error position: <_center_0; _vehicle_627 = objNull; if (> 16:01:59 Error Undefined variable in expression: _center_0 16:01:59 File mpmissions\DayZ_Epoch_11.Chernarus\bsb_updates\bsb_chernarus_plus_v2.sqf, line 3808 16:01:59 Warning Message: Script z\addons\dayz_server\WAI\customsettings.sqf not found 16:01:59 "WAI: AI Config File Loaded" 16:01:59 "WAI: AI Monitor Started" 16:01:59 "WAI: Initialising missions" 16:02:01 "[DZAI] Verified 156 unique classnames in 1.47101 seconds." 16:02:01 "CLEANUP: INITIALIZING Vehicle SCRIPT" 16:02:01 ["z\addons\dayz_server\system\scheduler\sched_sync.sqf","TIME SYNC: Local Time set to:",[2012,8,2,13,2],"Fullmoon:",true,"Date given by HiveExt.dll:",[2017,5,25,13,2]] 16:02:06 "infiSTAR.de - Player-Log: JakeQue(76561198133333192) - 0h 00min | ******ADMIN******" 16:02:09 "Chernarus static spawn configuration loaded." 16:02:09 "INFO - Player: PID#3(JakeQue)(UID:76561198133333192/CID:95) Status: LOGGING IN" 16:02:10 Server: Object 3:8 not found (message 99) 16:02:10 Server: Object 3:6 not found (message 98) 16:02:10 Server: Object 3:7 not found (message 91) 16:02:10 Server: Object 3:9 not found (message 91) 16:02:10 "INFO - Player: PID#3(JakeQue)(UID:76561198133333192/CID:95) Status: LOGIN PUBLISHING, Location Drakon [108129]" 16:02:10 "INFO: Cannot Sync Character JakeQue near respawn_west [-18700,25800,0.00149536]. This is normal when relogging or changing clothes." 16:02:10 "infiSTAR.de fnc_AdminFirstReq: [1234,B 1-1-C:1 (JakeQue) REMOTE,"76561198133333192"]" 16:02:10 "infiSTAR.de ******ADMIN-LOGIN******: JakeQue(76561198133333192)" 16:02:10 "infiSTAR.de fnc_AdminReqProceed: [1234,B 1-1-C:1 (JakeQue) REMOTE,"76561198133333192"]" 16:02:10 "INFO - Player: JakeQue(UID:76561198133333192/CID:95) Status: CLIENT LOADED & PLAYING" 16:02:37 "infiSTAR.de fnc_AdminFirstReq: [4,B 1-1-C:1 (JakeQue) REMOTE,B 1-1-C:1 (JakeQue) REMOTE]" 16:02:37 "infiSTAR.de fnc_AdminReqProceed: [4,B 1-1-C:1 (JakeQue) REMOTE,B 1-1-C:1 (JakeQue) REMOTE]" 16:02:37 "infiSTAR.de PVAH_WriteLog: B 1-1-C:1 (JakeQue) REMOTE JakeQue Adminkilled JakeQue" 16:02:37 "PLAYERDEATH: Player Died 76561198133333192" 16:02:49 "INFO: OnPlayerDisconnect exiting. Player is near respawn_west. This is normal after death. ["76561198133333192","JakeQue"]" 16:02:49 Warning: Cleanup player - person 3:19 not found 16:03:30 "INFO - Player: PID#3(JakeQue)(UID:76561198133333192/CID:95) Status: LOGGING IN" 16:03:30 Server: Object 3:28 not found (message 99) 16:03:30 Server: Object 3:26 not found (message 98)  
    • By nova
      Hello. I was wondering if there is a way to get a coins menu in the admin panel. If for some reason I need to add/remove coins from a player there is no way to do so. If i could get help with this, it would be greatly appreciated. 
    • By Z80CPU
      NoKillScript – Prevents any ‘Safe Zone’ killings and damage to player’s vehicles.
      Version:  1.16

      Tested On:  ARMA 3 (should work on ARMA 2, though untested)
      Tested Modes: Single Player, Multiplayer (Dedicated Server)
      Tested Environments:  Standard ARMA SP/MP, Epoch, Exile
      Script Executor:  Client
      Script Host:  Server or Client
      Format:  script, SQS
       
      Description:
      NoKillZone (NKZ), is a script that helps put an end to the notorious ‘safe zone’ killings that plagued MP environments such as Epoch and Exile.
      Simply place a marker on your map, and then put the marker name in the scripts parameters, and that’s it!  It is a simple script to use.  Nothing fancy here.
      Once it starts, it just loops over and over checking to see if player has entered or left the mark area. Matters not if they teleport into the area, fly over it, or respawn in to it – the script will detect all players in the zone regardless how they arrived or left.
      100% client side and consumes almost no resources from the client.
      Runs till client exits the server.
      No triggers are used.
      This script is for players only, it does not detect/react to any AI units.
       
      Uses:
      To mark a ‘safe area’ where players can be safe and not have to worry about being killed by anyone.
      It is possible, if desired for example, to have player protected at 100m and then at 50m, their vehicle protected.  This is done by using 2 scripts.  One with the DISTANCE parameter set to ‘100’ and the other set to ‘50’.

      Usage:
      [MARKER,DISTANCE,TEXT-IN,TEXT-OUT,PROTECTION] exec "NoKillZone.Sqs";
      MARKER = Map marker name - In quotes
      DISTANCE = Radius of protection in meters
      TEXT-IN *  = Text to be shown via Hint when entering the zone - In quotes
      TEXT-OUT *  = Text to be shown via Hint when leaving the zone - In quotes
      PROTECTION *  = Allows you to choose protection for player or player and their vehicle.
      * = Optional parameter
      Example:
      ["CentralSZ",500,"You Have Entered The Central Safe Zone","You Have Left The Central Safe Zone",1] exec "NoKillZone.Sqs"
      Full documentation can be found in the top lines of the script.  Just open it in a text program such as NotePad++ to view.
      For servers, call script from 'INIT.SQF' and/or 'OnPlayerRespawn.Sqf'.
      For SP, you can also call it from the INIT.Sqf or you can activate it via the debug console or other means such as a radio trigger.
      Once launched, you will get a 'confirmation' message showing script is active, what zone, and if vehicle protection is active.

      Other Notes:
      While not ‘optimized’ and the ‘cleanest’ looking script, it does work and work well.  If you wish to spend one to two hours ‘optimizing’ it to save a few milliseconds, be my guest!  ;-)

      Known Issues:
      Script can be run many times for the same location (marker).
      There is no way to exit the script without the player quitting the game.
      Not all parameter errors are detected, though some are
      (The above issues are set to be addressed in the future)
       
      Video Example:  No Kill Zone Example
       
    • By DirtySanchez
      this was my original post on my website:

      We have had it running for a few weeks and it seems to be working well.
      Heals is a WIP and is reliant on finding code for healing by a multigun.
      Otherwise its in good working order and successfully tracks Kills / Deaths / Revives as well as a Hero/Bandit Rank Tracker

      There are many different things you can do with this system.

      My server already is running:
      Custom Hero / Bandit AI missions that rank change accordingly
      Custom Bandit AI roaming around in towns.
      Custom Bandit / Hero ONLY Traders with separate pricing file

      Hope all that use it enjoy it while we wait for a possible system like this integrated into Epoch.

      Since this thread on July 16th I have optimized it a lot, removing all the different variables to handle the rank change down to one variable and one handler.
      I do have to tweak the rank change system a little bit.

      https://github.com/donkeypunchepoch/DonkeyPunchQuickNDirtyStats
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...