[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  New to MUSH want to port IRE Jscript System to MUSH
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

New to MUSH want to port IRE Jscript System to MUSH

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by IREMUSH   (12 posts)  [Biography] bio
Date Mon 01 Feb 2016 05:54 AM (UTC)
Message
So I made the mistake of spending lots of time writing a client system for an IRE MUD using their webclient, but they cannot get the lag out of the webclient, for some stupid reason they wrote a separate GMCP engine for the webclient vs the standard telnet clients. I would like to port this system over to MUSH. Essentially the system is several dozen large separate Javascript functions along with tons of triggers. I am looking for some help point me in the right direction to package these up into a MUSH based system. I used to code systems in MUSH but it has been so long I have forgotten almost everything I knew. I would like to bring these scripts/functions in as individual elements and then reference them or call them from each other as needed. Can someone point me to a good starting point for packaging up a system for MUSH?

Thanks
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Mon 01 Feb 2016 08:08 PM (UTC)
Message
Not enough information provided.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Mon 01 Feb 2016 11:17 PM (UTC)
Message
MUSHclient supports Jscript, however setting up the triggers is likely to be something you would have to modify.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by IREMUSH   (12 posts)  [Biography] bio
Date Reply #3 on Tue 02 Feb 2016 12:22 AM (UTC)
Message
Nick Gammon said:

MUSHclient supports Jscript, however setting up the triggers is likely to be something you would have to modify.


Yep but it'll all be copy past work and many of the triggers I have have script actions associated with them and those are Javascript so they should pretyy well port right over.

the more extensive work are things like the attacking healing and defending engines along with the balance and GMCP engines, that while I'd love to re-code those in lua just don't have the cycles :)

For the triggers I see a script window but looks like it's designed to hold a single script command rather than a full script. I am guessing I am better off creating my scripts and then using sub to call the associated script?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Tue 02 Feb 2016 04:46 AM (UTC)
Message
For larger scripts you are probably better off using the script file (or make a plugin). Then you can just put the name of the function in the trigger and let the script file do the rest. Plus it is only compiled once.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by IREMUSH   (12 posts)  [Biography] bio
Date Reply #5 on Wed 03 Feb 2016 03:40 AM (UTC)
Message
Thanks Nick that is what I was guessing. Slowly getting my hands back around things. Need to get my hands around plugins again too so I can effective package up pieces and parts!
[Go to top] 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.


2,557 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]