Project Zomboid

Project Zomboid

Hotbar for 5-20 often-used items
211 Comments
Euryn0m0us 6 Dec, 2024 @ 4:53pm 
Doesn't work anymore.:steamsad:
Saintlyflame 25 Jun, 2023 @ 5:26am 
Got unpatched today (6/25/23)
Alzepil 12 Apr, 2022 @ 6:55am 
Не работает. Тупо смотришь как дебил на закреплённые предметы, которые нельзя взять при нажатии кнопки
Manu 21 Feb, 2022 @ 1:50pm 
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 11 Feb, 2022 @ 8:57am 
Where do i pick how many slots i want
cocoayoc 22 Jan, 2022 @ 8:30am 
doesn't work on B41 for me, can't enable it.
Chromium 5 Jan, 2022 @ 9:40am 
@blindcoder: Thanks for keeping these mods up, I really appreciate the effort.
TheHourMan 1 Jan, 2022 @ 8:15am 
Awesome, thanks for that! I know it's not easy to go back and work through all of your previous mods.
blindcoder  [author] 1 Jan, 2022 @ 5:07am 
@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 31 Dec, 2021 @ 10:27am 
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 13 Dec, 2021 @ 3:24pm 
Does it works on B41.60 MP?
Sakamoto 8 Dec, 2021 @ 9:58am 
anchestor of 41B shortcut
blindcoder  [author] 5 Nov, 2021 @ 3:18am 
@Alexander: I don't know why it shouldn't. give it a try.
Alexander1713cc 5 Nov, 2021 @ 3:09am 
Does the mod work on B40? (MP)
blindcoder  [author] 27 Aug, 2021 @ 10:39am 
@Level: Did you check the Options screen if the keys are bound correctly?
Level 22 Aug, 2021 @ 11:51am 
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 15 Aug, 2021 @ 10:22am 
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 15 Aug, 2021 @ 5:51am 
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 15 Aug, 2021 @ 5:18am 
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  [author] 14 Aug, 2021 @ 12:13pm 
@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 14 Aug, 2021 @ 3:31am 
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.
小杯具 13 Aug, 2021 @ 5:02am 
I don't understand English. This is machine translation. It can't express my meaning, so I have to segment
小杯具 13 Aug, 2021 @ 5:01am 
Right click

click

Items in the inventory,

The game system will

Report once

error
Sheded 1 Aug, 2021 @ 5:10am 
Yes it works in multiplayer just fine just be sure to enable the other required mods
blindcoder  [author] 1 Aug, 2021 @ 4:46am 
@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 30 Jul, 2021 @ 9:30pm 
does this work for multiplayer?
Sheded 29 Jul, 2021 @ 3:56am 
okay thank you
blindcoder  [author] 28 Jul, 2021 @ 10:27pm 
@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 28 Jul, 2021 @ 3:21pm 
what is the difference between Activation smart and traditional ? and thanks for the mod btw it is super helpful
NEDJ_0NE 18 Jul, 2021 @ 12:19pm 
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 :(
Charon V 6 Jul, 2021 @ 9:44am 
mod doesent apear in my modlist...
WOUBZY 8 May, 2021 @ 7:10pm 
I second madmax's comment, having the same issue.
Max 1 May, 2021 @ 5:35am 
Seems to crash if used (together with its required mods) together with Hydrocraft or ORGM to host a server.
mouque51 20 Apr, 2021 @ 6:28am 
merci
blindcoder  [author] 19 Apr, 2021 @ 11:18pm 
@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 18 Apr, 2021 @ 4:37am 
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 12 Apr, 2021 @ 7:32am 
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  [author] 11 Apr, 2021 @ 11:09pm 
@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 11 Apr, 2021 @ 2:26pm 
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 11 Apr, 2021 @ 10:39am 
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  [author] 3 Apr, 2021 @ 11:22am 
@Maria: Can you upload your console.txt from a crash somewhere? vpaste <dot> net or such?
blindcoder  [author] 31 Mar, 2021 @ 11:10am 
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 31 Mar, 2021 @ 9:31am 
There seems to be an error with latest version on 0.40 "Server has stopped during Launch(NormalTermination)"
blindcoder  [author] 31 Mar, 2021 @ 2:49am 
The Hotbar can now be dragged over the screen, and there's a new option to make it vertical instead of horizontal.
blindcoder  [author] 31 Mar, 2021 @ 12:01am 
@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 12 Mar, 2021 @ 4:46am 
does it work with multiplayer?
iicycube 9 Mar, 2021 @ 12:36am 
wish its can let us move the UI around or make it horizon or vertical as a option.
chanw4 1 Feb, 2020 @ 11:18pm 
only problem so far is it overlapped with the standard belt and holster hotbar from B41, otherwise it works fine.
The Gray Ronin 24 Jan, 2020 @ 5:35pm 
Seems to work alright with IWBUMS 41
Fuyuno 12 Jan, 2020 @ 2:21am 
does this still work in b41? any news on an update otherwise?