Installa Steam
Accedi
|
Lingua
简体中文 (cinese semplificato)
繁體中文 (cinese tradizionale)
日本語 (giapponese)
한국어 (coreano)
ไทย (tailandese)
Български (bulgaro)
Čeština (ceco)
Dansk (danese)
Deutsch (tedesco)
English (inglese)
Español - España (spagnolo - Spagna)
Español - Latinoamérica (spagnolo dell'America Latina)
Ελληνικά (greco)
Français (francese)
Indonesiano
Magyar (ungherese)
Nederlands (olandese)
Norsk (norvegese)
Polski (polacco)
Português (portoghese - Portogallo)
Português - Brasil (portoghese brasiliano)
Română (rumeno)
Русский (russo)
Suomi (finlandese)
Svenska (svedese)
Türkçe (turco)
Tiếng Việt (vietnamita)
Українська (ucraino)
Segnala un problema nella traduzione
What you are trying to say is that there is currently an issue with other mod vehicles not being generated correctly?
if VehicleZoneDistribution then
VehicleZoneDistribution.parkingstall.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 10};
VehicleZoneDistribution.medium.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 10};
VehicleZoneDistribution.good.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 10};
VehicleZoneDistribution.sport.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 10};
else
VehicleZoneDistribution = {};
end
For example, modify it like this?
Is my perception wrong?
Alright I tested it vanilla, with a chance of 2, there was only 1 nikke car in muldraugh, and 1 outside at a gas station.
For the code part, that is the basic code for standalone cars being added, rather than an improvement it is a compatibility issue, if you have a server with tons of mods, it's inevitable something will break, and more often than not you end up with vehicles that won't spawn (replicated in single player as well). I wouldn't use this as a replacement, but if you could make it a second file like "Nikke cars-compatibility" that uses vanilla spawn zones, but retains the tsar vehicle modding. Also do not take my word for it, my modding experience in lua is mostly in the tropico games and rimworld. The mod as is worked well until something broke it, which I suspect is related to the spawn zones given through tsarlib.
My file currently is like this, which is copied from FR's vehicles and other KI5 vehicle mods, basic but compatible:
---------------------------------------------------------------------------------------------------
if VehicleZoneDistribution then
VehicleZoneDistribution.parkingstall.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.medium.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.good.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.sport.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 2};
end
---------------------------------------------------------------------------------------------------
all this code should do is use the vanilla spawn areas like most other standalone vehicle mods, while not touching anything else, leaves the vehicle modding from tsar.
I would also suggest you ask more experienced modders.
also this is an example code from a KI5 mod, it seems that KI5 mods have no issue working with vanilla spawnzones:
---------------------------------------------------------------------------------------------------
if VehicleZoneDistribution then
VehicleZoneDistribution.parkingstall.vehicles["Base.91range"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.parkingstall.vehicles["Base.91range2"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.trailerpark.vehicles["Base.91range"] = {index = -1, spawnChance = 1};
VehicleZoneDistribution.trailerpark.vehicles["Base.91range2"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.medium.vehicles["Base.91range"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.medium.vehicles["Base.91range2"] = {index = -1, spawnChance = 2};
VehicleZoneDistribution.good.vehicles["Base.91range"] = {index = -1, spawnChance = 4};
VehicleZoneDistribution.good.vehicles["Base.91range2"] = {index = -1, spawnChance = 4};
VehicleZoneDistribution.junkyard.vehicles["Base.91range"] = {index = -1, spawnChance = 1};
VehicleZoneDistribution.junkyard.vehicles["Base.91range2"] = {index = -1, spawnChance = 1};
VehicleZoneDistribution.trafficjams.vehicles["Base.91range"] = {index = -1, spawnChance = 1};
VehicleZoneDistribution.trafficjams.vehicles["Base.91range2"] = {index = -1, spawnChance = 2};
end
---------------------------------------------------------------------------------------------------
There is only 1 vehicle found in muldraugh... , which is too little for a multiplayer server, not to mention that there are 42 skins now, but I'll add a low-generation version for players to choose from.
Also I found it almost impossible to find Nikke cars in Raven Creek, I decided to add traffic jams and crashes to combat this, after all it's very frustrating to not be able to find them in such a large city.
The main additions are the low-spawning version and the areas where traffic jams and crashes are spawned.
Used in the same way as the original version.
Here's the low-generation version (SpawnChancex0.5):
---------------------------------------------------------------------------------------------------
if VehicleZoneDistribution then
-- Parking Stall, common parking stall with random cars, the most used one (shop parking lots, houses etc.)
VehicleZoneDistribution.parkingstall.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 5};
-- medium vehicles, used in some of the good looking area, or in suburbs
VehicleZoneDistribution.medium.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 5};
-- good vehicles, used in good looking area, they're meant to spawn only good cars, so they're on every good looking house.
VehicleZoneDistribution.good.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 5};
-- sports vehicles, sometimes on good looking area.
VehicleZoneDistribution.sport.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 5};
-- junkyard, spawn damaged & burnt vehicles, less chance of finding keys but more cars.
-- also used for the random car crash.
VehicleZoneDistribution.junkyard.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 1.5};
-- Traffic jams by cardinal direction, mostly burnt car & damaged ones.
-- Used either for hard coded big traffic jam or smaller random ones.
VehicleZoneDistribution.trafficjame.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 1.5};
VehicleZoneDistribution.trafficjamw.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 1.5};
VehicleZoneDistribution.trafficjams.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 1.5};
VehicleZoneDistribution.trafficjamn.vehicles["Base.ATAMustangNikke"] = {index = -1, spawnChance = 1.5};
end
---------------------------------------------------------------------------------------------------
I apologize that all my tests were only in single player mode.
I would like to reconfirm if the new spawn code fixed the problem?
xièxie~