Project Zomboid

Project Zomboid

Functional Clipboard [B41/B42]
33 Comments
Kaostic  [author] 9 Jul @ 6:26am 
It's very possible that some of the recent updates have caused issues with it. I made this for B41 and ported it over to B42 on launch.

I've been working a lot on my server's mods as of late, so haven't had the chance to go back and bug fix B42 errors.
Kable 9 Jul @ 4:37am 
This still works, but spurts a lot errors, I'm assuming due to the new 42.10 update with maps. Thank you for the mod:otrthumbup:
Kaostic  [author] 26 Jun @ 6:56am 
I did forget, yeah. For now, it uses the default B42 clipboard as well, so you can find those in office spawn locations.
YourLocalMedic 24 Jun @ 12:30pm 
Has the recipe been fixed? I am seening the last update to the mod as being from December, and it seems like a relatively minor fix, so I'm thinking maybe you forgot
Kaostic  [author] 4 Jun @ 5:09pm 
@Inked You're... right. Well, it looks like I never ported over the recipe. I'll get it sorted.
Inked. 4 Jun @ 8:29am 
Huh. That recipe is just not showing up at all in my game, even after unsubbing and resubbing to the mod. Interestingly, I don't see a recipe file in the mod files on my steam unless it's handled in lua or something.
Kaostic  [author] 4 Jun @ 1:37am 
@Inked They're crafted from a Stapler and a few other things. Should be in the crafting menu under Misc.
Inked. 3 Jun @ 4:15pm 
I can't seem to find a clipboard anywhere and there's no recipe showing up for me in B41. Any ideas why that may be?
z0ntir 22 Mar @ 9:05am 
It gives a lot of errors when opening the clipboard from the dongle.
Kitster_2000 11 Mar @ 5:17pm 
Would you please add a description above for the steps needed to make a clipboard and then to use it? I've tried to figure it out and I have no idea and feel dumb >_>

Please </3
Meyar 1 Mar @ 4:37am 
I wish there was a way to attach it to a belt or something so instead of having to open and close it via context, I could just tap [belt #] and pull up the clipboard.

inb4 there's an easier way and I'm just a dunce.
Kaostic  [author] 6 Feb @ 10:17am 
@Smokey-Beanz -- Thanks for pointing that out. I did notice an error when trying to access the context menu options from not the main inv. but hadn't got around to actually fixing it.
:) 6 Feb @ 8:26am 
Hello, there is an error that can be fixed within your clipboard mod:

The issue is in the prerender function of Clipboard_UI.lua, specifically in this block:

function Clipboard_UI:prerender()
ISPanel.prerender(self)
if self.readOnly then
local px = self.character:getX()
local py = self.character:getY()
local cx = self.clipboard:getWorldItem():getX()
local cy = self.clipboard:getWorldItem():getY()
local dx = px - cx
local dy = py - cy
if dx * dx + dy * dy > 4 then
self:onClose()
end
end
end

Issues:
1. self.clipboard:getWorldItem() might return nil when the clipboard is stored (not in inventory).
2. Calling getX() on nil causes the error:
"attempted index: getX of non-table: null". Hope these details help!
Kaostic  [author] 5 Jan @ 4:18am 
@Austiinos Thanks for that, I'll have to just make it only accessible via the main inventory.
austiinos 4 Jan @ 10:29pm 
clipboard errors when I click read when its stored(not on character). It also didn't have a sheet of paper. I did test and it is working normally. I put it in my inventory with a sheet of paper and no errors.
Kaostic  [author] 28 Dec, 2024 @ 3:11am 
@Dokkodo You can use the vanilla Clipboards that spawn in the world. There is a crafting recipe for it in B41, but I've not transferred it over to B42 properly so won't be available there yet.
Dokkōdō 28 Dec, 2024 @ 1:23am 
cant find it in crafting list does it spawn in world?
Kaostic  [author] 25 Dec, 2024 @ 5:43pm 
Both the variable name has now been updated (Thanks to @Chuckleberry for pointing this out) and the weight has been reduced from 1.0 to 0.4.
mia 25 Dec, 2024 @ 9:30am 
i second skully's comment. i love this mod and it's incredibly useful but i think it's too heavy. something like 0.3 or even less would be better. thank you for making this regardless!
Chuckleberry Finn 25 Dec, 2024 @ 9:17am 
:praisesun: Awesome!
Kaostic  [author] 25 Dec, 2024 @ 7:51am 
@Chuckleberry Good point! I'll make that change in the coming days.
Chuckleberry Finn 24 Dec, 2024 @ 3:07pm 
Hello and happy holidays, `Clipboard` is a default global variable, please change yours to something more unique to avoid bugs, thank you.
Skully 23 Dec, 2024 @ 7:47pm 
The clipboard is way too heavy. Can you make it a more reasonable weight? like 0.2 or 0.3 instead of 1.0?
Skully 23 Dec, 2024 @ 11:12am 
kinda cool, will try it
xTRACKERx 21 Dec, 2024 @ 4:04am 
cracy. thanks :-)
TheBwnH3d 20 Dec, 2024 @ 8:33am 
@groupsurgery After playing it and smiling from start to when I finished last night. Its DEFFO an update if you haven't tried it yet its awesome. But yeah your also right.
Kaostic  [author] 20 Dec, 2024 @ 6:45am 
This is now fully functional in B42 :steamthumbsup:
Kaostic  [author] 19 Dec, 2024 @ 1:25pm 
I'll be testing this on B42 shortly. If it requires much work to port, I'll look to get it sorted soon.
groupsurgery 19 Dec, 2024 @ 12:54pm 
@KageVII you don’t update to build 42 from 41, you opt in to try the public beta test. Right click the game, go to properties, and you can select unstable and download b42
Wako Doodle 19 Dec, 2024 @ 12:45pm 
Hopefully this gets updated for B42 when it releases. Would be very useful for resource checklisting :D
TheBwnH3d 19 Dec, 2024 @ 12:37pm 
I wanna install this immediately but literally about to update to B42 :(
Ren'Dahu Nation 19 Dec, 2024 @ 12:02pm 
the best mod in the entire universe
Hairy.Mario 19 Dec, 2024 @ 11:08am 
DAMN