CANTVERIFY: Market Sell News Bug

As bugs and suggestions are fixed/implemented/rejected, they will be moved in here.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Nuclear Raunch wrote:1 days, 13.6 hours ago You sold 2,839 Mice on the market for $729,704,842.
The cash is available in the Bank.

That's $257,028 per mouse.
:wq
Veranor
FAF Co-Programmer
Posts: 310
Joined: Mon Mar 08, 2004 8:12 pm

Post by Veranor »

  • Did he actually sell that many mice? - (IE: He actually sold more like 2,839,xxx mice)</li>
  • Did he actually get that much money? (Did he end up getting that much in his bank or was that simply what was reported in the news?)</li>
  • Had this news been condensed?</li>
Maybe related: seems like addNews's autocondenser ("old" vs "new" query based on num rows) might act unexpectedly at times. It loads the last query executed and then sees if it matches, if no it considers the query new. This seems odd, because a pattern like:
  • Player A (#2) buys 500,000 mice</li>
  • Player B (#3) attacks Player C (#4)</li>
  • Player A (#2) buys 200,000 mice</li>
should condense player A's news since they're the same thing and B and C have no actual bearing on Player A's actions. However, this will not condense based on the current setup. Shouldn't the query for the recent news be a little more specific than just the most recent query in the past X minutes? Consider:
Current:

code: Select all

$last_q = mysql_query("SELECT * FROM $newsdb WHERE time>$limit ORDER BY id DESC LIMIT 0,1;");

....

if( $code == $old[code] && $id1 == $old[id1] && $clan1 == $old[clan1] &&
            $id2 == $old[id2] && $clan2 == $old[clan2] && $id3 == $old[id3] &&
            $clan3 == $old[clan3] && $shielded == $old[shielded]) {
Proposed

code: Select all

SELECT * FROM $newsdb WHERE time>$limit AND code=$code AND $id1=$id1 AND $clan1=$clan1 $id2=$id2 AND ... so on and so forth
What happens if two troop strings of 5||| and ||6| are combined? Does it output 5||6| or might some entry be destroyed? Perhaps he sold two different types of troops in two transactions that were condensed but one type's entry got destroyed?
"The truth is a trap: you can not get it without it getting you; you cannot get the truth by capturing it, only by its capturing you." - Søren Kierkegaard
User avatar
Nuclear Raunch
The Wanderer
Posts: 950
Joined: Tue May 24, 2005 4:30 am

Post by Nuclear Raunch »

That was my empire and I could not check much since I was killed. Do not know about the cash part, I do know that was all the mice I had on the market. I did have other types of troops on the market though.

I'm, sorry man, I normally try to get as much information as possible when reporting a bug but in this case I was very limited as to what I could check out.
I know the voices in my head arn't real but they usually have some pretty good ideas.
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

Vera -- those two actions should not actually be condensed, because consider things like war. Suppose A attacks B 5 times, C attacks B once, and A attacks B 5 more times. I don't think that we should condense A's attacks in such a case.

As to your second question -- I believe it is handled correctly, but I can't of course guarantee it 100%.
:wq
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Can anyone please verify this bug?
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Still need a verify, or at least a lead to go on. :(
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Ruddertail
Promi Diplomacy ate my homework...
Posts: 4510
Joined: Wed May 12, 2004 11:39 pm
Location: Chances are, playing FAF.
Contact:

Post by Ruddertail »

I haven't noticed anything of the like recently, but I don't sell much on the market. Most of my stuff is so high priced, only sombody who'd already bought out the bazzar and still needed more troops would consider it. A few rounds back, somebody (I think it was Nohc or Scar) was running a market selling strat. They might have noticed something.
Empires:
WOA: Attila the Hun(#13)
BFR: ?
Founder and Leader of Hungry Huns (HH)
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Well, I'm closing it for now. Maybe if something comes up later, I'll reopen. If there is a bug, Vera's post could rather help diagnose it.
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

I moved it back to Active Bugs just in case. I was cleaning out the old Archived topics you see.
:wq
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Anyone want to take a crack at resolving this one, or should we finally put it to rest?
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Gen. Volkov
I'm blue, if I was green I would die.
Posts: 2342
Joined: Sat Dec 11, 2004 11:47 pm
Location: Boringtown, Indiana

Post by Gen. Volkov »

I think it was prolly related to my bug discovery, you know, where I got ricidumoney from ships?
It is said that when Rincewind dies, the occult ability of the human race will go UP by a fraction. -Terry Pratchett
User avatar
The Beatles
Fear me for I am root
Posts: 6285
Joined: Tue May 24, 2005 8:12 pm

Post by The Beatles »

This was much earlier.
:wq
User avatar
Devari
Mr. -1
Posts: 3194
Joined: Wed Mar 10, 2004 5:02 am
Location: British Columbia, Canada

Post by Devari »

Pre-scaling, yes. Although I can see why Volkov might think that.
If you go down to the woods today, you better not go alone
It's a lovely day in the woods today, but safer to stay at home
BECAUSE EVIL FREEN IS KILLING ALL THE TEDDY BEARS AT THEIR PICNIC
User avatar
Gen. Volkov
I'm blue, if I was green I would die.
Posts: 2342
Joined: Sat Dec 11, 2004 11:47 pm
Location: Boringtown, Indiana

Post by Gen. Volkov »

Oh, ok, I see. NVM then.
It is said that when Rincewind dies, the occult ability of the human race will go UP by a fraction. -Terry Pratchett
User avatar
Freenhult
13th Division Captain
Posts: 3380
Joined: Mon Jan 02, 2006 2:30 am
Location: Valparaiso
Contact:

Post by Freenhult »

Devari wrote: Anyone want to take a crack at resolving this one, or should we finally put it to rest?
Me and Noch will try and test it out. This should work for the clan market I hope.
Nami kotogotoku, waga tate to nare. Ikazuchi kotogotoku, waga yaiba to nare. Sōgyo no Kotowari!

波悉く我が盾となれ雷悉く我が刃となれ,双魚の理 !

Every wave be my shield, every lightning become my blade!
Post Reply
  • Members connected in real time

    🔒 Close the panel of connected members