View unanswered posts | View active topics It is currently Mon Apr 20, 2026 10:46 pm



Reply to topic  [ 47 posts ]  Go to page 1, 2, 3, 4  Next
 TWXProxy Development Discussion 
Author Message
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post TWXProxy Development Discussion
Elder....

I will try and start a discussion thread that I hope has more than just us two contributing.

First off I would like to request write access to the repository.
Secondly please add a Conditional define ... MANIAC_DEBUG
I will surround my code changes with that define, This will make it easier to find my code changes and make it very easy to ignore my changes
if need be.

From the top of my balding head I only remember a couple of requested features one was a comma-fy routine that I think Elder is implementing.

Shoot my memory is fading me along with my hairline but my waistline is expanding... Dang it sucks getting old.

_________________
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


Thu Oct 08, 2009 8:29 pm
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWXProxy Development Discussion
I'll work on adding your access and conditional define. It will likely be after this weekend.

The numerical (comma) format capability has been added in the Format command, but needs some thorough testing. I already added a few other format structures, and had a few others planned.

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


Thu Oct 08, 2009 11:08 pm
Profile WWW
Ensign
User avatar

Joined: Tue Jul 21, 2009 2:37 pm
Posts: 241
Location: Ottawa, Canada
Unread post Re: TWXProxy Development Discussion
Hi...

How about command line parameters for twx settings? Not all are needed, but one for choosing the database and another for setting the local port would be extremely useful.

As far as I can tell, these don't exist yet but correct me if I'm wrong.

Maybe I can help ... although I've never touched Delphi. Would I have to buy something?


Fri Oct 09, 2009 4:57 pm
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: TWXProxy Development Discussion
Hotblack Desiato wrote:
Hi...

How about command line parameters for twx settings? Not all are needed, but one for choosing the database and another for setting the local port would be extremely useful.

As far as I can tell, these don't exist yet but correct me if I'm wrong.

Maybe I can help ... although I've never touched Delphi. Would I have to buy something?


You can already set the port via commandline.

twxproxy.exe /p2002

Cheers

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Fri Oct 09, 2009 8:34 pm
Profile
Ensign
User avatar

Joined: Tue Jul 21, 2009 2:37 pm
Posts: 241
Location: Ottawa, Canada
Unread post Re: TWXProxy Development Discussion
Thanks Thrawn... is that documented? I can't find twxproxy usage info.... Any other command line parameters?


Sat Oct 10, 2009 9:24 am
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: TWXProxy Development Discussion
Hotblack Desiato wrote:
Thanks Thrawn... is that documented? I can't find twxproxy usage info.... Any other command line parameters?


I don't recall if it is documented, it appears it's common knowledge from those that have used it since the dawn of time. I don't know of any other command params but if others do I'm certain they could post them.

Cheers

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Sat Oct 10, 2009 1:12 pm
Profile
Gameop
User avatar

Joined: Tue Sep 25, 2007 7:27 pm
Posts: 530
Location: Long Island
Unread post Re: TWXProxy Development Discussion
I have a modded version of TWX 2.04 (I think) created by Hacksaw that has command line parameters for setting the DB and auto connecting... but that killed the port selection switch. I am fairly certain he forwarded his code on to EP for inclusion in the next release.

_________________
If you have a building game, they will come...

Proud Sysop of ICE9 TWGS
Home of Building and Non Regulated Games
http://www.oregonsouth.com/ice9
telnet://ice9-tw.com:2002


Sat Oct 10, 2009 6:22 pm
Profile
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWXProxy Development Discussion
Elder

Found one not so obvious design flaw in Process.pas

Around line 800 there is an if statement that goes something like this

Code:

// Only determine the class if it's unknown (-1)
    if not (FCurrentSector.SPort.ClassIndex >= 0) then


After a compiler warning/hint about how this always evaluated to true I starting pondering why.
Then it hit me.... Port.ClassIndex is only sizeof byte in length which for me is 8 bits.

This has gotten me thinking of a fix so I searched for Port.ClassIndex and don't see anywhere it
sets the ClassIndex to anything less than 0 so I propose to remove the equals from the statement

Code:

// Only determine the class if it's unknown (-1)
    if not (FCurrentSector.SPort.ClassIndex > 0) then


^--------- Here :!:
After a few hours modding and compiling the TWXProxy source I have been able to remove the dependence on Auth.pas from the project
I understand your wish to keep as much code Xide wrote in TWX but I feel that his ideas/passion are well represented
< FLAME ON>
.... and when was the last time he wrote any code?
<FLAME OFF>

I would post a diff file for my changes but until I get write access it think it would be pointless no one would be able to use the diff
as my version would greatly differ from the repository.

Anyone playing at home just search for the Code in the first code list and change it to the code in the second code list.

_________________
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


Sun Oct 11, 2009 8:32 am
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: TWXProxy Development Discussion
Oops, forgot to add write access Maniac. Should be done by tomorrow.

No, I totally agree, auth.pas and dependancies should be removed, and work there is welcome. I'm not interested in keeping Xide's code base, but rather I've adopted his design philosophy... which is basically: simple commands are generally better than complex commands. My post here from a while back sums up this design philosophy.

Regarding the Process.pas flaw, I'm sure there are a few other places like that where cleanup is needed. I planned on cleaning these up before the release, but development time has been hard to come by lately, so it made more sense to post the rough code as-is.

Regarding command line switches, 2.04 and earlier only has that one /P command line switch. Others are planned and needed.

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


Mon Oct 12, 2009 7:25 pm
Profile WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWXProxy Development Discussion
Just a quick note before I go to work

I have a branch of the TWXProxy in the SVN that I have been working on the past week or so

it is under
https://svn.twxscripts.com:8443/svn/mai ... hes/MANIAC

It holds my attempt at removing the Authorization and Upgrade forms and code
It adds a button to the Setup screen that will "rebang" the database...
It opens the db gets the server name and port and then deletes the db
and writes the old information to the new database.
It needs some heavy duty testing but I have been using it for a year or so.

I will let Elder decide if any of my changes get added to the Official branch.

A couple more things...

Should we have a version that has already been compiled available to be downloaded?

I am thinking we could as the size of TWX is only around 1-1.5mb in size so it shouldn't be too hard

Does anyone want the Open source scripts checked in to the svn server so people can add their
changes to the script?

You can check out the scripts w/o having to develop TWX all I ask is if you make any changes you
upload your changes so they can be enjoyed by all.

_________________
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 Oct 14, 2009 11:06 am
Profile ICQ
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWXProxy Development Discussion
So how do we get access to this thing? I'd like to tinker and see if I can get better remote connection handling... but, alas, no go.

_________________
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 Oct 21, 2009 10:10 pm
Profile ICQ WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWXProxy Development Discussion
Sing you have read access now

https://svn.twxscripts.com:8443/svn/mai ... y205/trunk
Is elders original branch
https://svn.twxscripts.com:8443/svn/mai ... hes/Maniac
Is Mine....

user= guest
passwd blank that is no password not blank :lol:

_________________
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


Thu Oct 22, 2009 4:53 am
Profile ICQ
Ensign
User avatar

Joined: Tue Jul 21, 2009 2:37 pm
Posts: 241
Location: Ottawa, Canada
Unread post recording fig kills Re: TWXProxy Development Discussion
Let me know if I have anything wrong, but I think I finally figured out that twx updates SECTOR.x.x[z] but not on every event.. I think figs are only updated on scans or displays. Correct me if I'm wrong. Anyway, would it make sense to have it also update on kills? How easy is that to implement?

Maniac wrote:
Sing you have read access now


Can I get access too?


Thu Oct 22, 2009 5:28 pm
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post Re: TWXProxy Development Discussion
Figs are updated on the G, too, now. But parms never are, hence the point of parm refreshes.

Anyway, now I get to try and get this thing to compile under virtualbox. W00t.

_________________
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 Oct 22, 2009 5:53 pm
Profile ICQ WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: TWXProxy Development Discussion
Everyone has Read access to the source code.
As I stated in previous posts
UserName of Guest and a blank password will let you peruse the source.

In order to affect any real changes you need to compile the TWXProxy source using

I know for sure these work
Turbo Delphi portable also known as Turbo Delphi Lite. (Free to use)
Delphi 7 and Delphi 2006 (Win32) not .NET (Commercial costs $)

Am not sure if lazarus and or Free Pascal works yet I am still investigating.

I tried searching for the Turbo Delphi Portable/Lite link on the Web but couldn't find any.

I have a copy (around 96MB) and if we had some interest I might be able to upload it to the SVN server
Or if anyone has another idea of where someone could get a copy and a working link their interest will
be greatly appreciated.

One more thing
Does anyone besides me have any interest in allowing the TModDatabasse set of functions and procedures to be
callable from another language i.e. C# to the TModDataBase library?

I have a proof of concept TModDataBase dll that so far I have successfully recovered data from the TWXDataBase w/o having TWXproxy running, I want to leverage this into having TWXProxy use the DLL instead.

I am going to be busy for the next week so not much time for extensive coding but will try and get as much code out as possible.

_________________
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


Thu Oct 22, 2009 9:59 pm
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 47 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

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