Plazma Burst 2 Map Editor Manual
Map Editor Manual v.5.7.0
Map Editor Manual v.5.7.0
  • Map Editor Manual v.5.7.0
  • Changelogs
  • Credits / Special thanks
  • Plazma Burst 2 Official Website
  • Laserguide's Map mapping Tools
  • [Old version] pdf takeaway edition
  • ALE Improvements
  • πŸ—ΊοΈThe Surface of the level editor
    • Old level editor
    • New level editor
    • Map Edit Page
  • πŸ› οΈThe tools
    • Free Edit tool
      • The Shortcuts
    • Add Wall
    • Add Movable
    • Add Region
    • Add Background
    • Add Pushing area
    • Add Water
    • Add Player
    • Add Actor (enemy)
    • Add Vehicle
    • Add Decoration
    • Add Weapon
    • Add Lamp
    • Add Barrel
    • Add Trigger
    • Add Timer
    • Add Engine Mark
    • Scale Selection Tool
    • Add Song
  • πŸͺ‘Tables of Level Editor
    • Character Data Table
    • Character Skin Color Table
    • Trigger Action Table
      • Movable
        • Basic Movable Tutorial
      • Region
      • Vehicle
      • Character
      • Gravity
      • Scenario
        • Tutorial 9 & 50
      • Gun
      • Barrel
      • Trigger
      • Timer
      • Decoration
        • Blending Mode
      • Gravitator area field
      • Gameplay
      • Sound
      • Interface
      • Light
      • Trigger execution
      • Var
        • Inventory Info Tutorial
        • Synchronization of variables
        • Key binding in multiplayer
      • Session vars
      • URL
        • URL Request Tutorial
      • AI
      • Environment
      • Text-to-speech
      • Map preview
      • Experience
      • Array
        • What is array?
        • Matrix Coloring System
      • Graphics
      • Water
      • Miscellaneous
    • Engine Mark Table
      • Sky Code Table
    • Sound Library Table
    • Newer Weaponry Data
      • Weaponry Data
    • Projectiles Model Table
    • Text-to-speech Voice Table
    • Application Table
  • πŸ›tables of debug
    • Cheat Codes
    • Error Codes Identification
  • πŸ”«Secret Weaponry
    • Campaign Maps
    • Alternate method to add Water UID
    • "Fake" Collision
    • Secret Theme "4"
    • More Accurate Snipping
      • History of contributions.
    • Custom Image in Theme Purple/Green
    • Check map
    • Phsc's image import to map source
    • XML Output in Map Editor
    • createColorMatrix Script
  • β˜‘οΈApproval-Military
    • Map Approval Requirements
    • Custom Decoration Guidelines
  • πŸ§˜β€β™€οΈInspirational
    • Trivia
    • Resi Map making inspiration
    • Max Teabag Map making inspiration
    • Reject Map making basics
    • Illijah's Map making experience
  • Placeholder
Powered by GitBook
On this page

Was this helpful?

  1. Secret Weaponry

XML Output in Map Editor

The server can't save your maps? Don't worry, code is here!

During your adventure in creating maps, you might encounter a few hiccups along the way. For example, the level editor might hiccup and fail to save your hard work, or the server could decide to take a little break!

But don't worry, instead of feeling frustrated or saying farewell to your efforts, our wonderful friend, prosuwanted, has come to the rescue with a clever solution. They've figured out how to safeguard your progress by converting it into an xml format. This means you can breathe easy and not stress about losing any of your valuable work.

Here's the simple code you need to run in the console:

// Code by prosuwanted
{
  let s = '';
  for (const o in es) {
      if (!es[o].exists) continue;
      s += compi_obj(o);
  }
  
  // Create a Blob containing the XML content
  const blob = new Blob([s], {type: 'application/xml'});
  
  // Create a URL for the Blob
  const url = URL.createObjectURL(blob);
  
  // Create a download link
  const a = document.createElement('a');
  a.href = url;
  a.download = mapid + '.xml';
  
  // Download & clean up
  a.click();
  a.remove()
}

Once you run the code, you will download the xml file. In the future, you can simply import that file to bring back your map, allowing you to hold onto your progress without the need for goodbyes!

PreviousPhsc's image import to map sourceNextcreateColorMatrix Script

Last updated 1 year ago

Was this helpful?

πŸ”«