Profile image

Part Batch XML editor python script

Dev WNP78  6.0 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.

    1.6 years ago
  • Profile image
    49.5k PlaneFlightX

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

    +1 2.3 years ago
  • Profile image
    3,629 Itzarock

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

    2.7 years ago
  • Profile image
    7,212 XiaoPiao141

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

    3.3 years ago
  • Profile image
    4,635 MongooseZiya

    i have python 3.6, will this work

    4.4 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.6 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.6 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#...

    6.0 years ago
  • Profile image
    69.4k 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

    6.0 years ago
  • Profile image
    Dev WNP78

    @Chancey21 easier, yes

    6.0 years ago
  • Profile image
    69.4k Chancey21

    Would a glass fuselage mod be easier? @WNP78

    6.0 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

    6.0 years ago
  • Profile image
    69.4k Chancey21

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

    6.0 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 6.0 years ago