Updated Modded Aircraft Support (markdown)

bgreman 2021-06-30 11:36:24 -04:00
parent b885ff4d9e
commit 8df4420c5b

@ -52,9 +52,9 @@ So to add support for modded aircrafts in liberation, we then have to manually e
Aircraft data will be found in the file aircraft.py generated by pydcs. Search your aircraft class in this file, and add it to a custom file.
Your mod might have added new weapons, they'll be found in weapons.py, and you have to fetch them as well.
Example of final file for the popular A-4E-C mod : https://github.com/Khopa/dcs_liberation/blob/develop/pydcs_extensions/a4ec/a4ec.py
Example of final file for the popular A-4E-C mod : https://github.com/dcs-liberation/dcs_liberation/blob/develop/pydcs_extensions/a4ec/a4ec.py
As you can see, extensions for mods are stored in this folder : https://github.com/Khopa/dcs_liberation/blob/develop/pydcs_extensions
As you can see, extensions for mods are stored in this folder : https://github.com/dcs-liberation/dcs_liberation/blob/develop/pydcs_extensions
These file contains a lot of metadata we need to be able to generate missions, such as possible liveries, possible payloads for each pylons, specific weapons ids ... and so on.
@ -62,7 +62,7 @@ These file contains a lot of metadata we need to be able to generate missions, s
Once you've created your extension, you need to inject it's content into the pydcs version run by Liberation. This is done at runtime in db.py.
If your modded content is a plane, you need to inject it to pydcs plane_map, in the file [db.py](https://github.com/Khopa/dcs_liberation/blob/develop/game/db.py)
If your modded content is a plane, you need to inject it to pydcs plane_map, in the file [db.py](https://github.com/dcs-liberation/dcs_liberation/blob/develop/game/db.py)
```python
@ -76,7 +76,7 @@ If this is a vehicle, add it to vehicle_map instead.
## Step 2 : DB stuff
Still in [db.py](https://github.com/Khopa/dcs_liberation/blob/develop/game/db.py)
Still in [db.py](https://github.com/dcs-liberation/dcs_liberation/blob/develop/game/db.py)
Add your plane to the price map:
@ -92,7 +92,7 @@ Also add it to the list and maps: ```UNIT_BY_TASK```, ```PLANE_PAYLOAD_OVERRIDES
## Step 3 : Liberation flight planner database setup :
Open [ai_flight_planner_db.py](https://github.com/Khopa/dcs_liberation/blob/develop/gen/flights/ai_flight_planner_db.py)
Open [ai_flight_planner_db.py](https://github.com/dcs-liberation/dcs_liberation/blob/develop/gen/flights/ai_flight_planner_db.py)
Add your plane to the lists it needs to be in, so DCS Liberation is aware of its capabilities :
@ -109,16 +109,16 @@ CAP_CAPABLE = [
## Step 4 : Create default payload
See https://github.com/Khopa/dcs_liberation/wiki/Custom-Loadouts
See [Custom Loadouts](Custom-Loadouts)
Create default loadouts for the new plane.
## Step 5 : Factions
See https://github.com/Khopa/dcs_liberation/wiki/Custom-Factions and create a faction that support the mods so it can be used
See [Custom Factions](Custom-Factions) and create a faction that support the mods so it can be used
## Step 6 : Add icons for the UI [Optional]
Add icons for the new plane there: https://github.com/Khopa/dcs_liberation/tree/develop/resources/ui/units/aircrafts/icons
Add icons for the new plane there: https://github.com/dcs-liberation/dcs_liberation/tree/develop/resources/ui/units/aircrafts/icons
And a banner, there: https://github.com/Khopa/dcs_liberation/tree/develop/resources/ui/units/aircrafts/banners