Project Zomboid

Project Zomboid

Hotbar for 5-20 often-used items
211 条留言
Euryn0m0us 2024 年 12 月 6 日 下午 4:53 
Doesn't work anymore.:steamsad:
Saintlyflame 2023 年 6 月 25 日 上午 5:26 
Got unpatched today (6/25/23)
Alzepil 2022 年 4 月 12 日 上午 6:55 
Не работает. Тупо смотришь как дебил на закреплённые предметы, которые нельзя взять при нажатии кнопки
Manu 2022 年 2 月 21 日 下午 1:50 
doesn't work on B41 for me. The bar is there, I can put items but pressing the number assigned to an item does nothing
jpatzkowski 2022 年 2 月 11 日 上午 8:57 
Where do i pick how many slots i want
cocoayoc 2022 年 1 月 22 日 上午 8:30 
doesn't work on B41 for me, can't enable it.
Chromium 2022 年 1 月 5 日 上午 9:40 
@blindcoder: Thanks for keeping these mods up, I really appreciate the effort.
TheHourMan 2022 年 1 月 1 日 上午 8:15 
Awesome, thanks for that! I know it's not easy to go back and work through all of your previous mods.
blindcoder  [作者] 2022 年 1 月 1 日 上午 5:07 
@TheHourMan: That's a cool idea. I got a re-visit of my mods on my TODO now anyway, I'll look into it.
TheHourMan 2021 年 12 月 31 日 上午 10:27 
I have this for a server that has some players who use controller. Can you have the hotbar toggled off by default for controller users like the vanilla one?
Macist 2021 年 12 月 13 日 下午 3:24 
Does it works on B41.60 MP?
Sakamoto 2021 年 12 月 8 日 上午 9:58 
anchestor of 41B shortcut
blindcoder  [作者] 2021 年 11 月 5 日 上午 3:18 
@Alexander: I don't know why it shouldn't. give it a try.
Alexander1713cc 2021 年 11 月 5 日 上午 3:09 
Does the mod work on B40? (MP)
blindcoder  [作者] 2021 年 8 月 27 日 上午 10:39 
@Level: Did you check the Options screen if the keys are bound correctly?
Level 2021 年 8 月 22 日 上午 11:51 
when I add a item to my hotbar, ex a crossbow, no matter what buttons i click it dosen't show up, if I place it on the 4 slot for example and press 4 nothing pops up, what's happening?
Tchernobill 2021 年 8 月 15 日 上午 10:22 
Sorry to bother you again, but I think adding this to your mod would be nice too.
When eating from the HotBar, most of the time the count update is not done immediately after the eat action (I guess because it is a timed action). In order to get the update immediately I added the following code:
____________________________________
require "ISUI/hotbar_inventorypage"
local genuine_ISBaseTimedAction_perform = ISBaseTimedAction.perform;
function ISBaseTimedAction:perform()
genuine_ISBaseTimedAction_perform(self);
if HotBar and HotBar.inventoryPage then
HotBar.inventoryPage:updateInventory(true);
end
end
Tchernobill 2021 年 8 月 15 日 上午 5:51 
For now I handle that error with an addition to your mod (sorry for the multiple posts.. with errors):
___________ hotbar_RISInventoryPaneContextMenu.lua _________________________
require "ISUI/ISInventoryPaneContextMenu"

local genuine_ISInventoryPaneContextMenu_transferIfNeeded = ISInventoryPaneContextMenu.transferIfNeeded;
function ISInventoryPaneContextMenu.transferIfNeeded(playerObj, item)
if not instanceof(item, "InventoryItem") or item:getContainer() then
genuine_ISInventoryPaneContextMenu_transferIfNeeded(playerObj, item);
end
end
Tchernobill 2021 年 8 月 15 日 上午 5:18 
Hi,
I met a minor error that I guess everyone has.

Context:
I put a stack of food items on a key of the hot bar
I right click it + left click on Eat.
During the Eat TimeAction, I right click it + left click on Eat. (left click can be done afterwards too)

Current: one error occurs (no consequence)
STACK TRACE
-----------------------------------------
function: walkToContainer -- file: luautils.lua line # 146
function: haveToBeTransfered -- file: luautils.lua line # 200
function: transferIfNeeded -- file: ISInventoryPaneContextMenu.lua line # 1272
function: eatItem -- file: ISInventoryPaneContextMenu.lua line # 2678
function: onEatItems -- file: ISInventoryPaneContextMenu.lua line # 2800
function: onMouseUp -- file: ISContextMenu.lua line # 95

Expected:
No error occurs.
The second charge of food is eaten immediately after the first.
blindcoder  [作者] 2021 年 8 月 14 日 下午 12:13 
@ZemiChrono
yes, that is intended behaviour. I feel it'd be "cheaty" to allow quick access to items buried in containers.
https://github.com/blind-coder/pz-hotbar/blob/master/media/lua/client/ISUI/hotbar_inventorypage.lua#L196 would need to be made into a recursive function to check for containers and https://github.com/blind-coder/pz-hotbar/blob/master/media/lua/client/ISUI/hotbar_inventorypage.lua#L258 would need to be changed to accomodate for items in containers and possibly move them to the main inventory before using (optionally move them back?).
ZemiChrono 2021 年 8 月 14 日 上午 3:31 
Is it intended, that the hotbar doesn't display items you have e.g. in a fanny pack? I have to keep all my hotbar items (which I mainly use for pills/cigs and backup weapon in my main inventory - otherwise the hotbar wont work.
小杯具 2021 年 8 月 13 日 上午 5:02 
I don't understand English. This is machine translation. It can't express my meaning, so I have to segment
小杯具 2021 年 8 月 13 日 上午 5:01 
Right click

click

Items in the inventory,

