Project Zomboid

Project Zomboid

76 个评价
Rename Weapon Mod (B41 compatible)
   
奖励
收藏
已收藏
取消收藏
标签: Mod
文件大小
发表于
更新日期
343.281 KB
2017 年 1 月 19 日 下午 11:46
2017 年 1 月 20 日 上午 12:01
2 项改动说明 ( 查看 )

订阅以下载
Rename Weapon Mod (B41 compatible)

描述
UPDATE January 2022. Does work in Build 41 (41.65). I think there is potential for mod conflicts. I've played with a few mods on, and the rename menu option stopped displaying. Others have commented that the radial menu to interact with firearms stops functioning properly for renamed ones. My guess would be if weird stuff like that happens, it could be related to having other mods active.

Might need some more tweaks. There appears to be a few more item types now, e.g. I think Baseball Bat is "sporting" or something, so I'd not be too surprised if renaming is impacted.

-----

Enable renaming weapons in inventory context menu, just like bags. Go forth and give that hammer you've been swinging around in the Exclusion Zone for 2 months a special name ;)

I expect renamed items should continue to work fine for recipes, as the display name is what's being changed, not the underlying ID.

Bit of a disclaimer:
- I've not personally tested in multiplayer, either hosted or joined, but it's been commented that it works, however.
- I've not personally tested with renaming weapons from mods, but that's also been commented to work. I expected it would, it operates against hand weapon items after all.


Credit / References:
- Indie Stone, of course. Basically, I've adapted relevant bits of the base ISInventoryPaneContextMenu.lua.
- I referred a bit to [Creating Inventory Context Menus] tutorial http://pz-mods.net/guide/how-to-create-inventory-context-menus/
and [Giving custom options to items when you right click them] TIS forum thread https://theindiestone.com/forums/index.php?/topic/16624-giving-custom-options-to-items-when-you-right-click-them/.


TIS Forum thread: https://theindiestone.com/forums/index.php?/topic/21682-rename-weapon-modlua-script/

-------------------------------
Workshop ID: 846122214
Mod ID: RenameWeapon
36 条留言
Cowfrog2025 1 月 25 日 上午 3:40 
Drew really out here pioneering the nerd emoji
۵camXO۵ 2023 年 11 月 24 日 上午 8:38 
And the game takes place in an American state. @Drew10643 :spiffo:
Burnview 2023 年 2 月 11 日 上午 9:36 
Now I'm able to make all my "Torch" into "Fleshlight"
Drew10643 2022 年 3 月 11 日 下午 8:41 
erm... sir this game was made in the UK (TIS place) and yeah... I under stand that it's called a flashligt in USA but just letting ya knw. Not all games are perfect bro.
Jester 2022 年 2 月 20 日 上午 8:43 
Is it possible to rename "torch" into "flashlight"?

After many years of playing this game this is still the only thing that truly bugs me.

The game takes place in America. No one here calls it a torch.
Wayfarer  [作者] 2022 年 1 月 29 日 下午 5:00 
This does seem to be working alright. I've just tested a little. Renamed a hammer and an M9. Radial menu for the gun to reload etc works fine. Quit out and back in too, still fine.

I did disable the other few mods I play with. Not really sure where to start diagnosing mod conflicts, digging through the menu code I guess.
Mega Ultra Chicken 2022 年 1 月 29 日 上午 11:49 
mod appears to work fne on SP. Even on mod-added items like firearms.
Wayfarer  [作者] 2022 年 1 月 29 日 上午 1:58 
Damn, I think it's mod conflicts. Need to figure out which. I play with Soul Filcher Farming Time, More Common Seeds, Craft Dairy foods, Lootable Knox Map, and something else I put together myself for a few extra recipes.
Wayfarer  [作者] 2022 年 1 月 29 日 上午 12:23 
!! Ok, I'll have to check again.
Vulithes 2022 年 1 月 28 日 下午 2:30 
Mega, did it work for you as well?