User Name
Password

Go Back   Planetarion Forums > Planetarion Related Forums > Planetarion Suggestions
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 10 Dec 2005, 19:07   #1
Banned
Banned
 
Banned's Avatar
 
Join Date: Jul 2003
Location: ******
Posts: 2,326
Banned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so littleBanned contributes so much and asks for so little
Fix the tick update order bug

The order in which people have signed up should not affect whether or not they get to keep their roids.

The bug:

If planet A attacks planet B, landing pt 1000
and planet C attacks planet A, landing pt 1000
then planet C may steal roids planet A caps from planet B the same tick
depending on which order they tick in

This is obviously bad behavior. Things like this should be consistent (that is, behave the same regardless of which order people sign up in).
Banned is offline   Reply With Quote
Unread 10 Dec 2005, 19:24   #2
Doorsdown
Aria's TeddyBear :p
 
Doorsdown's Avatar
 
Join Date: Apr 2002
Location: Rhode Island, USA
Posts: 516
Doorsdown is just really niceDoorsdown is just really niceDoorsdown is just really niceDoorsdown is just really nice
Re: Fix the tick update order bug

roid counts shouldn't be updated till after it is determed how much is to be lost this way when it is taken out it won't matter
__________________
Proud to be have been Fyre, NewDawn, NoS - The Illuminati, [1up]

R3 [Acid] peon
R4 - R7 [Fyre] HC
R7 - R8 [ND] HC
R8 - R13 [NoS] MC
R14 - R16 [1up] MO
R17 Retired
Doorsdown is offline   Reply With Quote
Unread 11 Dec 2005, 17:24   #3
Shyne
Flash in the PAN
 
Join Date: Aug 2005
Location: Birmingham, Romania
Posts: 554
Shyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud ofShyne has much to be proud of
Re: Fix the tick update order bug

Im sure this was never fixed because it was quite a lot of work to do.

Now PAN is being written from scratch we can hope it will be fixed.
Shyne is offline   Reply With Quote
Unread 11 Dec 2005, 18:40   #4
Doorsdown
Aria's TeddyBear :p
 
Doorsdown's Avatar
 
Join Date: Apr 2002
Location: Rhode Island, USA
Posts: 516
Doorsdown is just really niceDoorsdown is just really niceDoorsdown is just really niceDoorsdown is just really nice
Re: Fix the tick update order bug

something like

$status = "combat";
while($status=="combat")
{
//set how much roids to be duducted from a planet
//set how many roids they gain
$status="end";
}

subtractRoids();
addRoids();
__________________
Proud to be have been Fyre, NewDawn, NoS - The Illuminati, [1up]

R3 [Acid] peon
R4 - R7 [Fyre] HC
R7 - R8 [ND] HC
R8 - R13 [NoS] MC
R14 - R16 [1up] MO
R17 Retired
Doorsdown is offline   Reply With Quote
Unread 11 Dec 2005, 19:00   #5
Heartless
CRASHING BEATS 'N FANTASY
 
Heartless's Avatar
 
Join Date: Mar 2001
Location: Cold Country.
Posts: 1,912
Heartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like himHeartless is an inspiration to us all and we should try to be more like him
Re: Fix the tick update order bug

Quote:
Originally Posted by Doorsdown
something like

$status = "combat";
while($status=="combat")
{
//set how much roids to be duducted from a planet
//set how many roids they gain
$status="end";
}

subtractRoids();
addRoids();
It's not easy to hack stuff into a badly designed statemachine.
__________________
Ią! Ią! Munin F'tagn! - [*scendancy]
Heartless is offline   Reply With Quote
Unread 11 Dec 2005, 21:04   #6
Doorsdown
Aria's TeddyBear :p
 
Doorsdown's Avatar
 
Join Date: Apr 2002
Location: Rhode Island, USA
Posts: 516
Doorsdown is just really niceDoorsdown is just really niceDoorsdown is just really niceDoorsdown is just really nice
Re: Fix the tick update order bug

no but that kind of order is needed to keep the bug from being possible even in the new code
__________________
Proud to be have been Fyre, NewDawn, NoS - The Illuminati, [1up]

R3 [Acid] peon
R4 - R7 [Fyre] HC
R7 - R8 [ND] HC
R8 - R13 [NoS] MC
R14 - R16 [1up] MO
R17 Retired
Doorsdown is offline   Reply With Quote
Unread 12 Dec 2005, 13:45   #7
mist
Jolt's best friend
 
mist's Avatar
 
Join Date: Feb 2003
Posts: 2,101
mist is a name known to allmist is a name known to allmist is a name known to allmist is a name known to allmist is a name known to allmist is a name known to all
Re: Fix the tick update order bug

it shouldn't be that hard to dump roids gained in to a differet table tho, and then add the two tables together once all the combat is over. that'd seem to avoid the state machine problem?
__________________
<Karmulian> subtle as a kick in the nuts as always
mist is offline   Reply With Quote
Unread 12 Dec 2005, 18:39   #8
_Kila_
break it down!
 
_Kila_'s Avatar
 
Join Date: Feb 2005
Posts: 2,087
_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society_Kila_ is a pillar of this Internet society
Re: Fix the tick update order bug

IMO, the rocks you steal shouldn't be stolen if you are landed on on the same tick as the combat happens at the same time and your rocks come home after your ships have attacked the enemy roidbase thing which is the same time your roidbase thing gets attacked.

ie. I have 5000 roids, 1:1:1 attacks me and steals 1250 roids, and I attack 1:1:2 who has 2000 roids, when 1:1:1 comes to my roids, there will be 5000 because this is the same time I get to 1:1:2 and I haven't capped them there yet. This would mean they steal 1250 of my roids and beam them home, and after they are stolen my new 500 roids that I have stolen appear.

seems a bit confusing but its how it should be IMO.
_Kila_ is offline   Reply With Quote
Reply



Forum Jump


All times are GMT +1. The time now is 16:40.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018