DayZ
MuchCarKey
Viser 11-20 af 24 forekomster
< 1  2  3 >
Opdatering: 19. nov. 2023 kl. 4:11

Fixed admin reset key not working on vehicles without the new config option

Opdatering: 18. nov. 2023 kl. 10:03

Patch notes:
- Changed log to be more clear when vehicle expired/get deleted due to types lifetime
- Added restriction for Push Car to work only when unlocked
- Added extended log for Push Car action (e.g. `20:30:35 | Player Helkhiana (<10300.610352, 13.045842, 2310.209229> steam64id=XXXXX) pushed Helkhiana's Ada 4x4 (ID: 2)`)
- Changed the logs to include the keyword ID when printing the car ID ( e.g. `Olga 24 (ID: 1660198721 - pos <3302.253906, 314.243134, 15084.592773>) initialized. Remaining lifetime: 4d 22h 52m 10s` )
- Changed how car IDs are generated if you enable version 2 of the config. The IDs will be smaller now starting from 1 and more consecutive. Same goes for car key IDs. This will ensure IDs will never be same by pure chance.
- Added `m_OriginalOwnerName` and `m_OriginalOwnerId` to the vehicle DB. This will store the name and steamID of the player who assigns the key to the vehicle, becoming the original owner.
This will be used to display the vehicle name in logs if present. (e.g. `20:26:06 | Helkhiana's M3S Covered (ID: 2115959869 - pos <10309.208984, 13.828890, 2307.773926>) initialized. Remaining lifetime: 14d 23h 0m 31s` )
Vehicle report from info key will now show the original owner name.
- Added new option in config version 2 `CanPlayersResetKey": 1`. If enabled(1) players will be able to reset the key of their vehicle. This will reset the key itself too so it's reusable to assign to same vehicle or new one.
This feature is good for when trading vehicles to another player.

**!IMPORTANT!**
After the mod update, start your server with version 1 of the config. Only change the version to 2 after one full save (or a full restart cycle) of the server vehicles.
If you start server with config version 2 without the save/first restart, it could cause issues in the DB and you'll see errors in script log mentioning script variable corruption.
If you don't know what you're doing, don't change version until you wipe vehicles/server. But the instructions can't be simpler than this ^

Example version 2 config:

```
{
"version": 2,
"CanCraftKey": 0,
"CanPickCarLocks": 0,
"RaidTool": "Lockpick",
"RaidTools": [
"Lockpick"
],
"ToolDamage": 50,
"ChanceToPickLock": -1.0,
"TimeToPickLock": 200.0,
"ActivateExtendedLogs": 1,
"LifetimeMaintenanceEnabled": 1,
"MaxLifetime": 1296000,
"MaxLifetimeWithoutAnyPlayerInteraction": 432000,
"CanPlayersResetKey": 1
}
```

Opdatering: 22. juli 2023 kl. 5:29

- Fixed issue where last interacted with variable would be 0 causing it to despawn vehicles

Opdatering: 22. juli 2023 kl. 4:14

- Changed so the script sets lifetime in DB when enabled the lifetime maintenance. This should help with vehicles that have 3 seconds lifetime in types.
- Changed logs to show remaining lifetime when server restarts
- Changed logs to show some extra info when vehicle is destroyed E.g. Vehicle destroyed by player shooting it. It will show vehicle destroyed by vehicle when engine died.
- Changed logs to show extra line when vehicle despawned due to 0 lifetime in DB when not using maintenance from MCK
- Fixed the server startup logs showing wrong id
- Changed IDs generation and they can be negative integers as well
- Changed info key to work on all cars
- Changed info key print out to print to logs too
- Changed info key to print the remaining lifetime
Note: If a vehicle has been spawned through events and you do not have lifetime maintenance available, the lifetime won't tick so it will always show 0 or 3 seconds or whatever types has set as lifetime

Opdatering: 16. juli 2021 kl. 0:51

Changed defines to separate pbo to hopefully help car cover mod save the ids properly

Opdatering: 13. juli 2021 kl. 4:05

This update will WIPE all cars unfortunately.
- Added lifetime maintenance
- Changed config location from MCK_CarLockPickConfig/CarLockPickConfig.json to MuchCarKey/MCK_Config.json
The config should automatically convert and delete old one.
- Added lifetime maintenance config options - You can disable this feature in config
- Added extended logging e.g. starting, getting in and out, detaching items - It can be disabled in config
- Added compatibility for UniversalApi to store CarKey information for MapLink

How does lifetime maintenance work?
In config there's 2 sets of lifetimes, MaxLifetime and MaxLifetimeWithoutAnyPlayerInteraction
For MaxLifetimeWithoutAnyPlayerInteraction you should set a lower amount. e.g. if you spawn cars with CE and there's a single car in a very obscure place, you can use this to maintain their lifetime
For MaxLifetime you should put maximum you ever want cars to be sitting around.

If a player starts a car that doesn't have a key it will set lifetime to MaxLifetimeWithoutAnyPlayerInteraction
If a player starts a car that had a key assigned, it will set the lifetime to MaxLifetime

Opening doors, interacting with the car in any other ways other than the ones below won't count towards the lifetime reset

What does reset lifetime?
- Starting a car
- Assigning a key
- Locking the car
- Unlocking the car

Do we still need lifetimes in types set correctly?
Yes you do. I'd recommend to put same amount or higher than MaxLifetime

Why would we do this?
You'd have 2 lifetimes to maintain cars in the world as cars spawned with CE will never despawn unless they are destroyed. This ensures cars will cycle spawns.

I use 5 days without key, 2 weeks with key. This will ensure active people keep their cars and new ones will come into the world.

Opdatering: 20. apr. 2021 kl. 2:40

- Fix for 1.12 compatibility
- Added Admin Info Key. This will give the ID of the car and the key id assigned to the car. It will be printed in the chat.
- Changed it so when a key has no tag attached inventory view is more zoomed in
- Changed the inventory view of the key tag

NOTE: New key was used to sign the pbos. Make sure you copy the new one from Keys folder

Opdatering: 3. feb. 2021 kl. 2:14

Notes:
- Preparation for 1.11
- Added new config to disable crafting of key at grinder (CanCraftKey -> 1 to enable crafting, 0 to disable crafting)
- Added new config to allow multiple items for raiding
- Changed so you can't take items from truck if locked

New config

{ "CanCraftKey": 1, "CanPickCarLocks": 1, "RaidTool": "", "RaidTools": [ "Lockpick", "Crowbar" ], "ToolDamage": 10, "ChanceToPickLock": 40.0, "TimeToPickLock": 10.0 }

Opdatering: 4. nov. 2020 kl. 5:31

1.10 Compatibility Update

Modified:
- Now keys should work with cars (or other carscript) that have no doors e.g. trolleykart, atv

Opdatering: 30. juni 2020 kl. 7:14

1.08 compatibility for holding key