Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
doubleblind

Workshop Export Problem

Recommended Posts

Hey all,

 

I'm running into a problem exporting a mission from the Eden Editor to the Steam Workshop - everything works in the editor, but when running the mission downloaded from the Steam Workshop one of my dialogs (purchasing a vehicle) isn't working and I have absolutely no idea why.

 

The idea is that the player selects an entry from a ComboBox and an event handler in the control executes a function.  The relevant control class:

class Vehicles_Ctrl: RscCombo
{
	idc = 11;
	x = 0.432989 * safezoneW + safezoneX;
	y = 0.400964 * safezoneH + safezoneY;
	w = 0.134022 * safezoneW;
	h = 0.0220081 * safezoneH;
	sizeEx = 0.99 * GUI_GRID_H;
	
	onLBSelChanged = "_this call CH_fnc_SelectVehicle";
};

and the CH_fnc_SelectVehicle function:

_PV = findDisplay 2;

_vehicleCtrl = _PV displayCtrl 11;
_vehicle = _vehicleCtrl lbData (lbCurSel _vehicleCtrl);

(_PV displayCtrl 21) ctrlSetText (format ["Capacity: %1 Men",getNumber (missionConfigFile >> "Vehicles" >> _vehicle >> "capacity")]);
(_PV displayCtrl 22) ctrlSetText (format ["Top Speed: %1 km/h",getNumber (missionConfigFile >> "Vehicles" >> _vehicle >> "topSpeed")]);
(_PV displayCtrl 23) ctrlSetText (format ["Armament: %1",getText (missionConfigFile >> "Vehicles" >> _vehicle >> "armament")]);

(_PV displayCtrl 32) ctrlSetText (format ["Cost: $%1",getNumber (missionConfigFile >> "Vehicles" >> _vehicle >> "price")]);

uiNamespace setVariable ["selectedVehicle",_vehicle];

Is there something wrong with the code, or is this just a Steam Workshop oddity?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×