AlPepino / Next-Days

DayZ mod
4 stars 0 forks source link

ND_0_RP_vehicles_settings.json explanation #3

Open Snowmanko opened 2 years ago

Snowmanko commented 2 years ago

Hi, I would like to ask if you can explain how ND_0_RP_vehicles_settings.json works, I've tried to setupu V3S to be able to chop trees but it seems its not working at all. I cant find why. Does this work only for cars spawned by Next-Days mod on missions or is it possible to use also on cars that comes from various mods?

Thanks! BR!

AlPepino commented 2 years ago

Hi, it works for any spawned cars. 1) Be sure you have set up "InitVehiclesProperties": 1 in ND_0_RP_vehicles.json

2) an element example of ND_0_RP_vehicles.json:

    {
        "Name": "Truck_01_Covered",
        "DamageLight": 1000.0,
        "DamageHeavy": 5000.0,
        "EnableCutDownTrees": 1,
        "RequiredImpulseToCutDown": 500.0,
        "DamageContactCoefHitTree": 0.009999999776482582,
        "DamageContactCoefHitAI": 0.0,
        "DamageContactCoefHitAnyOther": 0.0,
        "DamageToKillCrew": 10000.0
    }
Snowmanko commented 2 years ago

I've tried it but, it seems it does not work. Can you check please? InitVehiclesProperties is set to 1.

{

        "Name": "Truck_01_Covered",
        "DamageLight": 1000.0,
        "DamageHeavy": 5000.0,
        "EnableCutDownTrees": 1,
        "RequiredImpulseToCutDown": 0.10000000149011612,
        "DamageContactCoefHitTree": 0.009999999776482582,
        "DamageContactCoefHitAI": 0.0,
        "DamageContactCoefHitAnyOther": 0.0,
        "DamageToKillCrew": 10000.0
    }
AlPepino commented 2 years ago

I will try it myself. Everything is possible after DayZ update

Snowmanko commented 2 years ago

I've tried it before yesterday patch and it was not working. Please try it, it would be great to make this working. Thanks a lot!

AlPepino commented 2 years ago

I have tested it and it works as should have. Don't you use any mod modifying or adding cars? ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 20. 4. 2022 10:39:21 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

I've tried it before yesterday patch and it was not working. Please try it, it would be great to make this working. Thanks a lot!

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1103617052), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555IY3BKV3TJR6WD5GNDVF66FRANCNFSM5SKVAQLQ) . You are receiving this because you commented. Message ID: <AlPepino/Next- @.***> "

Snowmanko commented 2 years ago

I have some modded cars. Do you think there can be some conflict? I can check some logs, but I found nothing so far..

RedFalcon Flight System Heliz RUSForma Vehicles CJ187-Cars IRP Land Rover Defender 110 Gerphelius Zil-130

CarCover LachsgartenTruckFix COCAs_NoVehicleDamageMOD

AlPepino commented 2 years ago

Some of them must override method managing on conntact event ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 20. 4. 2022 17:42:14 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

I have some modded cars. Do you think there can be some conflict?

RedFalcon Flight System Heliz RUSForma Vehicles CJ187-Cars IRP Land Rover Defender 110 Gerphelius Zil-130

CarCover LachsgartenTruckFix

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1104082372), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555NOBPGGD557TGEEPP3VGAQU5ANCNFSM5SKVAQLQ) . You are receiving this because you commented. Message ID: <AlPepino/Next- @.***> "

Snowmanko commented 2 years ago

Can you tell if/how I can debug which one is doing that? Or there is only one possible way to do it - try to turning them off one by one ? Thanks.

Snowmanko commented 2 years ago

I've deleted almost all addons and it still does not work :( can I somehow check which addon is ruining contact event? Btw you are from CZ? I am from SK :)

AlPepino commented 2 years ago

I recommend you test it on vanilla only to make sure whether missed some settings ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 25. 4. 2022 12:04:52 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

I've deleted almost all addons and it still does not work :( can I somehow check which addon is ruining contact event?

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1108358328), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555L4HGXU42ROORGLJWTVGZU3ZANCNFSM5SKVAQLQ) . You are receiving this because you commented. Message ID: <AlPepino/Next- @.***> "

AlPepino commented 2 years ago

It works I am sure ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 25. 4. 2022 12:04:52 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

I've deleted almost all addons and it still does not work :( can I somehow check which addon is ruining contact event?

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1108358328), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555L4HGXU42ROORGLJWTVGZU3ZANCNFSM5SKVAQLQ) . You are receiving this because you commented. Message ID: <AlPepino/Next- @.***> "

Snowmanko commented 2 years ago

I have created TEST server with these addons only and it does not work, I am desperate. We can test together if you want to. https://www.battlemetrics.com/servers/dayz/15095858 Mods: @CF @VPPAdminTools @Next-Days @GameLabs (Servermod)

