Project Zomboid

Project Zomboid

True Music B42
hey i see you have a bug that if boombox equip in primary then pamel still have deviceOption but can't use.
One more thing is at worldContextBoombox.lua radioItemID sometime give back a string like 12345tm but not 12345 so it got bug. Can you try this for it :'-- local radioItemID = md and md.RadioItemID and tonumber(md.RadioItemID) or nil;
-- print("TCFillContextMenu: Checking IsoRadio, RadioItemID=", tostring(radioItemID), ", type=", type(radioItemID), ", link=", tostring(link), ", link type=", type(link));


-- Lấy RadioItemID (string từ modData)
local rawRadioItemID = md and md.RadioItemID or nil
local radioItemID = nil
if rawRadioItemID then
-- Tách số ở đầu chuỗi (ví dụ "12345tm" -> 12345)
local numStr = string.match(rawRadioItemID, "(%d+)")
if numStr then
radioItemID = tonumber(numStr)
end
end

print("Checking IsoRadio, raw RadioItemID=", tostring(rawRadioItemID),
" parsed=", tostring(radioItemID), " type=", type(radioItemID),
" link=", tostring(itemID), " link type=", type(itemID))
'.
And to track modData i use this:
'if success then
md = modData;
print("TCFillContextMenu: modData dump:")
for k, v in pairs(md) do
print(" ", tostring(k), "=", tostring(v))
end
'
Last edited by subaen255; 24 Aug @ 7:55am
< >
Showing 1-3 of 3 comments
And 1 more thing, if you place BB to floor, at that x/y position you got 2 time device option but at x/y-1 you still have device option but 1 time
scrappy coco  [developer] 24 Aug @ 8:21am 
Hi @subaen255 i just updated the MOD, please try with fresh update first.
About the option for the Box i know the issue with two Menus.
But the tm string bug should be fixed with the new version.
scrappy coco  [developer] 24 Aug @ 8:29am 
so the option for the Boombox should only be visable if the box is placed on the ground, i need to fix this aswell. But for now, if you place it you should be able to controll it at least.
< >
Showing 1-3 of 3 comments
Per page: 1530 50