Open JamieRCHI opened 1 year ago
That looks amazing!
I just figured out how to add the Icons. Edit: Had issues with the Icons not showing up properly in the menus. I can add details of how I fixed this if your interested.
In SmallStorage.Unity
:
Assets: Assets/SmallStorage/ProductIcons
and placed a 256x256 png of the desired icon there. Texture 2d
resource.In SmallStorage
, BuildingData.cs
.SetCustomIconPath
as shown:
.SetPrefabPath("Assets/SmallStorage/Prefabs/fluidmicro.prefab")
.SetCustomIconPath("Assets/SmallStorage/ProductIcons/FluidMicro.png")
My new changes. Feel free to take anything you want from this. Release files: SmallStorage_release_v100.0.3.1.zip Source files: src.zip _docs.zip Models Source.zip
Played with this for awhile in my save game. No issues in game as far as I can tell. Note: Moved the docs and source model files out of the Unity solution. Unity kept adding the annoying .meta files to everything. Now I just copy the .fbx and .png files as needed to the proper locations in the .unity solution.
Wish I could get this working in the latest build of the game. The new elevators animations are nice, but take up 2 tiles instead of one in this mod. I prefer function over form.
Finally figured out how to compile and modify the mod to make things look the way I want them to. This picture shows a modified Loose Elevator 2 and a Micro Storage. And now to figure out how to fix the Icons in the menu.
Many of my problems were due to the miss-spelled items and errors in the readme.md file on the COI Official Modding github site.
Edit: I normally use Rhino 3d instead of Blender for creating my static assets and export to FBX. Note that the model inside of Rhino 3d needs to be rotated in the X axis so that it points up in the Y Direction with the bottom part centered at the origin. Also, I remove the surfaces where the ports will attach in the game, and I extended the bottom of the model down a bit to eliminate flickering in the game on the bottom edge. In the model for the Unit Elevator 2, I add to increase the height at the top to eliminate flickering on the top of the model in the game.
For anything with animation, I suppose I will have to import the FBX to Blender and edit it there. Not sure how to do that yet.