{
        "Name": "OffroadHatchback",
        "DamageLight": 0.0,
        "DamageHeavy": 0.0,
        "EnableCutDownTrees": 1,
        "RequiredImpulseToCutDown": 1.0,
        "DamageContactCoefHitTree": 0.0,
        "DamageContactCoefHitAI": 0.0,
        "DamageContactCoefHitAnyOther": 0.0,
        "DamageToKillCrew": 30000.0
    },
{
    "RequiredKeyToStartEngine": 0,
    "DisableLocpicking": 0,
    "DisableLocpickingInTradeZone": 0,
    "DisableKeyDuplicationInTradeZone": 0,
    "IndestructibleLockedVehicle": 1,
    "IndestructibleVehicles": 1,
    "TimeToForceOpen": 60,
    "DamageLockpick": 40,
    "InitVehiclesProperties": 1
}
AlPepino commented 2 years ago

No JSON crash in server script log? ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 2. 5. 2022 11:58:37 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

I have created TEST server with these addons only and it does not work, I am desperate. https://www.battlemetrics.com/servers/dayz/15095858 (https://www.battlemetrics.com/servers/dayz/15095858) Mods: @cf(https://github.com/cf) @VPPAdminTools @Next-Days @GameLabs (https://github.com/GameLabs) (Servermod)

{ "Name": "OffroadHatchback", "DamageLight": 0.0, "DamageHeavy": 0.0, "EnableCutDownTrees": 1, "RequiredImpulseToCutDown": 1.0, "DamageContactCoefHitTree": 0.0, "DamageContactCoefHitAI": 0.0, "DamageContactCoefHitAnyOther": 0.0, "DamageToKillCrew": 30000.0 },

{ "RequiredKeyToStartEngine": 0, "DisableLocpicking": 0, "DisableLocpickingInTradeZone": 0, "DisableKeyDuplicationInTradeZone": 0, "IndestructibleLockedVehicle": 1, "IndestructibleVehicles": 1, "TimeToForceOpen": 60, "DamageLockpick": 40, "InitVehiclesProperties": 1 }

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1114681643), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555L6NTAMEJYTNJ3CB73VH6RMJANCNFSM5SKVAQLQ) . You are receiving this because you commented. Message ID: <AlPepino/Next- @.***> "

Snowmanko commented 2 years ago

Not at all, trying to load clean server with Next-Days wiped configuration in profile folder. InitVehiclesProperties is 1 on default. No missions loaded at default config.

SCRIPT       : ALPEPINO: IS FIRST SERVER RUN: false
SCRIPT       : ALPEPINO: IS VALID VERSION: true
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] Loaded MissionServer
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] allowReporting = 2 => Reporting enabled
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] statisticsReporting = 2 => Statistics enabled
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] authKey=
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] API-Register status=2, error=
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [INFO   ] Server up (GameLabs v1.7)
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [DEBUG  ] (Reporter) pollProtocolVersion=1
SCRIPT       : [GameLabs-Debug] 2022-05-02T10:42:01+00:00 | [INFO   ] Experimental speed check is enabled
SCRIPT       : [MissionServer] OnInit - Server
SCRIPT       : string dirtyName = '[CZ/SK]EVAC-TEST-LOCKED'
SCRIPT       : [MissionServer] OnMissionStart - Server
SCRIPT       : m_LoginTimeMs: 16200
Snowmanko commented 2 years ago

I manage to find problem, but no solution so far.

If "IndestructibleVehicles": 1 then settings in ND_0_RP_vehicles_settings.json does not work. If i change "IndestructibleVehicles": 0 settings apply and damage to trees work as intended.

It would be nice to have indestructible Vehicles along with ability to setup variables like in ND_0_RP_vehicles_settings JSON.

Snowmanko commented 2 years ago

@AlPepino can you confirm please? I tested it on clean vanilla server.

AlPepino commented 2 years ago

It works when you do not have enabled no damage to vehicle. But you have to enable "nodamage" through properties setting except of shooting of course ---------- Původní e-mail ---------- Od: Snowman @.> Komu: AlPepino/Next-Days @.> Datum: 5. 5. 2022 14:11:40 Předmět: Re: [AlPepino/Next-Days] ND_0_RP_vehicles_settings.json explanation (Issue #3) "

@AlPepino(https://github.com/AlPepino) can you confirm please? I tested it on clean vanilla server.

— Reply to this email directly, view it on GitHub (https://github.com/AlPepino/Next-Days/issues/3#issuecomment-1118475121), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQD555J7GM3GFEFVUOYE4FDVIO3HHANCNFSM5SKVAQLQ) . You are receiving this because you were mentioned. Message ID: <AlPepino/ @.***> "