April 23rd, 2016, 20:45
(This post was last modified: April 23rd, 2016, 20:49 by NobleHelium.)
Posts: 13,214
Threads: 25
Joined: Oct 2010
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
Posts: 6,126
Threads: 130
Joined: Apr 2006
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.
Posts: 6,758
Threads: 60
Joined: Apr 2004
Posts: 696
Threads: 8
Joined: Mar 2016
Nice!
With the current QOTM on the mind: does it calculate a "PYFT quotient" for each player at the end of the game?
Posts: 2,958
Threads: 12
Joined: Apr 2015
Some things are best left a mystery
Posts: 6,126
Threads: 130
Joined: Apr 2006
(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?
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.
Posts: 7,658
Threads: 31
Joined: Jun 2011
(August 1st, 2016, 18:39)El Grillo Wrote: Some things are best left a mystery
Looks like we found the guy who doesn't want to play on time. Get him!!!
Posts: 2,265
Threads: 54
Joined: Aug 2011
Posts: 6,126
Threads: 130
Joined: Apr 2006
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.
October 12th, 2018, 07:57
(This post was last modified: October 16th, 2018, 11:48 by Ruff_Hi.)
Posts: 6,126
Threads: 130
Joined: Apr 2006
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.
|