Train list broken in wine

You are here: Home > Forum > General > General questions, comments, and issues > Train list broken in wine

Page 1 of 1

Train list broken in wine 28/01/2014 at 15:25 #54378
Muzer
Avatar
718 posts
In the latest SimSig loader update, am I right in thinking that the train list has been replaced with an HTML version?

This appears to be completely broken in wine on Linux - the window just displays "Please wait..." and an error message of "Can't find <body> element". Is there any way to revert to the previous version? Do you have any inkling as to why this might be happening, so that the bug in wine (if it is, indeed, a bug in wine) can be identified and possibly fixed?

Last edited: 28/01/2014 at 15:26 by Muzer
Log in to reply
Train list broken in wine 28/01/2014 at 15:35 #54381
Jan
Avatar
889 posts
As the simplifier (F8) uses an HTML document to display the data, too, does it work, or is it broken as well?
Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply
Train list broken in wine 28/01/2014 at 15:36 #54382
postal
Avatar
5189 posts
Online
" said:
In the latest SimSig loader update, am I right in thinking that the train list has been replaced with an HTML version?

This appears to be completely broken in wine on Linux - the window just displays "Please wait..." and an error message of "Can't find <body> element". Is there any way to revert to the previous version? Do you have any inkling as to why this might be happening, so that the bug in wine (if it is, indeed, a bug in wine) can be identified and possibly fixed?
Have you added the trainlist.css file Geoff has included as an attachment here? That may solve things. If it does and you prefer the old format of F2 display, I've submitted a revised trainlist.css to the mods to be added to the Downloads section which gives a more traditional F2 display.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Train list broken in wine 28/01/2014 at 15:46 #54383
Muzer
Avatar
718 posts
It is also broken - I never bothered trying to use it before.

EDIT: Sorry for the vague post, I was on my way out. By "it" I meant the simplifier. It just displays the "Select search criteria and press Refresh." message, unless I'm just not using it properly. When you close the simplifier, you get "Access violation at address 4016F4AC in module 'vcl60.bpl'. Read of address 00000220." multiple times.


I will test the CSS file later.

Last edited: 28/01/2014 at 16:18 by Muzer
Log in to reply
Train list broken in wine 28/01/2014 at 16:47 #54388
Peter Bennet
Avatar
5354 posts
" said:
It is also broken - I never bothered trying to use it before.

EDIT: Sorry for the vague post, I was on my way out. By "it" I meant the simplifier. It just displays the "Select search criteria and press Refresh." message, unless I'm just not using it properly. When you close the simplifier, you get "Access violation at address 4016F4AC in module 'vcl60.bpl'. Read of address 00000220." multiple times.


I will test the CSS file later.
So are you saying that you don't know if it's ever worked? Probably need to establish that point first.

Peter

I identify as half man half biscuit - crumbs!
Log in to reply
Train list broken in wine 28/01/2014 at 16:56 #54393
Finger
Avatar
220 posts
" said:
" said:
It is also broken - I never bothered trying to use it before.

EDIT: Sorry for the vague post, I was on my way out. By "it" I meant the simplifier. It just displays the "Select search criteria and press Refresh." message, unless I'm just not using it properly. When you close the simplifier, you get "Access violation at address 4016F4AC in module 'vcl60.bpl'. Read of address 00000220." multiple times.


