Jump to content
sarogahtyp

[solved] error in config.cpp: "'{' encountered instead of '='"

Recommended Posts

Hey guys,

Im trying to create my very first little addon. It just should execute a function on mission start. If I load the mod with arma then I get the error:

 

.rpt

Spoiler

=====================================================================
== E:\Program Files (x86)\Steam\steamapps\common\Arma 3\Arma3_x64.exe
== "E:\Program Files (x86)\Steam\steamapps\common\Arma 3\Arma3_x64.exe" -nosplash -world=Altis -skipIntro -enableHT -noPause -showScriptErrors "-mod=E:\Program Files (x86)\Steam\steamapps\common\Arma 3\@tweakfps" -beservice

Original output filename: Arma3Retail_DX11_x64
Exe timestamp: 2021/06/07 13:57:57
Current time:  2021/06/21 08:52:11

Type: Public
Build: Stable
Version: 2.04.147719

Allocator: E:\Program Files (x86)\Steam\steamapps\common\Arma 3\Dll\tbb4malloc_bi_x64.dll [2017.0.0.0] [2017.0.0.0]
PhysMem: 32 GiB, VirtMem : 131072 GiB, AvailPhys : 24 GiB, AvailVirt : 131068 GiB, AvailPage : 52 GiB, PageSize : 4.0 KiB/2.0 MiB/HasLockMemory
=====================================================================

 8:52:11 Detected number of DLCs: 19
 8:52:11 ---------------------------------------------------------- Game ----------------------------------------------------------
 8:52:11                                                                name      appId   owned  installed  available   isDlc
 8:52:11                                                              Arma 3     107410     yes        yes        yes      no
 8:52:11                                                             Unknown         -1      no         no         no     yes
 8:52:11 ---------------------------------------------------------- Dlcs ----------------------------------------------------------
 8:52:11  index                                                         name      appId   owned  installed  available   isDlc
 8:52:11      0                                                  Arma 3 Maps     249861     yes        yes         no     yes
 8:52:11      1                                        Arma 3 Tactical Guide     249862     yes        yes         no     yes
 8:52:11      2                                                  Arma 3 Zeus     275700     yes        yes        yes     yes
 8:52:11      3                                                 Arma 3 Karts     288520     yes        yes        yes     yes
 8:52:11      4                                           Arma 3 Helicopters     304380     yes        yes        yes     yes
 8:52:11      5                                          Arma 3 DLC Bundle 1     304400     yes        yes         no     yes
 8:52:11      6                                              Arma 3 Marksmen     332350     yes        yes        yes     yes
 8:52:11      7                                                  Arma 3 Apex     395180     yes        yes        yes     yes
 8:52:11      8                                           Arma 3 Laws of War     571710     yes        yes        yes     yes
 8:52:11      9                                                  Arma 3 Jets     601670     yes        yes        yes     yes
 8:52:11     10                                          Arma 3 DLC Bundle 2     612480     yes        yes         no     yes
 8:52:11     11                                                Arma 3 Malden     639600     yes        yes        yes     yes
 8:52:11     12                                  Arma 3 Tac-Ops Mission Pack     744950     yes        yes        yes     yes
 8:52:11     13                                                 Arma 3 Tanks     798390     yes        yes        yes     yes
 8:52:11     14                                               Arma 3 Contact    1021790     yes        yes        yes     yes
 8:52:11     15   Arma 3 Creator DLC: Global Mobilization - Cold War Germany    1042220     yes        yes        yes     yes
 8:52:11     16                      Arma 3 Creator DLC: S.O.G. Prairie Fire    1227700      no         no        yes     yes
 8:52:11     17                        Arma 3 Creator DLC: CSLA Iron Curtain    1294440      no         no        yes     yes
 8:52:11     18                                            Arma 3 Art of War    1325500     yes        yes        yes     yes
 8:52:11 --------------------------------------------------------------------------------------------------------------------------
 8:52:13 Initializing stats manager.00
 8:52:13 sessionID: 883ecd0a90cae0bde6436b74de6c09ca8718003a
 8:52:24 Error context };
 8:52:24 ErrorMessage: File saroTweakMapFPS\config.cpp, line 18: '/CfgFunctions/saro/map_tools.delete_map_objects': '{' encountered instead of '='
 8:52:24 Application terminated intentionally
ErrorMessage: File saroTweakMapFPS\config.cpp, line 18: '/CfgFunctions/saro/map_tools.delete_map_objects': '{' encountered instead of '='

 

 

config.cpp

Quote

class CfgPatches
{
	class saro_tweak_fps
	{
		author = "Sarogahtyp";
		requiredVersion = 0.1;
	};

};

class CfgFunctions
{
	class saro
	{
		class map_tools
		{
			preStart = 1;
			file="functions";
			delete_map_objects {};
		};
	};
};

 

 

Share this post


Link to post
Share on other sites
49 minutes ago, sarogahtyp said:

delete_map_objects {};

 

probably this is the problem. did you intent to make it a class?

  • Like 1

Share this post


Link to post
Share on other sites
35 minutes ago, gc8 said:

 

probably this is the problem. did you intent to make it a class?

sometimes one needs a second pair of eyes. thx a lot. this should be the issue.

  • Like 1

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

×