I'm trying to get WINE to work without the native ie8 workaround, as builtin WINE with Gecko is more equivalent to Edge, much more advanced. But some WINE logic hooking up Windows API calls to Gecko are not completely implemented.

Without having to do the ie8 workaround, ss13 devs won't have to care about ie8 backwards compatibility anymore. But it looks like they aren't much anymore anyway. I read that Colonial Marines now requires to get execution time for timing events, which should be at least ie10.

Also, using WINE it should be possible to run the BYOND client on not just Linux, but Macs and Androids as well. I've seen Diablo 2 run on ARM architecture using WINE.

Using wine debugging (no native ie8), I can see BYOND's splashscreen's progress bar doesn't appear to be bound or display, but pagerhome.html, jquery.js, pagerhome.js, pagerhome.css, and images like icons-friends.png are all downloaded and parsed, and a bunch of javascript executes without error. A DOMContentLoaded delegate is called, which I assume should make the pagerhome.html window appear and the splashscreen disappear.

The unimplemented cmdid trace messages don't appear to be relevant to the problem (e.g. IDM_PARSECOMPLETE and OLECMDID_HTTPEQUIV_DONE), and none of the fixme's or warn's appear to be the problem.

I'll be looking through the relay log and javascript code to see where exactly the new ieframe should be made visible... I'm not sure what interface isn't implemented sufficiently in WINE, e.g. IID_IHTMLWindow2 (I have no idea which right now). It could be that the issue is with progress bar event handling and doesn't have to do with the DOMContentLoaded event, I'm not sure yet.

What is needed are suitable Conformance Tests, small sample programs/tests written to demonstrate the WINE implementation conforms to Windows behavior.
Replacing the compressed jquery.js with an uncompressed version, with full variable names would be useful to diagnose what is going on and where the problems are in loading.

When I try to replace jquery.js with an uncompressed version, BYOND replaces it. When I try to make it read only, BYOND aborts execution. I've not tried yet to use an inotify to replace it the moment after it is written, or I could replace it in the byond.exe GAMECONFIG resource.

I made mistake earlier, I assumed %APPDATA%/BYOND/pager/custom/* like pagerhome.html and jquery.js were downloaded. It turns out they are extracted from a resource in the byond.exe file:
  RCDATA Name=L"GAMECONFIG" Language=0409:
    00000000: 50 6c aa fe e2 40 a4 7a-67 a1 42 42 99 5a a7 a7  [email protected]

I assume GAMECONFIG is compressed with a zip algorithm, when I compress %APPDATA%/BYOND/pager/custom/* it is ~144KB, the same size as the GAMECONFIG resource.

50 6c aa fe doesn't quite match known zip signatures though. The signatures in the ICON resources in byond.exe are as expected, so I don't expect any endianness wonkiness.

0x404 bytes are first read from the end of GAMECONFIG, I assume the header, and then the data appears to be copied backwards from that point. Once the data is copied, then the files are written to %APPDATA%/BYOND/pager/custom/

From what I read of the zip format, sometimes there is "header" information stored at the end of the file.

I've not been able to see a pattern matching a zip signature or header yet. If this turns out to be too difficult I'll try the inotify, or just make do without replacing jquery.js for now.

I figured I should document this effort somewhere for others interested, here is fine.
I compiled WINE with clang-8 using schroot. Wasn't too tough to do on Debian, but it took a while setting up scripts to streamline it.

The 'NewWindow2 Event' wasn't implemented in WINE: aa768336(v=vs.85)

So I figured out where to implement that in WINE and did so. BYOND doesn't appear to change the ppDisp with a WebBrowser or Internet Explorer object (comes back NULL). Dang, worth a shot seeing if that was what it was. I suppose I could try the 'NewWindow3 Event' next, or look at other possibilities.

There is a fixme:ieframe:WebBrowser_get_Parent that also looks promising to try.

Login to reply.