Jump to content
tacticalnuggets

Rotation Menu System: A fluid external action menu system

Recommended Posts

Do you plan to release this on steam ?

 

Because then It would definitely be on my server!

Share this post


Link to post
Share on other sites
 

 

Do you plan to release this on steam ?

 

Because then It would definitely be on my server!

If you have read the workshop T&C you'll notice why a lot of modders refuse to release on workshop. And I also would recommend people away from Workshop~ 

Share this post


Link to post
Share on other sites

 

 

 

If you have read the workshop T&C you'll notice why a lot of modders refuse to release on workshop. And I also would recommend people away from Workshop~ 

 

I guessed that it was the reason why a lot of people are staying away from it, but I did not read it. I Will though.

Share this post


Link to post
Share on other sites

 

 

 

If you have read the workshop T&C you'll notice why a lot of modders refuse to release on workshop. And I also would recommend people away from Workshop~ 

 

I have been thinking about this for a while...

 

I am probably going to release my mod onto steam workshop in the next update for the following reasons:

1. My mod purely uses sqf and no models or visually artistic content.

2. My mod also comes as a script module for peoples missions, so content will probably get modified by mission coders.

3. Due to the last two facts, the suspected loop hole in steam workshop is pretty much harmless to my objective.

 

I am going to be releasing a big update soon guys, which will have these changes and fixes:

v1.2.5.4
Major Changes
- Added rotation menu to personal menu and all default menus show up in your personal menu upon entering vehicle
 
Minor Changes
- Menus now correct with zoom
- Menus now have two new parameters, _conditionHideIcon and _isInternal
- Menu with _isInternal set to true will add it to your personal menu upon entering vehicle
- Cache distance now adapts to largest "class style menu" _distance setting, where the object size is used when set to _distance = "ADAPT"
- Default menus now put vehicle seats in "Vehicle Positions" sub menu to be clean
 
Bug Fixes
- Adding lots of menus using SendRequest, on the same frame, would cause ProcessRequest to bug out (menus would not be added properly)
- If a direct object menu was attached to an object already being used by a class menu, the cache distance would still override an object supposed to be displayed
- Terrain would cause rotation menus to deform
- Small objects/vehicles that would think you were not close enough to an excessive degree

Share this post


Link to post
Share on other sites

The steam workshop was not producing the mod format I wanted upon publishing but I finally fixed it.

Share this post


Link to post
Share on other sites
13:51:55 Error in expression < = 360 - _dirLeft;
_timeLeft = _dirLeft / (-1 * _rotateSpeed);
};
};
_timeLeft =>
13:51:55   Error position: </ (-1 * _rotateSpeed);
};
};
_timeLeft =>
13:51:55   Error Zero divisor
13:51:55 Error in expression <TOR_DIR, RTMS_MENU_ROTATOR, round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
13:51:55   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
13:51:55   Error Zero divisor
13:51:56 Error in expression <t setVariable ["RTMS_ROTATE_DELTA", 360 / (_object getVariable "RTMS_SUB_COUNT")>
13:51:56   Error position: </ (_object getVariable "RTMS_SUB_COUNT")>
13:51:56   Error Zero divisor

get this error with this update

Share this post


Link to post
Share on other sites
13:51:55 Error in expression < = 360 - _dirLeft;
_timeLeft = _dirLeft / (-1 * _rotateSpeed);
};
};
_timeLeft =>
13:51:55   Error position: </ (-1 * _rotateSpeed);
};
};
_timeLeft =>
13:51:55   Error Zero divisor
13:51:55 Error in expression <TOR_DIR, RTMS_MENU_ROTATOR, round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
13:51:55   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
13:51:55   Error Zero divisor
13:51:56 Error in expression <t setVariable ["RTMS_ROTATE_DELTA", 360 / (_object getVariable "RTMS_SUB_COUNT")>
13:51:56   Error position: </ (_object getVariable "RTMS_SUB_COUNT")>
13:51:56   Error Zero divisor

get this error with this update

 

Oh crap... I am not getting this error.. Sorry about this guys, I will take a look at the rotator functions and their parameters. I suspect I accidentally used rounding when it could set things to zero if someone was making custom menus.

Share this post


Link to post
Share on other sites

Rotation Menu System Updated!


Version 1.2.5.5 (latest) HOT FIX


Bug fixes


- fixed rpt error zero divisor


Share this post


Link to post
Share on other sites

still one more this time its smaller so you in the right direction

 

16:02:14 Error in expression <R, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
16:02:14   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
16:02:14   Error Zero divisor

Share this post


Link to post
Share on other sites

Dammit, I keep screwing up more than normal...

 

Armatech, I am going to keep feeding you the latest development version to play with, considering you run into stuff way faster than me alone. :)

 

