-
Posts
90 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by FastPoint Gaming
-
-
Can I see the redis.conf for both servers?
-
<?php function uniqueUsers() { $client = new TinyRedisClient( 'localhost:6379' ); $auth = $client->AUTH( 'MYPASSWORD' ); $value = $client->KEYS( 'PLAYER:*' ); $number = count($value); for ($x = 0; $x <= $number; $x++) { //Do something in loop } } ?>
$x
Will be the total amount of players
-
For that I use GameQ.
But Player:* says 0 too.
I want the total player count that ever played on the server. I think Player is the right way, but it says 0. idk why
Because you will need to change the code to loop through each
Player:*
While counting the occurances at the same time
-
oups, forgot the ;
but it says 0
or is it just the players that are online?
I believe that the key of PLAYERS:PORT is just online, at least from my experience it's not persistant.
Another more accurate method would be to loop and count every key that matches the pattern:
Player:*
-
Parse error: syntax error, unexpected '$value' (T_VARIABLE) in C:\xampp\htdocs\index.php on line 51
Sorry add
;
to the end of the $auth line
-
sure:
bind 127.0.0.1 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass MYPASSWORD
Try this:
<?php function uniqueUsers() { $client = new TinyRedisClient( 'localhost:6379' ); $auth = $client->AUTH( 'MYPASSWORD' ); $value = $client->GET( 'PLAYERS:6379' ); $object = json_decode($value, true); $number = count($object); return $number; } $uniquePlayers = uniqueUsers(); echo $uniquePlayers; ?>
-
I use Windows Server 2008, not linux.
@FastPointGaming.com
I did this:
<?php function uniqueUsers() { $client = new TinyRedisClient( 'localhost:6379' ); $value = $client->GET( 'PLAYERS:6379' ); $object = json_decode($value, true); $number = count($object); return $number; } $uniquePlayers = uniqueUsers(); echo $uniquePlayers; ?>
and thats it. Changed nothing in TinyRedisClient.php
Can you send me the contents of your redis.conf as well?
-
If I use the uniquePlayers-function it says "NO AUTH Authentication" on line 51.
Actual error:
Fatal error: Uncaught exception 'Exception' with message 'NOAUTH Authentication required.' in C:\xampp\htdocs\TinyRedisClient.php:51
Send me your code - particualrly the TinyRedis connection line
-
Hi,
is there any possibility to work with PHP and Redis?
I want to programm a User-Control-Panel, but Redis seems very difficult to work with.
So is it as easy as it is with MySQL?
Because everytime I close Redis-Server the .dat disappears.
Cheers
Search is your friend :)
You can request code there also.
-
I can connect no problem.
-
yea u can use that ,, but hosters dont want u to know this cos they run the main TCadmin on a big server with other game servers on to save money, and may lag them out
when really they should have TCadmin on a main server by its self
Not necessarily,
Our master server only runs our TCAdmin and custom database control panel.
-
So for my server to restart every 4 hours It will be...
<!-- Restart Server --> <job id='5'> <day>1,2,3,4,5,6,7</day> <start>040000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>#shutdown</cmd> </job>
And my TCAdmin "should" start the server back up after... I will give this a try I guess :)
And I guess this: <start>040000</start> means it will shutdown after 4 hours of running and not at 4am / 4pm? Just wanted to make sure before trying :)
I believe so, and yes 040000 is 4 hours of running time.
-
Its #shutdown btw. Need the #. Ive heard success with just a #restart but I recommend shutdown. And apparently yes, tcadmin will auto start the server on shutdown AFAIK.
#restart only restarts your mission I believe. Correct me if I'm wrong
-
I'm with a hoster using TCAdmin would I need to just do...
<!-- Restart Server --> <job id='5'> <day>1,2,3,4,5,6,7</day> <start>020000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>shutdown</cmd> </job>
If I do something like <cmd>shutdown</cmd> would that shut down the server and then TCAdmin starts it again by its self or do I have to use a .bat?
I believe so, though we don't use that method as we perform other tasks along side these events
-
theres is warning alerts , the timer starts when bec logs in :P
If you are using actual times and not running time then you need to change:
<start>HHMMSS</start>
to:
<start>HH:SS:MM</start>
-
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Scheduler> <!-- Give 30 minute warning --> <job id='0'> <day>1,2,3,4,5,6,7</day> <start>013000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Server restart in 30 minutes</cmd> </job> <!-- Give 15 minute warning --> <job id='1'> <day>1,2,3,4,5,6,7</day> <start>014500</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Server restart in 15 minutes</cmd> </job> <!-- Give 10 minute warning --> <job id='2'> <day>1,2,3,4,5,6,7</day> <start>015000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Server restart in 10 minutes</cmd> </job> <!-- Give 05 minute warning --> <job id='3'> <day>1,2,3,4,5,6,7</day> <start>015500</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Server restart in 05 minutes GTFO</cmd> </job> <!-- Give 01 minute warning --> <job id='4'> <day>1,2,3,4,5,6,7</day> <start>015900</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Server restart in 01 minutes</cmd> </job> <!-- Restart Server --> <job id='5'> <day>1,2,3,4,5,6,7</day> <start>020000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>D:\RESTART_SERVER.bat</cmd> </job> </Scheduler>
-
You can use a .bat file to handle the starting of your server, then after you start the sever call a .bat file responsible for BEC.
BEC.batBEC\Bec.exe -f Config.cfg --dsc exit
START_SERVER.bat
call D:\arma2oaserver.exe -Slots=40 -port=2412 "-config=cfgdayz\config.cfg" "-cfg=cfgdayz\basic.cfg" "-profiles=cfgdayz" "-BEpath=BattlEye" -name=cfgdayz "-mod=@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;" start D:\bec.bat
-
Good to hear :)
-
From looking at your redis.conf file and your EpochServer.ini, I see the database port is
23423
But in your redis.conf you're not specifying the port therefor it will run on the default port of
6379
Try changing the redis.conf file to specify the port to match what the server is trying to connect to:
bind 37.187.158.76 port 23423 maxmemory 4gb save 900 1 save 300 10 save 60 1000 requirepass PASSWORDHERE
-
What about the instance ID, is it 100% unique?
-
Is it possible that there is another server on their network with the instance ID: Developer Test.
Also by looking at the error you sent me:
Fault address: 65798C1F 01:00017C1F C:\TCAFiles\Users\dzrealkiller\71\@EpochHive\EpochServer.dll
And the BattlEye path in your EpochServer.ini:
BattlEyePath = C:\TCAFiles\Users\dzrealkiller\77\Battleye
One has a service ID of 71 and the other of 77, is this correct?
-
This is all I have, Its strange tho It crashes every...
3am, 7am, 11am, 3pm, 7pm, 11pm, (UK Times)
4am, 8am, 12am, 4pm, 8pm, 12pm,(France Times)
Without fail.. The weird thing is we have reinstalled the whole server fresh.. and it still do it. Its only my server tho..
The below crash is 4pm France Time.. My server Is In France... just thought this little comment could help.. I dunno :(
Mods: @EpochHive
Distribution: 0
Version 1.36.128579
Fault time: 2014/12/10 04:00:14
Fault address: 65798C1F 01:00017C1F C:\TCAFiles\Users\dzrealkiller\71\@EpochHive\EpochServer.dll
file: epoch (__cur_mp)
world: Altis
Prev. code bytes: 83 C4 04 85 C0 74 09 50 E8 CF 75 02 00 83 C4 04
Fault code bytes: 83 3F 06 75 35 C6 03 00 8B 57 14 80 3A 00 75 0D
Registers:
EAX:00000000 EBX:00B6C22C
ECX:3DBBB2CC EDX:3DBBB2E8
ESI:00B6C230 EDI:00000000
CS:EIP:0023:65798C1F
SS:ESP:002B:00B6C104 EBP:00B6C210
DS:002B ES:002B FS:0053 GS:002B
Flags:00210246
=======================================================
note: Minidump has been generated into the file SC\arma3server_2014-12-10_01-45-22.mdmp
Never seen the EpochServer.dll be the fault before.
Can you send me the contents of your epochserver.ini (Remember to remove and passwords before posting).
Also if you have access, your redis.conf
-
Just trying to fix a crash Issue on my server before I think about changing anything else. I just cant figure the error out :(
external batch files to handle restarts sounds pretty cool tho I may give that a look later :)
Got any rtp errors for the crash?
Also is it a server crash or BEC crash?
-
Yeah I am already planning this :)
<!-- this job will start at 23:59:00 (11:59 pm) and will only run once a day at set time --> <job id='0'> <day>1,2,3,4,5,6,7</day> <start>000400</start> <runtime>000000</runtime> <loop>0</loop> <cmd>say -1 Testing In Game Warning System!</cmd> </job>
This code Is literally just to test I had BEC working :) Once we get my server running correctly I can then adjust all of these for the exact reason you mentioned "if you manually restart your server, your restart times are not out of sync with your scheduler"
Yeah we use the Schedule Tasks to manage restarts, For me this just seems easier :) I may learn about how to run the restart via BEC I guess it would be better that way I can restart at 11:05:20 for an example If I wished :) I just like how fast and easy to setup restart are using the Schedule tasks :)
You could use an external batch files to handle the restarts like we do.
<!-- Restart Server --> <job id='5'> <day>1,2,3,4,5,6,7</day> <start>020000</start> <runtime>000000</runtime> <loop>0</loop> <cmd>D:\TCAFiles\Users\test\100\RESTART_SERVER.bat</cmd> </job>
This way your restarts can never be out of sync with the restart messages. Ask swiftnode if they can do something like that for you. If not let me know and I'll supply you with a batch file
[BETA] FastPointGaming - Redis/MySql Database Managment Web Application - Source Code for the community
in Tools
Posted
This most certainly will not be the case.