This wiki is archived from 2021-09-05

Planetary Annihilation Community Mods Implementation

From Planetary Annihilation: TITANS and Classic PA Wiki
Revision as of 14:23, 29 March 2016 by Admin (talk | contribs) (Created page with "Category:Modding = 50px Planetary Annihilation Titans & Classic Community Mods Manager Implementation = Community Mods is loaded remotely during...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File:Titans-icon.png Planetary Annihilation Titans & Classic Community Mods Manager Implementation

Community Mods is loaded remotely during startup.

Files are downloaded and cached for offline use or if the community mods server is temporarily offline.

File:Platinum-rank-icon.png Main Scene

The main scene is the parent of the game and uberbar scenes.

Community Mods injects into the main scene using hooks in the default code.

Once loaded remotely or from the download cache the following is started:

  • delay loading of game and uberbar scenes by clearing panel src
  • start downloading latest community mods files
  • scan for file system mods
  • merge into installed mods
  • load available mods from community mods server (failing back to local storage if unavailable)
  • update active zip mods
  • mount client mods
  • load game and uberbar scenes by restoring panel src (or after a 45 second timeout)

File:Platinum-rank-icon.png Start Scene

The start scene is the home page for the game panel in the main scene.

Community Mods injects into the start scene using hooks in the default code.

Once loaded from the download cache the following is started:

  • hook api.file.unmountAllMemoryFiles to prevent unmounting of memory files
  • if return to start and mods not already reset in transit:
    • hold ready
    • reset server mods
    • mount client mods
    • release ready