I will test the CSS file later.
So are you saying that you don't know if it's ever worked? Probably need to establish that point first.
The HTML panels actually never worked in wine with the recommended wine-gecko. (As has already been said, it reports a missing <body> element and that's it).

However, after you've made it necessary to use the HTML panels yesterday, I was able to get it run using native MSIE:

winetricks ie7

which saved my day. You may want to try your luck with ie6 or ie8 instead.

TBH, wine iexplore doesn't work for me, but who cares.

Last edited: 28/01/2014 at 17:03 by Finger
Log in to reply
The following user said thank you: GeoffM
Train list broken in wine 28/01/2014 at 16:57 #54395
Finger
Avatar
220 posts
" said:
Have you added the trainlist.css file Geoff has included as an attachment here? That may solve things. If it does and you prefer the old format of F2 display, I've submitted a revised trainlist.css to the mods to be added to the Downloads section which gives a more traditional F2 display.

Surely not, the css has nothing to do with it.

Log in to reply
The following user said thank you: Muzer
Train list broken in wine 28/01/2014 at 17:10 #54397
GeoffM
Avatar
6274 posts
The F8 simplifier (but not F2 train list) has the option to export to an external browser. Can you run that and see if it reports a problem?

There isn't a missing <body> element. However, maybe the Wine version of the component doesn't fully understand something above it which means it reads the rest of the document incorrectly. AIUI the component to display the HTML page is just a wrapper around a Windows Internet Explorer "browser".

I don't have Wine so any clues from Wine users like yourself would be helpful. Technically Wine isn't officially supported but we will do anything reasonable to try to get it working.

SimSig Boss
Log in to reply
Train list broken in wine 28/01/2014 at 18:23 #54405
Muzer
Avatar
718 posts
@GeoffM: Does the HTML page parse properly in Firefox, or does it use lots of IE-specific things? Wine uses the Gecko engine by default instead of Trident (Internet Explorer's engine). That could well be why.

@Finger: Thanks, I'll give that a go. Don't know why I didn't try it originally.

Log in to reply
Train list broken in wine 28/01/2014 at 18:31 #54406
Muzer
Avatar
718 posts
Damn, I'm using 64-bit wine in which the winetricks installer refuses to install IE7 (or IE8). I suppose I'll have to reinstall SimSig into a 32-bit wine prefix. Will moving the directory suffice or does SimSig store anything important in the registry?
Last edited: 28/01/2014 at 18:32 by Muzer
Log in to reply
Train list broken in wine 28/01/2014 at 18:33 #54407
GeoffM
Avatar
6274 posts
" said:
@GeoffM: Does the HTML page parse properly in Firefox, or does it use lots of IE-specific things? Wine uses the Gecko engine by default instead of Trident (Internet Explorer's engine). That could well be why.
Yes to Firefox, no to IE-specific things, far from it - it's kept as simple as possible.

I just ran the output from the train list through a validator. The only issue was the character encoding was missing. I thought that was optional if the document was utf-8 but it appears that the declaration itself is only optional if it was already declared by some other means. I'll fix that - though whether that is what causes Wine to stumble, I don't really know.

SimSig Boss
Log in to reply
Train list broken in wine 28/01/2014 at 18:34 #54408
GeoffM
Avatar
6274 posts
" said:
Damn, I'm using 64-bit wine in which the winetricks installer refuses to install IE7 (or IE8). I suppose I'll have to reinstall SimSig into a 32-bit wine prefix. Will moving the directory suffice or does SimSig store anything important in the registry?
Only your F3 options which you can set up again with a few clicks.

SimSig Boss
Log in to reply
Train list broken in wine 28/01/2014 at 18:41 #54410
Muzer
Avatar
718 posts
" said:
" said:
@GeoffM: Does the HTML page parse properly in Firefox, or does it use lots of IE-specific things? Wine uses the Gecko engine by default instead of Trident (Internet Explorer's engine). That could well be why.
Yes to Firefox, no to IE-specific things, far from it - it's kept as simple as possible.

I just ran the output from the train list through a validator. The only issue was the character encoding was missing. I thought that was optional if the document was utf-8 but it appears that the declaration itself is only optional if it was already declared by some other means. I'll fix that - though whether that is what causes Wine to stumble, I don't really know.
Hmm, I suspect, then, that the browser is not really very well-integrated into wine. At the very least, it does sound like a wine bug.


EDIT: Woo! Managed to trick IE7 into installing, without having to move to 32-bit wine. Seems to work now, though it complains about a missing trainlist.css - is this supposed to ship or is it designed to be a custom thing? Thanks!

Log in to reply
Train list broken in wine 28/01/2014 at 18:48 #54411
postal
Avatar
5189 posts
Online
" said:
Seems to work now, though it complains about a missing trainlist.css - is this supposed to ship or is it designed to be a custom thing? Thanks!
As per my post at 15:35 today and your response.

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Train list broken in wine 30/01/2014 at 01:06 #54568
Muzer
Avatar
718 posts
Incidentally, the way I tricked winetricks on my 64-bit wine installation into installing IE7, if interested, was:

* Download 64-bit IE7 from here: http://www.microsoft.com/en-us/download/internet-explorer-7-details.aspx (select Windows Internet Explorer 7 for Windows 64 bit Client/Server, filename should be IE7-WindowsServer2003-x64-enu.exe).
* Stick it in ~/.cache/winetricks/ie7/IE7-WindowsXP-x86-enu.exe (note the different filename) - create directories if they don't exist.
* Run winecfg, change OS to Windows 2003
* Edit the winetricks file. Find the line:
w_download http://download.microsoft.com/download/3/8/8/38889DC1-848C-4BF2-8335-86C573AD86D9/IE7-WindowsXP-x86-enu.exe d39b89c360fbaa9706b5181ae4718100687a5326
Comment out the hash (the one-way encrypted string) at the end by sticking a hash (the character) before it thus:
w_download http://download.microsoft.com/download/3/8/8/38889DC1-848C-4BF2-8335-86C573AD86D9/IE7-WindowsXP-x86-enu.exe #d39b89c360fbaa9706b5181ae4718100687a5326
* Run winetricks ie7. If it starts downloading IE7-WindowsXP-x86-enu.exe, one of us has missed a step. It should instead detect that the installer is already there (even though it's not actually the installer it's looking for!) and run it. Follow the installer.
* Once installation is finished, you may change your OS back to whatever it was before if you need it like that for compatibility. At least, Windows XP works fine for me, not sure about others.

Log in to reply
Train list broken in wine 30/01/2014 at 06:31 #54576
Hawk777
Avatar
386 posts
I ended up solving this by using ie8; when I discovered it wouldn’t install on a 64-bit host, I discovered I could just set the WINEARCH environment variable to “win32” and then everything was fine. No need to muck around with downloading a 64-bit IE installer and faking winetricks into believing it’s the 32-bit installer!
Log in to reply
Train list broken in wine 30/01/2014 at 10:04 #54583
Muzer
Avatar
718 posts
What, and wine accepted it without changing your whole wine prefix to a 32-bit one or insisting you use a different wine prefix? That surprises me, but if it worked, whatever :).
Log in to reply
Train list broken in wine 31/01/2014 at 07:45 #54686
Hawk777
Avatar
386 posts
I had nothing of significance besides Simsig itself installed, so I wiped ~/.wine along with changing the environment variable. So, pretty much what you said. But again, whether you do that or make a separate prefix for 32-bit stuff, either is probably easier than pretending the 64-bit IE installer is actually the 32-bit installer.
Last edited: 31/01/2014 at 07:46 by Hawk777
Log in to reply
Train list broken in wine 31/01/2014 at 23:29 #54756
wain77
Avatar
81 posts
I installed winetricks and ran the ie7 installer. The trainlist (and simplifier) now work, except that I can't perform any actions on a train when I right-click its entry in the list. I get the context menu, but can't open any of the submenus. Anyone got any ideas for that?

Sam

Sam Wainwright
Log in to reply
Train list broken in wine 01/02/2014 at 01:18 #54759
Muzer
Avatar
718 posts
I literally noticed this today. Hawk777: Does this happen with IE8?

One workaround I found was to right-click, then use the keyboard's cursor keys to navigate. You have to remember where the highlight would be, though, as that's not displayed - you essentially have to navigate blind with the cursor keys. Not pretty but it works.

Log in to reply
Train list broken in wine 01/02/2014 at 08:15 #54764
Hawk777
Avatar
386 posts
Yes, this happens with IE8 as well, nearly all the time. Perhaps one in twenty clicks or so the menu works. I have taken to just using the keyboard shortcuts, as you noted (actually, you only need to use them for the first level of menus—once a submenu is open, that one can be navigated by mouse if you prefer).
Log in to reply
Train list broken in wine 01/02/2014 at 09:49 #54769
postal
Avatar
5189 posts
Online
I think that may be a generic problem rather than a Wine problem. Running XP I quite often have to click more than once on the TD then on the Context Menu to get things to happen.
“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Train list broken in wine 06/05/2014 at 23:57 #60177
Muzer
Avatar
718 posts
Sorry for the bump, but did anybody ever find a workaround for this? I've been spending a lot of my time playing an older sim, and going back to a loader one it just seems a right chore and really puts me off playing. It's still usable, but it's so irritating having to use the keyboard and remember which option "should be" selected.
Log in to reply
Train list broken in wine 07/05/2014 at 09:33 #60181
Finger
Avatar
220 posts
" said:
Sorry for the bump, but did anybody ever find a workaround for this? I've been spending a lot of my time playing an older sim, and going back to a loader one it just seems a right chore and really puts me off playing. It's still usable, but it's so irritating having to use the keyboard and remember which option "should be" selected.

Well, I use the keyboard, but still don't understand why would you have to remember anything. I just right-click, then pres S for signalling, or T for timetable, then the submenu opens in which I can just use the mouse.

Log in to reply
The following user said thank you: Muzer
Train list broken in wine 07/05/2014 at 14:39 #60185
Muzer
Avatar
718 posts
Oh, that works better - why didn't I think of that? I was using the cursor keys. Cheers.
Log in to reply