Project Zomboid

Project Zomboid

Immersive Solar Arrays (v41, GitHub reupload)
 Dit topic is vastgepind, dus het is waarschijnlijk belangrijk
Poltergeist  [ontwikkelaar] 29 jan 2023 om 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.
Laatst bewerkt door Poltergeist; 31 jan 2023 om 0:58
< >
1-2 van 2 reacties weergegeven
Poltergeist  [ontwikkelaar] 1 mei 2023 om 4:26 
I uploaded the old version for those who might have missed the warnings.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2969745659
Laatst bewerkt door Poltergeist; 1 mei 2023 om 4:26
Poltergeist  [ontwikkelaar] 3 mei 2023 om 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
Laatst bewerkt door Poltergeist; 3 mei 2023 om 22:45
< >
1-2 van 2 reacties weergegeven
Per pagina: 1530 50