View unanswered posts | View active topics It is currently Sun Apr 19, 2026 2:11 am



Reply to topic  [ 53 posts ]  Go to page 1, 2, 3, 4  Next
 TWX for Win7 
Author Message
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post TWX for Win7
Hey guys,
As Sing and Maniac have already posted, there is some incompatability with the dialogs in TWX and Win7. We're still working on a long-term fix, but I've created a basic file dialog that will work in the mean time. I post this here as more of a hotfix for Win7, but it is also a current build of the source code, so there are some other improvements / changes as well, albeit undocumented for the moment. I'll try to correct this soon.

This hotfix is a long ways from perfect, and you can easily get an I/O error 21 (select a:\ for example), but it is functional and doesn't crash in Win7. Be aware that this is the executable only, and you will need to remove existing game data and rename your existing TWX exe file, then drop this in your TWX directory.

If you use this version and figure out some of the new features, don't base tons of code around them as they are subject to change before the final version.

Regards,
+EP+


Attachments:
TWX_Win7.zip [489.29 KiB]
Downloaded 750 times

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
Mon Nov 23, 2009 8:25 am
Profile WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: TWX for Win7
Thanks EP

_________________
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:54 am
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX for Win7
I'm already planning an update for this coming weekend. Most of my focus has been the file dialog crash issue, but I'll try and pack a few other updates in before then as well. Regardless, there will be an update to the file dialog by then.

On a side note, has anyone encountered the crash on exit bug with the new build?

Thanks,
+EP+

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


Tue Nov 24, 2009 10:04 am
Profile WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWX for Win7
EP
Am evaluating Delphi 2009 for TWX development and compiled TWXProxy.

The good news I got it to compile and run with a little bit of effort.

The bad news is there is going to be a lot of work involved to get it to compile and run correctly.

Delphi 2009 has decided that Unicode strings are the future. Their reasoning is better left for another thread.

The only way I could get it to run was to start off with a new database as it was having issues with reading
strings as they are expecting Unicode strings and the old program wrote Ansi strings.

For the non programmers here are some of the problems.

Ansi strings were one byte/character while Unicode strings are multi-byte. This causes problems because there
are some memory allocations that at the time TWX proxy was written were considered standard operating practices
that assumed that strings were 1 byte/character. This practice is/was also widely used in the communication protocol.

IMHO the solution is going to be more effort that the gains involved keeping TWXProxy half way modern.

I am going to throw out a suggestion that we port TWXProxy to the .Net platform. This will allow us a larger toolbox to
solve problems and potentially more developers.

Oh before I forget ... The FileDialog crash is still in the 2009 libraries on Win 7, I ran the program and was disappointed to find
that I couldn't read anything from TWX as it was Unicode but I opened a FileDialog and closed it and right on schedule it crashed with the infamous what I call the BABE* error.


* This is a difficult error a geek to track down because everyone knows that geeks have no experience with BABE's.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Tue Nov 24, 2009 11:26 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWX for Win7
Instead of .net, can we port it to something truly open source? FPC maybe? I hate .NET with a passion.

_________________
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 7:51 pm
Profile ICQ WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWX for Win7
Quote:
Instead of .net, can we port it to something truly open source? FPC maybe? I hate .NET with a passion.


Yes that could be done but then we are in the same boat we are in now... How many people know Pascal versus
C#/C++/VB or any other of the net languages.

It can be done but we don't really gain anything. I was suggesting .Net for increasing the number of developers.

Porting to FPC probably will be easier tho... and porting to Delphi 2009 can also be done it is just going to require
time and effort.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Wed Nov 25, 2009 9:46 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWX for Win7
Quote:
Yes that could be done but then we are in the same boat we are in now... How many people know Pascal versus
C#/C++/VB or any other of the net languages.


Quite a few. If you can code in C++, you can code in OO pascal.
Learning a language is easy. Living with a language is not.

Quote:
It can be done but we don't really gain anything. I was suggesting .Net for increasing the number of developers.


Yeh, but I don't think it will increase the number of developers. Sure, more people know
.NET in general, but anyone capable of coding in the TW world is capable of learning either
language just as well.

The real question goes to which is most likely to provide a stable long-term platform for
an open source application. Writing an open source app in a proprietary language is a bit
perverse.

Quote:
Porting to FPC probably will be easier tho... and porting to Delphi 2009 can
also be done it is just going to require time and effort.


Yeh, but Delphi 2009 requires us to get a copy of delphi 2009, which isn't cheap. Cost is
a serious issue.

_________________
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


Wed Nov 25, 2009 9:54 am
Profile ICQ WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWX for Win7
Porting to Free Pascal is gonna be a PITA.

I have the FPC libraries and what ever along with lazarus.

First problem I found was lazarus doesn't like spaces in the project name. Ok not a big problem renamed my directory
Next problem lazarus didn't like the spaces in the path to the libraries/units. Ok not a big problem make some junctions to the
correct directories.


