Valixx 11 Posted August 15, 2013 Hey guys, i got some problems with my mission atm. 1. I'm using the "support provider: artillery ( virtual )". Everything works fine in the mission. But the following error shows up on the start of the mission. 2. I want to show images of the respective vehicle in the hint for my side missions. The first code block is the hint: _smhint = "...<t align='center'><img size='5' image='%1'/></t>...", _image; I've defined the image: // vehicle _veh = ["B_Mortar_01_F","B_Mortar_01_F"] call BIS_fnc_selectRandom; //image _image = getText (configFile >> "cfgVehicles" >> typeOf _veh >> "picture"); In the game i get this message: 3. I set up some mission parameters to choose from in the lobby. //description.ext class Params { class TimeOfDay { title = "Time Of Day"; values[] = {1, -8, -6, 0, 8, 13, 2}; texts[] = {"Random", "Early Morning", "Morning", "Noon", "Sundown", "Night with Full Moon", "Dark Night"}; default = -6; }; class Weather { title = "Weather"; values[] = {2, 0, 3, 0.5, 0.75, 1}; texts[] = {"Random", "Clear", "Partly Cloudy", "Cloudy", "Overcast", "Storm"}; default = 0; }; }; //init.sqf skipTime TimeOfDay; This error appears: Problem 2 & 3 are new to me so please bear with me. ( scripting.. ) Share this post Link to post Share on other sites
mindstorm 8 Posted August 15, 2013 1. Please provide the script. 2. You forgot format _smhint = format["...<t align='center'><img size='5' image='%1'/></t>...", _image]; 3. Mission params are not automatically converted to variables in your script. Use this piece of code to do so. for "_i" from (0) to ((count paramsArray) - 1) do { missionNamespace setVariable [configName ((missionConfigFile/"Params") select _i),paramsArray select _i]; }; Keep in mind that in the editor default wilt always be used. Share this post Link to post Share on other sites
Valixx 11 Posted August 15, 2013 Hey mindstorm. Thanks for your answer. 1. There is no script. It is the module from the editor. So BIS has to fix it then? 2. Here's the code for the formating etc. Sry for not providing it earlier. //globalTools.sqf "GlobalHint" addPublicVariableEventHandler {private ["_GHint"];_GHint = _this select 1;hint parseText format["%1", _GHint]; }; _smhint = "...<t align='center'><img size='5' image='%1'/></t>...", _image; GlobalHint = _smhint; publicVariable "GlobalHint"; hintsilent parseText _smhint; 3. Thank you. Share this post Link to post Share on other sites
mindstorm 8 Posted August 15, 2013 1. I'm not sure but it seems you are passing a string instead of a object/marker or something to the module? You could maybe upload your mission? 2. again you forget to use format in this line: _smhint = "...<t align='center'><img size='5' image='%1'/></t>...", _image; It needs to be: _smhint = format["...<t align='center'><img size='5' image='%1'/></t>...", _image]; Else you will just display this string "...<t align='center'><img size='5' image='%1'/></t>..." without the %1 being replaced by the _image. Share this post Link to post Share on other sites
Valixx 11 Posted August 15, 2013 (edited) 1. That's how i synced: Artillery: Module Support Provider: Artillery (Virtual) -> Module Support Requester -> Squad Leader. Helicopter Transport: Helicopter -> Module Support Provider: Helicopter Transport -> Module Support Requester -> Squad Leader The Support Requester Modules are used for both Support Provider Modules. 2. Got it working now. nvm. Edited August 15, 2013 by Valixx got 2. working. Share this post Link to post Share on other sites
kylania 568 Posted August 15, 2013 _veh is already the text class name of the vehicle. That's the same as the return of the typeOf command which gives you that based on an object. Remove typeOf from that line Share this post Link to post Share on other sites
Valixx 11 Posted August 15, 2013 Yep edited the text a few seconds before your answer. Found the mistake myself. Thanks anyway :) Share this post Link to post Share on other sites
mindstorm 8 Posted August 15, 2013 Well I must say I have no clue what could be causing the support module to crash. This is the line that gives you an error: if (({_mdl = _x; typeOf _mdl == format ["SupportProvider_%1", _supportID] && {!(_x isKindOf "Logic") && !(vehicle _x isKindOf "Man") && canMove vehicle _x && count crew vehicle _x > 0} count synchronizedObjects _mdl > 0} count _allProviderModules > 0 || ({typeOf _x == format ["SupportProvider_Virtual_%1", _supportID]} count _allProviderModules > 0 && (count (_supportID call BIS_SUPP_getEligibleClasses) > 0 || {typeOf _x == format ["SupportProvider_Virtual_%1", _supportID] && count (_x getVariable "BIS_SUPP_vehicles") > 0} count _allProviderModules > 0))) && ((player getVariable format ["BIS_SUPP_used_%1", _supportID]) < (player getVariable format ["BIS_SUPP_limit_%1_total", _supportID]))) maybe it has something to do with the fact that you are using 2 support modules? I noticed that those BIS scripts don't use private vars so they might have a conflict there. Could you test it with only 1 support module? Else you might wanna create a ticket at the bugtracker. Share this post Link to post Share on other sites
Valixx 11 Posted August 15, 2013 Everything is working right now. I needed only one Support Requester Module, not two. Thanks again! Share this post Link to post Share on other sites