Page 3 of 3

Re: New Install

Posted: Sat Feb 04, 2017 04:20 UTC
by TheMightyDude
Surfdude wrote:yep not missing that stuff...just didn't include here is all.
TBH, I still think it should be one of the following lines:
*/5 * * * * /usr/bin/lynx --dump http://bnt.surfdudeonline.com/scheduler ... =*password* > /dev/null 
or
*/5 * * * * /usr/bin/lynx --dump http://www.bnt.surfdudeonline.com/sched ... =*password* > /dev/null 
Also you need to make sure the ticks in the config matches what you set in cron, like the */5 meaning every 5th minute, so your ticks in the config must be set to 5.

When I run the games on here I had it update every 1 min so that would be "* * * * *" if I recall, its been a while since I have touched cron.

Not too sure if we released the code that also had the config variables stored in the database or if it was only in the codebase, but if it was also in the released code then you have 2 options:

[Option 1]
You have to re-create the universe for the changes in the config file to be updated in the database due to the game used the config in the database.

[Option 2]
You change the ticks config value in the database along with it in the config file resulting in no need to recreate the universe.

Option 2 is the best option when you already have players on it.

Re: New Install

Posted: Sat Feb 04, 2017 19:11 UTC
by Surfdude
Thanks for that information...I adjusted my config file so that the lowest denominator is 3 min. So my cron is set to run every 3 minutes...I did run it once every min while trying to troubleshoot.

Game seems to synced pretty well. Will be keeping an eye on it though.

Re: New Install

Posted: Sat Feb 04, 2017 21:16 UTC
by TheMightyDude
Yep, I just checked it and it does seem to be updating every 3 mins.

Re: New Install

Posted: Sun Feb 05, 2017 00:16 UTC
by Surfdude
It is a shame your game listing thingy ain't working...lol

Re: New Install

Posted: Sun Feb 05, 2017 00:51 UTC
by TheMightyDude
Surfdude wrote:It is a shame your game listing thingy ain't working...lol
It only listed the games that I run on here.

Re: New Install

Posted: Sun Feb 05, 2017 05:20 UTC
by Surfdude
But it used to, way back when, list all of the games that were running as I recall. The links would update when the game was rebooted.

Anyway that would be cool to set that up to run again.

Re: New Install

Posted: Sun Feb 05, 2017 08:14 UTC
by thekabal
Surfdude wrote:But it used to, way back when, list all of the games that were running as I recall. The links would update when the game was rebooted.

Anyway that would be cool to set that up to run again.
You are probably thinking of RedNova. It was a fork of BNT that included the server list. Later, my fork, TKI, also had one, but it didn't run for long.

But the RedNova list ran for a long time, and had many games listed.

Re: New Install

Posted: Sun Feb 05, 2017 11:33 UTC
by TheMightyDude
I could in the future setup a feature if one is really required.

It would require a new scheduler file called say sched_gamelist.php to be added which could get called every X updates (probably every hour)
This file will have to be added to the scheduler.php or schema.php cannot remember the required file (its been a while), this is so that it gets added to the games database after reset.

These are all what I had to set for it to display before (shown below), but I am sure I could create a more optimised version.
IsBNT Flag (bool)
DevMode Flag (bool)
MaintenanceMode Flag (bool)
MaintenanceMessage (string)
BGColour (string col)
BGBorder (string col)
SVNRev (string)
SVNLatestRev (string)
PlayerCount (Int32)
ServerEventStatus (string)
GameCodeAutoUpdates (bool)
GameStatusClosed (bool)
GameStatusCreation (bool)
GameEnableLinks (bool)
GameName (string)
GameLength (string)
GameDescription (string)
GameURL (string)
There was some other information like the player in the 1st rank slot and the winner of the last round etc.
As you can see there was a lot to set up, granted like I already said some of the above variables are not really required and are in most cases hard coded.

Ok, to the idea...
I am not really happy in displaying 3rd party games in the Game List on the index page, the reason being it will clog up the page and slow down the loading of the forums.

Saying that, I have no issues setting up a page on the games section like https://games.blacknova.net/gameslist/ (not setup)

Admins that want their game(s) listed will have to setup a basic account (Username, Email, Password, Server Region etc) via SSL (HTTPS) where they can add their games, each game added will have its own unique code that gets used when polling its hourly information that will get put into our that would be setup for this.

The above link when setup will get the information from the DB and display them on the page.

How does that sound so far ?

I will look into this when I get some time next week.

If you don't hear anything by mid next week, just poke me.