Skip to content

This is a simple tool to generate vBF2 style info images for your customized levels.

Notifications You must be signed in to change notification settings

BattlefieldRedux/bf2-infomap-generator

 
 

Repository files navigation

vBF2 style & BF2142 style info map generater V1.1 by worldlife(worldlife123)

This is a simple tool to generate vBF2 style and BF2142 style info images for your customized levels.

Preview

Dependencies

BattleField 2/2142 Python 2.7.13
Pillow
nvdxt.exe in NVIDIA DDS Utilities

Install

  1. Install python 2.7.13 first. Make sure to set the option "include python in the path" when installing. After installing python, you can run install_pillow.bat to install pillow via pip.
  2. Create a new folder "infomap" into your mod's python folder, and copy everything into this folder. Note that this tool is not loaded in game, so after infomap generation you can delete the folder.
  3. Copy nvdxt.exe to bin folder.

Usage

Run generateInfomaps.py with python.exe, or use run.bat. It will list all maps in your mod. Type a map name to generate info map for it, or Type "all" to generate for all maps.
For BF2142, run generateInfomaps_2142.py with python.exe, or use run_2142.bat.
Requirement for levels: The levels must be unzipped(that's to say, can be loaded in BF2Editor).The info ,Hud and Gamemodes folder must be present, as well as Init.con and Heightdata.con.

Customize

  1. Add a team to generate infomap flags.
    I've included all vBF2 and xpack teams in this tool. If you have custom team in the map, do the following:
    (1) In maps\flags, create a folder whose name is your custom team name.
    (2) Create a miniMap_CP.tga in this folder with your team's flag. A .psd template(created in Adobe Photoshop CS6) is provided inside maps\flags. You can use this as a reference.
    (3) Run the tool.
    For BF2142, look into maps\flags_2142.

  2. Use a custom cover to the infomap(such as a grid or your logo).
    In maps\areas, modify or replace a cover.dds. This image would be pasted on top of the generated info maps.
    For BF2142, look into maps\areas_2142.

  3. Use custom combat area.
    Similar to 2. Just modify or replace CombatArea.dds in maps\areas.

Credits

  • NVIDIA - for nvdxt.exe
  • fire&bf2tech.org - for conParser.py
  • Dnamro, Deine-Augen - for testing this tool and giving feedbacks

About

This is a simple tool to generate vBF2 style info images for your customized levels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • Batchfile 0.2%