Jump to content
Sign in to follow this  
marseille77

CfgMods config entry for modmakers

Recommended Posts

A new feature for Mod maker who want to indentify their mod in OA and lead the player directly to his website. In the main menu there an feature to link more mods without the shortcut procedure. (the last entry there)

Here an example:

class CfgMods
{
      class BWMod
      {
           dir = "BWMod";
           name = "Bundeswehr Mod";
           picture = "\bwmod\bwmod_logo.paa";
           hidePicture = "true";
           hideName = "true";
           action = "http://www.bwmod.armedassault.info";
      };
};

legend

class = You choose a name for your entry

dir = The name of the mod folder

name = Name in Menu

picture = a logo picture who is shown on the right site of the menu

hidePicture = true/false (show the pic in the mainmenu)

hideName = true/false (show the name in the mainmenu)

action = the link for the website button

Edited by Marseille77

Share this post


Link to post
Share on other sites

it works excellent to enable.. but for some reason i can't disable it?

Share this post


Link to post
Share on other sites

I've placed this in my config.bin for my Qom Province addon, but its failing to show in the Expansions UI. It simply shows @TUP in the UI, no name and no picture.

This is my config:

class CfgMods
{
  class Tup_Qom
  {
	dir = "@TUP";
	name = "Qom Province";
	picture = "\tup\tup_qom\data\startup_logo_arma_tup.paa";
           	hidePicture = 0;
           	hideName = 0;
	action = "http://www.arma2.com";
  };
};

This is placed at the root of the config.cpp file.

Any ideas?

Share this post


Link to post
Share on other sites

try just this...

name = "Qom Province";
actionName = "Website";
action = "http://www.arma2.com";

* paste into notepad - save it as "mod.cpp"...

* rename "startup_logo_arma_tup.paa" to "mod.paa"

* place "mod.cpp" and "mod.paa" BESIDE the "Addons folder", INSIDE your projects modfolder...

so - you supply a readymade modfolder...

@Qom_Province

inside that is an "Addons" directory, plus the two "mod" files, and - inside the "Addons" as normal, is your project .pbo's

I'd suggest trying to get your A2-style logo looking good at about 256x256px - it'll show not far off that size in the Expansions UI and should reduce ok for the little logo on the main menu screen..

logos.jpg

... going higher-res only seems to look worse once the game autoresizes...

Works quite well, and looks sortof "in keeping" with the rest of the game - doesn't look out of place... unlike "cba strings, etc, etc, etc, etc"... ;)

B

Edited by Bushlurker

Share this post


Link to post
Share on other sites

sorry to dig up old thread but I figured out why it was not working for Tupolov:

to have it directly in the config, the mod folder should not have the @ symbol. Then it works.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×