View unanswered posts | View active topics It is currently Tue Dec 12, 2017 8:59 pm



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

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1106
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 26 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: 125
Location: USA
Unread post Re: EP_Haggle2017v2 - Bug Fixes
Thank you, EP!!


Sat Oct 28, 2017 11:49 pm
Profile
Chief Warrant Officer

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 170
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: 1106
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
Chief Warrant Officer

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 170
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: 3670
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!

_________________
Image
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team


Classic Style Games Here:
telnet://Cruncherstw.no-ip.biz:2002

flash client: http://Cruncherstw.no-ip.biz:2004/PlayTW.html
Web page from 1990's: http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
E-mail: Cruncherstw@gmail.com
http://www.facebook.com/CrunchersTW


Sun Oct 29, 2017 8:46 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 6 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.