It chokes at an assembler routine inside of the Graphics unit which I hacked to make it compile then it gives me a Circular reference
between units Types and Windows.... I added some more path(s) to the compiler options to choose the correct versions of files to only get another whole boatload of errors in Borland's own System.pas and these errors I don't know how to fix at the moment.

Error message(s) says
src\Win32\rtl\sys\System.pas(254,31) Error: Identifier not found "Integer"
src\Win32\rtl\sys\System.pas(368,24) Error: Identifier not found "PWideChar"

where src is a junction (think linux symbolic link) in my project directory that points to the Turbo Delphi Lite source directory

If Integer is not defined in the System.pas unit where in the HE (hockey stick) (hockey stick) is it defined.

I do not know if I have my environment set up correctly nor do I know if lazarus is even "usable for porting Delphi code" so if
anyone wants to suggest a fairly simple process for setting the correct paths to get the Borland Units to compile please jump right in .... I have about 3 hairs left on my slightly^W mostly balding head.

_________________
Find out just what any people will quietly submit to and you have the exact measure of the injustice and wrong which will be imposed on them. Frederick Douglas


Wed Nov 25, 2009 11:56 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWX for Win7
Well yeh, it won't be easy. Easier than porting to .net tho, you'd have to rewrite all of it for that.

From what I understand Lazarus is mostly compatible with delphi, but not entirely. I do not think you're going to get the borland units to compile. Lazarus is multi-platform, it's not designed to work with windows-specific components.

_________________
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


Thu Nov 26, 2009 4:42 am
Profile ICQ WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX for Win7
I've committed new code to the SVN server. I removed the file dialogs that I introduced last week, and instead have the original dialogs working for Win7 in a way that doesn't cause them to crash. However, they look like they are from Win 3.1, but those are the breaks... for now. They do not revert to this old style under XP, which should make most ppl happy. Still, I believe these are temporary fixes, and am working on a long-term solution.

I believe most math works as in 2.04, but it hasn't been thoroughly tested. Please let me know if you guys see a script that appears to fail due to rounding errors. The only one I know for sure that is broken is my haggle, but it is especially sensitive to rounding changes, and was expected.

I'm on the verge of significant performance improvements to TWX script execution. I was hoping to have it in this build, but I couldn't pull it off in time. Maybe in the next build. For now, enjoy the attached build. As before, it is the stand-alone executable.

+EP+


Attachments:
File comment: Alpha Build
TWXProxy.zip [480.54 KiB]
Downloaded 639 times

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
Tue Dec 01, 2009 10:16 pm
Profile WWW
Commander

Joined: Thu Feb 20, 2003 3:00 am
Posts: 1529
Location: USA
Unread post Re: TWX for Win7
Get a move on! I think the last time I logged on here you were saying "just working on getting twx finalized, should have it finished and posted soon." Nothing much changes :P


Sun Dec 06, 2009 8:37 pm
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWX for Win7
Ah ha ha, who knew Kemper was watching? :P

I've actually been inspired the last few weeks, and have made 3 code updates in 3 weeks. Nothing too earth-shattering, but steady progress. The problem is that these moments of inspiration have to coincide with free time, and that just doesn't happen as often as I'd like.

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


Mon Dec 07, 2009 2:52 pm
Profile WWW
Boo! inc.

Joined: Sat Aug 13, 2005 2:00 am
Posts: 632
Location: USA
Unread post Re: TWX for Win7
this is kind of going off topic, but has anyone with win7 noticed any other programs not working well? the kind of stuff you would use all the time like icq, AVG antivirus? Adaware? and do you need a super machine to run it like vista?? my laptop is a dual core 2ghz with 2gb of ram, could i run it on something like this? My brother tried to install it on his machine yesterday and it said he had insufficient space when he has 150GB free :lol:

_________________
I thought I was her daddy but she had 5 more.


Mon Dec 07, 2009 3:27 pm
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWX for Win7
A 2gb/2core/2ghz would run it fine. The OS takes up about 10gb by itself, but that quickly expands to 20gb once you have all the little stuff installed. I wouldn't install it on anything less than a 100gb drive/partition.

Win 7 has it's own anti-virii program, but both avira and avg are reported to work. Pidgin works great, never used the default ICQ client (yuck).

One downside is unless you're running vista, you can't direct upgrade. You have to move stuff off, reformat and move stuff back. That means getting an external hard drive for a backup, basically. The OEM upgrade ver is like $100.

_________________
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


Mon Dec 07, 2009 5:53 pm
Profile ICQ WWW
Veteran Op
User avatar

Joined: Mon Jun 16, 2003 2:00 am
Posts: 639
Location: USA
Unread post Re: TWX for Win7
Just checking up on the upcoming release of another TWX.

the most recent seems to work on Win 7. thanks for that EP

wondering if they next version will not have have that Win 3.1 looking (load script) interface... ?

also.. what other changes on the horizon?


Fri Feb 26, 2010 6:12 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 53 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

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