Barotrauma

Barotrauma

103 ratings
Weapon XML Generator
3
2
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
451.083 KB
19 Jul @ 9:16am
20 Jul @ 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://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3530165514
27 Comments
VORON  [author] 3 Aug @ 3:13am 
thank you
15.5T  [author] 3 Aug @ 3:08am 
@VORON Cool! I've added the URL to introduction. Also, please accept my friend request so I can add you as a contributor.
VORON  [author] 3 Aug @ 2:54am 
@15.5T Here is the website I hosted. I modified the HTML code a little because I wanted to show what this code is missing. At the very bottom of the website, there is a link to this mod. Here is the link to the website: https://barotrauma-weaponxml.ru/ .
VORON  [author] 3 Aug @ 12:52am 
@15.5T Yes, I've already bought the domain, now I just need to set up the website. I'll be able to launch it in about an hour.
15.5T  [author] 3 Aug @ 12:40am 
@VORON The generator is now basically stable, so go ahead and do it. : ) If you want, you can deploy the webpage and post the address in the comments section, and I will add it to the
workshop introduction.
VORON  [author] 2 Aug @ 6:18pm 
Maybe I'll create a host site for this mod, let people without downloads edit their mods.
ArtiKシ 2 Aug @ 10:13am 
кртуо, не думал что можно сделать что-то такое через сайт
15.5T  [author] 28 Jul @ 12:05am 
@ураган
Удалите следующий фрагмент из RangedWeapon:
<StatusEffect type="OnUse" target="Contained">
<Use />
</StatusEffect>
Это логический XML, необходимый для оружия с многократным выстрелом. Внесение такой логики в оружие с однократным выстрелом приведет к однократному использованию всех патронов.
子小金石页 27 Jul @ 9:46pm 
大英雄:steamhappy:
ураган 27 Jul @ 8:42am 
я разобрался с большинством параметрами, смог настроить спрайт, но как сделать дробовик, с соответствующим режимом стрельбы так и не понял. У меня есть кастомная дробь, которая должна пихаться в дробовик по несколько штук и за выстрел полностью расходуется 1, как и в ванильном дробовике в принципе, точно так же действует, когда в оружие 1 дробь, то оно стреляет как надо, но когда пихаешь максимум - 8 штук, оно выстреливает все за раз) и ты убиваешь не только врага, но и самому прилетает так, что падаешь без сознания.