View unanswered posts | View active topics It is currently Tue Dec 30, 2025 2:26 pm



Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3  Next
 EP Haggle 2012 
Author Message
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: EP Haggle 2012
ElderProphet wrote:
Okay, the file in the first post has been updated so that it works for both in-game years - 2024 and 2040. Thanks for the quick feedback, and let me know if you encounter any further trouble.

Comet wrote:
So I put this on while trading with world trade and it will auto haggle instead of the haggle built into world trade? (never used this before)
There is a file included in the zip file called haggle.ts. If you want to use Pack2 routines like WorldTrade with my haggle, you need to rename the haggle.ts file in the Scripts\Include folder, drop the haggle.ts from the zip file into that same folder, and then launch EP_Haggle2012a.ts. You'll have to configure the Haggle Options, then press semi-colon to continue. You can also toggle #8 so that you aren't prompted for haggle options each time it's launched.

The routine waits in the background until it sees a port make an offer, then it takes over the haggle portion and kicks the port in the teeth, then it goes back to waiting for the next time a port makes an offer.

Give it a shot and let me know what other questions you have.

+EP+


Thank you for a quick fix , your the man ...
Great script !

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Thu Jan 19, 2012 8:32 pm
Profile WWW
Commander

Joined: Thu Oct 17, 2002 2:00 am
Posts: 1159
Unread post Re: EP Haggle 2012
Nice :)


Thu Jan 19, 2012 9:07 pm
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Unread post Re: EP Haggle 2012
Mongoose wrote:
Ooh... I've been thinking there needed to be such a thing. A way to get the most money you can without gaining XP. I may finally, grudgingly, give TWX another chance. :D

Thanks! And yes, the blue haggle makes up to 30% more than unhaggled trades. Like the normal haggle, it makes every possible credit... so each and every counter offer is 1 credit from being rejected, but the final offer is 2% + 1 credit from being rejected.

I do have to warn you that this is the one script I publish encrypted, as it's full of trade secrets (get it?).

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


Thu Jan 19, 2012 9:38 pm
Profile WWW
1st Sergeant

Joined: Mon Aug 01, 2011 12:11 pm
Posts: 31
Unread post Re: EP Haggle 2012
It looks like there may still be a bug in rev a. I was running world trade and it was working fine for awhile and then had the following.

We'll sell them for 1,004 credits.
Your offer [1,004] ?
GetDay failed, $weekday captured is:0
halting...
Script terminated: C:\Program Files\TWXProxy204\scripts\EP_Haggle2012a.cts

883

I restarted the script and tried again with the same results. Ran fine for awhile and then the same message.

This occured in a game where the stardate is 1/20/40, OS Windows 7, TWX is the version for windows 7. Same game Windows XP, TWX 2.04 same results, ran fine for awhile and then same failure. Note it does continue world trade but just does not use the haggle script anymore.

In another game where the stardate is 1/20/24, I've been ppting between 2 ports for almost an hour now with no issues seen.


Fri Jan 20, 2012 7:49 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Unread post Re: EP Haggle 2012
Spectre wrote:
It looks like there may still be a bug in rev a. I was running world trade and it was working fine for awhile and then had the following.

We'll sell them for 1,004 credits.
Your offer [1,004] ?
GetDay failed, $weekday captured is:0
halting...
Script terminated: C:\Program Files\TWXProxy204\scripts\EP_Haggle2012a.cts

I'm not able to reproduce this, anyone else? If you are still experiencing it, IM me and let's see what's going on. Copy the entire port dialog, beginning with the line "<Port>" until the error.

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


Sat Jan 21, 2012 11:48 am
Profile WWW
1st Sergeant

Joined: Mon Aug 01, 2011 12:11 pm
Posts: 31
Unread post Re: EP Haggle 2012
Still seeing the problem....

Sector : 976 in uncharted space.
Ports : Hashishiyun Outpost, Class 6 (BSS)
Warps to Sector(s) : (670) - 2571 - (4405)

Command [TL=00:00:00]:[976] (?=Help)? : P

<A> Attack this Port
<T> Trade at this Port
<Q> Quit, nevermind

Enter your choice [T] ? T
<Port>

Docking...
One turn deducted, 623 turns left.

Commerce report for Hashishiyun Outpost: 04:42:36 AM Mon Jan 23, 2040

-=-=- Docking Log -=-=-
No current ship docking log on file.
For finding this unused port you receive 1 experience point(s).

Items Status Trading % of max OnBoard
----- ------ ------- -------- -------
Fuel Ore Buying 910 100% 150
Organics Selling 2710 100% 0
Equipment Selling 2700 100% 0


You have 439,567 credits and 0 empty cargo holds.

