安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题
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~