View unanswered posts | View active topics It is currently Mon Apr 20, 2026 1:30 am



Reply to topic  [ 9 posts ] 
 Rounding issues in the new version of TWXProxy 
Author Message
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Rounding issues in the new version of TWXProxy
EP,

I played a couple of compiled versions of the alpha (one I compiled and one of Maniac's) both had rounding problems with the existing scripts. My question: Is it worth breaking the existing library of scripts by changing the why twxproxy handles the math? Whats the advantage of that change that outweighs NOT redoing all the scripts that use those math functions?

Helix

_________________
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 Nov 23, 2009 10:24 pm
Profile WWW
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: Rounding issues in the new version of TWXProxy
The math code is a bit crazy, I think he's just trying to simplify it and make it work better.

In the process, unfortunately, some things might be broken. They'll be fixed tho, it's just a matter of
figuring out what to fix. If you've followed versions over the years you'll remember that the math
code has always had some issues.

Can you post the code that's causing the problem? An exact example would be very useful.

_________________
May the unholy fires of corbomite ignite deep within the depths of your soul...

1. TWGS server @ twgs.navhaz.com
2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads
3. Open IRC chat @ irc.freenode.net:6667 #twchan
4. Parrothead wrote: Jesus wouldn't Subspace Crawl.

*** SG memorial donations via paypal to: dpocky68@booinc.com
Image


Tue Nov 24, 2009 1:15 am
Profile ICQ WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Rounding issues in the new version of TWXProxy
Sing, they are in a couple of movers, LS's and Wildstar's both and I only have the .cts files. Well, I always said I wanted to make my own. Looks like I will get my chance. :)

Helix

_________________
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 Nov 24, 2009 2:03 am
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Rounding issues in the new version of TWXProxy
All of the math routines were optimized, and there is work needed before release to make them backwards compatible. The problem is likely with rounding, and I will try very hard not to break earlier scripts.

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


Tue Nov 24, 2009 9:51 am
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Rounding issues in the new version of TWXProxy
I did find and correct an obvious bug in the rounding of last week's code. I'm planning an update later today that fixes this, and a few other issues. Of course, it will likely break completely new things. After all, isn't alpha-testing supposed to be like an easter egg hunt?

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


Sun Nov 29, 2009 12:26 pm
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Rounding issues in the new version of TWXProxy
Also EP Haggle 2009 doesn't work with it. :)

Helix

_________________
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?


Sun Nov 29, 2009 12:28 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Rounding issues in the new version of TWXProxy
I have an updated build that I *think* addresses most rounding issues. Please let me know if you find otherwise. Find more details and the file in this post: http://www.classictw.com/viewtopic.php?p=194676#p194676

The haggle is not fixed by this build though, and likely won't until it is rewritten... likely for the next scheduled haggle update in January.

+EP+

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


Tue Dec 01, 2009 10:19 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Rounding issues in the new version of TWXProxy
Can we get a ruling about math compatability in the latest build? Anyone still experiencing problems with the latest pre-release 2.05 build with scripts that worked under 2.04?

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


Tue Dec 08, 2009 9:59 pm
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Rounding issues in the new version of TWXProxy
No. The only reason I dont try it in a real game is that it keeps popping those annoying dialog boxes if you are disconnected from the server for any length of time. I have no idea what they are for since I can see in the window I am reconnecting every 3 seconds. :) But none of the colonizers or movers are having rounding error when I tried them

Helix

_________________
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 Dec 08, 2009 10:03 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

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