View unanswered posts | View active topics It is currently Thu Aug 22, 2019 1:27 pm



Reply to topic  [ 14 posts ] 
 Scripting help 
Author Message
Staff Sergeant

Joined: Thu Oct 30, 2003 3:00 am
Posts: 12
Location: USA
Unread post Scripting help
I dont want to use the script command line to add verribales for a script to use. Verry basic stuff like yes no and sector number planet inputs. Whats a good twx script to look at or a doc of some kind with basic information on how to do this?

Sent from my SM-G965U using Tapatalk


Last edited by Dagbar on Wed Jan 30, 2019 7:37 pm, edited 1 time in total.



Wed Jan 30, 2019 1:33 pm
Profile
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1326
Location: Canada
Unread post Re: Scripting help
Not sure I follow you, but; if you look at the Scripts that come with TWXProxy, they use the built in Addmenu pretty efficiently. They also make good use of Includes.

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark


Wed Jan 30, 2019 6:57 pm
Profile ICQ YIM
Staff Sergeant

Joined: Thu Oct 30, 2003 3:00 am
Posts: 12
Location: USA
Unread post Scripting help
Sorry about the poor posting. I was trying to post from my phone and pay attention to a work meeting at the same time. Thanks for the information about the default scripts. My download didn't come with the script packs I'll see if a have them in a archived folder.

Sent from my SM-G965U using Tapatalk


Wed Jan 30, 2019 7:43 pm
Profile
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1795
Location: Guam USA
Unread post Re: Scripting help
Dagbar , what is it you are trying to do , I mean what do you want the script to do for you ?
Scripts can ask you yes no questions to act on the task , as well as read file to an array to do the task to many sectors.

There may already be a script to do the task/s you are looking for .. explain
what it is you want.

Vid

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://202.151.82.243:2002
Coconut Telegraph (ICQ)# 14340614
Founding Member -=[Team Kraaken]=- Winners of Gridwars 2010 - Ka Pla
Image

Image
Image

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Thu Jan 31, 2019 8:25 am
Profile ICQ WWW
Staff Sergeant

Joined: Thu Oct 30, 2003 3:00 am
Posts: 12
Location: USA
Unread post Scripting help
I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk


Thu Jan 31, 2019 10:14 am
Profile
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 3877
Location: USA
Unread post Re: Scripting help
Dagbar wrote:
I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk


You may be able to easily create or edit a help file.
C:\TWX\scripts\Mombot\Help

If the script you want to edit is a .ts script, you can open that in notepad or TWXide if you have that.

If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?

_________________
Image
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
2018 HHT Champs: Rock Stars


Classic Style Games Here:
telnet://Cruncherstw.no-ip.biz:2002

Web page from 1990's: https://web.archive.org/web/20170103155 ... adewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Thu Jan 31, 2019 4:16 pm
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1326
Location: Canada
Unread post Re: Scripting help
Cruncher wrote:
Dagbar wrote:
I'm wanting to add a menu to an existing script that is currently getting its verribales from the command line and not a menu after launch. I was just looking for a good example to learn from.

Sent from my SM-G965U using Tapatalk


You may be able to easily create or edit a help file.
C:\TWX\scripts\Mombot\Help

If the script you want to edit is a .ts script, you can open that in notepad or TWXide if you have that.

If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?


Did you actually read his response? :lol:

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark


Thu Jan 31, 2019 6:49 pm
Profile ICQ YIM
Staff Sergeant

Joined: Thu Oct 30, 2003 3:00 am
Posts: 12
Location: USA
Unread post Re: Scripting help
I do thank everybody for the help.
Im not a script writer but I can code and normally just need to be pointed in the right direction to get started. I HATE command line commands because I always have to do them twice forgetting a command or rearranging them. I have and .ts script the WSST script that after looking at it has a menu but it doesn't show up when launched from zbot (have not tried mom).
Ill do some digging in the default scripts from TWX that I did find in an older file.

Thanks again :)


Thu Jan 31, 2019 9:17 pm
Profile
Lieutenant J.G.

Joined: Mon Dec 01, 2014 5:39 pm
Posts: 323
Unread post Re: Scripting help
Dagbar wrote:
I do thank everybody for the help.
Im not a script writer but I can code and normally just need to be pointed in the right direction to get started. I HATE command line commands because I always have to do them twice forgetting a command or rearranging them. I have and .ts script the WSST script that after looking at it has a menu but it doesn't show up when launched from zbot (have not tried mom).
Ill do some digging in the default scripts from TWX that I did find in an older file.

Thanks again :)


If you have access to LoneStar's awesome script's you'll see some excellent examples of using the TWX's menu command set.

LSpassgrid for example has a nice menu.

You'll get them either from Helix's sticky which has about a gigabyte of everything available or he might even have a direct link since he's lurking in this thread :)


Thu Jan 31, 2019 9:28 pm
Profile
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2204
Location: Oklahoma City, OK 73170 US
Unread post Re: Scripting help
Cruncher wrote:
If it's extension is .ctc, it's compiled and you cannot open it. Maybe Shadow can help you with the decompiler he says he's written?
That is .cts for compiled scripts.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
TeamSpeak3: ts.microblaster.net:9987

Do not try and bend the spoon. That’s impossible.
Instead… only try to realize there is no spoon.


Fri Feb 01, 2019 9:21 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 3877
Location: USA
Unread post Re: Scripting help
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

_________________
Image
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
2018 HHT Champs: Rock Stars


Classic Style Games Here:
telnet://Cruncherstw.no-ip.biz:2002

Web page from 1990's: https://web.archive.org/web/20170103155 ... adewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Sat Feb 02, 2019 8:28 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1326
Location: Canada
Unread post Re: Scripting help
Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark


Sat Feb 02, 2019 9:08 pm
Profile ICQ YIM
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 3877
Location: USA
Unread post Re: Scripting help
LoneStar wrote:
Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?


Yes for Xan's scripts, he doesn't like to write the UI.

_________________
Image
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
2018 HHT Champs: Rock Stars


Classic Style Games Here:
telnet://Cruncherstw.no-ip.biz:2002

Web page from 1990's: https://web.archive.org/web/20170103155 ... adewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Sun Feb 03, 2019 8:44 am
Profile ICQ WWW
Commander
User avatar

Joined: Fri Jun 09, 2006 2:00 am
Posts: 1326
Location: Canada
Unread post Re: Scripting help
Cruncher wrote:
LoneStar wrote:
Cruncher wrote:
LoneStar wrote:
Did you actually read his response? :lol:


Yes, I've written some UI.

What does that even mean? You’ve written User Interface ?


Yes for Xan's scripts, he doesn't like to write the UI.

Well, in the tangential way you answer a specific question, I would very much like to see one of your UI’s

Xanos fotons script
A - read how to load a script
B - send TA over Fed
C - call Xanos to write a foton script
D - give someone a hug
E - why can’t I edit a CTS file?
F - How to make UI by editing MomBot Help files
H - Request help from ICQ Bot

Q - How to Quit a script

:lol:

_________________
----------------------------
-= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
-= There are 10 types of people in the world: Those that understand Binary and those who do not
-= If Oil is made from Dinosaurs, and Plastic is made from Oil... are plastic Dinosaurs made from real Dinosaurs?
-= I like to keep my friends and my enemies rich, and wait to see which is which - Tony Stark


Sun Feb 03, 2019 7:44 pm
Profile ICQ YIM
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ] 

Who is online

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