New function: Touch operation
4 posters
Page 1 of 1
New function: Touch operation
Hello everyone! I am very pleased to be able to report to you that the new features were implemented today.
OpenBVE has suffered from key shortage for many years.
So I thought that it could be solved by the touch (mouse) operation and realized it.
In addition, let me realize the idea from leezer3, it was officially implemented happily the other day.
If you use a new format called Panel.xml instead of Panel2.cfg, you can make the most of this new feature, but this document does not yet exist.
So today you can touch everyone with existing Panel2.cfg touch We will introduce the experimental functions that make it possible.
(For Panel.xml we'll report again as soon as the document is ready.)
First of all, download the latest development version from the link below.
http://vps.bvecornwall.co.uk/OpenBVE/Builds/
Next, launch OpenBVE and enable "Enable Panel 2 extended mode" of Advanced Opetions on the second page of the option.
The rest is just to start the game. You can touch with a brake handle, power handle, and reverser handle.
However, there is a limit to this function. For the brake handle etc. DigitalNumber, the width of the image is 128px and the Interval is 128px or more.
This is because we use the size of the image to distinguish the handles. You can change this threshold by directly editing the options file. The location of the option file is as follows.
Windows: C:\Users\"UserName"\AppData\Roaming\openBVE\Settings\1.5.0\options.cfg
Linux: "HomeDirectory"/.config/openBVE/Settings/1.5.0/options.cfg
---
[Touch]
cursor = nk.png
panel2extended = true
panel2extendedminsize = 128
---
The value of this "panel2extendedminsize" is the threshold used for judgment.
This post was translated by F81 tec200. I really appreciate it.
OpenBVE has suffered from key shortage for many years.
So I thought that it could be solved by the touch (mouse) operation and realized it.
In addition, let me realize the idea from leezer3, it was officially implemented happily the other day.
If you use a new format called Panel.xml instead of Panel2.cfg, you can make the most of this new feature, but this document does not yet exist.
So today you can touch everyone with existing Panel2.cfg touch We will introduce the experimental functions that make it possible.
(For Panel.xml we'll report again as soon as the document is ready.)
First of all, download the latest development version from the link below.
http://vps.bvecornwall.co.uk/OpenBVE/Builds/
Next, launch OpenBVE and enable "Enable Panel 2 extended mode" of Advanced Opetions on the second page of the option.
The rest is just to start the game. You can touch with a brake handle, power handle, and reverser handle.
However, there is a limit to this function. For the brake handle etc. DigitalNumber, the width of the image is 128px and the Interval is 128px or more.
This is because we use the size of the image to distinguish the handles. You can change this threshold by directly editing the options file. The location of the option file is as follows.
Windows: C:\Users\"UserName"\AppData\Roaming\openBVE\Settings\1.5.0\options.cfg
Linux: "HomeDirectory"/.config/openBVE/Settings/1.5.0/options.cfg
---
[Touch]
cursor = nk.png
panel2extended = true
panel2extendedminsize = 128
---
The value of this "panel2extendedminsize" is the threshold used for judgment.
This post was translated by F81 tec200. I really appreciate it.
Re: New function: Touch operation
Note:
I've fixed the embedding for the youtube video here.
The loco used in the video was the stock Class 57.
No modifications made, just extended mode activated.
I've fixed the embedding for the youtube video here.
The loco used in the video was the stock Class 57.
No modifications made, just extended mode activated.
Re: New function: Touch operation
I tried it with class 960 on a night NWM route and for some reasons objects ahead of the train were turning into their daytime versions. Also, the cursor disappears completely once I hover over a handle (I have nk.png selected in the options).
Really cool feature though, feels a bit like MSTS but with much higher quality of pretty much everything.
Really cool feature though, feels a bit like MSTS but with much higher quality of pretty much everything.
Delsin- Posts : 313
Join date : 2016-08-20
Re: New function: Touch operation
Fixed the lighting glitch.
I can't reproduce a disappearing cursor though.
How long a hover does it take before it disappears?
Might also be Windows or your graphics drivers 'helpfully' hiding the cursor in a 3D game?
I can't reproduce a disappearing cursor though.
How long a hover does it take before it disappears?
Might also be Windows or your graphics drivers 'helpfully' hiding the cursor in a 3D game?
Re: New function: Touch operation
Instantly as it goes into a rectangle the lever "touch area" is in. And Windows never hides the cursor in openbve, only when I put it over a lever.
Delsin- Posts : 313
Join date : 2016-08-20
Re: New function: Touch operation
Delsin wrote:Instantly as it goes into a rectangle the lever "touch area" is in. And Windows never hides the cursor in openbve, only when I put it over a lever.
Thanks
I think I've fixed that this morning, problem with the auto-generated builds as opposed to those built locally.....
Re: New function: Touch operation
Is there a way to read touch data directly from animated files? like "touch" being an instruction that reads whether or not the certain object is touched returning 1 or 0 respectively? also if it can be added, can it behave as 'pressed/released' (returning 1 and 0 respectively) rather than 'active/inactive'? this can help big timeĀ
NYCT_Railer- Posts : 9
Join date : 2020-04-25
Similar topics
» Permission for a touch of route upgrading....
» In a world of co-operation!
» IN A WORLD OF CO-OPERATION! ( split post )
» In a world of co-operation!
» IN A WORLD OF CO-OPERATION! ( split post )
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum