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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Suggestions
. . -> [Subject]  Allowing multiple Send/Script calls on same line, Repeat on same line

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Allowing multiple Send/Script calls on same line, Repeat on same line
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  3  

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Thu 29 Dec 2011 05:51 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Kevnuke   USA  (83 posts)  [Biography] bio
Date Thu 29 Dec 2011 04:40 AM (UTC)  quote  ]
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..
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Thu 29 Dec 2011 04:27 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Kevnuke   USA  (83 posts)  [Biography] bio
Date Thu 29 Dec 2011 01:57 AM (UTC)  quote  ]

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?
[Go to top] top

Posted by Kevnuke   USA  (83 posts)  [Biography] bio
Date Tue 23 Mar 2010 12:26 AM (UTC)  quote  ]
Message
thanks Nick that's what I was looking for. I suppose i can get the rest when i get back online. :)
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Fri 12 Mar 2010 05:52 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Fri 12 Mar 2010 05:27 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Fri 12 Mar 2010 05:25 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Mar 2010 05:23 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Mar 2010 05:22 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Nick Gammon   Australia  (18,797 posts)  [Biography] bio   Forum Administrator
Date Fri 12 Mar 2010 05:21 AM (UTC)  quote  ]

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
[Go to top] top

Posted by Kevnuke   USA  (83 posts)  [Biography] bio
Date Fri 12 Mar 2010 05:01 AM (UTC)  quote  ]
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.
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Fri 12 Mar 2010 04:42 AM (UTC)  quote  ]
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


Well, that's what I mean by "What will yours do that mine can't? Or how does it do it better?" I don't mean to discourage ATCP-plugin development altogether, but I do want to encourage thinking about why, specifically, it should be released.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Fri 12 Mar 2010 04:39 AM (UTC)  quote  ]
Message
Perhaps every plugin could not only implement ATCP functionality by duplicating code, but indeed implement different handling of ATCP functionality. :P

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Twisol   USA  (2,230 posts)  [Biography] bio
Date Fri 12 Mar 2010 04:31 AM (UTC)  quote  ]

Amended on Fri 12 Mar 2010 04:33 AM (UTC) by Twisol

Message
Kevnuke said:

Yeah i was actually going to make a plugin for myself (and others if they want it) that grabs the subnegotiations and uses them for an autosipper and a curing system. Not sure how long it'll take me but I just want to see what I can accomplish. And I greatly appreciate all the plugins from various authors out there. They are great for ideas. :)


Well, a spot of advice for you: Writing it yourself to learn is all fine and stuff - it's a fantastic way to improve your abilities - but when there's already something that works well, and is proven to work, and there are already at least two other versions of the same thing, you might not want to make a point of releasing it for other people to use. What will yours do that mine (and Nick's, and Worstje's(?)) can't? Or how does it do it better? Mine in particular has existed for a long time, and I'm only the third and most recent maintainer.

Again, writing it yourself to learn is great, I would never say no to that. Go for it! But when you have three plugins, and they each need a different kind of ATCP plugin, which all do the same thing, something's wrong!

'Soludra' on Achaea

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


7,110 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]