Jump to content

RRRAdder - a Python script to add Rearm/Refuel/Repair/Heal vehicles to the Arras Spring 1918 map, with automation for PWCG campaigns.


Recommended Posts

NotTheLongShot
Posted

>>> https://github.com/NotTheLongShot/RRRAdder <<<

 

Quite often I have to leave my wing in the middle of a furball with my guns empty, wishing I could land and get the ground crew to refill my plane's magazines or to hop into a fresh plane and go back out. The game does have the capacity to rearm, refuel, repair and heal you but the necessary items aren't spawned by Pat Wilson's Campaign Generator. So, I took matters into my own hands and wrote a script to insert maintainance vehicles into the .mission file.

 

Features:

- Fairly easy installation and use - no dependencies other than Python >=3.6 and its standard library.

- Can be used on any .mission file but supports automatically finding the latest mission from a user-specified PWCG campaign.

- Supports multiple config files for different campaigns.

- Supports all airfields in the Arras Spring 1918 map.

- Backs up the original PWCG .mission file as a failsafe.

- Automatically regenerates a .msnbin from the new .mission file and restores the backup if MissionResaver.exe fails.

 

Caveats:

- I have not tested the script to exhaustion

- I have no idea how and if the repair/heal functions work.

 

Notes:

If you are a WW2 player and want to use this on WW2 maps, do as follows:

- Go into the mission editor and place period- and nation-appropriate maintenance vehicles at appropriate place(s) on the airfields on the map of your choice.

- Put the name of the airfield in parentheses in the name of the Vehicle object.

- Use the functions in RRRAdder_aux.py to convert those into a compatible JSON file.

- Put together a dictionary converting PWCG airfield names to IL-2 airfield names, if they differ - see the example at the foot of the RRRAdder_aux.py file.

- Share those JSON files here and I'll refactor the code to support multiple maps - I'll probably eventually do this on my own when 1C releases the other FC Vol II Western Front map areas.

 

Thanks of course to Pat Wilson for his excellent campaign generator! Much appreciated.

  • Like 2
  • 1 year later...
Posted

The exact functionality I've been hoping for. Flying WWII tho, will get you an airfield list for one or more of the WWII maps sooner or later

Posted

How do you want to license this code?

 

I've actually downloaded it and opened it in Visual Code. It might be that I am interested in extending the functionality. I play the game on Linux, and I've not checked if entering a linux-path will just work, but certainly executing MissionResaver.exe is different on linux.

I might be interested also in reusing some of the code in a project of my own (if I do, I'd like to publish it under GPL or similar - I'm not here to "steal" anything)

 

 

Posted

Oh, NOW I notice: You licensed it under GPL - sweet man!

 

  • 1 year later...
BrianPeppers2
Posted

This is a very cool tool but I think it needs some updates? the coordinates for the trucks are totally wrong, did pat wilson change the map or something since this was released? Referencing the airfieldlocations.json from pwcg and changing the rrradder coords in vehiclelocations.json as you need seems to work at least. Also for coop I had to change line 387 to 

player = [p for p in get_mission_element("Plane", mission_text) if p["AILevel"] == "4"][0]

for some reason coop sets player ai level to 4 instead of 0? I dont know but it wouldn't work without doing this.

  • LukeFF locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...