| Author |
Message |
|
Timberwolf
Lieutenant J.G.
Joined: Mon Feb 26, 2001 3:00 am Posts: 441 Location: In your girlfriend's bed
|
 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 |
|
 |
|
Thrawn
Commander
Joined: Fri Aug 20, 2004 2:00 am Posts: 1801 Location: Outer Rims
|
 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 |
|
 |
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
|
 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
 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 |
|
 |
|
booger
Lieutenant Commander
Joined: Sat Feb 27, 2010 7:59 pm Posts: 782
|
 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 |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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 |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 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 |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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 
_________________ 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 |
|
 |
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
|
 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
 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 |
|
 |
|
Kaus
Gameop
Joined: Tue Nov 19, 2002 3:00 am Posts: 1050 Location: USA
|
 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  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 |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 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  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 |
|
 |
|
Maniac
Lieutenant J.G.
Joined: Sun Mar 13, 2005 3:00 am Posts: 387 Location: USA
|
 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 |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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 |
|
 |
|
Helix
Ambassador
Joined: Wed Nov 12, 2008 8:57 am Posts: 3554 Location: Long Beach, CA
|
 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 |
|
 |
|
Big D
Veteran Op
Joined: Tue Nov 28, 2006 4:04 pm Posts: 5025
|
 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 |
|
 |
|
T0yman
Veteran Op
Joined: Sat Dec 29, 2007 5:06 pm Posts: 2059 Location: Oklahoma
|
 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  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 |
|
 |
|