The game system will

Report once

error
Sheded 2021 年 8 月 1 日 上午 5:10 
Yes it works in multiplayer just fine just be sure to enable the other required mods
blindcoder  [作者] 2021 年 8 月 1 日 上午 4:46 
@YourPleb
I don't see a reason why it shouldn't. It must be enabled on the server or on the host and should then work just fine.
PP Bandit 2021 年 7 月 30 日 下午 9:30 
does this work for multiplayer?
Sheded 2021 年 7 月 29 日 上午 3:56 
okay thank you
blindcoder  [作者] 2021 年 7 月 28 日 下午 10:27 
@Sheded:
"Traditional" means that the activated item will be equipped in the player's hand, or hands for two-handed weapons.
"Smart" means that the mod will check the item, and use it accordingly, ie eat food, use bandages, wear clothes, etc.

I've now also updated the description to contain this information :spiffo:
Sheded 2021 年 7 月 28 日 下午 3:21 
what is the difference between Activation smart and traditional ? and thanks for the mod btw it is super helpful
NEDJ_0NE 2021 年 7 月 18 日 下午 12:19 
Damn can't see the toolbar in game. Neither I can't see the toolbar section in the key bindings while in game like you show in the video at 1:45. I can only see it in the main menu :(
CharonV 2021 年 7 月 6 日 上午 9:44 
mod doesent apear in my modlist...
WOUBZY 2021 年 5 月 8 日 下午 7:10 
I second madmax's comment, having the same issue.
Max 2021 年 5 月 1 日 上午 5:35 
Seems to crash if used (together with its required mods) together with Hydrocraft or ORGM to host a server.
mouque51 2021 年 4 月 20 日 上午 6:28 
merci
blindcoder  [作者] 2021 年 4 月 19 日 下午 11:18 
@Dalibar:
Those are good ideas, I'll check them out.
"Traditional" means that the activated item will be equipped in the player's hand, or hands for two-handed weapons.
"Smart" means that the mod will check the item, and use it accordingly, ie eat food, use bandages, wear clothes, etc.
Dalibar 2021 年 4 月 18 日 上午 4:37 
Thanks for this mod! It was one of my must haves pre-41, I'm glad the ability to move the bar was added in. Could I suggest making an option to lock the bar in place, sort of like the pin button on the loot menus? Maybe a pin icon on the tab above the hotbar and in the hotbar options have a checkbox to hide the tab so less space is taken up. That way, people that like to move it around (but not by accident) as they play can do so and those that like it static can just hide the tab above the bar altogether.

Also, I don't see anything that explains what the 'smart' function is. What does that do, and is it possible to add a floating info box when hovering over it to explain? Like the ones in the base game that explain different settings in sandbox if you mouse over them.

Hope that all made sense!
Outer_Guy 2021 年 4 月 12 日 上午 7:32 
I´m really sorry! I got it working. I think i had messed up your utils with coxi´s.
As you said, it was as easy as making sure the 3 mods where in the "Steam workshop" option.
if anyone else has the problem the names of the mods that have to be activated in the server options are:
-"Hotbar for 5-20 often used items"
-"Mod Releasenotes"
-"blincoders Modding Utility"
blindcoder  [作者] 2021 年 4 月 11 日 下午 11:09 
@Outer_Guy: Is the mod installed and enabled on the server? That's really the only way to trigger this issue, having the mod not properly installed on the server.
Outer_Guy 2021 年 4 月 11 日 下午 2:26 
i tried again without the other mods, just with this one and it´s dependencies and the error repeated, i didn´t catch the log but it´s easy enough to reproduce. Hope you can fix it, and thanks for the awesome mod!
Outer_Guy 2021 年 4 月 11 日 上午 10:39 
The game stops loading after creating a character and says:
"File doesn´t exist on the server:
media/lua/client/ISUI/hotbar_inventorypage.lua
D:\SteamLibrary\steamapps\workshop\content\108600\503645367\mods\bcHotBar\media\lua\client\ISUI\hotbar_inventorypage.lua"
I´m playing with other mods but the server shows this error.
I copyed all the logs after the first stack trace bc i don´t know how to read it.
http://vpaste.net/rV4i4
blindcoder  [作者] 2021 年 4 月 3 日 上午 11:22 
@Maria: Can you upload your console.txt from a crash somewhere? vpaste <dot> net or such?
blindcoder  [作者] 2021 年 3 月 31 日 上午 11:10 
Hmm, I only added a draggable window around the existing one, and another menu option. There's nothing there that should hinder a server. Can you upload the logfile to a pastebin?
Maxo 2021 年 3 月 31 日 上午 9:31 
There seems to be an error with latest version on 0.40 "Server has stopped during Launch(NormalTermination)"
blindcoder  [作者] 2021 年 3 月 31 日 上午 2:49 
The Hotbar can now be dragged over the screen, and there's a new option to make it vertical instead of horizontal.
blindcoder  [作者] 2021 年 3 月 31 日 上午 12:01 
@jeeneluk: It should work with multiplayer just fine, so long as it's enabled on the server.

@iicycube: That's a good idea, actually. I'll look into it!
jeneeluk 2021 年 3 月 12 日 上午 4:46 
does it work with multiplayer?
iicycube 2021 年 3 月 9 日 上午 12:36 
wish its can let us move the UI around or make it horizon or vertical as a option.
chanw4 2020 年 2 月 1 日 下午 11:18 
only problem so far is it overlapped with the standard belt and holster hotbar from B41, otherwise it works fine.
The Gray Ronin 2020 年 1 月 24 日 下午 5:35 
Seems to work alright with IWBUMS 41
Fuyuno 2020 年 1 月 12 日 上午 2:21 
does this still work in b41? any news on an update otherwise?