Profile image

Part Batch XML editor python script

Dev WNP78  5.4 years ago

Script
Requires Python 3. Should work on Windows and MacOS, though not tested on MacOS. First enter the name of the aircraft file (without the .xml or path), then the field you want to change, (for instance, health), then the value to set it to (like 300). It should then edit all parts to have that set. Simple.

  • Log in to leave a comment
  • Profile image

    @PlaneFlightX Funny enough, your comment made it easier to find this.

    11 months ago
  • Profile image
    46.5k PlaneFlightX

    Ah, found it. I was looking for something called massEdit, that's probably why I didn't find it.

    +1 1.6 years ago
  • Profile image
    3,330 Itzarock

    @WNP78 how exactly would you do it though? how would you set up python?

    2.0 years ago
  • Profile image
    7,167 XiaoPiao141

    I still didn't get it cuz I'm a newbie in python. Can someone explain this for drag

    2.6 years ago
  • Profile image
    4,620 MongooseZiya

    i have python 3.6, will this work

    3.8 years ago
  • Profile image
    Dev WNP78

    @Kweed10 do you have the latest version of the game that supports those parameters? If you set them with overload, does that work?

    +1 5.0 years ago
  • Profile image
    Dev WNP78

    @Kweed10 make sure you actually reload the aircraft into the designer, even if it's already there. If it's definitely not working, try running the script through a command prompt or something so that it doesn't close and you can catch whatever error it's outputting. If it got around to prompting for the property and value then it would have succeeded with opening the file so I'm not too sure what would be wrong...

    5.0 years ago
  • Profile image
    Dev WNP78

    @Chancey21 I'm sure it's possible to make mods on a mac. To make a fuselage though, you'd need C#...

    5.3 years ago
  • Profile image
    69.2k Chancey21

    I was just noticing the lack of a good reliable glass mod, and thinking about making one. Is it possible to make mods on a Mac? @WNP78

    5.3 years ago
  • Profile image
    Dev WNP78

    @Chancey21 easier, yes

    5.3 years ago
  • Profile image
    69.2k Chancey21

    Would a glass fuselage mod be easier? @WNP78

    5.3 years ago
  • Profile image
    Dev WNP78

    @Chancey21 quite, and it would have to be installed on anyone who downloads the plane. It's possible though and there's actually some code lying around somewhere

    5.3 years ago
  • Profile image
    69.2k Chancey21

    How difficult would it be to create an "opacity slider" mod?

    5.3 years ago
  • Profile image
    Dev WNP78

    @randomusername I have a mod in progress that would contain a function like this but I don't have as much time to finish it and this script was sat around in my files.

    +6 5.4 years ago