User:Astraltor/References: Difference between revisions
No edit summary |
|||
Line 128: | Line 128: | ||
|} | |} | ||
== Info FAQ == | |||
miscellaneous things about a submarine that maybe you wanted to know need a better name for this section though. | |||
Q: How big is the default preview image? | |||
A: It's 640 x 368. | |||
Q: What format is the default preview image? | |||
A: It's in PNG which makes it rather size inefficient. About 150kb - 190kb of an average submarine is just its preview picture! for an average 200-300kb sub, that's 50% - 75% of the file size. Saving an equivalent resolution JPG can reduce the preview image size to 50kb - 100kb. | |||
== Miscellaneous FAQ == | |||
Q: What makes a balanced submarine? | |||
A: Barotrauma is not a game about finely tuned balance. Submarines are meant to be fun and engaging. While the vanilla submarines provide a great baseline to compare against, it is ultimately up to the players whether a submarine is fun for them or not. | |||
Q: How do I make my sub popular on the workshop? | |||
A: Promote, promote, promote! There's no one word answer to it, but it's all about promoting the submarine. Nice workshop page, nice images, and getting as much exposure for it as possible. | |||
== Useful Pages == | == Useful Pages == |
Revision as of 16:47, 22 July 2023
Here we have some reference data, mostly pertaining to submarine building.
Sprite Depth
Sprite Depth | Thing |
---|---|
0.010 | Turrets and periscope |
0.060 | submarine shells |
0.100 | Duct Block, Chairs |
0.180 | Eggs |
0.200 | Mucus Balls, Chitin, Gardening Seeds/Produce |
0.500 | Characters, Fire, (and other particle effects?) |
0.509 | Hatches |
0.510 | Ladders, Doors |
0.540 | Crates |
0.550 | Most held weapons/tools, loot items, diving gear, and weapon projectiles |
0.600 | Most other inventory items. |
0.610 | Ladder steps |
0.700 | Hatch background, Pet Food |
0.750 | Planter Boxes, plants. |
0.780 | Gravity Sphere Base |
0.800 | Most installations, Ballast Flora, Wiring Components |
0.840 | Cabinets, Gravity Sphere Sphere |
0.850 | Cable Holders, Bunks |
0.855 | Wires |
0.890 | Door background |
0.910 | Vents |
0.970 | Background Wall/decorations |
Additionally, some items have a span of depths. All items with animated parts will have at least 2 layers.
Main Depth | Range | Item | Description |
---|---|---|---|
0.510 | 0.610 | Ladder | Steps |
0.509 | 0.700 | Hatch | Hatch background |
0.780 | 0.840 | Gravity Sphere | Base is closer |
0.800 | 0.840 | Fabricator, Deconstructor | various decorative bits |
0.800 | 0.860 | Oxygen Generator (not shuttle/outpost) | tubes |
0.510 | 0.890 | Doors | Door background |
0.910 | 0.920 | Vent | fan |
0.950 | 0.990 | Mineral, Seeds, and Small, Medium, and Large weapon display shelves | Light, Glass, Contents, Textures at 0.01 intervals |
0.980 | 0.960 | Office windows | Window Border |
Notes
- Characters using installations (beds, ladders, chairs) will go slightly behind the depth of the furniture (Exception: Periscopes?)
- items and installations have a max depth of 0.900 (bug?)
- I tend to use depths around 0.801 - 0.849 for decoration that is to show in front of wires and 0.856 - 0.899 for behind-wires/background items.
- Moving shells behind 0.500 will result in the damage mask not being displayed - i.e., there will be no visual damage to the shells.
- this list isn't necessarily 100% complete
- This list is accurate to the best of my knowledge
Console stuff
A some particularly useful/unusual Console Commands.
Main command | Parameter 1 | Parameter 2 | Notes |
---|---|---|---|
debugdraw | Useful in both test and main editor mode.
In Edit mode it notably shows shell hitboxes, and allows setting sub price value to below the minimum when saving. | ||
setentityproperties | Indestructible | true / false | Sets the item as invincible, won't take damage when hit etc. Items have this as a checkbox, but shell pieces still require command to do so. |
setentityproperties | maxhealth | Infinity / -Infinity / NaN | Infinity results in empty health bar
When inside: -Infinity and 0 doesn't take damage, has no collision, no LOS blocking. NaN sets the wall to leak water heavily, has full collision. When outside: -Infinity, 0, NaN have collision 0 may visually very weird (damage mask?) |
Info FAQ
miscellaneous things about a submarine that maybe you wanted to know need a better name for this section though.
Q: How big is the default preview image?
A: It's 640 x 368.
Q: What format is the default preview image?
A: It's in PNG which makes it rather size inefficient. About 150kb - 190kb of an average submarine is just its preview picture! for an average 200-300kb sub, that's 50% - 75% of the file size. Saving an equivalent resolution JPG can reduce the preview image size to 50kb - 100kb.
Miscellaneous FAQ
Q: What makes a balanced submarine?
A: Barotrauma is not a game about finely tuned balance. Submarines are meant to be fun and engaging. While the vanilla submarines provide a great baseline to compare against, it is ultimately up to the players whether a submarine is fun for them or not.
Q: How do I make my sub popular on the workshop?
A: Promote, promote, promote! There's no one word answer to it, but it's all about promoting the submarine. Nice workshop page, nice images, and getting as much exposure for it as possible.
Useful Pages
- Walls a page detailing each wall by name + its HP. TL;DR: bow-stern: 400, external shells: 200, shuttle/glass: 50, interior: 75. These are only the default HPs, it can be changed (See "Diving deeper into the sub editor")
- Autofill Tags autofill generates items in containers so you don't have to! Useful for giving ships some minor randomization, as well as for wrecks. And slightly future proofs for new items.
- Undertow discord (link should be on sidebar and main page of wiki)
- The official submarine editor guide