williamleonard / obblm

Automatically exported from code.google.com/p/obblm
1 stars 0 forks source link

leegmgr issue #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please note Player::price() has a new definition. 
It now only takes the argument "player position ID", this is the value of
the player object's field "f_pos_id", which every player object has.

Original issue reported on code.google.com by Nimda...@gmail.com on 9 Nov 2009 at 8:37

GoogleCodeExporter commented 9 years ago
Is this only relevant for raising the zombies?

Original comment by funnyfin...@hotmail.com on 9 Nov 2009 at 8:39

GoogleCodeExporter commented 9 years ago
If that's the only place you use it, yes.

Original comment by Nimda...@gmail.com on 9 Nov 2009 at 8:52

GoogleCodeExporter commented 9 years ago
We were thinking you made this harder, but not really.

This should work:

$delta = Player::price( $DEA[$team->race]['players']['Zombie']['pos_id'] );

Original comment by funnyfin...@hotmail.com on 11 Nov 2009 at 1:10

GoogleCodeExporter commented 9 years ago
Actually can't even do that because Team::$race no longer exists.  I actually 
can't
properly do it now because the report doesn't give me a race name.  And there 
seems
to be no way to get the race name now.

I need the race id to get Race::$name and I need the race name to get the id 
from $DEA.

Original comment by funnyfin...@hotmail.com on 11 Nov 2009 at 2:29

GoogleCodeExporter commented 9 years ago
All names of an object relation use the format: "f_Xname",
you are looking for $team->f_rname.

Also, as I said earlier, use print_r($obj); to see what object properties you 
may use.

Original comment by Nimda...@gmail.com on 11 Nov 2009 at 4:05

GoogleCodeExporter commented 9 years ago
Ok got it.

I still get this error when uploading though:

Warning: mysql_query() [function.mysql-query]: Unable to save result set in
/lib/class_player.php on line 644

Original comment by funnyfin...@hotmail.com on 11 Nov 2009 at 4:24

GoogleCodeExporter commented 9 years ago
FYI - you have the following in the Player class:

Player::price(array('race' => $this->f_rname, 'position' => $this->pos));

That is now incorrect,right?

Original comment by funnyfin...@hotmail.com on 11 Nov 2009 at 4:28

GoogleCodeExporter commented 9 years ago
Right..

Original comment by Nimda...@gmail.com on 12 Nov 2009 at 7:13

GoogleCodeExporter commented 9 years ago
r392.

I need more info. Where are you getting the error:

Warning: mysql_query() [function.mysql-query]: Unable to save result set in
/lib/class_player.php on line 644

Original comment by Nimda...@gmail.com on 12 Nov 2009 at 7:43

GoogleCodeExporter commented 9 years ago
This happens when I do an automatic upload.  I'll see if I can narrow down what 
call 
I am making when it occurs.  I wonder if it is related to comment 7.

Original comment by funnyfin...@hotmail.com on 12 Nov 2009 at 9:48

GoogleCodeExporter commented 9 years ago
Ok I get this same error now if I just manually schedule a match and then look 
at it
in upcoming matches.

Original comment by funnyfin...@hotmail.com on 13 Nov 2009 at 12:56

GoogleCodeExporter commented 9 years ago
Still need it to be more specific.
Please send me your DB and a link so that I may see it.

Original comment by Nimda...@gmail.com on 13 Nov 2009 at 3:55

GoogleCodeExporter commented 9 years ago
r395.

Please close when verified.

Original comment by Nimda...@gmail.com on 14 Nov 2009 at 3:53

GoogleCodeExporter commented 9 years ago

Original comment by Nimda...@gmail.com on 14 Nov 2009 at 8:09