View unanswered posts | View active topics It is currently Wed Sep 20, 2017 7:05 pm



Reply to topic  [ 6 posts ] 
 EP Haggle Issue And Script Question 
Author Message
Chief Warrant Officer

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 125
Unread post EP Haggle Issue And Script Question
Ok, not knocking EP haggle, I love it, except when I get this:

Quote:
Derive Failed, Port parameters could not be determined.
Ensure that MBBS and Planetary Trade values are correct.

Counter is ZERO, input Counter manually, (or ENTER to accept their offer):>


And yes, both those settings are checked.

What I want to do is "recover" from this in my script. To recover I just hit enter manually.

However if I send that enter from a script EP Haggle doesn't pick it up as it must have a "TextOutTrigger".

Anyone have a suggestion how I send text to a text out trigger?

I guess I could run a script from my terminal program that looks for the error message and sends the enter. That way the proxy will be tricked.. I'd prefer not to though :)

Thanks in advance!


Wed Jan 18, 2017 6:43 am
Profile
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1200
Location: Canada
Unread post Re: EP Haggle Issue And Script Question
That's been a problem with the script for years. I'm pretty sure that E.P. Is aware, and will ask you to post a screen cap, or Log-file.

I do not believe that there is trigger that works off ANSI sent from another script. However you can run a trigger for the offer prompt and set a timer if nothing happens within (for example) , 5 seconds and automatically send a carriage return.

_________________
----------------------------
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?


Wed Jan 18, 2017 10:30 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1098
Location: Augusta, GA
Unread post Re: EP Haggle Issue And Script Question
It's related to old imprecisions in TWX's math routines. I spent a lot of time fixing those, but that left some old workarounds in this script that are still lingering. I've been thinking of new ways to resolve this, and hope to complete it soon. But please, keep petitioning me for this and it will get fixed.

+EP+

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


Wed Jan 18, 2017 10:49 pm
Profile WWW
Chief Warrant Officer

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 125
Unread post Re: EP Haggle Issue And Script Question
LoneStar wrote:

I do not believe that there is trigger that works off ANSI sent from another script. However you can run a trigger for the offer prompt and set a timer if nothing happens within (for example) , 5 seconds and automatically send a carriage return.


This works from the point of view that it completes the current buy. However EPs script doesn't timeout and sits waiting for input indefinitely.

So next time your port, it doesn't haggle at all.

Cheers,

Ham


Thu Jan 19, 2017 6:46 am
Profile
Chief Warrant Officer

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 125
Unread post Re: EP Haggle Issue And Script Question
ElderProphet wrote:
It's related to old imprecisions in TWX's math routines. I spent a lot of time fixing those, but that left some old workarounds in this script that are still lingering. I've been thinking of new ways to resolve this, and hope to complete it soon. But please, keep petitioning me for this and it will get fixed.

+EP+


I'd be just as happy with a option

"Auto accept offer when derive fails?"

That way your script could just send the "*" for me :)

If I'm planet trading full amounts I'd turn this off. However for the script I have in mind I do lots of small planet trades. So it's just annoying having to keep an eye on the script. The script I use this with might run for an hour in some games.

Thanks EP

Hammer


Thu Jan 19, 2017 6:48 am
Profile
Gameop

Joined: Mon Jan 15, 2007 2:41 am
Posts: 321
Unread post Re: EP Haggle Issue And Script Question
EP, I bet if you post the source code one of the awesome scripters here may be able to assist with some workarounds.

Just saying.....

:)

_________________
Where Chaos Reigns TW Server
chaostwgs.darktech.org:23


Wed Jan 25, 2017 12:51 am
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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