Project Zomboid

Project Zomboid

CarWanna
 Tämä aihe on kiinnitetty, joten se on todennäköisesti tärkeä
Xyberviri  [kehittäjä] 3.6.2022 klo 21.57
CarWanna Loot Options
CarWanna Now supports pinkslips found as loot, further more pinkslips are added dynamically so all pinkslips will automatically get added to the drop tables.

PinkSlips can be found in Auto Repair Shops and in Pawn shop offices (ie the back area)

Mechanic zombies will also have a chance of dropping pinkslips.

CarWanna supports Mod Options, Alternatively CarWanna supports lua config files placed in the lua\shared folder of other mods. MAKE SURE YOU LOAD AFTER CARWANNA

here is a example lua config file for CarWanna:
local SETTINGS = CW.SETTINGS or {} SETTINGS.enabled = true -- true/false - Enables Loot spawns with out mod options SETTINGS.options.enablefoundloot = true -- Spawn loot in buildings. SETTINGS.options.foundlootweight = 1 -- 1 Rare - 6 Always, chance that a pinkslip will spawn in a container SETTINGS.options.enablezedloot = true -- loot found on zeds SETTINGS.options.zedlootrarity = 1 -- 1 Rare - 7 Super Common SETTINGS.options.blacklist = "PinkSlip.Van;PinkSlip.SUV" -- Pink slips you dont want dropping.

when using a lua config "CW.SETTINGS.enabled" must be true to tell carwanna we want to spawn cars.

If you are already using something like Arsenal26 custom config you can also just throw this in a file in next to your custom config.

ALTERNATIVELY if you are using mod options, you can also just upload your Zomboid\lua\mod-options.ini file to the same folder on your server and that is how you can get the settings up to your server with out making an additional mod.. (this is also how you get server side mod options to work)

When configured correctly you will see one of the following in your log files:
CarWanna MOD OPTIONS DETECTED CarWanna LUA OPTIONS DETECTED

Followed by all pink slips added to your loot tables along with their weights.
Viimeisin muokkaaja on Xyberviri; 27.7.2022 klo 8.43
< >
Näytetään 1-4 / 4 kommentista
Xyberviri  [kehittäjä] 13.6.2022 klo 18.01 
Blacklisting a pinkslip via the script manager
local scriptItem = ScriptManager.instance:getItem("PinkSlip.Van") if scriptItem then scriptItem:DoParam("isBlacklisted = true") end

Change a pinkslips loot chances in containers
local scriptItem = ScriptManager.instance:getItem("PinkSlip.Van") if scriptItem then scriptItem:DoParam("LootChance = 1") end
All pink slips are added to a table with the default weight of 1, changing this down to 0.0001 makes the item uber rare versus other pinkslips and changing this up to 100 will make this pinkslip always show up in loot tables versus other pinkslips..

Again this only applies to containers, pinkslips found on zombies are still really rare and only found on mechanics.
Viimeisin muokkaaja on Xyberviri; 13.6.2022 klo 18.02
The cw_options.lua show this
local SETTINGS = { options = { enablefoundloot = true, --foundlootrarity = 5, foundlootweight = 1, enablezedloot = true, zedlootrarity = 1, --pinkslipdamage = 1, blacklist = "", }, names = { enablefoundloot = "Enable Found Loot", --foundlootrarity = "Found Loot Rarity", foundlootweight = "Found Loot Weight", enablezedloot = "Enable Zed Loot", zedlootrarity = "Zed Loot Rarity", --pinkslipdamage = "PinkSlip Loot Damage", blacklist = "PinkSlip Black List", }, mod_blacklist = {"PinkSlip.SportsCar_ez"}, mod_id = "CW", mod_shortname = "CarWanna", enabled = false, }

What is
mod_blacklist = {"PinkSlip.SportsCar_ez"}, mod_id = "CW", mod_shortname = "CarWanna", enabled = false,
Xyberviri  [kehittäjä] 16.6.2022 klo 13.52 
So this part is for mod options
mod_id = "CW", mod_shortname = "CarWanna",

This tells carwanna you want to use a lua file instead of mod options
enabled = false,

This is a built in black list for Base.SportsCar_ez since it doesnt have a name and seems to be unfinished last I checked.

mod_blacklist = {"PinkSlip.SportsCar_ez"},

this last one can be cleared like so:
local CW = CW or {} local SETTINGS = CW.SETTINGS or {} SETTINGS.mod_blacklist = {}
Viimeisin muokkaaja on Xyberviri; 27.7.2022 klo 8.40
Xyberviri  [kehittäjä] 26.9.2022 klo 11.32 
Basic lua options needed to enable car spawning:

Place this in a file in media\lua\server\whatever.lua

if not CW then return end local SETTINGS = CW.SETTINGS or {} SETTINGS.enabled = true SETTINGS.options.enablefoundloot = true SETTINGS.options.foundlootweight = 1 SETTINGS.options.enablezedloot = true SETTINGS.options.zedlootrarity = 1 SETTINGS.options.blacklist = ""
Viimeisin muokkaaja on Xyberviri; 26.9.2022 klo 22.06
< >
Näytetään 1-4 / 4 kommentista
Sivua kohden: 1530 50