InspectorGadget

Stuck on server boot

7 posts in this topic

Fellow Exile players,

I'm running into a problem when starting my server (i am new to this but made it this far without help)

I've added the CUP mods to my server : is working fine

Now i needed to add them to the traders, done that but now i get an error when starting my server:

ErrorMessage: File mpmissions\__cur_mp.Altis\config.cpp, line 7821: Config: '"' encountered instead of ','

i checked the config.cpp but can't find the error.

Here is the config : http://pastebin.com/5jtT5hPq

Can anyone help me with this ?

Edited by InspectorGadget

Share this post


Link to post
Share on other sites

inside your config.cpp on line 7815 you have a comma, remove from the end 

so here is the lines that are fixed starting for line 7781 to 7944

 

Spoiler

class CfgTraders
{
    /**
     * Weapons, scopes, silencers, ammo
     */
    class Exile_Trader_Armory
    {
        name = "ARMORY";
        showWeaponFilter = 1;
        categories[] = 
        {
            "PointerAttachments",
            "BipodAttachments",
            "MuzzleAttachments",
            "OpticAttachments",
            "Ammunition",
            "Pistols",
            "Shotguns",
            "SubMachineGuns",
            "LightMachineGuns",
            "AssaultRifles",
            "SniperRifles",
            "CUPAssaultRifles",
            "CUPHandGuns",
            "CUPLightMachineGuns",
            "CUPSub MachineGuns",
            "CUPSniperRifles",
            "CUPOpticAttachments",
            "CUPMuzzleAttachments",
            "CUPAssaultRifleAmmo",
            "CUPHandgunAmmo",
            "CUPLightMachineGunAmmo",
            "CUPShotgunAmmo",
            "CUPSub MachineGunAmmo",
            "CUPSniperRifleAmmo"
        };
    };

    /**
     * Satchels, nades, UAVs, static MGs
     */
    class Exile_Trader_SpecialOperations
    {
        name = "SPECIAL OPERATIONS";
        showWeaponFilter = 1; // for noob tubes
        categories[] = 
        {
            "Flares",
            "Smokes",
            "UAVs",
            "StaticMGs",
            "Explosives",
            "Navigation"
            "CUP Grenade Launchers",
            "CUP Launchers",
            "CUP Launcher Ammo",            
            "CUPSmokeAmmo"
        };
    };

    /**
     * Uniforms, vests, helmets, backpacks
     */
    class Exile_Trader_Equipment
    {    
        name = "EQUIPMENT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Headgear",
            "Glasses",
            "Uniforms",
            "Vests",
            "Backpacks",
            "FirstAid"
            "CUPHeadgear",
            "CUPRigs",
            "CUPUniforms"
        };
    };

    /**
     * Cans, cans, cans
     */
    class Exile_Trader_Food
    {
        name = "FAST FOOD";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Food",
            "Drinks"
        };
    };

    /**
     * Light bulbs, metal, etc.
     */
    class Exile_Trader_Hardware
    {
        name = "HARDWARE";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Hardware",
            "Tools"
        };
    };

    /**
     * Sells cars and general vehicles
     */
    class Exile_Trader_Vehicle
    {
        name = "VEHICLE";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Cars",
            "Trucks",
            "CUPTracked",
            "CUPWheeled"
        };
    };

    /**
     * Sells choppers and planes
     */
    class Exile_Trader_Aircraft
    {
        name = "AIRCRAFT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Choppers", 
            "Planes",
            "CUPHelis",
            "CUPPlanes"
        };
    };

    /**
     * Sells ships and boats
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Boats",
            "CUPBoats"
        };
    };

    class Exile_Trader_Diving
    {
        name = "DIVERS";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Diving"
        };
    };

so here is a example from yours

 

    /**
     * Sells ships and boats
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Boats",
            "CUPBoats",
        };
    };

what it should be without the last comma, at the end of  "CUPBoats"

 

    /**
     * Sells ships and boats
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Boats",
            "CUPBoats"
        };
    };

 

gl

1 person likes this

Share this post


Link to post
Share on other sites
Advertisement

Still getting the same error while i pasted your code in in my config.. :(

now it looks like this 

Spoiler

class CfgTraders
{
    /**
     * Weapons, scopes, silencers, ammo
     */
    class Exile_Trader_Armory
    {
        name = "ARMORY";
        showWeaponFilter = 1;
        categories[] = 
        {
            "PointerAttachments",
            "BipodAttachments",
            "MuzzleAttachments",
            "OpticAttachments",
            "Ammunition",
            "Pistols",
            "Shotguns",
            "SubMachineGuns",
            "LightMachineGuns",
            "AssaultRifles",
            "SniperRifles",
            "CUPAssaultRifles",
            "CUPHandGuns",
            "CUPLightMachineGuns",
            "CUPSub MachineGuns",
            "CUPSniperRifles",
            "CUPOpticAttachments",
            "CUPMuzzleAttachments",
            "CUPAssaultRifleAmmo",
            "CUPHandgunAmmo",
            "CUPLightMachineGunAmmo",
            "CUPShotgunAmmo",
            "CUPSub MachineGunAmmo",
            "CUPSniperRifleAmmo"
        };
    };

    /**
     * Satchels, nades, UAVs, static MGs
     */
    class Exile_Trader_SpecialOperations
    {
        name = "SPECIAL OPERATIONS";
        showWeaponFilter = 1; // for noob tubes
        categories[] = 
        {
            "Flares",
            "Smokes",
            "UAVs",
            "StaticMGs",
            "Explosives",
            "Navigation"
            "CUP Grenade Launchers",
            "CUP Launchers",
            "CUP Launcher Ammo",            
            "CUPSmokeAmmo"
        };
    };

    /**
     * Uniforms, vests, helmets, backpacks
     */
    class Exile_Trader_Equipment
    {    
        name = "EQUIPMENT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Headgear",
            "Glasses",
            "Uniforms",
            "Vests",
            "Backpacks",
            "FirstAid"
            "CUPHeadgear",
            "CUPRigs",
            "CUPUniforms"
        };
    };

    /**
     * Cans, cans, cans
     */
    class Exile_Trader_Food
    {
        name = "FAST FOOD";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Food",
            "Drinks"
        };
    };

    /**
     * Light bulbs, metal, etc.
     */
    class Exile_Trader_Hardware
    {
        name = "HARDWARE";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Hardware",
            "Tools"
        };
    };

    /**
     * Sells cars and general vehicles
     */
    class Exile_Trader_Vehicle
    {
        name = "VEHICLE";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Cars",
            "Trucks",
            "CUPTracked",
            "CUPWheeled"
        };
    };

    /**
     * Sells choppers and planes
     */
    class Exile_Trader_Aircraft
    {
        name = "AIRCRAFT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Choppers", 
            "Planes",
            "CUPHelis",
            "CUPPlanes"
        };
    };

    /**
     * Sells ships and boats
     */ 
    class Exile_Trader_Boat
    {
        name = "BOAT";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Boats",
            "CUPBoats"
        };
    };

    class Exile_Trader_Diving
    {
        name = "DIVERS";
        showWeaponFilter = 0;
        categories[] = 
        {
            "Diving"
        };
    };

 

Edited by InspectorGadget

Share this post


Link to post
Share on other sites

you may need to go though the whole config.cpp and see where there is a coma , at the ends of names that shouldnt be 

Share this post


Link to post
Share on other sites
6 hours ago, hogansheroes said:

you may need to go though the whole config.cpp and see where there is a coma , at the ends of names that shouldnt be 

Its working now, but i dont see any item names in the trader menu

Share this post


Link to post
Share on other sites
13 hours ago, InspectorGadget said:

Its working now, but i dont see any item names in the trader menu

Generally if item names are missing, you've either misspelled the class names or you've not loaded the mod containing those classes on the client.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.