We are buying up to 910. You have 150 in your holds.
How many holds of Fuel Ore do you want to sell [150]? 150
Agreed, 150 units.

We'll buy them for 6,981 credits.
Your offer [6,981] ?
GetDay failed, $weekday captured is:0
halting...
Script terminated: C:\Program Files\TWX Proxy\TWXProxy204\scripts\EP_Haggle2012a
.cts

7818


Mon Jan 23, 2012 5:49 am
Profile
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1400
Location: Canada
Unread post Re: EP Haggle 2012
Found something; a possible bug:

When EP_Haggle is loaded, I see this in the World Trade PPT-Menu:
PPT Settings:
? - Command list
+ - Help on command
Q - Exit menu
F - Drop figs under ports ON
H - Haggling
R - Trade fuel/organics ON
T - Trade to % of max 30


....the 'H - Haggling', Yes/No value doesn't display, however when the EP_Haggle script is *not* loaded, the Yes/No value does display properly.

I think there may be a conflict between the two scripts, prehaps they both use : setMenuValue "Haggle" "OFF"?


Edit: almost forgot to thank you for the update.. Thanks Man! :mrgreen:

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= 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?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)


Mon Jan 23, 2012 7:20 am
Profile ICQ YIM
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: EP Haggle 2012
if you copied the haggle.ts to your includes directory then it disables the H for haggle in worldtrade because ep's does it. So that is normal behavior. When you unload ep's then the h comes back.

H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Mon Jan 23, 2012 8:22 am
Profile WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1400
Location: Canada
Unread post Re: EP Haggle 2012
Helix wrote:
if you copied the haggle.ts to your includes directory then it disables the H for haggle in worldtrade because ep's does it. So that is normal behavior. When you unload ep's then the h comes back.

H


In point of fact, the WorldTrade Haggle.ts Menu is maintained in the PPT.ts include file.

This little 'glitch' occurs wheather or not I use the original Haggle.ts include or EP's modified Haggle.ts include. Also, even though I cannot see the 'Yes' or 'No', you can still toggle the setting to 'No', which will screw up EP's_Haggle_2012.cts

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= 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?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark (R.I.P.)


Mon Jan 23, 2012 8:53 am
Profile ICQ YIM
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Unread post Re: EP Haggle 2012
Hey LS, you're welcome! Regarding the Haggle option... when I wrote EP's Perfect Haggle, TWX wasn't open source, the Pack2 scripts were compiled, and the includes were encrypted (and TWX couldn't do decimal math). So I wrote that haggle.ts include (not the haggle script, just the piece to allow Pack2 integration) with no idea how Xide was populating that menu. As it turns out, the main menu is handled by WorldTrade in this case, but those sub-menu options are handled by the includes. So I would need to create the proper entry point in my haggle include, which I never bothered to do once TWX was source released. So until further notice, don't mess with that setting if you're using my haggle routine :)

This thread has me doing more work on EP_Haggle than I've done in some time, which is great. The 2011a version required a fair amount of work to make it function with the TWX decimal changes I implemented, but several routines should be rewritten to fully utilize TWX's new math capabilities.

Spectre, thanks for the full post. I've reviewed that section of the script and find no flaw. I'll add a few debugging lines and IM you a build for testing.

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


Tue Jan 24, 2012 12:04 am
Profile WWW
Lieutenant J.G.
User avatar

Joined: Sun Oct 28, 2001 2:00 am
Posts: 347
Location: USA
Unread post Re: EP Haggle 2012
Thank you E.P. for sharing this script, it is awesome.


Tue Feb 14, 2012 11:59 am
Profile ICQ
Commander

Joined: Thu Oct 17, 2002 2:00 am
Posts: 1159
Unread post Re: EP Haggle 2012
Getting this message. Anyone know how to fix it?

Derive Failed, Port parameters could not be determined.
Ensure that MBBS value is correct.


Tue Dec 11, 2012 5:41 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Unread post Re: EP Haggle 2012
I'm seeing it sometimes as well. I'll try to fix it in the next release, due in a few weeks.

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


Tue Dec 11, 2012 8:12 pm
Profile WWW
Commander

Joined: Thu Oct 17, 2002 2:00 am
Posts: 1159
Unread post Re: EP Haggle 2012
ElderProphet wrote:
I'm seeing it sometimes as well. I'll try to fix it in the next release, due in a few weeks.


Thanks!


Thu Dec 13, 2012 6:52 am
Profile
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: EP Haggle 2012
EP do you have the update for 2013?

H

_________________
Helix
Do I really look like a guy with a plan? You know what I am? I'm a dog chasing cars.
Lest we forget
I had to ask myself WWSGD?


Tue Jan 15, 2013 11:43 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 32 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

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