Fleischer110

TerritoryProtection+UpgradeTerritory on the Flag

7 posts in this topic

I added this to my config, server start does not work correctly.
what am I doing wrong? Please help.

 

class Flag
    {
        targetType = 2;
        target = "Exile_Construction_Flag_Static ";
        
        class Actions
        {
            class Payprotection: ExileAbstractAction
            {
                title = "Pay Protection";
                condition = "true";
                action = "_this call ExileClient_gui_payTerritoryProtectionMoneyDialog_show";
            };
            class Upgrade: ExileAbstractAction
            {
                title = "Upgrade";
                condition = "true";
                action = "_this call ExileClient_gui_upgradeterritoryDialog_request";
            };
        };    
    };

Edited by Fleischer110

Share this post


Link to post
Share on other sites
Advertisement

I found the following error ... what does that mean?

Warning Message: File mpaltis\__cur_mp.altis\config.cpp, line 4115: /CfgInteractionMenus/: '易encountered instead of '{'
 4:17:40 Warning Message: Config : some input after EndOfFile.
 4:17:40 Class ExileAbstractAction destroyed with lock count 91
 4:17:40 Mission Exile.altis: Missing 'description.ext::Header'

Share this post


Link to post
Share on other sites

Hello @Fleischer110,

This error indicates a 'syntax error'.  You have too many OR not enough 'things'.

I suggest you run your file thru this:

This will at least point you to WHAT the problem area is!

:)

 

Edited by Z80CPU

Share this post


Link to post
Share on other sites
had a little something wrong ... it works fine now, here is the text .. who would like to have it

class Flag
    {
        targetType = 2;
        target = "Exile_Construction_Flag_Static";

        class Actions
        {            
            class PayProtection: ExileAbstractAction
            {
                title = "Pay Protection";
                condition = "true";
                action = "_this call ExileClient_gui_payTerritoryProtectionMoneyDialog_show";
            };
            
            class Upgrade: ExileAbstractAction
            {
                title = "Upgrade";
                condition = "true";
                action = "_this call ExileClient_gui_upgradeTerritoryDialog_show";
            };        
        };
    };

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.