PDA

View Full Version : Need list of mod directory names


Yarin
02-05-2006, 12:36 AM
Hey everyone,
I want my tool (BF2 Mesh Viewer, see sticky thread in this board) to display "pretty" mod names instead of directory names (for example, "Special Forces" instead of "xpack"). I know there is the Mod.desc file but it seems like this file can use localized strings and I don't want to load the .utxt files just to display pretty mod names as this would be pure overkill.

Following the KISS paradigm (Keep It Simple, Stupid! ;-) ) I just want to hardcode some mod names into the tool. It would be nice if you could help me bring together a little list of mod names and their mod directory names.

Current list (will try to update this list periodical in the next few days):

bf2 = Battlefield 2
dcon = Desert Conflict CTF
naw = Nations At War
surreal = Surreal
TacticalWar = Tactical War
xpack = Special Forces
rc = Rising Conflicts
CE_Legends = CE Legends
PRMM = Project Reality Mini-Mod v0.1
PRMM_02 = Project Reality Mini-Mod v0.2
mercs = Mercenaries mod
excentriker = excentriker unlocked weapons mod
COOP_4.0 = codebasher's Co-Op 32 mod v4
WCC = Codename WCC Co-Op mod
aintent = Allied Intent
21cw = 21st Century Warfare mod
Battlegroup2 = Battlegroup 2

Thanks!

p.s.: If you don't know what I mean.. have a look at your \Program files\EA Games\Battlefield 2\mods\ directory. There are some directories, one for each mod installed. I want these directory names and their corresponding mod names.

grolsche
02-05-2006, 01:22 AM
Cant you just create your own string replacment to replace xpack with Special Forces, it shouldnt be that hard.

Yarin
02-05-2006, 01:27 AM
I know and this is not the problem but I can't do it without knowing the mod directory names. There are more mods out there than Special Forces and I can't download them all. This is why I'm asking you to post the names of the mods you have installed (or written) and their corresponding mod names!

Did you understand this now? I don't need someone to tell me how to this, I want to expand the list of mod directories in my first post!

Smagma
02-05-2006, 01:29 AM
naw = Nations At War

http://www.nations-at-war.com/downloads/images/naw-icon.zip

grolsche
02-05-2006, 01:01 PM
Did you understand this now? I don't need someone to tell me how to this, I want to expand the list of mod directories in my first post!

No need to take a bad attitude.

Yarin
02-05-2006, 03:47 PM
Sorry, wasn't meant to be harshly. But if I read this again.. you're right, sounds a bit unkind. Sorry for that.

p.s.:
fyi, I'm doing more than just hardcoding a string replacement now. I use an ini file (because I already wrote a wrapper for it for the language and configuration files) now which looks like this:

; Yarin's Battlefield 2 Mesh Viewer
;
; This file contains some information about well-known Battlefield 2
; mods. This data is just used for cosmetical issues, you can use mods
; even if they are not listed here.

[Mods]
; Directory = Pretty name
bf2 = Battlefield 2
xpack = Special Forces
dcon = Desert Conflict CTF
naw = Nations At War
surreal = Surreal

[Icons]
; mod = <directory><:><icon or exe>[<:><icon number in executable>]
; <directory> = 0 means App\Mods\foo.ico, 1 means EA Games\Battlefield 2\mods\mod\foo.ico
; <icon or exe> = relative path to icon or executable (with resources)
bf2 = 1:..\..\BF2.exe:2
xpack = 1:bf2xpack.ico
dcon = 1:unins000.exe:1
surreal = 1:surreal.ico
This way I can specify pretty mod names and icons (or executables containg icons) in the mod directory as well as delivered with my tool (if the mod comes without any icons or I want to use a custom one)

imported_dadofsam
02-05-2006, 04:59 PM
rc= Rising Conflicts

jdrou
02-05-2006, 07:30 PM
PRMM = Project Reality Mini-Mod v0.1
PRMM_02 = Project Reality Mini-Mod v0.2
mercs = Mercenaries mod
excentriker = excentriker unlocked weapons mod
COOP_4.0 = codebasher's Co-Op 32 mod v4
WCC = Codename WCC Co-Op mod
aintent = Allied Intent

[21CWDev]JD7
02-06-2006, 08:34 AM
21cw = 21st Century Warfare mod

[BG2]Panzaman
02-06-2006, 01:37 PM
Battlegroup2

Yarin
02-11-2006, 12:04 AM
What about
Forgotten Hope 2
and
BF2: Apocalypse.

Or only mods that i have?
I need the mod directory names, too. Or better - a download link so I can link the mod icons into my app.

fyi here is a screenshot how it looks in the mesh viewer:
http://yarin.de/bf2modding/MeshViewer/screenshots/rev3_mod_selection.png

I know thats german but only because I haven't made an english language file right now. The completed release will be multi-language.

zzDimaxx
02-11-2006, 04:50 PM
I dont have any MODS all of them suck, and no one playing online :cry: i'm waiting for FH and Apocalipse2:p

ctz
02-11-2006, 07:03 PM
fh2 -> Forgotten Hope 2 ;)

ps: Hi Yarin, how's things? :)
edit: why don't you just parse mod.desc in each mods/ directory? it'd be easier

Yarin
02-11-2006, 10:42 PM
fh2 -> Forgotten Hope 2 ;)
Roger! Can you also tell where the mesh viewer can find the icon? (must be .ico or an icon resource in an exe file)

ps: Hi Yarin, how's things? :)I'm fine, thanks :-)
edit: why don't you just parse mod.desc in each mods/ directory? it'd be easier
1) Because mod.desc can contain references to the language files (*.utxt) instead of the mod name.
2) Because mod.desc's <icon> field supports image files (dds, png, ...) (which aren't supported by winapi / gdi)

Writing code to support utxt, png, dds files and so on would be pure overkill. It's a lot easier to collect the most important mod names in an own file and fall back to the mod folder name (for example bf2 for Battlefield 2) if the mod is unknown.

wolfi
02-12-2006, 06:34 AM
usi - US Intervention
no icon available yet

Overcloud
02-13-2006, 07:05 PM
EoD - Eve of Destruction (www.eodmod.com)

http://eodmod.com/lay2/header8.jpg (www.eodmod.com)

imported_CheetahShrk
02-15-2006, 03:33 AM
usi - US Intervention
no icon available yet

I thought we had a icon already.
Also im hoping the mesh viewer does not export the uv unwraps because if it does, I will take great care to damage parts but still readable to bf2 of the mesh files for usi :P