Cool VL Viewer forum

View unanswered posts | View active topics It is currently 2025-07-30 00:15:12



Reply to topic  [ 4 posts ] 
Complex user-controlled vehicle script not working 
Author Message

Joined: 2024-06-22 02:28:51
Posts: 7
Reply with quote
Hi Henri! You made me switched to Cool VL Viewer on my desktop as well not just on my phone lol.. Just a little strange behaviour I encounter with this superfast viewer.

My surfboard has a little complex chain of 'combo' and 'movements' per each of the movement, and I found that Cool VL viewer cannot 'execute' more complex moves as normaly can be done in other viewer (I tested in Singularity just for comparison with V1 viewer).

For example:
*) SHIFT + LEFT + UP wont work, but just LEFT + UP will work
*) UP + LEFT + PAGEDOWN wont work, but just UP + LEFT or PAGEDOWN + LEFT work
(seems more 3 keypress at the same time wont work on Cool VL Viewer)

my surfboard got combos up until 5 keys pressed at the same time as well as rapid press release to mimic surf pumping, I'm willing to tweak so this might work with Cool VL Viewer, is there any documentation or is it just a viewer limitation?

Thank you so much!


2024-06-22 03:34:22
Profile

Joined: 2009-03-17 18:42:51
Posts: 6024
Reply with quote
MagnusAtheria wrote:
I tested in Singularity just for comparison with V1 viewer
Bad choice for an UI comparison...
Singularity (and Genesis, which is a fork of it) is not a "genuine" v1 UI viewer any more... The whole llui library (i.e. the code used to implement the UI), as well as the keyboard management code have been replaced with a backport of LL's v2+ viewers (i.e. while these viewers are using a v1-alike-skin, they actually are v2+ UI viewers)...

The Cool VL Viewer, on the contrary, is still using my fork of the v1 viewer code for the UI and the keyboard management. And I do not intend to change this...

MagnusAtheria wrote:
For example:
*) SHIFT + LEFT + UP wont work, but just LEFT + UP will work
*) UP + LEFT + PAGEDOWN wont work, but just UP + LEFT or PAGEDOWN + LEFT work
(seems more 3 keypress at the same time wont work on Cool VL Viewer)

my surfboard got combos up until 5 keys pressed at the same time as well as rapid press release to mimic surf pumping,
Without the sources of the script you are using for the keyboard detection algorithm, it is hard to tell exactly what is the "problem", but given the choice of keys in the combinations, you might be encountering a collision with the viewer's own (and non-configurable) keyboard shortcuts...

I might be inclined to provide a Lua function for sending key combinations to the scripts (you could then send those combos via a Lua floater of yours, for example, or via Lua side bar buttons), but I won't change how the viewer keyboard shortcuts do work...


2024-06-22 09:46:48
Profile WWW

Joined: 2024-06-22 02:28:51
Posts: 7
Reply with quote
Henri Beauchamp wrote:
MagnusAtheria wrote:
I tested in Singularity just for comparison with V1 viewer
Bad choice for an UI comparison...
Singularity (and Genesis, which is a fork of it) is not a "genuine" v1 UI viewer any more... The whole llui library (i.e. the code used to implement the UI), as well as the keyboard management code have been replaced with a backport of LL's v2+ viewers (i.e. while these viewers are using a v1-alike-skin, they actually are v2+ UI viewers)...

The Cool VL Viewer, on the contrary, is still using my fork of the v1 viewer code for the UI and the keyboard management. And I do not intend to change this...

MagnusAtheria wrote:
For example:
*) SHIFT + LEFT + UP wont work, but just LEFT + UP will work
*) UP + LEFT + PAGEDOWN wont work, but just UP + LEFT or PAGEDOWN + LEFT work
(seems more 3 keypress at the same time wont work on Cool VL Viewer)

my surfboard got combos up until 5 keys pressed at the same time as well as rapid press release to mimic surf pumping,
Without the sources of the script you are using for the keyboard detection algorithm, it is hard to tell exactly what is the "problem", but given the choice of keys in the combinations, you might be encountering a collision with the viewer's own (and non-configurable) keyboard shortcuts...

I might be inclined to provide a Lua function for sending key combinations to the scripts (you could then send those combos via a Lua floater of yours, for example, or via Lua side bar buttons), but I won't change how the viewer keyboard shortcuts do work...


Ah yes that's what I was thinking, the viewer keyboard shortcut, but I can't seems to find it..

I use basic lsl control for vehicle and I reckon when the combo is involving

CONTROL_LEFT or CONTROL_RIGHT (that's shift + A or D) with other keypress seems not working

As your explanations, I realized it might be v1 style keyboard style, as I remembered back then ppl did different vehicle controlling method, perhaps it's due this matter.. is there any documentation I can read about this matter? Especially Cool VL related?

Thanks for your reply!


2024-06-25 01:38:27
Profile

Joined: 2009-03-17 18:42:51
Posts: 6024
Reply with quote
I'm afraid the only documentation is the source code itself...

Time permitting, I might have a look at it, on the condition that you provide me with the sources of the script encountering this particular issue, so that I can try and reproduce it. If you do not want to publish the sources on the forum, just send me the (mod-ok) script in-world...


2024-06-26 15:42:08
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.