Skip to content

Undoing bad decisions by WG one feature at a time

License

Notifications You must be signed in to change notification settings

PTwr/WoT_Vanillifer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vanillifer

Mod is approved on WGMods: https://wgmods.net/5550

Vanillifer goal is to make game more vanilla than in its unmodded state.

Vanillifer does not add any new features to game. It only undoes several new features that are not required for game, and might be considered as an eyesore by many players.

Vanillifer is created with update-resilency in mind. It should survive multiple updates without much attention from user.

Vanillifer contains

Update-Resilency

Vanillifer is written to survive multiple game updates, and will be further improved in that manner.

Most of the time you'll be able to just copy it to new mod directory after update without waiting for new release.

As a side effect it has no user interface, nor any integration with game UI, as those are the things that break after even minor updates.

Releases

Releases will be published on GitHub in this repository, and on official WGMods portal under PTwr of NA server WGMods account.

Checksums will be attached to release notes

Each release will contain source code (.py files). Compiled python scripts (.pyc files) are required, as that's what game loads. Compiled scripts are NOT obfuscated and can be freely inspected for malicious code.

If .wotmod package does not contains source code or .pyc files are obfuscated, package was tampered with and should be immediately deleted. If checksums are invalid, package was tampered with and should be immediately deleted.

For safety reasons you should avoid closed-source and/or obfuscated mods, as scum exists that will try to ship malware in mods.

Config file

Vanillifer will automatically create config file [game root]\mods\config\Vanillifer.ini image

If config file in mods\config directory is not present (eg. first run after installing Vanillifer) but file in mods[game version] directory is present, Vanillifer will create new config in mods\config based on it. If neither are present, default configuration will be loaded from code. This allows mod to be shipped with default settings without risk of user losing exising settings.

Config Sections

[adblock]

Settings to remove adverts from garage screen

Fields

  • disable_goldfish: removes shop offer box (bottom left corner) when set to true, which is by default displayed every 86400 seconds (24 hours) which in practice means on first login of day. "Goldfish" is internal name Wargaming gave to this feature.
  • disable_craftmachine: removes persistent Clan Wars advert (bottom right corner) when set to true. Craftmachine is internal name Wargaming gave to "build your tank during campaign" feature.
  • disable_mapbox: removes persistent Recon mode advert (bottom right corner) when set to true. Mapbox is internal name for Recon mode.
  • entrypoint_whitelist_enabled: enable filtering out garage entrypoints (clickable elements with adverts) not present in entrypoint_whitelist, default value true
  • entrypoint_whitelist: comma-separated list of allowed garage entrypoints (clickable elements with adverts), default value ShopBirthdaySectionEntryPoint, RankedEntryPoint (Ranked Battles scoreboard and occasional special shop). List of possible values can be in _ENTRY_POINT_ENABLED_VALIDATOR dictionary of event_entry_points_container.py

[marathon]

Settings to cleanup mess made by Marathon events.

Fields

  • hideAdvert: removes advert box from garage screen when set to true (flag on top will remain)
  • disableMusic: disables background music in Marathon screen

Example:

[marathon]
hideAdvert = true
disableMusic = true

[dogtags]

Settings for dogtag removal tool.

Fields:

  • disable, disables dogtags when set to true

[badges]

Settings for badges removal tool.

Fields:

  • disable, disables badges when set to true

[silhouetteColors]

Settings for overriding default silhuette colors (that glowing highlight when you aim at tanks)

Fields:

  • mode: switches betwen overriding common (default) and colorBlind (for when you enabled Color Blind mode in game settigs). Anything else will disable this feature
  • self: silhuette color of your own tank, that gray border when there is junk between tank and camera. Value is in RGBA format, eg. 0.5 0.5 0.5 1
  • enemy: silhuette color of tanks on enemy team. Value is in RGBA format, eg. 1.0 0.070 0.027 1
  • friend: silhuette color of tanks on your team. Value is in RGBA format, eg. 0.488 0.839 0.023 1
  • flag: silhuette color of flag pole. Value is in RGBA format, eg. 1 1 1 1
  • hangar: silhuette color of promo tanks in garage. Value is in RGBA format, eg. 0.992 0.780 0.259 1

RGBA format is in floats, not ints, so range is from 0 to 1 rather than 0 to 255. To translate 0-255 value to float, just divide it by 255. To convert float->int represnetation, just multiply by 255 and round to whole numbers.

