BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Plugin does not load

Go down

Plugin does not load Empty Plugin does not load

Post by gcs7e7 Tue Jul 30, 2019 3:37 pm

Hi there!

We have some problems with train plugins (e.g. OS_Ats1). This is a regular problem, but completely random. In this case the extra functions of the vehicle are unusable (turn signal, headlamp, etc.).
If I restart the computer sometimes it disappears, but most of the time it can't be resolved until the next day.
This is a problem that goes back many years, not BVE version dependent. When the error occurs, the indicator lights appear in the lower right corner of the screen (EB, const speed, ...)

Log: https://pastebin.com/NnJaDGNn

Plugin does not load Base_p10

Thanks in advance for your reply!

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Wed Jul 31, 2019 11:47 am

The long and the short of this one is that it's nothing we directly have control over.

A Win32 C++ plugin is essentially a closed 'black box'- All we do is ask Windows to load the thing, and anything after that is not under our control.
My best guess would be that it's probably due to the way the plugin was compiled many years ago (Specifically, I believe the G++ compiler probably has an issue with the plugin being loaded in high address spaces), but I can't really do much even with this.

I've also never been able to personally reproduce this, which doesn't help either.


If the plugin in use is an unmodified copy of OS_ATS, then BVEC_ATS is a direct drop-in replacement which does not have this issue, and additionally works on Linux etc:
http://www.bvecornwall.co.uk/wordpress/bvec_ats-design-details/

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Wed Jul 31, 2019 12:02 pm

Made one (experimental) change to today's build, so that it'll pause for 100ms and retry once with a failed Win32 plugin load.

https://vps.bvecornwall.co.uk/OpenBVE/Builds/OpenBVE-2019-07-31.zip

Whilst I strongly suspect this will have little to no effect, we can but hope Razz

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Wed Jul 31, 2019 12:44 pm

I've tried that plugin what you linked before, and I also experienced the error.

I also tried this build, but I've the same problem.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Thu Aug 01, 2019 9:23 pm

Unfortunately, I can't do too much more then.

The linked plugin *should* work though- Did you remember to change the ATS.cfg file?

If not, link me to the train, and I can take a look.
(I can only see the original Combino V2 in my archive, which appears to have no ATS plugin. There seems also to be a newer Combino on a Hungarian blog, but no download link from a brief prod)

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Fri Aug 02, 2019 11:28 am

Yes, I rewrote the ATS.cfg.

All of my trams do this error, the Combino is just an example.
You can find some here:
https://bveworks.wordpress.com/jarmuvek/
These do not use BVEC_ATS, but feel free to change it.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Sat Aug 03, 2019 12:59 pm

I think this may work a little better:
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest.zip

It didn't like the number of custom indicators you were using. There's also a lot of other incomplete work in there, but I don't think any of that should affect your trams. Please note that this version requires v1.5.3 or later of openBVE.
(I can build a copy which will work on any version if you need)

Other notes:
I'd strongly consider reducing your texture sizes. A lot of your textures don't conform to the power of two rule either, which means some are being upsized to absolutely silly proportions.

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Sun Aug 04, 2019 11:06 am

Apparently I wasn't careful about the texture sizes, and I'll look for the customindicators also.

I've tried what you attached in the Combino, and I received an error message:

Plugin does not load Kzopki10
"Az index a tömb határain kívülre mutatott." = "The index pointed outside the array."

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Sun Aug 04, 2019 11:35 pm

Not sure off the top of my head, what's happened there sorry Sad

Can I see the configuration file it generated?
That should allow me to reproduce at this end.

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Sun Aug 04, 2019 11:43 pm

Of course:
BVEC_ATS.cfg:
;GenVersion=4
;DELETE THE ABOVE LINE IF YOU MODIFY THIS FILE

[Electric]
powerindicator=2
powergapbehaviour=2
powerpickuppoints=13.815, 38.815
[Interlocks]
klaxonindicator=133,900,133,1000,0,0,0
customindicators=90,91,92,93,94,95,96,102,103,104,105,106,107,108,109,110
doorapplybrake=2
neutralrvrbrake=1
[Vigilance]
overspeedcontrol=1
warningspeed=-1
overspeed=63
safespeed=58
overspeedindicator=-1
overspeedalarm=-1
deadmanshandle=1
vigilancelamp=-1
vigilancealarm=1
vigilanceinterval=[1000]
vigilancedelay1=10000
vigilancedelay2=3000
independentvigilance=1
vigilanceinactivespeed=0
vigilancecancellable=0
vigilanceautorelease=0
[AWS]
[TPWS]
[Windscreen]
[LegacyKeyAssignments]
customindicatorkey1=S
customindicatorkey2=A1
customindicatorkey3=A2
customindicatorkey4=B1
customindicatorkey5=B2
customindicatorkey6=C1
customindicatorkey7=C2
customindicatorkey8=D
customindicatorkey9=E
customindicatorkey10=F
customindicatorkey11=G
customindicatorkey12=H
customindicatorkey13=I
customindicatorkey14=J
customindicatorkey15=K
customindicatorkey16=L
safetykey=A2

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 1:37 pm

