New Install

Trying to install BNT? No guarantees we can help you (especially if you're hosting it on windows) but we''ll try.

User avatar

Site Admin

Posts: 190

Joined: Thu Apr 17, 2014 10:15 am

Post Sat Feb 04, 2017 5:20 am

Re: New Install

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.php?swordfish=*password* > /dev/null 
or
*/5 * * * * /usr/bin/lynx --dump http://www.bnt.surfdudeonline.com/scheduler.php?swordfish=*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.
TheMightyDude::Blacknova Development.
Development Blog
User avatar

Posts: 17

Joined: Wed Jan 25, 2017 3:09 am

Post Sat Feb 04, 2017 8:11 pm

Re: New Install

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.
User avatar

Site Admin

Posts: 190

Joined: Thu Apr 17, 2014 10:15 am

Post Sat Feb 04, 2017 10:16 pm

Re: New Install

Yep, I just checked it and it does seem to be updating every 3 mins.
TheMightyDude::Blacknova Development.
Development Blog
User avatar

Posts: 17

Joined: Wed Jan 25, 2017 3:09 am

Post Sun Feb 05, 2017 1:16 am

Re: New Install

It is a shame your game listing thingy ain't working...lol
User avatar

Site Admin

Posts: 190

Joined: Thu Apr 17, 2014 10:15 am

Post Sun Feb 05, 2017 1:51 am

Re: New Install

Surfdude wrote:It is a shame your game listing thingy ain't working...lol

It only listed the games that I run on here.
TheMightyDude::Blacknova Development.
Development Blog
User avatar

Posts: 17

Joined: Wed Jan 25, 2017 3:09 am

Post Sun Feb 05, 2017 6:20 am

Re: New Install

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.
User avatar

Posts: 86

Joined: Sat Apr 19, 2014 11:32 pm

Post Sun Feb 05, 2017 9:14 am

Re: New Install

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.
User avatar

Site Admin

Posts: 190

Joined: Thu Apr 17, 2014 10:15 am

Post Sun Feb 05, 2017 12:33 pm

Re: New Install

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.
TheMightyDude::Blacknova Development.
Development Blog
Previous

Return to Installation Help



Who is online

Users browsing this forum: No registered users and 1 guest

cron