Guest Posted February 21, 2015 Hey, What is the configfile and why is it used? What is gettext and getnumber? Thanks in advance, Rata. Share this post Link to post Share on other sites
Richie 330 Posted February 21, 2015 getText getNumber It can all be found on the BI Wiki Share this post Link to post Share on other sites
Jona33 51 Posted February 21, 2015 There are a couple of types of config file, the main one is basically where all the information about everything is stored, you can look through it by going into the editor, then on the top bar there's a cog icon, basically it's a file that is split into classes, within these you have more, and then you have individual entries, to use cfgVehicles as an example, this is where information on all vehicles in the game are stored (both mod and vanilla), within cfgVehicles you have classes such as "B_MRAP_01_F" (that might be made up), clicking on this will show lots of information on the panel on the right, these usually consist of something=a value, so author="Bohemia Interactive" is an example, getText is used to return a property that is a string, so you could get the author of a vehicle, another example of an entry could be maxRPM=4000 (that is definitely made up), so you could use getNumber to return this. (There are functions to do this in a better way, that aren't dependent on the type of data in the entry). You also have the missionConfigFile, better known as the description.ext, this contains classes that are only used in the mission, and can only access certain classes, e.g. cfgIdentities, if you check the main config file there is also a cfgIdentities that contain the default BIS ones from the campaign, this is an example of a class that can be in both the missionConfigFile and main config file. Hope this helps you. Share this post Link to post Share on other sites
Guest Posted February 21, 2015 getTextgetNumber It can all be found on the BI Wiki Ofcourse, i checked that a long time ago, but i still had serious trouble understanding what it actually was, could be my english skills, or maybe my lack of competence, either way i did not understand it. And yes jona, now i fully understand it, thanks a lot! Share this post Link to post Share on other sites
Larrow 2822 Posted February 22, 2015 This thread here maybe worth a read. Share this post Link to post Share on other sites
dreadedentity 278 Posted February 22, 2015 Larrow beat me to it, I was going to post this but I forgot about it then had to work Share this post Link to post Share on other sites