Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ About control MUSHclient
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Willen
(4 posts) Bio
|
| Date
| Mon 21 Jan 2019 03:32 AM (UTC) Amended on Mon 21 Jan 2019 05:40 AM (UTC) by Willen
|
| Message
| I'm wondering if there is a way to remote control MUSHclient by command or scripts instead of GUI operations. Actions like login to a certain server, loading a LUA profile and some other basics are requested to be executed automactically and controlled by a stand-alone program.
The scenario is that I intend to develop an app on mobile to communicate with this stand-alone program on server side. The program is in charge of command and management of multiple threads on MUSHclient (multiple accounts and operation accordingly).
Nick, hope you would read my post. | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #1 on Tue 22 Jan 2019 11:57 AM (UTC) Amended on Tue 22 Jan 2019 11:58 AM (UTC) by Fiendish
|
| Message
| | How to control a program with another program feels like more of a StackOverflow question. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #2 on Tue 22 Jan 2019 09:06 PM (UTC) |
| Message
| It sounds like you are possibly trying to set up a lot of bots. :)
Certainly by using scripting you can do most things in MUSHclient without the GUI interface. Telling it to do those things from somewhere else would be harder. Possibly you could use LuaSocket to wait for incoming commands and do something with them. However as each world file represents one connection to a MUD, you would need a lot of connections.
Why not just make your mobile app actually send the commands to the MUD(s) without interposing MUSHclient in the middle? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Willen
(4 posts) Bio
|
| Date
| Reply #3 on Wed 23 Jan 2019 12:31 PM (UTC) |
| Message
| Thanks for the reply, Nick.
What is most valuable for the setup is the scripts run on MUSHclient that make bots behave smarter. That will allow all bots run in 24x7 manner while operator can be offline to have a normal life. If app is designed to communicate with Mud server directly, it seems a not good idea to run bots on the phones.
Back to the topic I started, are there any existing documents for developers contain description of each command and function so that I may write scripts to replace GUI interface? Since I have no knowledge developing MUSHclient, what will you suggest to get things started?
Thank you again. | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #4 on Wed 23 Jan 2019 02:46 PM (UTC) |
| Message
|
Quote: all bots run in 24x7 manner while operator can be offline to have a normal life
I dislike this mentality. If you don't want to play the game, then it seems like the better decision is to go find a game that you do want to play.
Anyway, I still say that controlling a program with another program is a question for a different forum since it has nothing to do with MUSHclient itself. |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
| Posted by
| Willen
(4 posts) Bio
|
| Date
| Reply #5 on Wed 23 Jan 2019 03:18 PM (UTC) |
| Message
|
Fiendish said:
I dislike this mentality. If you don't want to play the game, then it seems like the better decision is to go find a game that you do want to play.
Anyway, I still say that controlling a program with another program is a question for a different forum since it has nothing to do with MUSHclient itself.
Sorry if it caused any confusion. We will usually have different views on Mud-type games. Since it somehow belongs to last decade, we could re-define the gameplay more casually based on what game itself provides. Farming and bots are popular options given to players who are expecting no time wasting.
We actually are able to see various prototypes through Mud games, which have developed into many online games by years.
I agree that developing a third-party program is not relevant to this forum. But I am seeking the possible solution from Nick, the creator. Indeed it needs full codes support from MUSHclient side. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #6 on Wed 23 Jan 2019 08:51 PM (UTC) |
| Message
|
Willen said:
Back to the topic I started, are there any existing documents for developers contain description of each command and function so that I may write scripts to replace GUI interface? Since I have no knowledge developing MUSHclient, what will you suggest to get things started?
There is documentation here:
http://www.gammon.com.au/scripts/doc.php
Also all functions documented:
http://www.gammon.com.au/scripts/function.php |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Willen
(4 posts) Bio
|
| Date
| Reply #7 on Wed 13 Mar 2019 10:00 AM (UTC) Amended on Wed 13 Mar 2019 10:01 AM (UTC) by Willen
|
| Message
| I've got stuck with this problem again.
Is it possible to make MUSHclient forward certain input texts(as triggered) to another webapp using luasocket?
I'm intending to use lua scripts only to make this function work.
Workflow is supposed to be:
monitor income texts from game server -> event triggered -> open socket to communicate with another app -> send notification over and forward part of texts -> close socket
Thanks. | | Top |
|
| Posted by
| Fiendish
USA (2,558 posts) Bio
Global Moderator |
| Date
| Reply #8 on Wed 13 Mar 2019 10:34 PM (UTC) Amended on Wed 13 Mar 2019 10:35 PM (UTC) by Fiendish
|
| Message
| Try
https://github.com/diegonehab/luasocket/blob/master/samples/listener.lua
https://github.com/diegonehab/luasocket/blob/master/samples/talker.lua
Your web search terms for this question are "interprocess communication lua" |
https://github.com/fiendish/aardwolfclientpackage | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
28,087 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top