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



Reply to topic  [ 9 posts ] 
 EP Haggle 
Author Message
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post EP Haggle
Has anyone ever noticed that the data exported out of EP Haggle into a .csv has same data for low and high for both MCIC and productivity? is that how it is intended?

Sector,Product,LowMCIC,HighMCIC,LowProductivity,HighProductivity
177.000000000000000,ORGANICS,-48,-48,249,249
177.000000000000000,EQUIPMENT,56,56,188,188
600.000000000000000,FUEL,88,88,121,121
600.000000000000000,EQUIPMENT,-46,-46,246,246
708.000000000000000,FUEL,-49,-49,205,205
708.000000000000000,EQUIPMENT,45,45,277,277
997.000000000000000,FUEL,41,41,273,273
997.000000000000000,EQUIPMENT,-58,-58,198,198
1377.000000000000000,ORGANICS,57,57,214,214
1377.000000000000000,EQUIPMENT,-22,-22,112,112
1766.000000000000000,FUEL,-85,-85,218,218
1766.000000000000000,ORGANICS,47,47,106,106
2139.000000000000000,FUEL,76,76,126,126
2139.000000000000000,EQUIPMENT,-38,-38,121,121
2257.000000000000000,EQUIPMENT,60,60,238,238
2423.000000000000000,ORGANICS,62,62,270,270
2423.000000000000000,EQUIPMENT,-62,-62,161,161
2440.000000000000000,FUEL,-80,-80,270,270
2456.000000000000000,FUEL,76,76,195,195
2456.000000000000000,EQUIPMENT,-27,-27,211,211
2528.000000000000000,FUEL,-89,-89,91,91
2528.000000000000000,EQUIPMENT,59,59,127,127
3247.000000000000000,FUEL,-57,-57,105,105
3247.000000000000000,EQUIPMENT,37,37,93,93
3264.000000000000000,ORGANICS,69,69,92,92
3264.000000000000000,EQUIPMENT,-28,-28,167,167
3704.000000000000000,FUEL,-83,-83,175,175
3704.000000000000000,EQUIPMENT,20,20,129,129
3721.000000000000000,ORGANICS,-48,-48,249,249
3721.000000000000000,EQUIPMENT,20,20,262,262
3831.000000000000000,ORGANICS,-72,-72,191,191
3831.000000000000000,EQUIPMENT,46,46,174,174
4658.000000000000000,ORGANICS,-45,-45,281,281
4658.000000000000000,EQUIPMENT,34,34,87,87
5528.000000000000000,ORGANICS,51,51,128,128
5528.000000000000000,EQUIPMENT,-48,-48,112,112
5665.000000000000000,ORGANICS,39,39,138,138
5665.000000000000000,EQUIPMENT,-48,-48,178,178
6105.000000000000000,FUEL,86,86,296,296
6105.000000000000000,EQUIPMENT,-39,-39,294,294
6341.000000000000000,FUEL,-75,-75,207,207
6341.000000000000000,EQUIPMENT,60,60,281,281
6467.000000000000000,ORGANICS,-31,-31,227,227
6467.000000000000000,EQUIPMENT,62,62,256,256
6661.000000000000000,FUEL,-41,-41,135,135
6661.000000000000000,EQUIPMENT,58,58,288,288
7071.000000000000000,FUEL,-49,-49,85,85
7071.000000000000000,EQUIPMENT,37,37,77,77
7765.000000000000000,ORGANICS,-70,-70,153,153
7765.000000000000000,EQUIPMENT,40,40,95,95
7956.000000000000000,FUEL,52,52,135,135
7956.000000000000000,EQUIPMENT,-24,-24,291,291
8239.000000000000000,FUEL,-60,-60,231,231
8239.000000000000000,EQUIPMENT,45,45,231,231
8499.000000000000000,FUEL,79,79,204,204
8499.000000000000000,EQUIPMENT,-36,-36,274,274
9189.000000000000000,FUEL,70,70,261,261
9189.000000000000000,ORGANICS,-61,-61,254,254
9306.000000000000000,FUEL,77,77,187,187
9306.000000000000000,EQUIPMENT,-34,-34,106,106
9489.000000000000000,ORGANICS,41,41,293,293
9489.000000000000000,EQUIPMENT,-44,-44,265,265


Fri Oct 13, 2017 12:21 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1131
Location: Augusta, GA
Unread post Re: EP Haggle
Heya Tweety, great to see you around! How have you been?

The High and Low values will be different when multiple solutions were calculated, but should eventually be the same value.