For default color blind silhuette colors config section will look as follows:

[silhouetteColors]
mode = colorBlind
self = 0.5 0.5 0.5 1
enemy = 0.511 0.472 0.992 1
friend = 0.488 0.839 0.023 1
flag = 1 1 1 1
hangar = 0.992 0.780 0.259 1

Simply add it to config file and tweak to match your eyesight.

[modelOverrides]

Settings for visual model replacing tool. Currently supports replacing only for skin-clones of same nation. Do not use for different tanks.

Keys are tank codes, eg. CH01_TYPE59_GOLD for Type 59 Gold. Values are tank codes, eg. CH01_TYPE59 for Type 59.

Key and its Value should have same nation/id prefix (eg. CH01) for feature to work correctly.

For list of tank codes with user-friendly names look into [originalModels] section.

[originalModels]

Key: "tank code", eg. R134_Object_252K Value: user-friendly name, eg. Object 252U Defender (might differ depending on game language)

This section is intended as a lookup-table for user, because otherwise user would have to scavenge game files for those values. Values will be updated every time game is launched, it will always contain up-to-date data.

[camouflageOverrides]

Settings for camouflage replacing tool.

Keys are camouflage int ID's, or default. Values are numerical camouflage ID's, or allow to not apply default value to specific camouflage and maintain original values

Camouflage-specific overrides have higher priority over default value.

For list of camouflage ID's with user-friendly names look into [originalCamouflages] section.

[originalCamouflages]

Key: camouflage ID, eg. 1 Value: user-friendly name, eg. Transparent secondary (might differ depending on game language)

This section is intended as a lookup-table for user, because otherwise user would have to scavenge game files for those values. Values will be updated every time game is launched, it will always contain up-to-date data.

Hint: camouflage #1, Transparent secondary, has no camouflage. Therefore to overriding camouflage with it will result in "naked" tank.

[styleOverrides]

Settings for style replacing tool.

Keys are style int ID's, or default. Values are numerical camouflage ID's (not style), or allow to not apply default value to specific style and maintain original values

Style with applied override will lose its special "3D skin" and decals/stickers.

Style-specific overrides have higher priority over default value.

For list of style ID's with user-friendly names look into [originalStyles] section. For list of camouflage ID's with user-friendly names look into [originalCamouflages] section.

Styles are overriden with camouflage because style = camouflage+decals+3Dskin

[originalStyles]

Key: style ID, eg. 327 Value: user-friendly name, eg. Assault Kit (might differ depending on game language)

This section is intended as a lookup-table for user, because otherwise user would have to scavenge game files for those values. Values will be updated every time game is launched, it will always contain up-to-date data.

[paintOverrides]

Settings for paint color replacing tool.

Keys are paint ID's, or default. Values space-delimited base10 RGBA strings, eg. 79 73 52 255.

Paint-specific overrides have higher priority over default value.

For list of paint ID's with values and user-friendly names look into [originalPaints] section.

[originalPaints]

Key: paint ID, eg. 2 Value: RGBA a string with user-friendly name in "inline comment", 43 50 56 255;Damascus Steel (might differ depending on game language)

This section is intended as a lookup-table for user, because otherwise user would have to scavenge game files for those values. Values will be updated every time game is launched, it will always contain up-to-date data.

Config example

[dogtags]
disable = true

[adblock]
disable_goldfish = true
disable_craftmachine = true

[modelOverrides]
A117_T26E5_Patriot = A117_T26E5
Ch01_Type59_Gold = Ch01_Type59
Ch41_WZ_111_QL = Ch41_WZ_111_5A
F74_AMX_M4_1949_Liberte = F74_AMX_M4_1949

[paintOverrides]
default = 79 73 52 255; Applied to all paints without specified override
200 = 118 106 20 255; Purple

[camouflageOverrides]
default = 1
4 = allow; Ad Astra

[styleOverrides]
default = 1
327 = allow; T30 Assault Kit

[originalModels]
R04_T-34 = T-34
R02_SU-85 = SU-85
R01_IS = IS
...

[originalCamouflages]
1 = Transparent secondary
2 = Formosian three-tone
3 = Award Uniform
...

[originalStyles]
1 = China
2 = Czechoslovakia
3 = France
...

[originalPaints]
1 = 14 14 17 255;Ad Astra
2 = 43 50 56 255;Damascus Steel
3 = 17 17 20 255;Vanquisher
...