Giter Site home page Giter Site logo

bf2-infomap-generator's Introduction

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

bf2-infomap-generator's People

Contributors

worldlife123 avatar worldlifedd avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.