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.
 Entire forum ➜ MUSHclient ➜ Suggestions ➜ Allowing multiple Send/Script calls on same line, Repeat on same line

Allowing multiple Send/Script calls on same line, Repeat on same line

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


Pages: 1  2  3 

Posted by Kevnuke   USA  (145 posts)  Bio
Date Reply #30 on Fri 12 Mar 2010 05:01 AM (UTC)
Message
I meant primarily close friends.. I'm just a control freak. I like to make sure things work exactly the way i want. :D
Everything is gonna be in one or two plugins for me.
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #31 on Fri 12 Mar 2010 05:21 AM (UTC)

Amended on Fri 12 Mar 2010 05:27 AM (UTC) by Nick Gammon

Message
If you want to see what Achaea sends, install this in a fairly recent version of MUSHclient:

Template:saveplugin=Achaea_Test To save and install the Achaea_Test plugin do this:
  1. Copy between the lines below (to the Clipboard)
  2. Open a text editor (such as Notepad) and paste the plugin into it
  3. Save to disk on your PC, preferably in your plugins directory, as Achaea_Test.xml
  4. Go to the MUSHclient File menu -> Plugins
  5. Click "Add"
  6. Choose the file Achaea_Test.xml (which you just saved in step 3) as a plugin
  7. Click "Close"




<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>

<muclient>
<plugin
   name="Achaea_Test"
   author="Nick Gammon"
   id="3d13120b92f9f93af9ac6f42"
   language="Lua"
   purpose="Tests Achaea ATCP"
   date_written="2010-02-05"
   requires="4.50"
   version="1.0"
   >

</plugin>

<!--  Script  -->

<script>
<![CDATA[

function OnPluginTelnetSubnegotiation (type, option)
  AppendToNotepad ("Achaea", "'" .. string.gsub (option, "\n", "\r\n") .. "'\r\n\r\n")
end -- function OnPluginTelnetSubnegotiation

function OnPluginTelnetRequest (type, data)
 if type == 200 and data == "WILL" then
   return true
 end -- if
end -- function OnPluginTelnetRequest

]]>
</script>


</muclient>



I see stuff like:


'Char.Vitals
H:580/580 M:580/580 E:1800/1800 W:1800/1800 NL:4/100 '

'Room.Num 13215'

'Room.Brief Kinsarmar Road near Cactii Gate'

'Room.Coordinates 16,-7,3,0'

'Room.Environment Urban'

'Room.Exits ne,e,se,sw,w,nw'

'Room.FullExits ne(13219),e(13271),se(16754),sw(1980),w(13247),nw(13272)'

'Char.Vitals
H:580/580 M:580/580 E:1800/1800 W:1800/1800 NL:4/100 '

'Char.Vitals
H:580/580 M:580/580 E:1800/1800 W:1800/1800 NL:4/100 '



- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #32 on Fri 12 Mar 2010 05:22 AM (UTC)
Message
David Haley said:

Perhaps every plugin could not only implement ATCP functionality by duplicating code, but indeed implement different handling of ATCP functionality. :P


Yes indeed. And each plugin could handle combat differently too. ;)

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #33 on Fri 12 Mar 2010 05:23 AM (UTC)

Amended on Fri 12 Mar 2010 05:25 AM (UTC) by Nick Gammon

Message
What I mean by that is, if you look at the post above the last one, you see that all ATCP is, is a series of messages, much like MUD prompts. No harm in individually handling them, is there?

And my post shows just how simple ATCP is - no real need for over 1000 lines of code, eh?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #34 on Fri 12 Mar 2010 05:25 AM (UTC)
Message
I've got an ATCP DEBUG alias in my ATCP plugin, too, that outputs the same data, except only the IAC SB ATCP <content> IAC SE messages. I use it a lot when I'm debugging a problem a user is having.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #35 on Fri 12 Mar 2010 05:27 AM (UTC)
Message
Nick Gammon said:
And my post shows just how simple ATCP is - no real need for over 1000 lines of code, eh?

That depends! My purposes include distributing the ATCP data in a friendly manner. The core of the plugin is probably the same size as yours.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #36 on Fri 12 Mar 2010 05:52 AM (UTC)

Amended on Fri 12 Mar 2010 05:53 AM (UTC) by Twisol

Message
Nick Gammon said:

'Room.Num 13215'

'Room.Brief Kinsarmar Road near Cactii Gate'

'Room.Coordinates 16,-7,3,0'

'Room.Environment Urban'

'Room.Exits ne,e,se,sw,w,nw'

'Room.FullExits ne(13219),e(13271),se(16754),sw(1980),w(13247),nw(13272)'



Droooooollll. I'm envious. I've suggested Room.Environment before but haven't ever heard back. They implement it - and more! - for you in a matter of days.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Kevnuke   USA  (145 posts)  Bio
Date Reply #37 on Tue 23 Mar 2010 12:26 AM (UTC)
Message
thanks Nick that's what I was looking for. I suppose i can get the rest when i get back online. :)
Top

Posted by Kevnuke   USA  (145 posts)  Bio
Date Reply #38 on Thu 29 Dec 2011 01:57 AM (UTC)

Amended on Thu 29 Dec 2011 03:49 AM (UTC) by Kevnuke

Message
I know it's been a while since I looked at this thread but would the same plugin work for GMCP just by changing 200 to 201?

Edit: The old ATCP plugin you posted isn't printing ATCP messages to the output window. I'm not sure if this is due to a version update or something IRE changed on the server side.

BTW I copied and pasted the plugin to notepad++ Saved As.. Achaea_Test.xml then tried to add it while disconnected. No output came from it.

Any thoughts?
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #39 on Thu 29 Dec 2011 04:27 AM (UTC)
Message
I've lost track of the changes that IRE have been making to GMCP. The 201 type might work or it might have a different message format. Twisol probably knows ...

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kevnuke   USA  (145 posts)  Bio
Date Reply #40 on Thu 29 Dec 2011 04:40 AM (UTC)
Message
any idea how I can reach him?
And Swype can't seem to figure out that this is a text box..it doesn't want to auto-capitalize the beginning of my sentences. And for a moment it wasn't auto-spacing between words either Hmm..
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #41 on Thu 29 Dec 2011 05:51 AM (UTC)

Amended on Thu 29 Dec 2011 05:52 AM (UTC) by Twisol

Message
'Allo.

ATCP and GMCP have different message formats. GMCP uses a JSON object as its payload, whereas ATCP has a relatively custom delimiter-based format per message. The semantics themselves aren't really that different, but it's not as simple as switching 200 to 201.

I've uploaded my GMCP plugin to my public Dropbox folder [1]. I can't guarantee that it works, I haven't logged into Achaea in at least a couple months now. If you find any issues though, I'd be glad to investigate.

[1]: http://dl.dropbox.com/u/10356966/GMCP.plugin.zip

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
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.


106,261 views.

This is page 3, subject is 3 pages long:  [Previous page]  1  2  3 

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.