Jump to content

PokeMMO Mod Documentation


Recommended Posts

  • 1 year later...
Posted

Follower Sprite Mods:

Certain files in the /sprites/followsprites/ folder will be loaded as overworld follower sprites. The naming format is 'ID-Gender-Shiny(-FormId).png'.

ID is the ID of the monster

Gender is 'b' for both, 'f' for female, 'm' for male

Shiny is either 'n' for normal or 's' for shiny

FormID is the form id for monsters that have multiple forms. If a form id is not specified it will be treated as form '0'.

These sprites are expected to be a single atlas image containing all frames for the follower gender/shiny combination.

Please use sprites that are represented with a 1-1 pixel ratio. PNG files that have sprites at 2x normal scale will lead to scaling/artifact issues. (Batch resize applications exist so please do not do this manually.)

 

/sprites/followersprites/atlasdata.txt is required to supply the atlas layout and structure. An example of a functioning atlasdata.txt is as follows:

Spoiler

;Table which determines sheet settings for follow sprites
;This is a global setting for all the sheets contained within the mod package.
;Meaning your sheets need to be uniform in size and placements
;Lines starting with ; will be ignored

;Amount of columns and rows
rows=4
columns=4

;Frame data
;Which frames it should use for each direction
;Format: id,id
;Max of 4 animation frames, min of 2
;Example for 4x2 sheet
;[0][1]
;[2][3]
;[4][5]
;[6][7]
;Example for 4x4
;[00][01][02][03]
;[04][05][06][07]
;[08][09][10][11]
;[12][13][14][15]

north=0,1,2,3
south=12,13,14,15
west=4,5,6,7
east=8,9,10,11

;Sprite scale/x/y/z modifications
;Default values: 1.0,0,0,0
;For larger sprites try starting from value 0.75,0,10,0
;Increasing X will put the sprite more on right
;Increasing Y will put the sprite higher
;Increasing Z will put the sprite down ( depth axis only 3d )
123=0.75,0,10,0
234=0.75,0,10,0
345=0.75,0,5,0
456=0.75,0,10,0

 

 

  • 5 years later...
Posted

Theme Mods:

Mods can provide custom themes. Themes need to be defined in the "info.xml" file:

  <themes theme_revision="3">
    <theme path="path/to/theme" name="themename" is_mobile="false" sprite_atlas="path/to/sprite/main.atlas"/>
  </themes>


theme_revision: Theme mods need to define a client theme revision they are compatible with. The client theme revision will be increased on major updates. Themes with a revision that are not equal to the current client theme revision will refuse to load.
path: The path needs to be relative to the zip root directory.
is_mobile: Whether the theme is intended for mobile platforms. Mobile themes can be used on non-mobile platforms but not vice versa.
sprite_atlas: An optional attribute that points to an atlas file relative to the zip root, that should be used when the theme is applied. For development purposes, the path can point to a directory containing the raw images. However, distributed mods are required to compile a texture atlas.

 

Current Theme Revision: 3

 

The current official themes and a history of theme changes can be found here: https://github.com/PokeMMO/PokeMMO_Mods/tree/master/theme_history
The changes in the latest update can be viewed in git diff format at: https://github.com/PokeMMO/PokeMMO_Mods/commit/ef853ef67d2dda6bba529e09b1edb983dea19d06

 

String Mods:

Mods can provide custom strings. Themes need to be defined in the "info.xml" file:

  <strings string_revision="1">
      <string path="path/to/string.xml"/>
  </strings>

string_revision: String mods need to define a client string revision they are compatible with. The client string revision will be increased on major changes to strings. Strings with a revision that are not equal to the current client string revision will refuse to load.
path: The path needs to be relative to the zip root directory.

 

Current String Revision: 1

 

Overlay Mods:

Mods can overlay certain internal PokeMMO asset paths with their own files. If a file from an overlayable directory gets loaded, the file will be first tried to be loaded from a mod and then from the internal storage.  
The overlay order is determined by the order of the mods in the Mod GUI. For every file the overlaying is resolved independently, therefore multiple overlay mods may be incompatible with each other.  

 

A mod needs to request permission to overlay a directory in the "info.xml":

  <overlays>
      <overlay path="path/to/overlay/"/>
  </overlays>


path: The path needs to be relative to the zip root directory.

 

The following paths can be overlayed:

  • data/sprites/atlas/
  • data/themes/
  • data/sprites/textures/

 

Mods that want to overlay the same directory cannot be applied at the same time.

 

It is discouraged to overlay the "data/themes/ " path for non-trivial themes, see Theme Mods instead.

 

Example Mods:

A small collection of example mods can be found here: https://github.com/PokeMMO/PokeMMO_Mods/tree/master/examples

 

Theme History:

- XMas 2024: https://github.com/PokeMMO/PokeMMO_Mods/commit/aebf89b20984724432d8fa20550fd5ca8f86ddf0

- LNY 2025: https://github.com/PokeMMO/PokeMMO_Mods/commit/ef853ef67d2dda6bba529e09b1edb983dea19d06

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.