Author |
Message |
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1393 Location: Canada
|
 TWXProxy openMenu....
Anyone know if it’s possible to selected a database from the openMenu command, programmatically?
_________________ ---------------------------- -= 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 (R.I.P.)
|
Fri Nov 29, 2019 9:08 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
I can easily add an openDatabse command... You can specify a database on the command line:
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Sat Nov 30, 2019 6:55 am |
|
 |
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1393 Location: Canada
|
 Re: TWXProxy openMenu....
Thanks. I was hoping to select a DBase from a script; that there might be a Trick within the Menu —ie setting the menu value.
Doesn’t look like it’s possible.
_________________ ---------------------------- -= 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 (R.I.P.)
|
Sat Nov 30, 2019 6:32 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
openMenu TWX_DATABASE_SELECT
But then it prompts for the database name :/
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Sat Nov 30, 2019 10:09 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
Thanks to a new breakthrough in home video marketing, yes, is instant cassettes... umm... I mean instant documentation... That's right... Now your command can now be documented in the Wiki before the movie is finished... TWXProxy selectDatabase command: https://github.com/MicroBlaster/TWXProx ... ctDatabaseNow all I have to do is write the command :/ oh, and here is a link in case your name is not Lonestar - Spaceballs "We're in Now Now" clip: https://www.youtube.com/watch?v=nRGCZh5A8T4
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Sun Dec 01, 2019 2:09 am |
|
 |
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1393 Location: Canada
|
 Re: TWXProxy openMenu....
Micro wrote: Thanks to a new breakthrough in home video marketing, yes, is instant cassettes... umm... I mean instant documentation... That's right... Now your command can now be documented in the Wiki before the movie is finished... TWXProxy selectDatabase command: https://github.com/MicroBlaster/TWXProx ... ctDatabaseNow all I have to do is write the command :/ oh, and here is a link in case your name is not Lonestar - Spaceballs "We're in Now Now" clip: https://www.youtube.com/watch?v=nRGCZh5A8T4That will be handy for those times when the DBase get corrupted. That “when will then, be now?” ...never gets old. Lol. Here’s a snippet of the all-time funniest movie scene (with another member of S.C.T.V. cast): https://youtu.be/reQpGJ2mtv0
_________________ ---------------------------- -= 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 (R.I.P.)
|
Sun Dec 01, 2019 6:21 am |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 191 Location: Molon Labe
|
 Re: TWXProxy openMenu....
Say would it be possible to include an 'addDatabase' command to so you set up a new game though a login script for example?
And to add to it and including editDatabase:
"ServerAddress" "ListeningPort" "Sectors" "UseRLogin" 0/1 "MaxBubbleSize" "AutoRunScript" (Will need to load upon Db creation for current session.) "LogANSICodes" 0/1 "LogAsBinary" 0/1
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Wed Apr 15, 2020 12:38 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
Adept wrote: Say would it be possible to include an 'addDatabase' command to so you set up a new game though a login script for example? Yes, and I already documented about 6 database commands. Now I just have to write them. createDatabase: https://github.com/MicroBlaster/TWXProx ... teDatabaseI tried to stick to required data fields, and you can add the other fields with editDataBase: Code: createDatabase "ClassicTW-1" "twgs.classictw.com" 2002
editDatabase "LoginName" "Micro" editDatabase "Password" "Meow" editDatabase "GameLetter" "A"
connect Quote: "MaxBubbleSize" "AutoRunScript" (Will need to load upon Db creation for current session.) "LogANSICodes" 0/1 "LogAsBinary" 0/1 These fields are not part of the Database, and apply globally to all copies of TWX Proxy, but TWX Proxy is not aware of any other copies running, so they should not be modified unless you only have one copy open and you must close that copy to save the change.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Wed Apr 15, 2020 6:17 pm |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 191 Location: Molon Labe
|
 Re: TWXProxy openMenu....
Oh okay... Say, what replaces setVar in the earlier verison? I am not seeing anything in the commands except for setArray. ...Oh I see you just use operators now, $i := 0. Could it maybe be updated to use = as := and then = would become == instead, and perhaps === for strict/literal matches, so it's more inline with programatic logic? e.g., Code: $i=0 if($i==100 OR $terminate==="TRUE") goto :COMPLETION end
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Thu Apr 16, 2020 10:54 am |
|
 |
Deign
Warrant Officer
Joined: Thu Aug 21, 2003 2:00 am Posts: 77 Location: USA
|
 Re: TWXProxy openMenu....
Adept wrote: Could it maybe be updated to use = as := and then = would become == instead, and perhaps === for strict/literal matches, so it's more inline with programatic logic? end[/code] Remember, TWX is written in Pascal (Delphi). := is what assignment looks like in that world.
|
Thu Apr 16, 2020 12:44 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
@Adept that would break thousands of scripts that have already been written, and as Deign said, it is mimicking pascal, not c#.
You can still use setVar, it just isn't very pretty. Either way, it compiles as setVar.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Thu Apr 16, 2020 3:26 pm |
|
 |
Adept
Chief Warrant Officer
Joined: Sat Feb 27, 2016 1:01 am Posts: 191 Location: Molon Labe
|
 Re: TWXProxy openMenu....
oh, I'm not familiar with Pascal, but thought it could be internally converted or something.
I tried to write a test script yesterday and it would not let me use setVar, it was throwing an error message. ...That was when I came across the post about using :=
_________________ “The object of life is not to be on the side of the majority, but to escape finding one’s self in the ranks of the insane.” — Marcus Aurelius
TWX Proxy Reference Online
|
Thu Apr 16, 2020 11:31 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
@Adept it "Could" be easily changed, but it would break every script ever written for TWX.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Thu Apr 16, 2020 11:52 pm |
|
 |
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2557 Location: Oklahoma City, OK 73170 US
|
 Re: TWXProxy openMenu....
LoneStar wrote: Thanks. I was hoping to select a DBase from a script; that there might be a Trick within the Menu —ie setting the menu value.
Doesn’t look like it’s possible. OK new command, OpenDatabase <database> Has bee added to TWXP, along with a bunch of other command to list, close, reset, delete, etc.. databases... Plus a command to open New Instances of TWX, or close them.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Wed Jul 01, 2020 9:36 am |
|
 |
Hammer_2
Lieutenant J.G.
Joined: Mon Dec 01, 2014 5:39 pm Posts: 440
|
 Re: TWXProxy openMenu....
wow great stuff Micro.
|
Wed Jul 01, 2020 5:26 pm |
|
 |
|