-
Content Count
205 -
Joined
-
Last visited
-
Medals
Everything posted by Kingsley1997
-
Map control not positioned correctly using ctrlCreate
Kingsley1997 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I'm creating a map control using ctrlCreate but it's not positioning correctly, at least not visually. The orange box is a static background control with the same position the map control is given. So the position is correct, but the map doesn't work with it :S Source code: https://github.com/marseditor/mars/blob/master/addons/attributes/functions/fnc_ctrlMap.sqf https://github.com/marseditor/mars/blob/master/addons/common/UI/Controls/ctrlMap.hpp Reference images: https://gyazo.com/1761760aa373b896e72a0d5367be22d4 This in particular is interesting. It's technically positioned correctly, but not the image... https://gyazo.com/1e9580f95f7e2d2c06c2cc2c7a512232 -
Units becomes naked & driver jumps out on ownership change
Kingsley1997 posted a topic in ARMA 3 - ZEUS
Naked Bug When a units' ownership changes their loadout is forgotten. This is odd behavior because it happens randomly and sometimes not at all. Repro: Connect to a dedicated server - your client machine must not be the server. Enter Zeus Place some groups of units (CSAT assault squad for example) You can also Ctrl+Place them to have them join the same group Wait until the ownership of the group/units change to the server/headless client Inspect each unit and see if some of them are naked (no uniform, vest etc.) Driver Bug Similar to the bug above, however this one causes the driver of a vehicle to disembark. This also happens when the ownership of the unit changes to the server/headless client. This is also random and doesn't always happen. Repro: Connect to a dedicated server - your client machine must not be the server. Enter Zeus Place a bunch of vehicles such as IFVs or tanks Wait until the ownership of the group/units change to the server/headless client See if the driver jumps out -
Documentation for menuXXX comands
Kingsley1997 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
There's a bunch of menu commands (listed below) that have no documentation on the wiki. Are these commands discontinued or still a work in progress? Currently unable to get these to work. They would be very useful for a mod I'm making. menuAdd menuData menuSetData menuText menuPicture menuSetPicture menuAction menuSetAction menuCollapse menuExpand menuDelete menuEnable menuEnabled menuHover menuSetCheck menuSetValue menuURL menuValue -
Documentation for menuXXX comands
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Awesome :D Any update on T116695? -
Documentation for menuXXX comands
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Here's the feedback ticket for it: https://feedback.bistudio.com/T116695 -
CT_MENU scripting commands not working
Kingsley1997 replied to dna_uk's topic in ARMA 3 - TROUBLESHOOTING
Same issue described here: https://forums.bistudio.com/topic/192444-documentation-for-menuxxx-comands/ -
Documentation for menuXXX comands
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - MISSION EDITING & SCRIPTING
When hard-coding items (as shown below), they appear as expected, but not with menuAdd. class Items { items[] = {One,Two,Three}; class One { text = "One"; data = "One"; value = 0; }; class Two { text = "Two"; data = "Two"; value = 1; }; class Three { text = "Three"; data = "Three"; value = 2; }; class Default { text = "Empty"; data = "Empty"; enable = 0; }; }; -
Documentation for menuXXX comands
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - MISSION EDITING & SCRIPTING
class MARS_gui_ctrlMenu: ctrlMenu { colorBorder[] = {0,0,0,0}; colorBackground[] = {0,0,0,1}; colorText[] = {COLOR_TEXT_RGBA}; colorSelect[] = {0,0,0,1}; colorSelectBackground[] = {COLOR_ACTIVE_RGBA}; colorDisabled[] = {COLOR_TEXT_RGB,0.25}; colorPicture[] = {1,1,1,1}; colorPictureSelect[] = {0,0,0,1}; colorPictureDisabled[] = {1,1,1,0.5}; arrow = "\a3\3DEN\Data\Controls\ctrlMenu\arrow_ca.paa"; class Items { class Default { text = "Empty"; data = "Empty"; enable = 0; }; }; }; private _display = (findDisplay 46) createDisplay "mars_editor_interface"; private _control = _display ctrlCreate ["MARS_gui_ctrlMenu", 123456]; _control ctrlSetPosition [ getMousePosition select 0, getMousePosition select 1 ]; private _path = _control menuAdd [[], "Option 1"]; _control ctrlCommit 0; systemChat str (_control menuSize []); "Option 1" is never added and menuSize remains 0. -
Documentation for menuXXX comands
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hmm so does that mean they're only usable inside the Eden display? -
drawIcon3D breaks after respawn
Kingsley1997 posted a topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
When the player character respawns in a multiplayer game, drawIcon3D breaks. drawLine3D works however and when I log the array of data for drawIcon3D, it's all correct. Note that prior to respawning, there is a camera object that lets the player move around like in Zeus for example. When this camera object is created, both the onFrame drawing stuff is created and a killed event handler is created which will destroy the camera and remove the onFrame handlers. After respawn, if you open up the interface again, the camera is created as expected as well as the onFrame stuff - however only drawLine3D in that handler works, drawIcon3D does not. By "drawIcon3D not working" I mean I cannot see it (and yes the colour has the correct alpha value, and yes the position is correct). Anyone know why this is happening? -
drawIcon3D breaks after respawn
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Fixed. Ignore. -
drawIcon3D breaks after respawn
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
If I alt-tab from the game, wait 5 minutes, tab back into the game and re-open the camera/drawing handlers it works. -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Thanks for the help :D -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
_position set [0, (_position select 0) + (_controlGroupPos select 0)]; _position set [1, (_position select 1) + (_controlGroupPos select 1)]; _position set [3, (_position select 2)]; _ctrlMap ctrlSetPosition _position; -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
I got it working! https://gyazo.com/89c0ad75592f8ee81b8d652839e4e6d7 -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Are there any commands to convert a controls relative position to its group to screen coordinates? -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Omitting the control group param in ctrlCreate still produces the same problem. -
Map control not positioned correctly using ctrlCreate
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS - CONFIGS & SCRIPTING
Also some more links over here: https://github.com/marseditor/mars/issues/21 -
Custom spectator in description.ext no longer works
Kingsley1997 posted a topic in ARMA 3 - TROUBLESHOOTING
[redacted] -
Custom spectator in description.ext no longer works
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - TROUBLESHOOTING
[redacted] -
Custom spectator in description.ext no longer works
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - TROUBLESHOOTING
[redacted] -
Units becomes naked & driver jumps out on ownership change
Kingsley1997 posted a topic in ARMA 3 - TROUBLESHOOTING
Post is here, might as well just link it rather than copying it: https://forums.bistudio.com/topic/189818-units-becomes-naked-driver-jumps-out-on-ownership-change/ -
Bug reference: https://forums.bistudio.com/topic/189818-units-becomes-naked-driver-jumps-out-on-ownership-change/
-
Radar Fix - Changes Arma 3's default radar directions to alphabetical values
Kingsley1997 posted a topic in ARMA 3 - ADDONS & MODS: COMPLETE
Very simple addon, title says it all. Download below. https://github.com/jameslkingsley/radar-fix/releases -
Radar Fix - Changes Arma 3's default radar directions to alphabetical values
Kingsley1997 replied to Kingsley1997's topic in ARMA 3 - ADDONS & MODS: COMPLETE
Not sure. There's some other radar images in the configs somewhere but I didn't see anything to do with colors.