Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
How to set up a PBEM tracker

Well whatever, you could just ignore it if it's functioning and you're not sure how to fix it. It's just a warning anyway and won't break unless you change PHP versions again and they decide to be even more strict about things. You can just disable error reporting on the page: http://stackoverflow.com/questions/12489...ards-error
Reply

After various emails with mist, notice, et al ... I've been hacking together a version of the php tracker code that uses the in-game name to determine who is next. It pulls this from the name embedded in the attachment. There is a slight modification to the game tracker file but I will test to see of my php tracker v6 code is backwards comparable.

Why in-game name instead of 'sender's email' ... I have a pbem game where one person is playing two civs and the tracker reporting gets confused when that person emails either save forward.

I also made some modifications to the 'time since sent' section ... it now reports X Days, Y Hours, Z Minutes instead of just Hours and Minutes.

It also provides a list of players that are 'on deck, in the hole, etc' so you can see if your name is getting close to the top (ie should you expect the turn soon).

I'll add some more comments, remove some dead code and post a write up (once I find some additional hacking time).

Example ... http://www.ruffhi.com/php/tracker_v6.php...emGiveMe18
I have finally decided to put down some cash and register a website. It is www.ruffhi.com. Now I remain free to move the hosting options without having to change the name of the site.

(October 22nd, 2014, 10:52)Caledorn Wrote: And ruff is officially banned from playing in my games as a reward for ruining my big surprise by posting silly and correct theories in the PB18 tech thread.
Reply

toast
Reply

Nice!

With the current QOTM on the mind: does it calculate a "PYFT quotient" for each player at the end of the game? lol
Civ 6 SP: Adventure One 
Civ 4 MP: PBEM74B [3/4] PBEM74D [3/4]
-Dedlurker: PB34
Reply

Some things are best left a mystery smile
Reply

(August 1st, 2016, 18:34)picklepikkl Wrote: With the current QOTM on the mind: does it calculate a "PYFT quotient" for each player at the end of the game? lol

It could. The gmail account has the complete email trail and code could be written to identify the major offenders.
I have finally decided to put down some cash and register a website. It is www.ruffhi.com. Now I remain free to move the hosting options without having to change the name of the site.

(October 22nd, 2014, 10:52)Caledorn Wrote: And ruff is officially banned from playing in my games as a reward for ruining my big surprise by posting silly and correct theories in the PB18 tech thread.
Reply

(August 1st, 2016, 18:39)El Grillo Wrote: Some things are best left a mystery smile

Looks like we found the guy who doesn't want to play on time. Get him!!! popcorn

Played: Pitboss 18 - Kublai Khan of Germany Somalia | Pitboss 11 - De Gaulle of Byzantium | Pitboss 8 - Churchill of Portugal | PB7 - Mao of Native America | PBEM29 Greens - Mao of Babylon
Reply

*ducks and hides*
Reply

brickastley ... I think I found a logic fault in the code ... in the is_game function in particular.

The first if statement checks the first 'structure' element and checks if it is of a type that can have attachments (if I understand the code correctly). If it doesn't, it returns FALSE ... but I think it should loop to the next element.

I was getting some games where it just wouldn't recognize an email with a game attachment from a valid player. Changing 'return false' to 'continue' gets rid of this issue.

Code:
private function is_game ( $structure )
{

foreach ( $structure -> parts as $part )
{
   if ( !( $part -> ifparameters ) && !( $part -> ifdparameters ) )
       continue;
        /* return false; */
I have finally decided to put down some cash and register a website. It is www.ruffhi.com. Now I remain free to move the hosting options without having to change the name of the site.

(October 22nd, 2014, 10:52)Caledorn Wrote: And ruff is officially banned from playing in my games as a reward for ruining my big surprise by posting silly and correct theories in the PB18 tech thread.
Reply

Last Tuesday I got a report that my tracker system wasn't reporting any game details.

My hosting service recently upgraded from v5 to v7 of php and some of the v5 functionality that the tracker code was using doesn't work anymore.

I will look into this further over the weekend.

Update: Issues sorted.  Let me know if you want an updated php file.
I have finally decided to put down some cash and register a website. It is www.ruffhi.com. Now I remain free to move the hosting options without having to change the name of the site.

(October 22nd, 2014, 10:52)Caledorn Wrote: And ruff is officially banned from playing in my games as a reward for ruining my big surprise by posting silly and correct theories in the PB18 tech thread.
Reply



Forum Jump: