Jump to content

MBMC

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Everything posted by MBMC

  1. Hello, I have a problem with my config.cpp. I want to create a mod in which I add functions to the function library. I have already looked at and tried many posts and github mods, but all variants end up with the same problem. The functions are not found after Arma start. (Warning Message: Script beo_mod_serv_db\fnc\save\fn_dbSaveAct.sqf not found) THE PROBLEM IS SOLVED !!! LOOK AT THE END OF THE POST I will now enter a variant as an example that seems to me the most sensible of the approx. 40 variants that I have tried. config.cpp: class CfgPatches { class beo_mod_serv_db { author = "MBMC"; requiredAddons[] = {}; requiredVersion = 0.1; units[] = {}; weapons[] = {}; }; }; class CfgFunctions { class mbmc { class beo_mod_serv_db_save { file = "addons\beo_mod_serv_db\fnc\save"; // I forgot the addons\ folder class dbSaveAct{}; class dbSaveAm{}; class dbSaveAmPylon{}; class dbSaveBui{}; class dbSaveCargo{}; class dbSaveFiller{}; class dbSaveFobObj{}; class dbSaveGarage{}; class dbSaveGearVeh{}; class dbSaveLoc{}; class dbSaveMark{}; class dbSaveMarkUser{}; class dbSaveMhq{}; class dbSaveMineF{}; class dbSaveSani{}; class dbSaveSup{}; class dbSaveVar{}; class dbSaveVeh{}; }; class beo_mod_serv_db_save_ini { file = "addons\beo_mod_serv_db\fnc\save\ini"; // I forgot the addons\ folder class dbIniAryNum{}; class dbIniArySize{}; class dbIniD{}; class dbIniDelete{}; class dbIniM{}; class dbIniS{}; class dbIniSave{}; class dbIniSin{}; }; class beo_mod_serv_db_load { file = "addons\beo_mod_serv_db\fnc\load"; // I forgot the addons\ folder class dbLoadAct{}; class dbLoadAm{}; class dbLoadAmPylon{}; class dbLoadStatic{}; class dbLoadBui{}; class dbLoadCargo{}; class dbLoadComp{}; class dbLoadFiller{}; class dbLoadFlag{}; class dbLoadFob{}; class dbLoadGarage{}; class dbLoadLoc{}; class dbLoadMain{}; class dbLoadMark{}; class dbLoadMarkFin{}; class dbLoadMhq{}; class dbLoadMis{}; class dbLoadSani{}; class dbLoadSup{}; class dbLoadVeh{}; }; class beo_mod_serv_db_load_ini { file = "addons\beo_mod_serv_db\fnc\load\ini"; // I forgot the addons\ folder class dbIniL{}; class dbIniLd{}; class dbIniLm{}; class dbIniLmd{}; class dbIniLoadUser{}; class dbIniLs{}; }; }; }; Mod Structure: @beo_server >> addons >> beo_serv_db >> inside folder "beo_serv_db": config.cpp folder name: fnc inside folder "fnc": folder name: save >> lot of functions: fn_dbSaveAct,fn_dbSaveAm,fn_dbSaveAmPylon..... etc. and another folder: ini >> also lot of functions: fn_dbIniAryNum,fn_dbIniArySize.....etc folder name: load >> lot of functions: fn_dbLoadAct,fn_dbLoadAm,fn_dbLoadAmPylon.....etc. and another folder: ini >> also lot of functions: fn_dbIniL,fn_dbIniLd......etc I test it also with only one function in only one fnc folder but I cant get it to work. https://community.bistudio.com/wiki/Arma_3:_Functions_Library#:~:text=Arma 3 Functions Library is,Functions manager to be present. In this wiki post I test both variants File Path and Folder Path but same results. I create the mod with Arma 3 Tools and Addon Builder. I hope someone can help me. Thanks in advance. MBMC SOLUTION: After another 2 days of testing, I found the solution. So if anyone has the same problem here is the solution: config.cpp: I forgot the "addons" folder. So the file path must be: file = "addons\beo_mod_serv_db\fnc\save"; file = "addons\yourModPBOname\FolderOfYourFunctions\SubFolderIfYouNeed"; So this post can be closed.
  2. Hallo Larrow, thanks for the great stuff. I have one problem with spawning a composition. I greate a composition with the new Praetorian 1C AAA (Mk-49 Spartan SAM or Mk-21 Centurion SAM). I create them empty and instead of a BLUFOR unit, I set in a OPFOR unit. Now the problem is when I want to creat it in my Mission, the OPFOR guy isn't inside the Praetorian 1C AAA (Mk-49 Spartan SAM or Mk-21 Centurion SAM). Everthing else work awsome. Mayby you know the problem what I'm doing wrong?
  3. thx for the answers but I did a lot of testing with BIS_fnc_nearestRoad it seem to be, that it doesn't work. Now I have create a other solution but I got a Problem: My example code The Summary is that i need a way to get the road object back without the quotation marks or a better way for my problem. Test was now on Lythium and Taunus. Taunus use a lot of road typs from CUP for example pflaster_hex_9m.p3d.These road typs I must restrict. Lythium use invisibleroadway_square_f.p3d its part of Arma 3 not an Addon road. These road typs I must restrict.
  4. Hallo, I need help with the function BIS_fnc_nearestRoad. I use it for several scripts for example spawn vehiculars or roadblocks. I know the function of the first 2 parameters: Parameter(s): _this select 0: ARRAY - The center position _this select 1: NUMBER - The distance from center position _posStreet = [_position, _radiusSearchForRoads, []] call BIS_fnc_nearestRoad; but when I want to work with the third parameter blacklisted road object it doesn´t work. _this select 2: ARRAY - List of blacklisted road objects I know that the Function BIS_fnc_nearestRoad with parameter _list work as an Array. like _array = _array - _list So my main problem is, what kind of format is allowed in the array _list (3 parameter of function BIS_fnc_nearestRoad)? I need a restriction for a lot of roads on the map Taunus. On this map are a lot of Paving paths, Concrete slabs and other road objects (mostley Objects from the Addon CUP terrain), they are sometimes under houses. So I want to restrict these objects. What I done: 1. nearestTerrainObjects ( "MAIN ROAD", "TRACK", "ROAD", "TRAIL" ) for the array _list, its a "STRING", 1.1_posStreet = [_position, _radiusStreet, ["ROAD"]] call BIS_fnc_nearestRoad; <----- no result 2. className (CUP_A1_Road_kos6konec,CUP_A1_Road_kr_new_kos_sil_t) again for the array _list, 2.1 example as "STRING", _posStreet = [_position, _radiusStreet, ["CUP_A1_Road_kos6konec"]] call BIS_fnc_nearestRoad; <----- no result 2.2 example not as "STRING", _posStreet = [_position, _radiusStreet, [CUP_A1_Road_kos6konec]] call BIS_fnc_nearestRoad; <----- no result 3.Then I watched in the array _posStreet what for comments are in there, _posStreet = [2730105: ,1780867: pflaster_hex_9m.p3d,1780868: kos6konec.p3d,1736475: ,1780869: ,1780105: , ], 2730105: this is the ID number but with : , every CUP road object has the ID number and the P3D Name 1780867: pflaster_hex_9m.p3d the not CUP road objects has only the ID number with that fuc... double point (tested on Altis and Stratis) -----> Its can be a STRING ----> I attempt again with 3.1 _posStreet = [_position, _radiusStreet, [1780867: pflaster_hex_9m.p3d]] call BIS_fnc_nearestRoad; <----bad format : double point 3.2 _posStreet = [_position, _radiusStreet, [pflaster_hex_9m.p3d]] call BIS_fnc_nearestRoad; <---- no function 3.3 _posStreet = [_position, _radiusStreet, [1780867]] call BIS_fnc_nearestRoad; <---- no function I work lot of hours on it, but I have no idea now, I hope someone can help me pls. Maybe there is a other way? p.s. I want to spawn compositions and vehiculars on the normal roads not on the CUP road objects on Taunus
  5. Hallo, I need help with the function BIS_fnc_nearestRoad. I use it for several scripts for example spawn vehiculars or roadblocks. I know the function of the first 2 parameters: Parameter(s): _this select 0: ARRAY - The center position _this select 1: NUMBER - The distance from center position _posStreet = [_position, _radiusSearchForRoads, []] call BIS_fnc_nearestRoad; but when I want to work with the third parameter blacklisted road object it doesn´t work. _this select 2: ARRAY - List of blacklisted road objects I know that the Function BIS_fnc_nearestRoad with parameter _list work as an Array. like _array = _array - _list So my main problem is, what kind of format is allowed in the array _list (3 parameter of function BIS_fnc_nearestRoad)? I need a restriction for a lot of roads on the map Taunus. On this map are a lot of Paving paths, Concrete slabs and other road objects (mostley Objects from the Addon CUP terrain), they are sometimes under houses. So I want to restrict these objects. What I done: 1. nearestTerrainObjects ( "MAIN ROAD", "TRACK", "ROAD", "TRAIL" ) for the array _list, its a "STRING", 1.1_posStreet = [_position, _radiusStreet, ["ROAD"]] call BIS_fnc_nearestRoad; <----- no result 2. className (CUP_A1_Road_kos6konec,CUP_A1_Road_kr_new_kos_sil_t) again for the array _list, 2.1 example as "STRING", _posStreet = [_position, _radiusStreet, ["CUP_A1_Road_kos6konec"]] call BIS_fnc_nearestRoad; <----- no result 2.2 example not as "STRING", _posStreet = [_position, _radiusStreet, [CUP_A1_Road_kos6konec]] call BIS_fnc_nearestRoad; <----- no result 3.Then I watched in the array _posStreet what for comments are in there, _posStreet = [2730105: ,1780867: pflaster_hex_9m.p3d,1780868: kos6konec.p3d,1736475: ,1780869: ,1780105: , ], 2730105: this is the ID number but with : , every CUP road object has the ID number and the P3D Name 1780867: pflaster_hex_9m.p3d the not CUP road objects has only the ID number with that fuc... double point (tested on Altis and Stratis) -----> Its can be a STRING ----> I attempt again with 3.1 _posStreet = [_position, _radiusStreet, [1780867: pflaster_hex_9m.p3d]] call BIS_fnc_nearestRoad; <----bad format : double point 3.2 _posStreet = [_position, _radiusStreet, [pflaster_hex_9m.p3d]] call BIS_fnc_nearestRoad; <---- no function 3.3 _posStreet = [_position, _radiusStreet, [1780867]] call BIS_fnc_nearestRoad; <---- no function I work lot of hours on it, but I have no idea now, I hope someone can help me pls. Maybe there is a other way? p.s. I want to spawn compositions and vehiculars on the normal roads not on the CUP road objects on Taunus
×