| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Compiling a .ts script https://mail.black-squirrel.com/viewtopic.php?f=15&t=26375 |
Page 1 of 2 |
| Author: | Timberwolf [ Wed Jul 07, 2010 3:05 pm ] |
| Post subject: | 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 |
|
| Author: | Thrawn [ Wed Jul 07, 2010 3:51 pm ] |
| Post subject: | 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. |
|
| Author: | Vid Kid [ Wed Jul 07, 2010 4:27 pm ] | ||
| Post subject: | 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.
|
|||
| Author: | booger [ Wed Jul 07, 2010 4:34 pm ] |
| Post subject: | Re: Compiling a .ts script |
sweet |
|
| Author: | T0yman [ Wed Jul 07, 2010 4:45 pm ] |
| Post subject: | 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 |
|
| Author: | ElderProphet [ Wed Jul 07, 2010 6:45 pm ] |
| Post subject: | 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. |
|
| Author: | T0yman [ Wed Jul 07, 2010 6:56 pm ] |
| Post subject: | 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 |
|
| Author: | Vid Kid [ Wed Jul 07, 2010 7:44 pm ] |
| Post subject: | 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¢ |
|
| Author: | Kaus [ Wed Jul 07, 2010 9:06 pm ] |
| Post subject: | 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 |
|
| Author: | ElderProphet [ Sat Jul 10, 2010 11:35 pm ] |
| Post subject: | 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. |
|
| Author: | Maniac [ Sun Jul 11, 2010 7:42 am ] |
| Post subject: | 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 |
|
| Author: | T0yman [ Sun Jul 11, 2010 7:47 am ] |
| Post subject: | 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 |
|
| Author: | Helix [ Sun Jul 11, 2010 10:14 am ] |
| Post subject: | Re: Compiling a .ts script |
It downloaded fine for me. H |
|
| Author: | Big D [ Sun Jul 11, 2010 11:33 am ] |
| Post subject: | 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. |
|
| Author: | T0yman [ Sat Jul 31, 2010 5:04 pm ] |
| Post subject: | 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. |
|
| Page 1 of 2 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|