PDA

View Full Version : Help with configuration "config.cpp"



bravo 6
Aug 31 2009, 20:28
I play in a server where they want to use the unit position on the map, but i don't like to see every ones position moving in the map, it looks very unrealistic and i like to identify where i am by myself.

Can someone help me how to configure and fight against the server settings?
I have my config.cpp changed with the option:



class CfgDifficulties
{
class Flags
{
map[] = {0, 0};
};
};

but when i enter the server i still see the units in the map.
How can i change this?

.kju [PvPscene]
Aug 31 2009, 20:58
Won't work. You can make an addon to disable the pictures or the color of the map help.

bravo 6
Aug 31 2009, 21:04
Won't work. You can make an addon to disable the pictures or the color of the map help.

I did an pbo file but it still does not work :\
The addon is in a separated folder.


any other ideas?

.kju [PvPscene]
Aug 31 2009, 21:26
Nah your tweak doesnt work.

You need to disable the picture in UI.pbo or config wise (if possible).
Or change the coloring of the pictures in configs.

bravo 6
Aug 31 2009, 22:18
Are you saying it is impossible to use an extra pbo to do the job?

what i want to disable is this: "\ca\ui\data\iconman_ca.paa" (i think, at least is a similar icon)

Another thing if you can help me: how can i make the friendly tag to work even if the server does not use it?

friendlyTag[] = {1, 0};

Its terrible to accidentally TK people unnecessarily.

.kju [PvPscene]
Sep 1 2009, 08:59
For tags use a community made system like Spooner's work.
It has been converted to a2. Check ofpec for mk4_showInfo.

So, an ugly yet maybe the only way, is to take the UI.pbo,
replace the given textures with empty ones and pack it again.
Best to rename it to YourTag_UI.pbo. The prefix handles the internal replacement.

bravo 6
Sep 1 2009, 10:05
Is there a different pack procedure compared to arma1?

I ask this because when i take a an original pbo, replace with empty ones like this ("") and pack with the new cpbo program, the same way i did with arma1, the game crashes when i try to select an island.


Do i need to use binpbo to make the changes acceptable?

.kju [PvPscene]
Sep 1 2009, 10:17
You need to post details on your code change.

bravo 6
Sep 1 2009, 10:43
Its a simple change as you can see. I simply removed the texture with "", like i did in ArmA1.
If i go to a server i still see my "map_player_ca.paa" in the map :(




class CfgInGameUI
{

class IslandMap
{
//iconPlayer = "\ca\ui\data\map_player_ca.paa";
iconPlayer = "";
//iconPlayerDirection = "\ca\ui\data\map_dir_ca.paa";
iconPlayerDirection = "";
iconCheckpoint = "\ca\ui\data\map_target_ca.paa";
iconCamera = "\ca\ui\data\map_camera_ca.paa";
iconSelect = "\ca\ui\data\map_select_ca.paa";
iconSensor = "\ca\ui\data\map_trigger_ca.paa";
sizeLeader = 24;
size = 26;
sizePlayer = 26;
colorTracks[] = {0.200000, 0.130000, 0, 1};
colorRoads[] = {0.200000, 0.130000, 0, 1};
colorMainRoads[] = {0, 0, 0, 1};
colorTracksFill[] = {0, 0, 0, 0};
colorRoadsFill[] = {1, 0.880000, 0.650000, 1};
colorMainRoadsFill[] = {0.940000, 0.690000, 0.200000, 1};
cursorLineWidth = 1;
colorGrid[] = {0.050000, 0.100000, 0, 0.600000};
colorGridMap[] = {0.050000, 0.100000, 0, 0.400000};
};
};

The problem is that if use in a other name pbo, for example, bc6_ui.pbo i can't actually see a difference at all, and if i cpbo it with the same ui.pbo name, the game crashes when i try to enter the map.

.kju [PvPscene]
Sep 1 2009, 12:00
cpbo should work fine.

That said I am using mikero's suite:
http://dev-heaven.net/news/show/134

For a config change you can do easily a config replacement addon:


class CfgPatches
{
class bc6_ui
{
units[] = {};
weapons[] = {};
requiredVersion = 1.03;
requiredAddons[] = {"CAUI"};
version = "2009-09-01";
fileName = "bc6_ui.pbo";
author = "bravo 6";
mail = "bravo6@<hidden>";
};
};
class CfgInGameUI
{
class IslandMap
{
//iconPlayer = "\ca\ui\data\map_player_ca.paa";
iconPlayer = "\ca\Weapons\Data\clear_empty";
//iconPlayerDirection = "\ca\ui\data\map_dir_ca.paa";
iconPlayerDirection = "\ca\Weapons\Data\clear_empty";
};
};

bravo 6
Sep 1 2009, 15:07
Thank you very much Q!