Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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
___________ 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
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.
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?).
click
Items in the inventory,
The game system will
Report once
error
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.
"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
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.
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!
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"
"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
@iicycube: That's a good idea, actually. I'll look into it!