DayZ
Simple_Refueling
正在显示第 1 - 6 项,共 6 项条目
更新于:11 月 13 日 上午 1:59

Added Pump spawn debug for testing

Pumps spawn on Dev Server but not on Main

i was stupid and edit the wrong config LOL was working fine

更新于:11 月 13 日 上午 1:01

[1.2] 20251112

🎉 Major Changes

ClientServer RPC Synchronization
Added: RPC system for settings synchronization
Implementation:
Server sends settings to clients on connect via `InvokeOnConnect`
Client receives settings and updates local `SRSettings` instance
Only clientrequired settings are synced (distances, enable siphon, min fuel)
RPC Details:
Mod Name: `SimpleRefuelingRP`
Method: `SRSyncClientSettings`
Parameters: `EnableSiphon`, `SiphonMinVehicleFuel`, `RefuelDistanceFuelStation`, `RefuelDistanceSimplePump`
Files Added:
`MissionServer.c` Serverside RPC sending
`MissionGameplay.c` Clientside RPC receiving

✨ Improvements

Settings Loading
Fixed: Settings now properly load from JSON file
Added: Autoloading on first access for both server and client
Added: `m_IsLoaded` flag to prevent duplicate loading
Improved: Settings loading logs for debugging

Code Quality
Removed: Unused lock checking code
Cleaned: Removed `SiphonLockedVehicles` setting from JSON and code

🐛 Bug Fixes

Fixed: Settings not loading from JSON (was using defaults)
Fixed: Clientside settings not initialized (now synced via RPC)
Fixed: `RefuelDistanceSimplePump` not being read correctly
Fixed: RPC parameter count mismatch (changed from `Param5` to `Param4`)

🔧 Technical Changes

Updated: `SetClientSettings()` method signature to match RPC parameters
Improved: Error handling in settings loading

更新于:10 月 10 日 下午 12:21

The p3d file Textures and Rvmat file was pointing to C drive
Sorry

更新于:10 月 10 日 上午 5:50

Remove json setting "SiphonLockedVehicles": 1,

Remove the lock check functionality IsLocked()

Was testing with expansion works, but Vanilla does not have lock functionality IsLocked()

更新于:10 月 10 日 上午 5:11

更新于:10 月 10 日 上午 5:10