Jump to content

Maris

Member
  • Posts

    244
  • Joined

  • Last visited

Everything posted by Maris

  1. Yes. Now in 41.27 all is fine.
  2. Maris

    recipe formatting

    As far as I know, this is impossible. You may either: 1) Create two recipes: Nails=4 and Screws=4 separately. 2) Use event functions OnTest and OnCreate, e.g. OnTest may check if there are (nails + screws > 3), and OnCreate removes these items from inventory.
  3. Thanks for the explanation! What about indexed arrays? {1,2,3,4,5} --Each number is +9 bytes (8+1). But there is no keys. And what about nil value? { 1, nil, 3, nil, nil } or { key = nil, }
  4. I'd like to optimize my mod, to make it faster. So I wonder how the game deals with networked mod data. What is better: true/false or 1/0? If the data is transfered in JSON format, 1/0 will be better. Won't it?
  5. Done. https://steamcommunity.com/sharedfiles/filedetails/?id=1924039998
  6. There is no junk All items are useful or relevant to realism. But you may patch ingame loot tables to remove what you hate. It's easy to make a Lua function that changes loot. Also I'm not sure how to change loot of special (rare) zombies. For example, there are military zombies with best backpacks, but those backpacks are not mentioned in game files.
  7. What do you mean? It's easy to add your loot to "procedures" like it is in ProceduralDistributions.lua
  8. Okay, finally I found the solution! Now I don't see OnPersonaStateChange spam in console. Just suspend Steam.exe process (in Process Explorer). Also you may do it by firewall because only Internet connection affects this issue.
  9. Maris

    Bandage Club

    Try to sleep on the ground in RL. Even if you haven’t slept for 2 days, it’s quite difficult to fall asleep on the ground. In any case, the sleeping will be restless and incomplete. And in the game there is also a fear that they will eat you, which certainly will not allow you to sleep normally. In the bed, at least, you can hide in a blanket, and the "monsters" will not see you.
  10. I think it's normal if a sprinter will run only while seeing the target.
  11. You may just go to main menu and then load saved game again, the hidden car will appear. No need to load backup.
  12. https://map.projectzomboid.com/#0.41453113428587524,0.24996227240995897,94.36225413096172
  13. Maris

    Thanks!

    I made some playtests. Just wanted to say that all is fine so far. It would be easier for me to find bugs if I knew the formula for calculating heat and other formulas in new mechanics (sewing, sweating etc).
  14. For example, some zombies may have School Bag (Bag_Schoolbag) or another bag or backpack. Where is the info that some zombies may have School Bag? Also there are special zombies (military etc) now. I double checked those files and I can't find this info about loot from zombies.
  15. May be mods, but probably game bug. LOG : General, 1572899527200> attempted index: getType of non-table: null LOG : General, 1572899527200> LOG : General, 1572899527200> ----------------------------------------- LOG : General, 1572899527200> STACK TRACE LOG : General, 1572899527200> ----------------------------------------- LOG : General, 1572899527201> function: walkToContainer -- file: luautils.lua line # 131 LOG : General, 1572899527201> function: haveToBeTransfered -- file: luautils.lua line # 168 LOG : General, 1572899527201> function: transferIfNeeded -- file: ISInventoryPaneContextMenu.lua line # 919 LOG : General, 1572899527201> function: readItem -- file: ISInventoryPaneContextMenu.lua line # 1552 LOG : General, 1572899527201> function: onLiteratureItems -- file: ISInventoryPaneContextMenu.lua line # 1543 LOG : General, 1572899527202> function: onMouseUp -- file: ISContextMenu.lua line # 98 ERROR: General, 1572899527238> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getType of non-table: null at KahluaThread.tableget line:1651. ERROR: General, 1572899527239> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: attempted index: getType of non-table: null at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1651) at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:646) at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:167) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1942) at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1744) at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76) at zombie.ui.UIElement.onMouseUp(UIElement.java:1137) at zombie.ui.UIManager.update(UIManager.java:767) at zombie.GameWindow.logic(GameWindow.java:234) at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71) at zombie.GameWindow.frameStep(GameWindow.java:673) at zombie.GameWindow.run_ez(GameWindow.java:594) at zombie.GameWindow.mainThread(GameWindow.java:460) at java.lang.Thread.run(Thread.java:745)
  16. Previously it was in Lua files. But now I can't find this info.
  17. I found a function in the API: AddPerk(PerkFactory.Perks perk, java.lang.String name, java.lang.String level1, java.lang.String level2, java.lang.String level3, java.lang.String level4, java.lang.String level5, int xp1, int xp2, int xp3, int xp4, int xp5, int xp6, int xp7, int xp8, int xp9, int xp10) But I can't use it. It exists in the game code but there is no examples how to use it. What strings are level1, level2, level3 etc? What should I give as first parameter? So I have to make injection directly into interface in a very strange manner: local function inject(u) local xp = u:getXp() local m = getmetatable(xp) local old_boost = m.__index.getPerkBoost m.__index.getPerkBoost = function(self, perk_type, ...) if perk_type == ClassCustomSkill then return 0 end return old_boost(self, perk_type, ...) end local old_mult = m.__index.getMultiplier m.__index.getMultiplier = function(self, perk_type, ...) if perk_type == ClassCustomSkill then return 0 end return old_mult(self, perk_type, ...) end m = getmetatable(u) m.__index.getXp = function(self, ... ) return xp end local old_level = m.__index.getPerkLevel m.__index.getPerkLevel = function(self, perk_type, ...) if perk_type == ClassCustomSkill then return perk_type.level end return old_level(self, perk_type, ...) end local old_up = m.__index.LevelPerk m.__index.LevelPerk = function(self, perk_type, ...) if perk_type == ClassCustomSkill then return perk_type:LevelUp() end return old_up(self, perk_type, ...) end end I'd like to avoid these dirty hacks and to start using normal API.
  18. Nice dreams. More mods, better is game.
  19. I'd like to load getModData() of the player to a local table. Then I'm going to save it every time it's changed. What is the best event to load the data?
  20. For example, 1280x960 -> 1280x800 in window mode ofc
  21. Items: Bag_SurvivorBag, Bag_ALICEpack, Bag_ALICEpack_Army I can't find it in loot tables despite it is possible to get those top bags in the game. What file contains the numbers of drop rate of these bags?
×
×
  • Create New...