Project Zomboid

Project Zomboid

Immersive Solar Arrays (v41, GitHub reupload)
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
Poltergeist  [kehittäjä] 29.1.2023 klo 3.58
Switch to ISA_41 from previous version details
Things to note if you update version on existing save

>Always backup your saves when changing mods
>REMOVED OLD BATTERY SCRIPTS - UNWIRE "OLD WIRED CAR BATTERIES" BEFORE UPDATE
>Battery Banks can cause errors if you leave invalid items inside - only valid batteries are now accepted in them
>Panels might show they are not connected and let you reconnect them, but number of panels should stay the same
>check your sandbox options and customize them the way you want. Missing options can sause errors
>old DIY batteries will be at 200 capacity, new batteries keep capacity in ModData and use the new scale sandbox option
>read magazine again

> Changing ID, means items can disappear.
Viimeisin muokkaaja on Poltergeist; 31.1.2023 klo 0.58
< >
Näytetään 1-2 / 2 kommentista
Poltergeist  [kehittäjä] 1.5.2023 klo 4.26 
I uploaded the old version for those who might have missed the warnings.

https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2969745659
Viimeisin muokkaaja on Poltergeist; 1.5.2023 klo 4.26
Poltergeist  [kehittäjä] 3.5.2023 klo 13.18 
If you decide to switch over. You can use the next example patch to move non accepted items out of the Battery Bank. This will prevent errors from happening.

@ lua/server/myPatchesFile.lua
if not isClient() and getActivatedMods():contains("ISA_41") then local isa = ImmersiveSolarArrays or require("ISAUtilities") local patchOnLoad = function(isoObject) local square = isoObject:getSquare() if not square then return end local container = isoObject:getContainer() local items = container:getItems() for i=items:size()-1,0,-1 do local item = items:get(i) if not (item:getModData().ISA_maxCapacity or isa.maxBatteryCapacity[item:getType()]) then container:Remove(item) square:AddWorldInventoryItem(item,0.5,0.5,0) end end end MapObjects.OnLoadWithSprite("solarmod_tileset_01_0", patchOnLoad, 3) end
Viimeisin muokkaaja on Poltergeist; 3.5.2023 klo 22.45
< >
Näytetään 1-2 / 2 kommentista
Sivua kohden: 1530 50