Jump to content
Sign in to follow this  
You need to play a total of 1 battles to post in this section.
MatroseFuchs

ModAPI (discussion)

11 comments in this topic

Recommended Posts

Administrator
675 posts
15 battles

All greetings!

We updated the ModAPI documentation on our forum, added descriptions, new methods and sections, as well as updated instructions for creating mods.

https://forum.worldofwarships.ru/topic/69084-modapi-документация/

https://forum.worldofwarships.ru/topic/64856-modsapi-how-to/

Similar topics in the European forum will be added later. We are currently translating the documentation.

  • Cool 2

Share this post


Link to post
Share on other sites
Administrator
675 posts
15 battles

All greetings!

Unfortunately, the ContentSDK bugfix has moved to version 7.12, so please do not throw out the fixContentSDK utility yet.
Peace for everyone:Smile_Default:

Share this post


Link to post
Share on other sites
[DKP]
Modder
459 posts
9,615 battles

Is it possible to change naval flags with the current API version?

Share this post


Link to post
Share on other sites
Administrator
675 posts
15 battles
On 11/17/2018 at 9:57 PM, OlliN said:

Is it possible to change naval flags with the current API version?

To make it clearer about which flags are involved, please make a couple of screenshots of the flags you are talking about.

Share this post


Link to post
Share on other sites
Modder
369 posts
14,525 battles
On 11/18/2018 at 2:57 AM, OlliN said:

Is it possible to change naval flags with the current API version?

As I know so far, flags are considered as an element attached on the ship model, you can modify their size, position and orientation by editing a certain .visual file, but their texture is in content/gameplay/common/flags/flags.dds, which is not covered by the content SDK.

Briefly: the content SDK does not help you to modify the pattern of your flags.

Share this post


Link to post
Share on other sites
Administrator
675 posts
15 battles

If we are talking about national naval flags, in order to change them you need to download "unpacker" and unpack 

18 hours ago, Yuudachi_Kai_II said:

in content/gameplay/common/flags/flags.dds

 

Share this post


Link to post
Share on other sites
[DKP]
Modder
459 posts
9,615 battles
Am 19.11.2018 um 12:15, MatroseFuchs sagte:

To make it clearer about which flags are involved, please make a couple of screenshots of the flags you are talking about.

 

I'm talking about assigning specific naval flags to specific ships (e.g. Reichsmarine flag instead of Kriegsmarine for ships build before 1933), like the ingame option for Pan-Asia and Commonwealth.

Share this post


Link to post
Share on other sites
[ST-EU]
Supertest Coordinator, Modder
1,365 posts
13,171 battles
On 11/22/2018 at 2:07 PM, MatroseFuchs said:

It's possible. You need to unpack files, find flags.dds, flag atlas and file of the required ship with flag index.

 

Okay... I have to clarify something here: It's not possible... I think you are missunderstanding people here. I know I'm not WG Staff and so, but I've worked with flag mods long enough and know the inner workings of it like none of the other modders here.

 

Before the scripts.zip file modding ban you could use a special version of a python file which allowed loading json files which contained information to overwrite some strings of the gameparams file without breaking the game and not even hurting anyone else since the strings only affected which flags should get shown/loaded for each shiphull.

 

To be more precise: Each hull has a dedicated string which tells the game which part of the flags.dds file should be shown via the flags.atlas file. The string is the same as you can see in the atlas file. For example germany1933 would directly aim to the germany1933 flag specified in the flags.atlas file. Which means: You could have more flags than we have now by adding new flags to the atlas file and adding them in the json file to change certain hulls. Like adding a diffrent variant of the german flag and only show it on one hull like the A hull and a diffrent one on B hull.

 

Right now: if you want to adjust one ship, like the upcoming KuK Ship which has the german flag atm, you will have to change the entire german fleet or just let it be. There is no way to adjust the flag on a single hull since the scripts.zip modding ban.

 

I assume that the new contentsdk version won't help regarding this as well because you have linked to the current extractor version. Otherwise you would have said, that it will be posisble with the next ContentSDK version.

 

So in conclusion to this: It is not possible to do what people are asking here to be able to do and it won't change with the next version where the API Update comes. Because what people wish for is changing the flag on a single ship/hull without affecting the entire techtree/nation.

  • Cool 1

Share this post


Link to post
Share on other sites
[DKP]
Modder
459 posts
9,615 battles
Am 22.11.2018 um 14:07, MatroseFuchs sagte:

It's possible. You need to unpack files, find flags.dds, flag atlas and file of the required ship with flag index.

 

Sorry, but did you read my entire post? Hint: 'ingame option'

 

Simple example: player.shipInfo.navalFlag is 'germany' for all German ships, but should be 'germany1921' for all Non-Kriegsmarine ships, the rest will remain 'germany'.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×