View unanswered posts | View active topics It is currently Thu Mar 28, 2024 3:42 am



Reply to topic  [ 7 posts ] 
 EP_Haggle2017v2 - Bug Fixes 
Author Message
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1131
Location: Augusta, GA
Unread post EP_Haggle2017v2 - Bug Fixes
Hey guys,
I have found and fixed several scenarios where my haggle routine would throw the dreaded DERIVE FAILED error. Also, the bug in line 1175 has been squished.

Update is attached.

Good luck in HHT!
+EP+


Attachments:
EP_Haggle2017v2.zip [22.71 KiB]
Downloaded 591 times

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
Fri Oct 27, 2017 8:25 pm
Profile WWW
Chief Warrant Officer
User avatar

Joined: Wed Jan 04, 2006 3:00 am
Posts: 136
Location: USA
Unread post Re: EP_Haggle2017v2 - Bug Fixes
Thank you, EP!!


Sat Oct 28, 2017 11:49 pm
Profile
Lieutenant J.G.

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 440
Unread post Re: EP_Haggle2017v2 - Bug Fixes
Thanks EP,

was a bit busy yesterday trying to get setup in the HHT to thank you then.

I did go to the trouble of re-writing all our scripts to have a time out on haggle and a EP restart function :) guess they don't need it now hehe


Sun Oct 29, 2017 12:32 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1131
Location: Augusta, GA
Unread post Re: EP_Haggle2017v2 - Bug Fixes
Hammer_2 wrote:
I did go to the trouble of re-writing all our scripts to have a time out on haggle and a EP restart function :) guess they don't need it now hehe

I've corrected all of the ways that I was able to make it fail, but your error handling can't hurt. So while I'm not seeing any failures, keep in mind that I've not added any error handling to it... so if it fails, it'll still pause and wait for you to finish the haggle by hand.

Most of the fixes were for occassions when the math works out to an exact .5, and TradeWars rounds it the wrong way.

I also killed the textout trap, so that you actually can complete haggles by hand.

Happy trading,
+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Sun Oct 29, 2017 6:20 pm
Profile WWW
Lieutenant J.G.

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 440
Unread post Re: EP_Haggle2017v2 - Bug Fixes
ElderProphet wrote:

I also killed the textout trap, so that you actually can complete haggles by hand.



Oh yeah, that was the killer. I'll no doubt play a planet pimping game in the future; that's where I had the most issues. If I see any fails I'll pm you the details.

Thanks EP


Sun Oct 29, 2017 6:47 pm
Profile
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: EP_Haggle2017v2 - Bug Fixes
ElderProphet wrote:
Hey guys,
I have found and fixed several scenarios where my haggle routine would throw the dreaded DERIVE FAILED error. Also, the bug in line 1175 has been squished.

Update is attached.

Good luck in HHT!
+EP+


You're the best EP!

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Sun Oct 29, 2017 8:46 pm
Profile ICQ WWW
Commander

Joined: Thu Oct 17, 2002 2:00 am
Posts: 1158
Unread post Re: EP_Haggle2017v2 - Bug Fixes
It's coming close to 2018 :) lol


Wed Dec 13, 2017 7:35 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.