Teardown
137 个评价
Prop Gallery
5
   
奖励
收藏
已收藏
取消收藏
Type: Global
Category: Tool
文件大小
发表于
更新日期
1.077 MB
2023 年 9 月 30 日 下午 2:04
2024 年 11 月 3 日 上午 3:09
7 项改动说明 ( 查看 )

订阅以下载
Prop Gallery

在 Geneosis 的 1 个合集中
Geneosis' Creations
26 件物品
描述
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
引用自 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 ;)
热门讨论 查看全部(1)
2
2023 年 10 月 3 日 上午 9:48
Comments kinda off
bowdown310
153 条留言
Geneosis  [作者] 9 月 28 日 上午 11:13 
Want more magic in your life? How about changing your job to Enchanter ?
bakedBean2437 7 月 26 日 上午 10:41 
Nvm I’m dumb I loaded a save cuz i was trynna copy a prop that I made
Geneosis  [作者] 7 月 25 日 上午 12:54 
@bakedBean2437: DId you enable the mod in the mod menu? Then it should be in the last column of tools and called "prop capture".
bakedBean2437 7 月 24 日 下午 9:05 
i cant find the tool
Polonez 4 月 15 日 上午 4:34 
@Geneosis OK
Geneosis  [作者] 4 月 14 日 上午 10:18 
@𐌛𐌏𐌋𐌏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 4 月 14 日 上午 4:53 
The map i screenshotted it was russian town ufo attack, Yeah idk why i cant copy paiste screenshots in the commennt bar...
Geneosis  [作者] 4 月 13 日 上午 10:41 
@𐌛𐌏𐌋𐌏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 4 月 13 日 上午 5:04 
@Geneosis Yeah, I still have troubles capturing stuff...
Geneosis  [作者] 4 月 13 日 上午 4:29 
@𐌛𐌏𐌋𐌏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?