[FIXED] shipmarket - buying the same ships twice

Any misfunction spotted in the games should be posted here for revision. Taking advantage of any in-game bug can result in account termination. To avoid this, you have to post the bug you found here.

[FIXED] shipmarket - buying the same ships twice

Postby Cutpurse » Mon May 03, 2021 4:43 pm

about 2 hours ago i bought 5 sotl from the market. i chose to individually deliver each of the 5, but only 3 of them was delivered to me. when i looked at their ship journals, i saw them showing log of me buying 2 of the ships twice:

Unnamed (#479055)Next

Day 3154 Built by My Crows (#87298)
Day 3157 Bought by Cutpurse (#66280)
Day 3157 Bought by Cutpurse (#66280)

Unnamed (#478643)Next

Day 3151 Built by pate (#89941)
Day 3154 Bought by My Crows (#87298)
Day 3157 Bought by Cutpurse (#66280)
Day 3157 Bought by Cutpurse (#66280)

in the ship market history it shows 5 ships being sold, yet i only got 3, so i think im missing either some credits or ships.

ive seen this before. i found in our mail history myself reporting same issue last year, which i then forgot:

i got a bug on ship market. i bought 2 similar sotl for 4 credits each. once auction was complete, i had them both delivered to prote at same time. i only had 1 ship delivered, tho the auction history shows 2 ships were sold. in ship history it shows as if i would have bought the same ship twice:

Unnamed (#446946)Next

Day 2835 Built by pate (#89941)
Day 2838 Bought by Cutpurse (#66280)
Day 2838 Bought by Cutpurse (#66280)

2020-06-18 16:38:40 (Chat reply)
User avatar
Cutpurse
 
Posts: 197
Joined: Sat Jan 14, 2017 8:08 am

Re: shipmarket - buying the same ships twice

Postby Captain Jack » Mon May 03, 2021 9:50 pm

All ships appear delivered. 2 missing. Have you sold any ships to the shipwright perhaps?
I have not looked at the code, room for bug here is very slim as there are 2 logs for these transactions in order to ensure that nothing is missed. To put in analogy, bank transactions have 1.
User avatar
Captain Jack
Project Coordinator
 
Posts: 4043
Joined: Tue Feb 08, 2011 1:12 am
Location: Pania

Re: shipmarket - buying the same ships twice

Postby Captain Jack » Mon May 03, 2021 9:59 pm

I will look at the code though, as it seems very odd.
User avatar
Captain Jack
Project Coordinator
 
Posts: 4043
Joined: Tue Feb 08, 2011 1:12 am
Location: Pania

Re: shipmarket - buying the same ships twice

Postby Captain Jack » Mon May 03, 2021 10:10 pm

Well, I looked the database carefully and it seems that you have managed to bid on the same ship twice. This happened on two of ships.

This means that you spent credits twice. However, the system could not give you the same ship twice.

Therefore, the problem is that you were able to bid twice on the same ship. I can only think that this happened for 2 reasons combined:
1)The seller's mouse probably needs replacement.
2)The code needs to guard against this.
User avatar
Captain Jack
Project Coordinator
 
Posts: 4043
Joined: Tue Feb 08, 2011 1:12 am
Location: Pania

Re: [FIXED] shipmarket - buying the same ships twice

Postby Captain Jack » Mon May 03, 2021 10:59 pm

I have issued a fix to this.
Like I said, this is a fix that prevents submission of same ship as two different auctions.
User avatar
Captain Jack
Project Coordinator
 
Posts: 4043
Joined: Tue Feb 08, 2011 1:12 am
Location: Pania

Re: [FIXED] shipmarket - buying the same ships twice

Postby Most Lee Harmless » Mon May 03, 2021 11:08 pm

Query : was the seller paid twice for the sale?

*digs out ancient ratty old mouse*
-1 : Move to archive.
User avatar
Most Lee Harmless
 
Posts: 3987
Joined: Sat Mar 01, 2014 3:48 pm

Re: [FIXED] shipmarket - buying the same ships twice

Postby Captain Jack » Mon May 03, 2021 11:12 pm

Yes. Old ratty mouses won't work anymore :P
User avatar
Captain Jack
Project Coordinator
 
Posts: 4043
Joined: Tue Feb 08, 2011 1:12 am
Location: Pania


Return to Bugs