Results 1 to 5 of 5

Thread: Issue with Config File -- Supply Container

  1. #1

    Issue with Config File -- Supply Container

    Hello ladies/Gentlemen:

    I've been trying to get into creating addons from scratch, and with the help of some excellent tutorials, I believe I am very close to being the proud creator of my first addon.. almost. My current issue is, I have created and textured a model with no errors. I used Binpbo to create the model, but when I launch Arma 2 CO, I cannot find the container in any of the empty directories. The tutorial was from OFP, so I am wondering if anything has changed in the config that would now allow me to use this in arma 2?

    Thank you.. the download link is below.

    https://dl.dropbox.com/u/23389642/crate.rar

    Config File (no download required)

    Code:
    class CfgPatches
    {
    	class Crate
    	{
    		units[] = {Crate};
    		weapons[] = {};
    		requiredVersion = 0.1;
                    requiredAddons[] = {};
    	};
    };
    class CfgVehicles
    {
    	class All {};
    	class Static: All {};
    	class Building: Static {};
    	class NonStrategic: Building {};
    	class TargetTraining: NonStrategic {};
    	class TargetGrenade: TargetTraining {};
    	class Crate: TargetGrenade
    	{
    		model="\crate\crate";
    		armor=20000;
    		scope=2;
    		displayName="LOLOLOL";
    	}
    }
    I set the random display name to hopefully make it stand out, but I still cannot find it in game! Any help would be greatly appreciated.

    RichardsD

  2. #2
    Try this

    PHP Code:
    class CfgPatches
    {
        class 
    YourTag_Crate
        
    {
            
    units[] = {"YourTag_Crate"};
            
    weapons[] = {};
            
    requiredVersion 0.1;
            
    requiredAddons[] = {"CAData"};
        };
    };
    class 
    CfgVehicles
    {
        class 
    Thing;
        class 
    YourTag_CrateThing
        
    {
            
    scope 2;
            
    displayName "LOLOLOL";
            
    model "\YourTag_crate\YourTag_crate.p3d";
            
    armor 20000;
        };
    }; 
    Adjust the file name and path, and read: http://www.ofpec.com/tags/

  3. #3
    I have done modifications to the config file as stated, but when I launch into the editor I receive the following editor

    Code:
    No entry 'bin\config.bin/CfgVehicles/Container.scope'.
    Config File:

    PHP Code:
    class CfgPatches
    {
        class 
    DAR_Crate
        
    {
            
    units[] = {"DAR_Crate"};
            
    weapons[] = {};
            
    requiredVersion 0.1;
            
    requiredAddons[] = {"CAData"};
        };
    };
    class 
    CfgVehicles
    {
        class 
    Container;
        class 
    DAR_CrateContainer
        
    {
            
    scope 2;
            
    displayName "US Army PLS Full (7CAV)";
            
    model "\DAR_crate\DAR_crate.p3d";
            
    armor 20000;
        };
    }; 
    Last edited by RichardsD; Aug 3 2012 at 21:17.

  4. #4
    Fixed it! I was mistaken about the thing part, and bloody hell it finally works. Thank you so much, I am so proud I made an addon haha!

  5. #5

Similar Threads

  1. Ok so i extracted a PBO file and now i have a Config file...Help
    By WMike20052 in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 1
    Last Post: Oct 14 2009, 20:17
  2. File check issue
    By UnYx in forum ARMA - TROUBLESHOOTING
    Replies: 1
    Last Post: Oct 12 2007, 12:05
  3. Supply Truck Supply Radius
    By jdhaines in forum ARMA - MISSION EDITING & SCRIPTING
    Replies: 13
    Last Post: May 16 2007, 02:58
  4. Supply Truck Supply Radius
    By jdhaines in forum ARMA - GENERAL
    Replies: 8
    Last Post: May 11 2007, 01:50
  5. Config file
    By usmcrp in forum OFP : O2 MODELLING
    Replies: 0
    Last Post: Mar 5 2004, 00:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •