Page MenuHomeFeedback Tracker

Still Missing some define variable in arma 3.... Command ctrlCreate
Closed, ResolvedPublic

Description

Hello,

There is problem with the command ctrlCreate
When you are using this command with class RscButtonImages, there is some warning on my screen about some variable are undefine.
Could you fix that please?

Details

Severity
Minor
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Just create a new mission with an initPlayerLocal.sqf and a playable unit and create a control like this

private["_ctrl"];
waitUntil {!isNull player && player == player}; //Wait till the player is ready
waitUntil {!(isNull (findDisplay 46))};
diag_log "HUD Player Found";
disableSerialization;
_ctrl = (findDisplay 46) ctrlCreate["RscButtonImages", 10];

And you see all warning message. There is my rpt:

4:28:51 "HUD Player Found"
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.type'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.style'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.x'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.y'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.w'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.h'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.colorBackground'.
4:28:51 Warning Message: Size: '/' not an array
4:28:51 Warning Message: Size: '/' not an array
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.colorText'.
4:28:51 Warning Message: Size: '/' not an array
4:28:51 Warning Message: Size: '/' not an array
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.font'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.sizeEx'.
4:28:51 Warning Message: '/' is not a value
4:28:51 Warning Message: No entry 'bin\config.bin/RscButtonImages.text'.
4:28:51 Warning Message: '/' is not a value

Event Timeline

Hoax created this task.Aug 25 2016, 4:35 AM
Hoax changed Category from Visual-GUI to Scripting.Aug 25 2016, 8:54 PM
Hoax updated the task description. (Show Details)Aug 27 2016, 5:06 AM
Hoax renamed this task from Missing some define variable in arma 3. Command ctrlCreate to Still Missing some define variable in arma 3.... Command ctrlCreate.Aug 27 2016, 7:37 AM
Hoax added a comment.Aug 27 2016, 5:38 PM

Well, no one to fix that?

upping three times on a Sunday might not be the best thing to make things go forward :)
things here are not immediate, you may want to wait some time before upping.

Hoax added a comment.Aug 28 2016, 7:32 PM

I would like an answer to tell that this bug will be fix, and may be a time to wait to solve it. It just a minor bug and this is really fast to solve it..

Hello,

RscButtonImages is not a control so you cannot create it using ctrlCreate

razazel closed this task as Resolved.Aug 29 2016, 10:34 AM
razazel changed Resolution from Open to Not A Bug.
Hoax added a comment.EditedAug 30 2016, 4:21 AM

Command: https://community.bistudio.com/wiki/ctrlCreate

Ancillary sub-page of ctrlCreate, listing control classnames available in config:https://community.bistudio.com/wiki/ctrlCreate/classnames

RscButtonImages is in list

I have discussed this with the devs and it seems that it is incorrectly sorted into the RscXxxxxxxxxx, the structure of it however gives away it is not a control.

Hoax added a comment.EditedAug 30 2016, 12:35 PM

So there is no way to create control with image with ctrlCreate, right? If no, Do you know if dev ll add new control to do this?

That unfortunately is beyond my knowledge, I would recommend visiting a BI Forum or other community page, people there have vast knowledge and are always willing to help.

Hoax added a comment.Aug 30 2016, 1:34 PM

Thanks for all answer!!