Teardown

Teardown

135 ratings
Prop Gallery
5
   
Award
Favorite
Favorited
Unfavorite
Type: Global
Category: Tool
File Size
Posted
Updated
1.077 MB
30 Sep, 2023 @ 2:04pm
3 Nov, 2024 @ 3:09am
7 Change Notes ( view )

Subscribe to download
Prop Gallery

In 1 collection by Geneosis
Geneosis' Creations
25 items
Description
Found some cool prop? Save them to your gallery and load them back any time, anywhere!

Now in v3.0.2! (see full patch notes)

Thanks to Zooi for the image capture and display code, Λutumn for the code samples and YuLun for the spawn placement tool ;)

TOOLS
- Prop Capture: Save props in your gallery, load them back at will.

KEYBOARD CONTROLS
- [LeftClick]: Save prop at cursor.
- [MiddleClick]: Select / deselect prop.
- [K]: Clear selection.
- [Shift]+[LeftClick]: Delete prop.
- [O]: Open Gallery (+ options).

CHARACTERISTICS
- Only single shapes can be saved in the Gallery (not complex or articulated objects).
- Props saved in the Gallery can be loaded any number of times, on any map.
- You can rename props in the Gallery after saving them.
- To capture a group of props, your cursor must be on one of them.
- Loaded group props will stick together as a single entity.
- The delete action can delete any object, not only those spawned from the Gallery.
- Using delete when multiple props are selected will delete all of them.
- If you save a static object in the gallery, it will become a dynamic prop when loading it.
- Some of the properties of the prop are retained (like explosive or unbreakable).

KNOWN BUGS
- The preview pictures looks crappy: yes.
- The texture of the props is not saved: This is a limitation of current modding API.
- I increased the preview resolution and now my game lags: reduce it and delete the props taken with that resolution from your gallery.
- When using the delete action on a vehicle part, the whole vehicle will be deleted: This is a limitation of current modding API.

DEV NOTES
Originally posted by About this mod:
This idea came straight from one of my mod comments by a player names Kousoulakis :) After clarifying what he was looking for, it turned out that a prop gallery was not something that can be found on the workshop already, and yet it is made possible by the latest updates of the game, so I felt like I could do it.
When thinking about object library, I had in mind some preview images, and I remembered seeing some other modder playing with that on Discord so I checked if anyone published something similar on the workshop and ended up finding Zooi's Working Instant Film Camera which was a great help for me to get a picture of the objects to save in the gallery ^^
Other than that most of the rest of the code is from my Omni Gun mod, except that instead of making copies of the object immediately, I save the data of the object in the registry as several json objects, then when the player wants to spawn it I load them back and create the new object with that data.
Then my last struggle with this mod came from being able to spawn the prop copy at the same location away from player than where the picture was taken... I was trying some complicated stuff with quaternion here that I had trouble to get to work >_< Fortunately Λutumn accepted to share some code sample with me that had a much simple solution using the TransformToLocalTransform() and TransformToParentTransform() functions ;)
Popular Discussions View All (1)
2
3 Oct, 2023 @ 9:48am
Comments kinda off
bowdown310
149 Comments
Polonez 15 Apr @ 4:34am 
@Geneosis OK
Geneosis  [author] 14 Apr @ 10:18am 
@𐌛𐌏𐌋𐌏N𐌄Z: Oh yean no Steam won't let you do that, but if you just publish the screenshot on your Steam page and your profile is public, I should be able to see it ;)
Polonez 14 Apr @ 4:53am 
The map i screenshotted it was russian town ufo attack, Yeah idk why i cant copy paiste screenshots in the commennt bar...
Geneosis  [author] 13 Apr @ 10:41am 
@𐌛𐌏𐌋𐌏N𐌄Z: Hmmm, did you make a local copy of the mod maybe? If you did try to delete that copy and use the main mod instead... Else please try to share an actual screenshot of what you are trying to captrue (with the name of the map where you found it) so that I can try it myself and see if there is an issue with that object.
Polonez 13 Apr @ 5:04am 
@Geneosis Yeah, I still have troubles capturing stuff...
Geneosis  [author] 13 Apr @ 4:29am 
@𐌛𐌏𐌋𐌏N𐌄Z: As I said you can always reset the mods settings by clicking that reset button, so there should not be any problem on this side. Did you click it alreay? And do you still have trouble capturing stuff after that?
Polonez 13 Apr @ 3:14am 
@Genosis I messed up in the settings thats how it is now, But why a bug happens when i thry to screenshot a object, Can you fix it?
Geneosis  [author] 13 Apr @ 1:29am 
@𐌛𐌏𐌋𐌏N𐌄Z: No, it only resets the other options you may have changed for this mod. If you actually have some props in your gallery and you want to remove them you have to use the trash can icon near them.
Polonez 13 Apr @ 1:04am 
@Geneosis So this "RESET" deletes the props!?
Geneosis  [author] 12 Apr @ 4:36am 
@𐌛𐌏𐌋𐌏N𐌄Z: If you want to reset the mod settings there is a "reset mod" button at top right. If you want to move from one page to the next in the gallery there is a slider with a number on the left, just move that slider to see other pages.