Register forum user name Search FAQ

Gammon Forum

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 ➜ New to MUSH want to port IRE Jscript System to MUSH

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 page


Posted by IREMUSH   (12 posts)  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
Top

Posted by Fiendish   USA  (2,534 posts)  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
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by IREMUSH   (12 posts)  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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  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
Top

Posted by IREMUSH   (12 posts)  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!
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.


15,114 views.

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

Go to topic:           Search the forum


[Go to top] top

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