supertuxkart-sourceforge-migration / stk-migration-test

0 stars 0 forks source link

Not enough parachutes ? #732

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: alayan

While having, according to the powerup.xml, similar chance to see rubber ball and parachutes, I see a lot more rubber ball than parachute. (Not 50% more, but something like 5 time more !!!) It is extremely strange, but on the number of race I did where I observed this (dozens), it cannot be reasonably explained by randomness. (Note : I'm mainly in the first positions so I see them when AI use them. Still, at Expert AI should use it everytime it get a parachute)

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/1052

supertuxkart-sourceforge-migration commented 10 years ago

Author: deveee I hate parachutes ;p Especially when I am first and somebody uses three - one after second. When I play with more oponents and others use six parachutes one after second, what do you think, what I want to do with my keyboard? :D

Perhaps better would be little more parachutes, but only one item in one gift?

supertuxkart-sourceforge-migration commented 10 years ago

Author: alayan There is not anymore 3 parchutes at the same time in 0.8 already, no ? I'm too lazy to check on SVN, but I thought it was the case, and for sure as for my own settings as for future settings if they change, there won't be 3 parachute. :)

supertuxkart-sourceforge-migration commented 10 years ago

Author: deveee That's true. After few minutes in last position:

rubberballs: 89, parachutes: 31

I will look at this.

supertuxkart-sourceforge-migration commented 10 years ago

Author: deveee After a half an hour on poor laptop with windows vista:

My kart: rubberballs: 126, parachutes: 110

Computers in the same time: rubberballs: 2, parachutes: 4 rubberballs: 4, parachutes: 5

So it may be a case. Also notice that rubber balls have limitation to avoid too many balls in one time (current svn). So they won't have the same probability. Perhaps parachutes have similar limitation, I don't know.

If you want, you can use this debug patch and leave game for an hour or two. In console you will see how many items you collected.

diff --git a/src/items/powerup.cpp b/src/items/powerup.cpp index 1f02d27..1490d67 100644 --- a/src/items/powerup.cpp +++ b/src/items/powerup.cpp @@ -95,6 +95,8 @@ Powerup::Powerup(AbstractKart* kart) { m_owner = kart; m_sound_use = NULL;

@@ -476,4 +478,9 @@ void Powerup::hitBonusBox(const Item &item, int add_info) // Ignore new powerup if it is different from the current one and not // POWERUP_MODE_SAME