Backwards compatibility for custom_ports.xml (update)

World of Warships Mods


Backwards compatibility for custom_ports.xml (update)

With update 0.5.15, the custom_ports.xml file has been deprecated in favor for the Python API “customPorts” module.

Incase you don’t want to forward port your port to the new Python API you can use this.

Extract this in res_mods/0.5.15.0/
Move the xml file to res_mods/0.5.15.0/PnFMods/CustomPortsLoader/
The filename does not matter as long as it ends in .xml

I added a “display” value to the XML (see the provided XML example for the “Dragons” port) to make use of the new API display variable.

It should work with every version from this point onwards unless they change the Python API customPorts.addCustomPort method.

TL;DR: install mod, move custom_ports.xml to the CustomPortsLoader folder in PnFMods.
Though I’d suggest editing custom_ports.xml to have a “display” attribute otherwise the name will be “Custom Port”

Update 1.1:
The difference between version 1.1 and 1.0 is that 1.1 will load ALL xml files in the mod folder (res_mods/0.5.15.0/PnFMods/CustomPortsLoader/anything.xml)
This way multiple authors can use the loader with multiple XMLs

Update 1.2:
Dropped “peculiarities” and “isPremium” attributes, added “barge” attributes to manipulate the lootbox barge position.
In 0.5.16, the “peculiarities” port attribute was dropped in favor for a port filter, and introduced the barge options. “IsPremium” was also removed for redundancy.
See provided XML for info on how to manipulate the barge.

Update 1.2a:
Moved “barge” attributes to a “barge” tag to tidy code up.

Update 1.3:
Added a key combination (ALT + F10) to reload all custom ports loaded by the mod. NOTE: The script will crash if you try to reload ports while you’re active in one.


1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

What is this mod use for

Are you a dedicated fan of World Of Warships? To motivate you even more, we have a special offer – world of warships mods. These mods are additional features and can improve the quality of your game significantly. Take a look to our WoWS mods list and pick your choose. Your ship battles can become much more thirilling and successful in just few clicks. Give it a try and more fun is guaranteed. Get ready!




You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *