Forum Jump :

Author Message

Feint  



Posts: 174
Rank:


Level: Member

Country: us
Location: Evanston, IL, USA
Occupation: photographer
Age: 117
In-game name: FEINT

 
#101497 Posted at 2011-04-06 04:23        
     
Does anyone have a link to a tutorial on making config.cpp files? I watched Gnat's awesome Oxygen tutorial and made a small flat square p3d that I hope to config into some water. I'm using stock BIS water as a template, but it's binarized so I'm not sure if the values I'm looking at are realistic or autogenerated by Oxygen2 because the real values are hidden or missing. I can't currently see the addon I made in the editor. But maybe things like water objects are hidden by default and this one is being hidden too? That's just a guess. I'm currently using MAP Editor Upgrade to see the vanilla BIS pond objects in the editor but maybe because there's no entry for the water I made, it's not showing in the editor. So I tried createVehicle but the RPT file says
Warning Message: No entry 'bin\config.bin/CfgVehicles/blah blah blah (lists every possibility of speech, weaponSlots, NightLightsOff, etc.

Here's the config:
class CfgPatches {
	class JFH_Water {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"CAData","CAMisc","CAMisc2","CAMisc3","CABuildings","CABuildings2","CAStructures","CASigns2","CARoads2","CARocks2","CAA10","CAAir","CAAir2","CAAir3","CAWheeled","CAWheeled2","CAWater2","CATracked","CACharacters2"};
	};
};


class CfgFactionClasses {
	class JFHWATER
	{
		displayName = "Invisible Water Faction";
	};
};


class CfgVehicleClasses
{
	class JFHWATER_WATER_INVISIBLE
	{
		displayName = "Invisible Water Vehicles";
	};
};

class CfgVehicles
{
	class Default;				// External class reference
	class Freshwater;			// External class reference
	class invisible_pond_JFH: Freshwater	{
		scope = public;
		displayName = "Invisible Water - Feint";
		vehicleClass = "JFHWATER_WATER_INVISIBLE";
		picture = "\ca\weapons_e\data\icons\backpack_ACR_CA.paa";
		icon = "\ca\weapons_e\data\icons\mapIcon_backpack_CA.paa";
		mapsize = 2;
		model = "invisible_pond.p3d";
		rough=0;
		dust=0;
		soundEnviron="water";
		friction=0.9;
		restitution=0;
		isWater=1;
		character="Empty";
		impact="default_Mat";
	};
		
};

This post was edited by Feint (2011-04-06 06:31, ago)