Project Zomboid

Project Zomboid

Airdrops
computer.pers  [developer] 24 Oct @ 2:27pm
Custom Airdrop Coordinates [EN]
Using Custom Airdrop Coordinates

Description

The mod supports two coordinate modes:

1. Built-in Coordinates Mode (DefaultAirdropCoordinates = true) - uses 15 built-in map locations
2. INI File Mode (DefaultAirdropCoordinates = false) - uses custom coordinates from AirdropPositions.ini file

Built-in locations: Muldraugh, Dixie, Fallas Lake, March Ridge, Rosewood, Riverside, West Point, Louisville Airport, Louisville, Water Treatment Plant, Irvington, Valley Station, Echo Creek, Ekron, Brandenburg.

Setting up Custom Coordinates

Step 1: Creating the File
1. Copy the AirdropPositions.ini.example file to the Zomboid/lua/ folder
2. Rename it to AirdropPositions.ini

Step 2: Game Configuration
1. Launch the game
2. In sandbox settings, find the "Air Drop" section
3. Set "Using Default Airdrop Coordinates" = false

Step 3: Editing Coordinates
Edit the AirdropPositions.ini file to your liking. Table structure:

return { { x = 10592, y = 9737, z = 0, name = "MyCustomLocation1" }, { x = 11580, y = 8824, z = 0, name = "MyCustomLocation2" }, { x = 7277, y = 8354, z = 0, name = "MyCustomLocation3" } }

Coordinate Parameters:
- x - X coordinate on the map (required)
- y - Y coordinate on the map (required)
- z - height level, usually 0 (required)
- name - location name for translations (required)

How to Find Coordinates:
1. In-game, press the debug key (default ~)
2. Enter command /showPlayerCoordinates to display coordinates
3. Or use Project Zomboid online map: https://map.projectzomboid.com/

Example Coordinates:
- Muldraugh Center: x = 10592, y = 9737, z = 0
- West Point: x = 11921, y = 6899, z = 0
- Riverside: x = 6381, y = 5282, z = 0
- Rosewood: x = 8106, y = 11577, z = 0

Location Names

In Built-in Coordinates Mode (DefaultAirdropCoordinates = true):
Names are taken from translations with prefix IGUI_Airdrop_Name_:
- Example: name = "Muldraugh" → looks for translation IGUI_Airdrop_Name_Muldraugh

In INI File Mode (DefaultAirdropCoordinates = false):
Names are taken directly from the name field:
- Example: name = "MyBase" → looks for translation MyBase in translation files
- Or used as-is if no translation exists

Debugging

Enable "Debug Messages" in sandbox settings to view logs:
- [CheckAirdrop] - information about spawn point selection
- [SpawnAirdrop] - information about airdrop creation
- [pickSafeSquareAround] - searching for safe place near coordinates

Compatibility

- By default, the mod uses built-in coordinates (15 locations)
- Switching to INI mode allows adding custom spawn points
- If INI file is missing and mode = false, airdrops will not spawn
- Airdrop always spawns within 100 tiles radius from specified coordinates in a safe place

Important Notes

1. Place Safety: The mod automatically searches for a safe place within 100 tiles radius from specified coordinates
2. Avoid Buildings: Airdrop will not spawn inside buildings, only outdoors
3. Avoid Water: Airdrop will not spawn on water
4. Number of Locations: You can add any number of coordinates to the INI file
Last edited by computer.pers; 24 Oct @ 2:30pm