Jump to content

Ysa

Member
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Ysa

  1. Try local floorContainer = ISInventoryPage.GetFloorContainer(self.player) I was looking through PZ's own lua, this file ISInventoryPage.lua is very helpful to understand what's what with containers in PZ. You can find game sources here <path>\ProjectZomboid\media\lua
  2. Hey, do something like this: local ISInventoryPagecreateChildren = ISInventoryPage.createChildren function ISInventoryPage:createChildren() ISInventoryPagecreateChildren(self) local titleBarHeight = self:titleBarHeight(); local textWidth = getTextManager():MeasureStringX(UIFont.Small, "your_text"); local button = ISButton:new(0, 0, textWidth, titleBarHeight, "your_text", self, your_function); button:initialise(); button.tooltip = "your_tooltip" button.borderColor.a = 0.0; button.backgroundColor.a = 0.0; button.backgroundColorMouseOver.a = 0.7; self:addChild(button); button:setVisible(true); -- I'd also expose button for other mods if planning to release public self.MY_MOD_BUTTON_NAME = button end or check out my mod's source here https://github.com/SharePickle/easy-drop-n-loot/blob/master/media/lua/client/KADropnLoot/KAInventoryPageButtons.lua
  3. Same issue on Windows 10, reloading lua/game etc. not doing anything. It only affects mods for me, I can still see the built-in lua sources. • Version? 41.78.7 • Singleplayer/Multiplayer? Singleplayer • Host or dedicated? N/A • Mods? YES • Old or new save? Old and new • Reproduction steps: Press F11 and view a file • Platform: Windows 10
  4. Hey there, yesterday Windows decided to restart my PC all of a sudden (yes, I ignored every warning before it restarted) while I was playing on my private server. After restart I noticed everything kinda rolled-back (1-2 minutes back in time) but vehicles and items inside them were duplicated, so I've got myself 2 vans and 2 chevaliers. Every item inside these cars merged with original items when I tried to loot it (guessing because they have same internal ids or something) and disappeared, basically lost every duplicated item, not a big deal, didn't want these thing anyway, felt like cheating Wonder if that's known issue when suddenly terminating server? If yes just remove this topic. Build: latest Thanks, Alex.
  5. I'm using internal sound card (Realtek HD), but there is something interesting in the console and game options related to sounds.
  6. Build 32, look at these spikes, the game freezes for a half second or so. Every 2-3 seconds. Ever since early vehicle build. Read some people here experiencing similar issues, anyone else? SP and MP - all the same.
  7. This build is not lagging for me anymore, only a little bit sometimes, nothing compared to what was before - completely unplayable. So thanks for that! Please devs don't overengineer vehicles! Just deliver stable build and let us play.
×
×
  • Create New...