INFO: battle.xc

Published by ORT on

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #109811
    ORT
    Member

    (Due to the lack of an official wiki and thorough public documentation of the XVM mod, this is an attempt to publish the ins and outs of XVM and cover all of the .xc files. This is intended to be a live document. Every time there are changes to XVM, the finalized changes will be incorporated in the document. Additions/comments/corrections to the information here are welcome. If you have any comment, or noticed anything missing or needing more clarification, or anything that is wrong, please post a comment.)

     

    battle.xc controls general parameters not covered by other config files; controls enabling/disabling of other elements such as spotted status, hp and gun marks in players panels and minimap; frags bar; clock formats; etc., etc. personally, I consider battle.xc a mixed fruit salad of XVM’s config files. It’s like what can’t be put anywhere or too little to warrant it’s own config file is placed in battle.xc. But that is open for argument, it is just my opinion.  
     
    Default XVM battle.xc explained.

    Spoiler

    (default battle.xc config)
     
    /**
     * General parameters for the battle interface.
     */
    {
      “battle”: {
        // false – Disable tank icon mirroring (good for alternative icons).
        “mirroredVehicleIcons”: true, <<<< best set to false when you are using custom contour icons. 
     

        // false – Disable pop-up panel at the bottom after death.
        “showPostmortemTips”: true, 
     
        // false – disable highlighting of own vehicle icon and squad.
        “highlightVehicleIcon”: true,
     
        // true – enable {{spotted}} macro in players panels and minimap. WARNING: performance expensive
        “allowSpottedStatus”: true, <<<< enable/disable the spotted markers in players panels.
     

        // true – enable {{hp*}} macros ability in players panels and minimap. WARNING: performance expensive
        “allowHpInPanelsAndMinimap”: false, <<<< enable/disable display of hp on players panels and the minimap, may be a resource hog.
     
        // true – enable {{marksOnGun}} macro in players panels and minimap. WARNING: performance expensive
        “allowMarksOnGunInPanelsAndMinimap”: false, <<<< enable/disable display of gun marks on players panels and the minimap, may be a resource hog.
     
        // true – enable custom labels on battle interface window
        “allowLabelsOnBattleInterface”: true, <<<< enable/disable displaying of battle interface labels on the battle screen.
     
        // Format of clock on the Debug Panel (near FPS).
        “clockFormat”: “H:N”, // TODO: “H:i” 
     
        // Path to clan icons folder relative to res_mods/mods/shared_resources/xvm/res.
        “clanIconsFolder”: “clanicons/”,  <<<< normally XVM downloads by default only the top 50 clans in your server, or as set in your personal cabinet at http://www.modxvm.com/en/.
     
        // Path to sixth sense icon (“” for original icon).
        “sixthSenseIcon”: “xvm://res/SixthSense.png”,  <<<< allows to define storage location of a custom sixth sense icon.
     
        // GUI elements settings (experts only)
        “elements”: ${“elements.xc”:”elements”},  <<<< this loads the elements.xc file. (also known as snippets). 
     
        // Camera settings
        “camera”: ${“camera.xc”:”camera”}, <<<< this loads the camera.xc config file.
        // Switching between players on the minimap after death
        “minimapDeadSwitch”: true
      },
     
       // Frag counter panel at top side of battle windows interface.
      “fragCorrelation”: {
        // true – show quantity of alive instead of dead
         “showAliveNotFrags”: false <<<< if set to ‘true’ will show players that are alive instead of dead. Personally, I personally prefer to know how many live players there are in each team.
      },
     
      // Total HP of teams.
      “totalHP”: {   <<<< shows dynamic (in realtime) hitpoints of each team.
        // true – show total HP of teams
        “enabled”: false,
        // Color of HP per ratio ally/enemy team, hex rgb    <<<< for a tutorial on colors hex values, see <a href="/index.php?/topic/494-setting-colors-and-alpha-in-xvm/” rel=””>https://www.blackwot.com/index.php?/topic/494-setting-colors-and-alpha-in-xvm/
        “colors”: {
            “bad”:     “FF0000”,
            “neutral”: “FFFFFF”,
            “good”:    “00FF00”
        },
        // Font of HP (used fonts from: res/packages/misk.pkg/system/fonts/)
        // default_medium.font, default_smaller.font, default_small.font, hpmp_panel.font, system_large.font, system_medium.font, system_small.font, system_tiny.font, verdana_medium.font, verdana_small.font
        “font”: “default_small.font”,
        // Axis field coordinates <<<< for a tutorial on determining x and y positions, see <a href="/index.php?/topic/427-how-to-find-x-and-y-positions/” rel=””>https://www.blackwot.com/index.php?/topic/427-how-to-find-x-and-y-positions/
     
       “x”: 0,
        “y”: 36,
        // Horizontal alignment of field at screen (“left”, “center”, “right”).
        “hAlign”: “center”,
        // Vertical alignment of field at screen (“top”, “center”, “bottom”).
        “vAlign”: “top”
      },

      // Ingame crits panel by “expert” skill.
      “expertPanel”: {
        // Delay for panel disappear. Original value was 5.
        “delay”: 15,
        // Panel scaling. Original value was 100.
        “scale”: 150
      }
    }

     

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.