Extension: Difference between revisions

From Club Penguin Protocol
Jump to navigation Jump to search
imported>Refractor
1 revision: importing preprocessed wiki pages
imported>Refractor
move
 
Line 4: Line 4:


Examples could include storing inventories in a database, a player's colour, clothes, etc.
Examples could include storing inventories in a database, a player's colour, clothes, etc.
== Extension Packets ==
[[Extension]] packets are categorized by their handlers.
You can determine an extension packet's appropriate handler by looking at the second and third sections of a client packet.
An example would be %xt%s%i#ai%1%413% - the 's' shows that the packet is a 'player extension' packet, which we know on the wiki to be a [[:Category:Standard_Packets|standard packet]]. The i#ai section of the packet shows that the handler belongs to the [[:Category:Item Handlers|item handler]] category.
The following is a list of some of Club Penguin's known handlers.
<ul>
<li>[[:Category:Item Handlers|Item Handlers]] - i</li>
<li>[[:Category:Mail Handlers|Mail Handlers]] - l</li>
<li>[[:Category:Message Handlers|Message Handlers]] - m</li>
<li>[[:Category:Moderation Handlers|Moderation Handlers]] - o</li>
<li>[[:Category:Player Handlers|Player Handlers]] - u</li>
<li>[[:Category:Room Handlers|Room Handlers]] - r</li>
</ul>


[[Category:Protocol structure]]
[[Category:Protocol structure]]

Latest revision as of 22:05, 11 November 2014

SmartFoxServer can run on its own without any user customization. However, to add an extra level of security (and fun) to a MMO, one can write their own custom server sided code. This is packaged and named an extension.

An extension is passed extension packets, in either str, XML, or JSON formats. It parses these, etc. etc. and manipulates the server's state to reflect whatever's happening.

Examples could include storing inventories in a database, a player's colour, clothes, etc.

Extension Packets

Extension packets are categorized by their handlers.

You can determine an extension packet's appropriate handler by looking at the second and third sections of a client packet.

An example would be %xt%s%i#ai%1%413% - the 's' shows that the packet is a 'player extension' packet, which we know on the wiki to be a standard packet. The i#ai section of the packet shows that the handler belongs to the item handler category.

The following is a list of some of Club Penguin's known handlers.