NEW: Route Loading Plugin (Testers Please!)
+2
Marc Riera
leezer3
6 posters
Page 1 of 2
Page 1 of 2 • 1, 2
NEW: Route Loading Plugin (Testers Please!)
The most recent daily build of OpenBVE (24th June 2020 onwards) introduces a major change.
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-06-24.zip
The route parsers for the main sim and Route Viewer have been merged into a single unified plugin, and a significant amount of cleanup / internal plumbing changes have been done as a result.
In the longer term, this makes adding new features to routefiles and general maintenance massively easier.
End-users should hopefully see absolutely no difference between builds, but with a change this big, there's a distinct possibility something has broken horribly
With that in mind, I'd appreciate testing of this.
https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2020-06-24.zip
The route parsers for the main sim and Route Viewer have been merged into a single unified plugin, and a significant amount of cleanup / internal plumbing changes have been done as a result.
In the longer term, this makes adding new features to routefiles and general maintenance massively easier.
End-users should hopefully see absolutely no difference between builds, but with a change this big, there's a distinct possibility something has broken horribly
With that in mind, I'd appreciate testing of this.
Re: NEW: Route Loading Plugin (Testers Please!)
I tested my Tohoku-Shinkansen of a route Hayabusa1.
It seems to nice, but TFO is not works.
At the loading screen, I felt it seems loaded it, but not display at 3D screen.
It seems to nice, but TFO is not works.
At the loading screen, I felt it seems loaded it, but not display at 3D screen.
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
Thanks, fixed
Midnight Express Ginga81 likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
RouteViewer's gauge is 100%, but not showing my route of Tohoku-Shinkansen's
When I break the program,the message showing bellow.
X11 Error encountered:
Error: BadWindow (invalid Window parameter)
Request: 25 (0)
Resource ID: 0x12B
Serial: 3781
Hwnd:
Control: at System.Environment.get_StackTrace () [0x00000] in :0
at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in :0
at OpenTK.Platform.X11.Functions.XSync (System.IntPtr , System.Boolean ) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.Platform.X11.X11GLNative.DestroyWindow () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.Platform.X11.X11GLNative.ProcessEvents () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.NativeWindow.ProcessEvents (System.Boolean retainEvents) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.NativeWindow.ProcessEvents () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.GameWindow.Run () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenBve.Program.Main (System.String[] args) [0x00000] in <1b2251f9e4184a7c9876e7ca8974a4d0>:0
When I break the program,the message showing bellow.
X11 Error encountered:
Error: BadWindow (invalid Window parameter)
Request: 25 (0)
Resource ID: 0x12B
Serial: 3781
Hwnd:
Control: at System.Environment.get_StackTrace () [0x00000] in :0
at System.Windows.Forms.XplatUIX11.HandleError (System.IntPtr display, System.Windows.Forms.XErrorEvent& error_event) [0x00000] in :0
at OpenTK.Platform.X11.Functions.XSync (System.IntPtr , System.Boolean ) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.Platform.X11.X11GLNative.DestroyWindow () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.Platform.X11.X11GLNative.ProcessEvents () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.NativeWindow.ProcessEvents (System.Boolean retainEvents) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.NativeWindow.ProcessEvents () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenTK.GameWindow.Run () [0x00000] in <6764f93f9a3e4037817c5d176911bdea>:0
at OpenBve.Program.Main (System.String[] args) [0x00000] in <1b2251f9e4184a7c9876e7ca8974a4d0>:0
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
Latest should be fixed hopefully.
Midnight Express Ginga81 likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
RouteViewer can load and display a route!
Thank you very much!
TFO is shown, but not calculate.
I cannot check, but may be all of TFO objects are appearance when the game is started.
And moving topspeed of the first command, and not stopping (do not recognize command).
Finally, over the route of distance zero, and perhaps derailed.
TFO's motor sound can hear sudden roudnessly where not running.
Thank you very much!
TFO is shown, but not calculate.
I cannot check, but may be all of TFO objects are appearance when the game is started.
And moving topspeed of the first command, and not stopping (do not recognize command).
Finally, over the route of distance zero, and perhaps derailed.
TFO's motor sound can hear sudden roudnessly where not running.
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
Not the newest build (1.7.280.659), this is what happens on a BVE2 era route:
Route is here:
https://cdn.discordapp.com/attachments/707013713500045334/720967904765673472/BVE_hankyu_kyoto_160_1.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967732589232128/BVE_hankyu_kyoto_tuika_160.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967740373991506/BVE_hankyu_kyoto_soundATS.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967864777048134/BVE_hankyu_kyoto_rpd_sound.exe
https://cdn.discordapp.com/attachments/707013713500045334/720968059942338590/hankyu_rltd_sound_150.exe
Route is here:
https://cdn.discordapp.com/attachments/707013713500045334/720967904765673472/BVE_hankyu_kyoto_160_1.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967732589232128/BVE_hankyu_kyoto_tuika_160.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967740373991506/BVE_hankyu_kyoto_soundATS.exe
https://cdn.discordapp.com/attachments/707013713500045334/720967864777048134/BVE_hankyu_kyoto_rpd_sound.exe
https://cdn.discordapp.com/attachments/707013713500045334/720968059942338590/hankyu_rltd_sound_150.exe
Delsin- Posts : 313
Join date : 2016-08-20
Re: NEW: Route Loading Plugin (Testers Please!)
Midnight Express Ginga81 wrote:RouteViewer can load and display a route!
Thank you very much!
TFO is shown, but not calculate.
I cannot check, but may be all of TFO objects are appearance when the game is started.
And moving topspeed of the first command, and not stopping (do not recognize command).
Finally, over the route of distance zero, and perhaps derailed.
TFO's motor sound can hear sudden roudnessly where not running.
Now that took a while to find....
Current build will fix.
Delsin wrote:Not the newest build (1.7.280.659), this is what happens on a BVE2 era route:
Investigating, thanks.
Midnight Express Ginga81 likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
Should now be back in place, thanks. (Typo when calculating the position of ground (-1) based freeobjs)
Have also fixed custom load screens.
Have also fixed custom load screens.
Re: NEW: Route Loading Plugin (Testers Please!)
At OpenBVE-2020-06-27.zip, I think that the TFO is probably working correctly.
No trouble was found.
No trouble was found.
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
On v1.7.282.832, RouteViewer displays routes correctly but does not clear the data from the previous route when loading a different one directly (without closing the program). How to replicate the issue:
1. Load a route in RouteViewer.
2. Load a different route without closing RouteViewer.
3. A combination of features from both routes is displayed.
1. Load a route in RouteViewer.
2. Load a different route without closing RouteViewer.
3. A combination of features from both routes is displayed.
Marc Riera- Posts : 28
Join date : 2015-12-21
Location : Barcelona, Spain
Re: NEW: Route Loading Plugin (Testers Please!)
At 1.7.282.832, my environment also cannot DnD continually.
F5 key's reload is enable.
If we want to reload or load to another route, once have to set the maximum window size, and again to normal window size.
And if we are continueing window size change and DnD, the error message dialog showing below and crashed.
A null reference or invalid value was found [GDI+ status: InvalidParameter]
F5 key's reload is enable.
If we want to reload or load to another route, once have to set the maximum window size, and again to normal window size.
And if we are continueing window size change and DnD, the error message dialog showing below and crashed.
A null reference or invalid value was found [GDI+ status: InvalidParameter]
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
Something similar is now happening to some train car .animated files, some parts are geting shifted along the Z axis. This didn't go away with the latest build (no examples yet, I'm still investigating it a bit. Apparently, other .animated files addes with [Include] are the most susceptible)leezer3 wrote:Should now be back in place, thanks. (Typo when calculating the position of ground (-1) based freeobjs)
Have also fixed custom load screens.
Delsin- Posts : 313
Join date : 2016-08-20
Re: NEW: Route Loading Plugin (Testers Please!)
Reload object glitch issue found and fixed.
Drag and drop on Linux is more problematic, as it's the OpenTK backend which handles all of this. I'll have a play, but this may or may not be fixable.
Need a reproducable example of the shifted animated issue to have a play, but should be easy to fix one we get an example.
That's not this PR, but will be related to this:
https://github.com/leezer3/OpenBVE/pull/493
TLDR: A cache was introduced here to avoid reparsing on-disk files multiple times.
Something somewhere will be transforming the base object before cloning it instead of the other way around.
Drag and drop on Linux is more problematic, as it's the OpenTK backend which handles all of this. I'll have a play, but this may or may not be fixable.
Need a reproducable example of the shifted animated issue to have a play, but should be easy to fix one we get an example.
That's not this PR, but will be related to this:
https://github.com/leezer3/OpenBVE/pull/493
TLDR: A cache was introduced here to avoid reparsing on-disk files multiple times.
Something somewhere will be transforming the base object before cloning it instead of the other way around.
Re: NEW: Route Loading Plugin (Testers Please!)
At If the RouteViewer's window size is not full size, drag loading can continuas works well.
Thank you very much for fix.
At the first time, Route.DirectionalLight is noon color, such as
R=160
G=160
B=160
the DirectionalLight is display correctly.
At the second time, sunset time such as
R=180
G=80
B=40
This route is also diplay correctly.
But, at the third time, read the noon color again, but DirectionalLight is not change to noon color, displaying sunset color.
Thank you very much for fix.
At the first time, Route.DirectionalLight is noon color, such as
R=160
G=160
B=160
the DirectionalLight is display correctly.
At the second time, sunset time such as
R=180
G=80
B=40
This route is also diplay correctly.
But, at the third time, read the noon color again, but DirectionalLight is not change to noon color, displaying sunset color.
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
I've found at least one cause of the shifted animated issue, and fixed it for today's build.
Please let me know if there are any more to be seen.
Edit:
I believe I've fixed the lighting glitch mentioned above also.
Please let me know if there are any more to be seen.
Edit:
I believe I've fixed the lighting glitch mentioned above also.
Midnight Express Ginga81 likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
At OpenBVE-2020-06-30.zip, RouteViewer drag loading at fullscreen size and routes are loads many times by DnD.
Route.DirectionalLight issue is also fixed.
Thank you very much for fix!
Route.DirectionalLight issue is also fixed.
Thank you very much for fix!
Midnight Express Ginga81- Posts : 154
Join date : 2016-09-25
Re: NEW: Route Loading Plugin (Testers Please!)
I think I found a good example of shifted models. This still happens to trains and the latest build I tested (3rd July) still had it.
https://www.dropbox.com/s/y3g78j30f7aci4n/NS-93.rar?dl=0
Notice the bogie positions
https://www.dropbox.com/s/y3g78j30f7aci4n/NS-93.rar?dl=0
Notice the bogie positions
Delsin- Posts : 313
Join date : 2016-08-20
Re: NEW: Route Loading Plugin (Testers Please!)
Should be fixed also.
(An animated object within a chain and then positioned needs to be cloned)
(An animated object within a chain and then positioned needs to be cloned)
Phonteus Nevolius likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
I was trying to run the July 6 nightly build with my Királyliget route and it throws an unhandled exception while loading, and it says it cannot access the crash log file because another process is using it.
After this I get another error window saying a fatal exception has occured in the unhandled exception handler. This one also says it cannot access the crash log file because another process is using it.
A third error message also opens up, which says the object link is not set to an instance of the object (I don't have the exact wording here because this part is in Hungarian).
After this I get another error window saying a fatal exception has occured in the unhandled exception handler. This one also says it cannot access the crash log file because another process is using it.
A third error message also opens up, which says the object link is not set to an instance of the object (I don't have the exact wording here because this part is in Hungarian).
Re: NEW: Route Loading Plugin (Testers Please!)
Typo, my fault....
Fixed that, and another (unrelated) issue in Route Viewer.
Should have another build shortly
Fixed that, and another (unrelated) issue in Route Viewer.
Should have another build shortly
Phonteus Nevolius likes this post
Re: NEW: Route Loading Plugin (Testers Please!)
Everything got fixed now except that train I've sent can't close doors at all, simply doesn't react to keys, I thought it was some plugin issue when happened before, but now I've disabled it and it still happens. I recall it working in older versions tho, weird...
Delsin- Posts : 313
Join date : 2016-08-20
Re: NEW: Route Loading Plugin (Testers Please!)
Just to confirm, I ran the 2020-07-08 build and everything seems to work correctly for me, TFO works well too.
Re: NEW: Route Loading Plugin (Testers Please!)
Delsin wrote:Everything got fixed now except that train I've sent can't close doors at all, simply doesn't react to keys, I thought it was some plugin issue when happened before, but now I've disabled it and it still happens. I recall it working in older versions tho, weird...
Fixed.
(Was accidentally checking the door open mode when attempting to close; Hence a train with auto-open, manual close doors got stuck)
Re: NEW: Route Loading Plugin (Testers Please!)
A little bit of idea, does it sound reasonable for a route to specify additional plugins to be loaded?
The current method of loading all dlls in the Data/Plugin folder is very flexible as it enables easy extension. However, since the Data/Plugin folder is a part of the installation, one cannot add a plugin without having to use admin right or root privilege, which makes it hard for route developers to make use of the extendable design.
For instance, maybe we can search and load plugin dlls from the folder the route file is in, or add a command in the route file to load a plugin. That will enable route developers to extend the functionality without having to tell the players to get root privilege and manually place a dll file somewhere deep in the file system.
The current method of loading all dlls in the Data/Plugin folder is very flexible as it enables easy extension. However, since the Data/Plugin folder is a part of the installation, one cannot add a plugin without having to use admin right or root privilege, which makes it hard for route developers to make use of the extendable design.
For instance, maybe we can search and load plugin dlls from the folder the route file is in, or add a command in the route file to load a plugin. That will enable route developers to extend the functionality without having to tell the players to get root privilege and manually place a dll file somewhere deep in the file system.
Page 1 of 2 • 1, 2
Similar topics
» Loading Plugin from Route
» Route testers needed
» No plugin found that is capable of loading texture
» Updated RouteViewer- Testers Please
» New OpenBVE Build- Testers Please
» Route testers needed
» No plugin found that is capable of loading texture
» Updated RouteViewer- Testers Please
» New OpenBVE Build- Testers Please
Page 1 of 2
Permissions in this forum:
You cannot reply to topics in this forum