If you go to an unknown port that is trading at 20%, then the minimum and maximum productivity values can be calculated by dividing the qty on hand by .195 and .205 respectively (as those values could have rounded to the reported 20%). Let's say that gives a low productivity of 200, and a high productivity of 219. The haggle script then checks each possibility, and let's say it finds matches to the port's bid when the MCIC is 40, productivity is 210, and again when the MCIC is 43, productivity is 208. The high and low of each is recorded to those sector parameters, and will be used as the starting points for future calculations. Typically, within 1 or 2 trades, the exact values have been derived.

It's flipping complicated, way more than that overview, but the end result is that it very quickly hones in on the one and only set of possible values.

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


Sat Oct 14, 2017 10:15 pm
Profile WWW
Boo! inc.

Joined: Fri Jan 04, 2002 3:00 am
Posts: 221
Location: Canada
Unread post Re: EP Haggle
another thing i noticed is that ep haggle errors out sometimes.

Script run-time error in 'EP_HAGGLE2017.TS': '($HEPHHE<4' is not a number, line 1175


Tue Oct 17, 2017 3:54 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1131
Location: Augusta, GA
Unread post Re: EP Haggle
Wow, good catch, there's a bug in that line of the 2017 version.

This is a good segue into the updates I've been working on...

The biggest issue with this script has been derive failures which cause it to pause until someone manually completes the bidding / haggling. Over the past month I was able to identify the specific scenarios where this occurred, and I've added code to handle those scenarios. I believe these are ALL solved. To wit, I've been running it non-stop for about a week without a single failure.

I also added some short-circuit logic, which results in about 40% fewer calculations for most trades... so it's a little speedier overall.

I'm planning an early release of the 2018 version, which will include these updates. I hope to submit it within the week. This should be the most resilient and efficient release so far.

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


Tue Oct 17, 2017 9:52 pm
Profile WWW
Lieutenant J.G.

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 440
Unread post Re: EP Haggle
Hi EP,

Love your work as always.

I found these errors occurred particularly in planet trading on the 2nd+ trade to a port. For instance take a max port, sell 10k equipment, then trade with another planet,the second trade would sometimes fail.

I had to abandon using it for this in games where I was trading massive amounts of ports/planets. Think of games like Star Trek we you create and sell product to the ports. My trading script might run for an hour + running 100's of ports, I don't actually want to sit there and watch.

I literally just went and blew all the ports in such a game else I'd have offered to test this and show you some outputs.

Question:
Would you be open to allowing us to change the EP Haggle options via another script?
i.e. enable/disable EP Haggle, changing whether we Haggle'n'Hold or to Blue Haggle.

I tried sending the options via "send" statement but obviously this doesn't work as EP Haggle doesn't pick up the ';' menu command.

Thanks


Tue Oct 17, 2017 10:17 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1131
Location: Augusta, GA
Unread post Re: EP Haggle
Hey Hammer,
Thanks for the props, and bug report. PM anything more specific that you can think of, but I'll start digging into this.

I've been planning a way to programmatically change haggle options without using the menu. The way I want to do it requires some painful restructuring, but I'll try to get this done before the release.

Thanks,
+EP+

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


Tue Oct 17, 2017 10:46 pm
Profile WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: EP Haggle
ElderProphet wrote:
Hey Hammer,
Thanks for the props, and bug report. PM anything more specific that you can think of, but I'll start digging into this.

I've been planning a way to programmatically change haggle options without using the menu. The way I want to do it requires some painful restructuring, but I'll try to get this done before the release.

Thanks,
+EP+



You're the best EP! Any chance we can get the fixed version before HHT, then the rewrite later? ;)

Your offer [49] ? Script run-time error in 'EP_HAGGLE2017.TS': ($HEPHHE<4' is not a number, line 1175

Script terminated: C:\TWX\scripts\ElderProphet\EP_Haggle2017\EP_Haggle2017.cts

_________________

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


Sat Oct 21, 2017 10:05 pm
Profile ICQ WWW
Lieutenant J.G.

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 440
Unread post Re: EP Haggle
Well, I'd have said you guys were all imagining this... because I've never seen that error... till today lol

+1 on fix,

Thanks,

Hamish


Sun Oct 22, 2017 2:18 am
Profile
Gameop

Joined: Mon Jan 15, 2007 2:41 am
Posts: 342
Unread post Re: EP Haggle
Yea, seen this a lot recently with this edit. Makes using EP haggle difficult. Still doable, just difficult. I did notice a correlation during the buydown that it fails more when the port percentage of the product is under 40%. That is just when I happen to notice it.

_________________
Where Chaos Reigns TW Server
chaos-twgs.com:23


Fri Oct 27, 2017 4:54 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 23 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.