XML NotchDescriptions crash Openbve on loading
2 posters
Page 1 of 1
XML NotchDescriptions crash Openbve on loading
Using NotchDescriptions causes crash on startup, Openbve reverts to main menu when attempting to load a train using this. Happens on stable 1.9.2.2.
Also, loco brake interface label is blank on all trains fitted with it
Also, loco brake interface label is blank on all trains fitted with it
Delsin- Posts : 313
Join date : 2016-08-20
Re: XML NotchDescriptions crash Openbve on loading
I can't reproduce this on 1.9.2.4, everything appears OK to me for both of your issues above.
My immediate suspicion would be malformed XML (duplicate properties?) somewhere which we aren't handling nicely.
Sample please?
XML files only is fine.
My immediate suspicion would be malformed XML (duplicate properties?) somewhere which we aren't handling nicely.
Sample please?
XML files only is fine.
Re: XML NotchDescriptions crash Openbve on loading
https://cdn.discordapp.com/attachments/1172533635115663360/1172534016461787237/TKK9000.rar (same train as attached on github for sound testing, please uncomment NotchDescriptions in Train.xml)
Delsin- Posts : 313
Join date : 2016-08-20
Re: XML NotchDescriptions crash Openbve on loading
It's malformed XML.
You're missing the closing < for the reverser.
(Try using an editor which highlights XML such as Notepad++)
Fixing that makes the thing work- All descriptions appear for me correctly.
I've made a couple of changes as a result of this which will help, but a malformed XML can't be loaded.
(This was one of the major points of choosing XML- The csv / dat formats do some interesting and unxepected things sometimes when malformed, which simply aren't possible with XML)
- Code:
<Reverser>切,前,後/Reverser>
You're missing the closing < for the reverser.
(Try using an editor which highlights XML such as Notepad++)
Fixing that makes the thing work- All descriptions appear for me correctly.
I've made a couple of changes as a result of this which will help, but a malformed XML can't be loaded.
(This was one of the major points of choosing XML- The csv / dat formats do some interesting and unxepected things sometimes when malformed, which simply aren't possible with XML)
Re: XML NotchDescriptions crash Openbve on loading
That explains it double-checked the syntax but still missed it.
I do use Notepad++, but it didn't help apparently.
Makes me think it needs some sort of better error feedback than just crashing tho...
I do use Notepad++, but it didn't help apparently.
Makes me think it needs some sort of better error feedback than just crashing tho...
Delsin- Posts : 313
Join date : 2016-08-20
Re: XML NotchDescriptions crash Openbve on loading
That's what the changes from yesterday were- Stops the crash and tweaks a couple of related bits, but it physically can't load a malformed XML.
Similar topics
» Error in OpenBVE 1.7.2.3: - No plugins capable of loading routefile
» OpenBVE 1.7.1.3 Crash
» 1.8.0.1 (64-bit) crash
» OpenBVE Error Loading Trains
» OpenBve not starting, forever loading
» OpenBVE 1.7.1.3 Crash
» 1.8.0.1 (64-bit) crash
» OpenBVE Error Loading Trains
» OpenBve not starting, forever loading
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum