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



Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
 Compiling a .ts script 
Author Message
Lieutenant J.G.

Joined: Mon Feb 26, 2001 3:00 am
Posts: 441
Location: In your girlfriend's bed
Unread post Compiling a .ts script
Forgive me if this was asked and answered..but a search pulled up too many hits...

How do I compile a .ts file? I could have swore I would have to do so by dragging and dropping the .ts file onto the TXWC.EXE file...but it doesn't seem to work that way.

Thanks :)


Wed Jul 07, 2010 3:05 pm
Profile
Commander
User avatar

Joined: Fri Aug 20, 2004 2:00 am
Posts: 1801
Location: Outer Rims
Unread post Re: Compiling a .ts script
Timberwolf wrote:
Forgive me if this was asked and answered..but a search pulled up too many hits...

How do I compile a .ts file? I could have swore I would have to do so by dragging and dropping the .ts file onto the TXWC.EXE file...but it doesn't seem to work that way.

Thanks :)


I copy the script into the folder where TWXC is located. Then I type the following:

twxc <name_of_script.ts>

It will compile the script into a .cts extension.

_________________
-Thrawn

But risk has always been an inescapable part of warfare.

--

Knight to Queen's Bishop 3


Wed Jul 07, 2010 3:51 pm
Profile
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: Compiling a .ts script
I am currently guiding some Australian friends in how to play trade wars.
We may be getting new blood for the game.

And one of them shows alot of potential , he is a programmer and has helped me
in the area of the way I use to compile scripts.

My methoid was to have a cmd window open , then type command
(a bat file that changed the current directory) and then I'de need to paste TWXC.exe
on the command line and add a script name and enter ....

Long story .. why do all that he said ....

and wrote this piece ...
now just drop it into scripts directory , make a shortcut on your desktop ...
then cut & paste a file to be compiled into the new compile window.

You can edit this file if your directory structure is not the same as mine.


Attachments:
File comment: Compile Window
rename extention from
zip to cmd

compile.zip [1.21 KiB]
Downloaded 617 times

_________________
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
Wed Jul 07, 2010 4:27 pm
Profile WWW
Lieutenant Commander
User avatar

Joined: Sat Feb 27, 2010 7:59 pm
Posts: 782
Unread post Re: Compiling a .ts script
sweet

_________________
I was immortal, for a little while...
http://www.youtube.com/watch?v=5ZY2mRG5mzg


Wed Jul 07, 2010 4:34 pm
Profile
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: Compiling a .ts script
Using Windows Explorer, just drag the file to the folder where TWXC.exe is and drop it on top of that file and it will auto compile for you. If your doing lots of testing then batch filing it is much faster but for a single file.... Drag and Drop ;)

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Wed Jul 07, 2010 4:45 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Compiling a .ts script
If you run twxc from the command prompt, you can see some additional info about the compiled script, or the error message if there's an issue. I always copy/paste the .ts script to the directory where twxc.exe is, then open a command prompt and change directory to where twxc is (start/run/cmd/cd "c:\twx proxy"), then run twxc plus the name of the .ts file. So if the script is 1_login.ts, you'd type the following and hit Enter:
twxc 1_login

I could probably alter twxc.exe to open up a file dialog if no file was specified, then you could double-click it, and select the script to compile.

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


Wed Jul 07, 2010 6:45 pm
Profile WWW
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: Compiling a .ts script
EP, the one thing I always thought would be handy is to compile straight from in TWXIDE ;)

Just a suggestion if your looking to make something a little easier :D

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Wed Jul 07, 2010 6:56 pm
Profile ICQ YIM WWW
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post Re: Compiling a .ts script
Please download and test the compile.cmd that I posted and tell me if YOU think its better
to re-invent the wheel or go with something that has already been written to do
what is required to compile a .ts script.

Clean and simple .. who has to do all that typing .. save it for your scripts ;)

my 2¢

_________________
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


Wed Jul 07, 2010 7:44 pm
Profile WWW
Gameop
User avatar

Joined: Tue Nov 19, 2002 3:00 am
Posts: 1050
Location: USA
Unread post Re: Compiling a .ts script
T0yman wrote:
EP, the one thing I always thought would be handy is to compile straight from in TWXIDE ;)

Just a suggestion if your looking to make something a little easier :D


I second that

_________________
Dark Dominion TWGS
Telnet://twgs.darkworlds.org:23
ICQ#31380757, -=English 101 pwns me=-
"This one claims to have been playing since 1993 and didn't know upgrading a port would raise his alignment."


Wed Jul 07, 2010 9:06 pm
Profile ICQ
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: Compiling a .ts script
T0yman wrote:
EP, the one thing I always thought would be handy is to compile straight from in TWXIDE ;)

Just a suggestion if your looking to make something a little easier :D

Agreed. I'll see what I can do.

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


Sat Jul 10, 2010 11:35 pm
Profile WWW
Lieutenant J.G.
User avatar

Joined: Sun Mar 13, 2005 3:00 am
Posts: 387
Location: USA
Unread post Re: Compiling a .ts script
Vid Kid wrote:
Please download and test the compile.cmd that I posted and tell me if YOU think its better
to re-invent the wheel or go with something that has already been written to do
what is required to compile a .ts script.

Clean and simple .. who has to do all that typing .. save it for your scripts ;)

my 2¢


Sorry Vid....
Download is not recognized as a valid archive file.

Tried several ways to download it... saved it several places.
Same error message.

Your right tho why use a 20-25 year old technology when we can get the latest and greatest.

BTW I use powershell.... your old dos batch files are well old.
<Edit>
My bad I feel like Cruncher should feel

_________________
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


Last edited by Maniac on Sun Jul 11, 2010 7:59 am, edited 1 time in total.



Sun Jul 11, 2010 7:42 am
Profile ICQ
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: Compiling a .ts script
Maniac wrote:
Sorry Vid....
Download is not recognized as a valid archive file.

Tried several ways to download it... saved it several places.
Same error message.

Your right tho why use a 20-25 year old technology when we can get the latest and greatest.

BTW I use powershell.... your old dos batch files are well old.


After downloading compile.zip rename to compile.cmd and it should execute then according to Vid's original post.

But I am hopeful EP adds it to TWXide ;)

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Sun Jul 11, 2010 7:47 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Wed Nov 12, 2008 8:57 am
Posts: 3554
Location: Long Beach, CA
Unread post Re: Compiling a .ts script
It downloaded fine for me.

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?


Sun Jul 11, 2010 10:14 am
Profile WWW
Veteran Op

Joined: Tue Nov 28, 2006 4:04 pm
Posts: 5025
Unread post Re: Compiling a .ts script
Helix wrote:
It downloaded fine for me.

H


From the "red edit" line in his post, I'm guessing that it downloaded for him too.


Sun Jul 11, 2010 11:33 am
Profile
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: Compiling a .ts script
ElderProphet wrote:
T0yman wrote:
EP, the one thing I always thought would be handy is to compile straight from in TWXIDE ;)

Just a suggestion if your looking to make something a little easier :D

Agreed. I'll see what I can do.


Just wondering here..... what would it take to compile TWXIDE to run in Linux? I have tried wine but either I am doing something wrong or it just doesn't like it.

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Sat Jul 31, 2010 5:04 pm
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 19 posts ]  Go to page 1, 2  Next

Who is online

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