The following line is definitely broken:
Code:
vigilanceinterval=[1000]

Assuming you want the same interval for all power notches, you should be using this:
Code:
vigilanceinterval=1000

If you want a different interval on a per-notch basis, separate with commas.
This doesn't crash though, and I couldn't actually reproduce Sad

I've found another issue, which is fixed in this & hopefully we might get somewhere:
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest1.zip

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Mon Aug 05, 2019 2:19 pm

I've corrected vigilanceinterval.
With this version the same:
Plugin does not load Kzopki11
When I add these lines to BVEC_ATS.cfg, the game loads, but the same: The plugin doesn't load:
Code:
[Options]
DebugMode = True
Plugin does not load Base_p11
In the past, this error has disappeared, but now I can't remove it a week ago.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 3:11 pm

Sorry, can't be too much more help at the minute Sad

I might be able to reproduce with the full train / route combo, but something is obviously funny somewhere, which I can't reproduce at all....
(At the minute, I'm using the ČKD Tatra T5C5K2\4011 & have tried a few random routefiles)

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Quork Mon Aug 05, 2019 3:17 pm

Could it be something "funny" happening due to language specific settings in the OS?
Quork
Quork

Posts : 1388
Join date : 2012-05-05
Age : 29
Location : Hofheim a.T., Hessen (Hesse), European Union

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Mon Aug 05, 2019 3:29 pm

I did think of that, but don't think so from a brief check with a comma as my decimal separator Sad

The exception suggests not as well, but it's rather hard to find a silly little bug sometimes.....

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Tue Aug 06, 2019 10:34 am

There is the point:
I have changed the language settings from Hungarian to English (UK) and it's working.  Very Happy

Maybe if you change your language settings to Hungarian, you can reproduce the error.
So you have to look somewhere here.  Wink

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Tue Aug 06, 2019 11:40 am

Still can't reproduce at the minute Sad
http://vps.bvecornwall.co.uk/stuff/beta/BVEC_ATS_HUTest2.zip

This fixes some issues when the regional setting was set to Hungarian, and also a couple of AI related glitches, but I can't get it to crash at all, all they would have done is reset a couple of settings to default.....
Do you have a link to your route, as it must be interacting with the plugin somehow?

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Wed Aug 07, 2019 3:28 pm

I tried to set all the files to UTF-8 BOM because of an idea. It's not working like your plugin: The same error message.

The error came again: It's interesting bacuse only on a newly started route, the other routes are good.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by graymac Wed Aug 07, 2019 7:39 pm

I do know there can be errors when mixing UTF and ANSI files within a route. I had it in the past, and had to make certain that all .b3d and .csv files were encoded in UTF.  I'd check that first, there may be an ANSI encoded file or two lurking in the objects folder.
graymac
graymac

Posts : 2127
Join date : 2011-08-28
Location : Co Mayo, Eire

http://www.celtictrainsim.com

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by leezer3 Thu Aug 08, 2019 12:35 pm

gcs7e7 wrote:I tried to set all the files to UTF-8 BOM because of an idea. It's not working like your plugin: The same error message.

The error came again: It's interesting bacuse only on a newly started route, the other routes are good.

Interesting, is that with OS_ATS?

That suggests something is awry in the main program somewhere which may be contributing.
I'm not sure if this will have produced a crash log or not, but this might tell us something else.

In the bottom left of the main menu, there is a link entitled 'Report Problem'
It should then give you an option to view the latest crash log Smile

leezer3

Posts : 1785
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Thu Aug 08, 2019 4:44 pm

I also think the main program is wrong.

Here is the latest Crash Log, but the crashes only with BVEC_ATS:
Spoiler:
2019. 08. 06. 12:44:24
OpenBVE 1.5.1281.1208-travis Crash Log
Program is running on the Windows backend
Current screen resolution is: Full-screen 1920px X 1080px 32bit color-mode
Current routefile is: C:\Users\gcs7e7_asztali\OneDrive\Railway\Route_new\3010_N_Etele tér - Bécsi út.csv
Current train is: D:\D_Sajat programok\OpenBVE\Train\Villamosok\Siemens Combino Supra NF12B\2001
Current train plugin is: BVEC_ATS.dll
8 file(s) not found
24 error(s), 8 warning(s)
The current train plugin caused the following exception: 
Az index a tömb határain kívülre mutatott.
Current program memory usage: 816,67mb
System memory free: 11161mb

With OS_ATS I can't reproduce that yet, the main program loaded, only the plugin not.
But with English language settings, the OS_ATS is great.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by gcs7e7 Thu Aug 08, 2019 4:50 pm

I was happy too early:
Does not work with English settings. Log:
Spoiler:
openBVE Log: 08/08/2019 17:47:23

17:47:23  Initialising full-screen game window of size 1920 x 1080
17:47:24  Game window initialised successfully.
17:47:24  Loading route file: C:\Users\gcs7e7_asztali\OneDrive\Railway\Route_new\3500_N_Határ út - Béke tér.csv
17:47:24  INFO: Route file hash 07FC1F04E90D7664F82DA4943910D87B42A063B36F5F3DBAD94E6DD53B388925
17:47:24  C:\Users\gcs7e7_asztali\OneDrive\Railway : Railway folder found.
17:47:24  Route file format is: CSV
17:47:24  The FreeObject with an index of 17 has been declared twice: The most recent declaration will be used.
17:47:24  The FreeObject with an index of 18 has been declared twice: The most recent declaration will be used.
17:47:25  The FreeObject with an index of 304 has been declared twice: The most recent declaration will be used.
17:47:25  FileName 1V\duna.b3d could not be found in Structure.Freeobj at line 181, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:25  FileName 1V\ut\fu_2.b3d could not be found in Structure.Freeobj at line 190, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:25  FileName 1V\epitesitabla.b3d could not be found in Structure.Freeobj at line 191, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:25  FileName 1V\ut\út hoszszú.b3d could not be found in Structure.Freeobj at line 192, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:25  FileName 1V\ut\háromszög.b3d could not be found in Structure.Freeobj at line 193, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:26  FileName 1V\jelzok\piros_oszjes.b3d could not be found in Structure.Freeobj at line 206, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:26  The FreeObject with an index of 2500 has been declared twice: The most recent declaration will be used.
17:47:26  The FreeObject with an index of 300 has been declared twice: The most recent declaration will be used.
17:47:26  The FreeObject with an index of 301 has been declared twice: The most recent declaration will be used.
17:47:26  The FreeObject with an index of 302 has been declared twice: The most recent declaration will be used.
17:47:26  The FreeObject with an index of 285 has been declared twice: The most recent declaration will be used.
17:47:26  The FreeObject with an index of 720 has been declared twice: The most recent declaration will be used.
17:47:26  FileName 1V\faalj\fufabeton.b3d could not be found in Structure.Freeobj at line 310, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Structure.include
17:47:26  The FreeObject with an index of 741 has been declared twice: The most recent declaration will be used.
17:47:26  RailIndex is expected to be positive in Track.Railstart at line 3, column 1 in file C:\Users\gcs7e7_asztali\OneDrive\Railway\Object\3500\_Includes\Track_01.include
17:47:31  Route file loaded successfully.
17:47:31  Loading AI train: D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525
17:47:31  FileName contains illegal characters or is empty at line 3 in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\sound.cfg
17:47:31  FileName contains illegal characters or is empty at line 4 in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\sound.cfg
17:47:31  An incomplete set of bogie objects was provided in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\extensions.cfg
17:47:31  Loading player train: D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525
17:47:31  FileName contains illegal characters or is empty at line 3 in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\sound.cfg
17:47:31  FileName contains illegal characters or is empty at line 4 in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\sound.cfg
17:47:31  Loading train panel: D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\panel.animated
17:47:32  Train panel loaded sucessfully.
17:47:32  An incomplete set of bogie objects was provided in file D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\extensions.cfg
17:47:32  Loading train plugin: D:\D_Sajat programok\OpenBVE\Train\Villamosok\DÜWAG TW6000\1525\os_Ats1.dll
17:47:37  Error loading Win32 plugin: Nem sikerült egy dinamikus csatolású függvénytár (DLL) inicializáló rutinját végrehajtani (0x45a)
17:47:37  The train plugin os_Ats1.dll does not export a train interface and therefore cannot be used with openBVE.

gcs7e7

Posts : 26
Join date : 2018-08-25
Age : 22
Location : Budapest, Hungary

https://facebook.com/bveworks/

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Phonteus Nevolius Thu Aug 08, 2019 6:35 pm

Just to add the result of my testing from Tuesday, I ran all three trams from https://bveworks.wordpress.com/jarmuvek on the Szigetújfalu line and also on Budapest Tram Line 12. The Ganz TM tram was all UTF-8 with BOM by that time, the other two trams were ANSI. Also ran along Vértesszentmihály Tram Line 9, no problems. Then I downloaded and clean installed the Saijou Line (never installed on this machine before), but it went perfectly well with the ANSI encoded ČKD Tatra T5C5K2 / 4011.

My language settings were Hungarian, the decimal separator being comma, I ran OpenBVE 1.6.0.0 on an up to date Windows 10 box.

To summarise, after running routes already installed and also a clean installed route I didn't experience any trouble and unfortunately couldn't reproduce the problem.
Phonteus Nevolius
Phonteus Nevolius

Posts : 111
Join date : 2017-10-05
Location : Hungary

https://phonteusnevolius.wordpress.com

Back to top Go down

Plugin does not load Empty Re: Plugin does not load

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum