Oxygen Not Included

Oxygen Not Included

35 ratings
Extended Building Width
   
Award
Favorite
Favorited
Unfavorite
Compatibility: Base Game, Spaced Out!
File Size
Posted
Updated
169.108 KB
Aug 23, 2023 @ 1:37pm
May 14 @ 12:22pm
19 Change Notes ( view )

Subscribe to download
Extended Building Width

Description
If you are not satisfied with standard width = 3 for bridges, then this mod is for you.

How to use?
1. Click Build menu and choose a building you want to extend.
2. When building is selected, you will see a white silhouette of a building with its standard width.
3. Press ALT+X or ALT+C to shrink or enlarge the width. These key bindings can be changed in menu: Options -> Game -> Controls -> Mods.
4. Place the building.

How to manage settings?
While in Main Menu, go to Mods submenu, locate this mod, press Options, and then press Modify config settings in GUI.
The config.json is located in %userprofile%\Documents\Klei\OxygenNotIncluded\mods\config\ExtendedBuildingWidth. It prevents this file to disappear when publishing.
You can create a list of all in-game buildings via corresponding button.
By default, the mod provides enlarging widths (from min=2 to max=16) of Gas Bridge, Liquid Bridge and Solid Bridge (and also any other building that includes "ConduitBridge" in its name, including buildings from other mods like HighPressureApplications).

Key bindings for shrinking/enlarging (by default: ALT+X and ALT+C) can be changed in menu: Options -> Game -> Controls -> Mods.
I recommend changing it to CTRL+MouseScrollUp and CTRL+MouseScrollDown (or similair).

Known problems / restrictions
- Stretched buildings look ugly (especially with greater widths)
- Travel tube crossing not able to be extended - because of some complex core game mechanics (pathfinding). Separate mod needed

Github
Source code is here Github[github.com]

Bugs and issue creation
Creating an issue ticket is appreciated and could really help in dealing with problems.
Remember: even a "not-so-good" issue ticket is much better than no ticket at all. Don't be shy, just create one. Also, you can edit your ticket later.
An issue ticket can be created on Github issue[github.com] page.
In case you experience a crash: try to delete the mod and reinstall it before creating an issue. The reason is - sometimes Steam does not correctly update mods.
Also I recommend subscribing to Mod updater mod that could help keep mods to be up to date.
35 Comments
Damntry Apr 16 @ 3:50pm 
Yep working fine. Thanks.
INFLAMES  [author] Apr 16 @ 2:09pm 
should be fine now
Damntry Apr 16 @ 1:18pm 
Subscribed today and it crashes as the only mod enabled:

[ERROR] GameAssets(Clone) ~~~!System.NullReferenceException: Object reference not set to an instance of an object
at ExtendedBuildingWidth.DynamicBuildingsManager.RegisterDynamicBuildings_For_ExtendableConfigSettings () [0x00071] in <27b8a2dfcea448878243a8a559be3f30>:0
at ExtendedBuildingWidth.Patch_GeneratedBuildings_LoadGeneratedBuildings.Postfix (System.Collections.Generic.List`1[T] types) [0x00000] in <27b8a2dfcea448878243a8a559be3f30>:0
at (wrapper dynamic-method) GeneratedBuildings.GeneratedBuildings.LoadGeneratedBuildings_Patch1(System.Collections.Generic.List`1<System.Type>)
...


Maybe its expecting the config to already exist at My Documents? Mine is empty.
INFLAMES  [author] Apr 9 @ 2:16am 
@ECHO,
Heavi-Watt alike bridges (tile-based) - should work fine now (check updated picture of SourceFileForConfigJson.txt in description).
Travel tubes - wasn't able to make it work. I will try to make separate mod that will allow travel bridges to be placed adjacent (without buffer). ~50% success rate.
INFLAMES  [author] Apr 1 @ 4:00am 
I will look into it
ECHO Mar 30 @ 9:00pm 
Will it be too much work for the bridges that function as tiles to also be extended,
TravelTubeWallBridgeConfig (Transit Tube Crossing)
WireBridgeHighWattageConfig (Heavi-Watt Joint Plate)
WireRefinedBridgeHighWattageConfig (Heavi-Watt Conductive Joint Plate)

In the case of the Transit Tube Crossing [oxygennotincluded.fandom.com], the wiki says that you can't chain bridges into each other without a buffer.
hazimemasite Mar 29 @ 5:32pm 
Latest update is the best solution for customization
INFLAMES  [author] Mar 8 @ 4:32am 
I'm glad you figured it out
Syndlolz Mar 6 @ 11:02am 
I did it. For normal wires WireBridgeConfig and for conductive wires WireRefinedBridgeConfig
Syndlolz Mar 6 @ 3:58am 
Is it possible to change width of power wire bridges?