Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Furniture Sizes
Resize any furniture piece, one by one: from the config, LethalConfig, or by looking at it and pressing keys. Resized furniture is previewed at its real size and rests on the floor in build mode. Needs InputUtils for the keys. Host-only sizes.
CHANGELOG
Changelog
1.2.2
- Fixed: the build-mode preview showed the wrong size for a piece that was already resized when you picked it up. The game itself already draws the preview at the piece's size at that moment, and 1.2.0/1.2.1 then scaled it a second time on top, so the size was applied twice (a piece at 0.5 was previewed at 0.25). The game also never updates its preview while you change the size with the keys, and it applies the size to the wrong axes for models that are turned inside the piece. Now the preview and the outline of the piece you are moving are redrawn from the real piece every frame, so they are right whether you resized the piece before or while you hold it.
- Fixed: resized pieces came to rest a little too high or too low (a cupboard made 1.5 times taller floated about 0.4 m). The height was worked out from that doubly scaled preview. It now comes from the real model, so the piece rests on the floor where the normal-size piece rests, whichever way the piece's model is turned and wherever its pivot is. Against a wall the same rule moves the piece out of (or into) the wall so it touches it like the normal-size piece does.
- The preview is now drawn exactly where the piece will end up when you press confirm (the game puts the piece's placement collider at the preview's position, and the preview is drawn from that), so what you see is what you get.
- The obstacle check now uses the game's own box factor (0.285 of the placement collider's size, instead of 0.25), and also the free-room check some pieces have in front of them, both at the real size.
- The line in the log after placing now compares the base of the piece's model with the base of the preview, like for like. (The old line compared the piece with a preview that was itself drawn wrong, so it mostly measured the preview's mistake.)
- Tested with a simulation of the game's build mode (7,500+ checks: many pieces and sizes, floor and wall, turning and resizing while carrying). Pieces that were not resized are still not touched at all.
1.2.1
- Fixed: 1.2.0 did not load. It stopped at start-up with
Method not found: ... ConfigEntryBase.add_SettingChanged, so no settings, keys or build-mode fix were active. Nothing else changed: if you installed 1.2.0, update to this version. - If starting up ever fails again, the log now says so in one line (
could not start and is switched off: ...).
1.2.0
- Fixed: resized furniture sank into the floor in build mode. The game draws the see-through preview at the piece's
normal size, lifts it for that size and checks obstacles with a box of that size. Now, for a resized piece, the
preview is drawn at the real size, moved so the piece rests on the floor (or wall) where the normal-size piece
would, and the spot turns red when the piece would not fit at its real size. Pieces that were not resized are not
touched, and the fix never makes a spot allowed that the game refused. Switch:
Placement / FixPlacement. Pieces that were placed before you resized them must be picked up and placed again. - New: resize furniture with keys. Look at a piece (or carry it in build mode) and press
Insert/Delete(X),Home/End(Y),Page Up/Page Down(Z),\to reset. 0.1 per press, hold to repeat. The size is written to the piece's config entry, so it is kept, and shown on screen. Rebind the keys in the game's controls menu. New section[Keybinds]in the config. Needs LethalCompany InputUtils (now a dependency). - After a resized piece is placed, one line in the log says whether it ended up where the preview showed it.
- Pieces sized by another mod are left alone by the keys as well.
1.1.0
- Fixed: 1.0.0 did nothing on setups where the game destroys BepInEx's manager object. The hooks checked the plugin's own Unity object, which counts as "null" once it is destroyed, so they were skipped. Nothing depends on that object any more, the periodic check has its own protected object, and the manager object is protected too.
- Per-furniture entries now appear in LethalConfig's in-game menu (and are not flagged "requires restart"). In 1.0.0 only the two General settings were visible, so the only thing you could change was the global multiplier.
- Furniture that only exists in the ship scene (cupboard, file cabinet, bunk beds, light switch ...) can be sized too.
- Pieces already in the ship change as soon as you change their value, not only the ones you buy afterwards.
- If you changed
GlobalMultiplierwhile testing 1.0.0, set it back to1, otherwise everything stays scaled.
1.0.0
- First release.
- One size entry per placeable furniture piece in the config, created automatically from the game's own list (so furniture from other mods is included).
Enabledswitch andGlobalMultiplierin theGeneralsection.