RTMS DEV VERSION DOWNLOAD: https://drive.google.com/open?id=0B61D4bNCvEl9NnJ2TlhlWHBGVk0

 

Dev v1.2.5.7
Bug fixes
- last hot fix inadvertently caused the personal menu to break when you get out of a vehicle without personal menu being held on
- rpt spam related fix

Share this post


Link to post
Share on other sites

 

still one more this time its smaller so you in the right direction

 

16:02:14 Error in expression <R, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
16:02:14   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
16:02:14   Error Zero divisor

 

I think I MIGHT have fixed this in the development version I linked you, but the error spam I was seeing didn't match yours. However, it seemed related so its worth a try.

Share this post


Link to post
Share on other sites

Well that got a little crazy this week. I have not coded/scripted for months and had the 1.2.5.4 update just sitting on my computer. Apparently, it needed more testing.. lol.. Anyway,

Update 1.2.5.8 available

v1.2.5.8

Bug Fixes
- Hotfix was incomplete, causing selection to be in the wrong place. Patch should be stable now. Apologies.
- last hot fix inadvertently caused the personal menu to break when you get out of a vehicle without personal menu being held on
- rpt spam related fix

Share this post


Link to post
Share on other sites
15:32:35 Error in expression <R, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
15:32:35   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
15:32:35   Error Zero divisor

Issue still remains but it only happens now when you get out of any vehicle now in MP

Share this post


Link to post
Share on other sites
15:32:35 Error in expression <R, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_>
15:32:35   Error position: </ (RTMS_PERSONAL_MENU getVariable "RTMS_>
15:32:35   Error Zero divisor

Issue still remains but it only happens now when you get out of any vehicle now in MP

 

Is the error critical, in that the mod  breaks?

 

I am in MP right now, with some people doing crazy crap with the vehicles, and i cant get the error to pop up. I will keep trying though and report back.

Share this post


Link to post
Share on other sites

possible cause

As i dont need the man menu i nulled it as its no use for my mission

_return =
[
	//"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Man_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Cars_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Tanks_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Air_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Helicopter_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Plane_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Static_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Ship_Class.sqf"
];

Also do not use the quick switching as i have my own so i commented out

 

_return =
[
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Primary_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Handgun_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Launcher_Personal.sqf"
];

Issue resolution
InitRotationMenuSystem.sqf Line 387

if(RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT" != 0)then
{
[RTMS_ROTATOR_DIR, RTMS_ROTATOR_DIR, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT"))] call RTMS_SetRotator;
};

Share this post


Link to post
Share on other sites

 

possible cause

As i dont need the man menu i nulled it as its no use for my mission

_return =
[
	//"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Man_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Cars_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Tanks_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Air_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Helicopter_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Plane_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Static_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Ship_Class.sqf"
];

Also do not use the quick switching as i have my own so i commented out

 

_return =
[
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Primary_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Handgun_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Launcher_Personal.sqf"
];

Issue resolution

InitRotationMenuSystem.sqf Line 387

if(RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT" != 0)then
{
[RTMS_ROTATOR_DIR, RTMS_ROTATOR_DIR, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT"))] call RTMS_SetRotator;
};

My suspicion is that would work, but I usually do not change code until I fully understand its root cause. What I do know is that commenting out Man_Class will only remove the external menu icons from near soldiers (inventory stops being disabled on them when they die, so you can pick up their guns). 

 

Hmm.. I made the same changes you made and cant get the error to pop up. I will go ahead and post up the latest dev version again with your script change idea.

Share this post


Link to post
Share on other sites

 

possible cause

As i dont need the man menu i nulled it as its no use for my mission

_return =
[
	//"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Man_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Cars_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Tanks_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Air_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Helicopter_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Plane_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Static_Class.sqf",
	"ROTATION_MENU_SYSTEM\DEFAULT_CLASSES\Ship_Class.sqf"
];

Also do not use the quick switching as i have my own so i commented out

 

_return =
[
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Primary_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Handgun_Personal.sqf",
//	"ROTATION_MENU_SYSTEM\DEFAULT_PERSONAL_QUICK\Launcher_Personal.sqf"
];

Issue resolution

InitRotationMenuSystem.sqf Line 387

if(RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT" != 0)then
{
[RTMS_ROTATOR_DIR, RTMS_ROTATOR_DIR, RTMS_MENU_ROTATOR, 1 max round (1440 / (RTMS_PERSONAL_MENU getVariable "RTMS_SUB_COUNT"))] call RTMS_SetRotator;
};

Every change you made has been implemented in the dev version, only your bug fix was beef'd up a bit.

 

Dev Version 1.2.5.9 Download: https://drive.google.com/open?id=0B61D4bNCvEl9cEgyV3FiaThualU

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×