[1.5] [WIP] Tents with interiors - Help Needed!

Started by S1lverw0lf, August 19, 2024, 02:31:22 AM

Previous topic - Next topic

S1lverw0lf

Hi there~
After taking a look on the Pocket Dimensions mod and RV with Interior submod, i decided to make a compenduim for these two, but in a form of deployable Tent With Interior!

MOD FEATURES:


Deployable tents,  designed to change your Nomadic Playthrough forever!

You can decor, floor, and furniture your yurt-syle tent, and then pack it on your prefered animal and just deploy it elsewhere!
Importnat fact: all your valuable stuff is not considered as your known wealth, so you can succesfully hide a bunch of diamonds inside the tent, and no stinky barbarians wouldnt know they are there!

In a combination of other Nomad-related mods like Visit Settlements it could be a potential life changer for nomadig gameplay.




Disclaimer: this mod is made on the Pocket Dimentions as a base, and i don't have the permission from the original author (yet).
It's also utilizing the tent graphics from PCP Tents and tent door from Doors Expanded as temporary solution


SPECIFICS:
The mod is utilizing the z-dimention creation so it's basigally generating the tiny inaccessible 'caravan' map in the void, where you teleport. You can transfer resources using the teleporter in a form of the storage box outside of the tent to teleport resources in the tent directly.



 Unlike Deplyable RV and it's predeccesor  Pocket Dimensions, the tent is usung fabric and leather materials for walls.

NOW THE SAD PART:
I'm not a Rimworld modder, but a Rimworld player since early alpha. I'm also a beginner C# coder, but i don't know how to compile stuff through source code in VS.  Working on this mod i was very limited to dnSpy and XML Defines operations which i'm not really familiar with, so i was very limited on what i could do there.


KNOWN ISSUES:
1) The tent is a minifyable object, but it's not getting scaled down when minified.

2) The interior generation is using radius not grid, do the tent can have only square shape. In fact it would love to end up with different shapes and tent variants.

3) Due to the previous problem, the interior generates the 'Tent EXIT' object in the very center of the tent. As it's designed now as a tent door instead of the static object lying in a ground, this door should be generated  in it's place in the tent wall, not standing solely in the center.  You can change this by moving or destroying the piece of wall, and then placin the door there manually. Unfortunately that's the only working way now.



4) The tent could be connected to the electricity outside, but by some reason the energy transfer is gettng weird math with minus for now.

5) Currently due to the fact that the tent door is and object, it's not blocking the heat as it would do as a door. I'd wish to change that, but i didn't find the solution (yet)

6) The 'hopper' (currently designed as a storage box) in the code must be placed on adjacent tile to the very center, and without re-coding this part it's now placed graphically near the door, but i did this mostly by setting the offset for the sprite, while the interaction point remains near the tent center.  As a result it's not selectable by clicking on it, but only clicking on the object's factual location near the nent center.


7) THE MOST ANNOYING issue - the tent is not selectably by clocking on the entire mesh collider, you have to click to the interaction point in the center to enter it . The same issue goes for the hopper.

8)  [CODE ISSUE] Creating more than one tent is quite buggy now, but works in certain conditions. This is somewhat related to UIDs of the tents, nent entrance 'teleporters' and hopper 'teleport' as the code originally wasn't intended to build few pocet dimensions. HOWEWER IT WORKS!




8) Currently the interior walls don't posess the tent material colour etc. [Minor]

9) Currently

POTENTIAL ISSUES:  [/b]
Potential incompatability with Save Our Ship 2 or some other mods using z-dimensions.


If you like the idea, and you can help with making this mod thrive - i will be thankful!




Nomadic_Camps.zip -  3.4 MB