Jump to content
G1llam

Mission File Error

Recommended Posts

could you copy and paste what you mean and how it should be please?

 

Share this post


Link to post
Share on other sites

so you mean this this:

class_CfgSpawnPoints {

 

    class_Malden {

        class_Civilian {

            class_La_Trinite {

                displayName = "La Trinite";

                spawnMarker = "civ_spawn_1";

                icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";

                conditions = "";

            };

 

instead of this:

class CfgSpawnPoints {

 

    class Malden {

        class Civilian {

            class La Trinite {

                displayName = "La Trinite";

                spawnMarker = "civ_spawn_1";

                icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";

                conditions = "";

            };

Share this post


Link to post
Share on other sites

or is it just for the part where you want to spawn and not the class_civ and class_Malden, sorry for the spawn.

Share this post


Link to post
Share on other sites

Nope!
 

class CfgSpawnPoints {

    class Malden {
        class Civilian {
            class La_Trinite {                         //<---LIKE THIS
                displayName = "La Trinite";
                spawnMarker = "civ_spawn_1";
                icon = "\a3\ui_f\data\map\MapControl\watertower_ca.paa";
                conditions = "";
            };

 

Share this post


Link to post
Share on other sites

thank you, what about the error where it says its encountered a "T" instead of a "{"

 

Share this post


Link to post
Share on other sites

In other words, "class" tells the engine that a class is being defined.

 

class this_is_my_class  //correct

class this is my class  //incorrect

 

Share this post


Link to post
Share on other sites
1 minute ago, G1llam said:

thank you, what about the error where it says its encountered a "T" instead of a "{"

 

That is due to the space in your class (La Trinite). 

Share this post


Link to post
Share on other sites

so them errors in the gyazo are now fixed and work fine?

 

Share this post


Link to post
Share on other sites

i know some of the basics its just i didnt realise to look there but ill take a look at the link, thanks for the help

 

Share this post


Link to post
Share on other sites

Relevant to this topic is the Variables entry, the main point being that variables (such as the class names in your config) must have no spaces, as @tRiKy_ch described.

 

ThisIsMyExampleOfAVeryLongGlobalVariable  //  correct

This is my example of a very long global variable  //  incorrect

 

Share this post


Link to post
Share on other sites

thanks for letting me know and give example, im sure ill be back for more help real soon

 

Share this post


Link to post
Share on other sites

i have managed to fix this problem, thanks

Share this post


Link to post
Share on other sites

Im now getting these errors and need help fixing them asap.

 

Warning Message: File mpmissions\Malden_Life.Malden\description.ext, line 379: /WeaponShops/: Missing '}'

 

Mission Malden_Life.Malden: Missing 'description.ext::Header::minPlayer'

 

Ive tried setting the minPlayer to 0 and 1 and still pops up and the line 379 error looks ok to me

 

Description.ext:

https://pastebin.com/7xuYFsHa

 

rpt logs if needed:

https://pastebin.com/KwveXj9x

Share this post


Link to post
Share on other sites
3 hours ago, tRiKy_ch said:

this seem very similar to your previous issue, how do you solved that?

i went and looked in the description.ext and found out what was causing it but this time i can't find where the error is

 

Share this post


Link to post
Share on other sites

took a quick look and i see nothing, maybe the error is in one of the included files?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×