Barotrauma

Barotrauma

143 ratings
Weapon XML Generator
5
2
4
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
451.083 KB
Jul 19 @ 9:16am
Jul 20 @ 7:18am
2 Change Notes ( view )

Subscribe to download
Weapon XML Generator

Description
Weapon XML Generator

A visual weapon template generator for mod developers
Quickly generate ranged weapon XML templates, greatly simplifying the creation process!

Using Guide

Online Version
Click here to access the online version hosted by @VORON [barotrauma-weaponxml.ru]

Offline version

After downloading, open the folder “Your Steam installation path\steamapps\workshop\content\602960\3529593079” and open the HTML file to use it.

✨ Key Features

Visual Editing

Built-in texture selection tool for intuitive weapon sprite area selection

Click-to-select automatic positioning for barrel location, grip points and other key data

Real-time preview of weapon sprite and coordinate points

Comprehensive Parameter Configuration

Complete configuration of weapon attributes, physics parameters and interaction settings

Customizable combat parameters like damage, spread and reload time

Advanced options including crosshairs, ammo types and skill requirements

⚡ Efficiency Boost

Save time: Reduce XML coding from hours to minutes

Fewer errors: Automatically generates game-compliant code to avoid common mistakes

Note: This tool only provides basic weapon template generation. For advanced XML formats like StatusEffect, please refer to the official documentation[regalis11.github.io]

I have used this generator to complete a weapon mod. https://steamcommunity.com/sharedfiles/filedetails/?id=3530165514
36 Comments
Spooky Nov 27 @ 3:07pm 
WOW
Numidyum Nov 3 @ 7:51am 
Can you add sheet index alternative to sprite source rect like sheetindex="2,2" sheetelementsize="64,64"
Tadzik Oct 29 @ 2:49pm 
Could you add a function to enter your own "sprite source rect" by just pasting (x,y,width,height) by yourself instead of selecting it on png?
Nova Oct 8 @ 11:50am 
I hope you reconsider making a more universal xml generator, if you make something that can make custom turrets or even just basic texture replacements for things as well it would be revolutionary for barotrauma modding overall. I think the current amount of time to pick through the games xml files to make even very basic mods is a barrier for a lot of people and your tool solves this for weapon modding but it also seems to me at least that it is also very close to being able to do that for other things. Given that you've already made this you probably have the best understanding of this sort of thing in the community and already have a great start point to expand from... though I know it would still be a lot of work!

A suggestion for the current intent of just weapon modding, maybe make templates that match the current vanilla guns that people could use as a starting point/example?

regardless of what you decide to do this is amazing thank you for making this! <3
SynthUsami Sep 8 @ 2:09am 
I've only used this site to get the sourcerect, barrels and handle positions without having to adjust it manually, and it's great.

If I may suggest one thing, perhaps we can have a toggle to visualize the handle positions using hands instead of dots.
15.5T  [author] Aug 31 @ 5:24am 
In fact, I had the idea of creating a universal item generator, but since there's already a mod under my development... I hope others may achieve this feat.:as_terminal:
Hydremajor117 Aug 31 @ 3:25am 
Could I request an alternative version of that for ammo items ?
So peoples can just cook their own unlimited ammo patches for X or Y modded gun ?
Merc Aug 22 @ 6:52am 
Genuinely the most helpful tool on the entire workshop, makes weapon-making process a lot smoother

Thank you.
猫雷Kiss Aug 18 @ 3:36am 
大佬NB
VORON  [author] Aug 3 @ 3:13am 
thank you