Unable to play games on Desktop. Commands don't work.

Obnivelint
30 Mar 2018, 02:31

Recently installed the desktop version of quest only to find that I am unable to play any games. They launch fine, but I can't interact with the game. Basic commands like help or look don't work. Upon Closing the game, there is a debug log with the message:
WARNING:message_in_transit_queue.cc(18)] Destroying nonempty message queue

I have tried with several versions of quest, as well as several different games. All give same results and I can't find any information on the subject.


The Pixie
30 Mar 2018, 11:43

Not heard of that before, it must must be something peculiar to your set up. What version of Windows are you using? What version of .NET do you have?

The desktop version has Chrome embedded in it, so it is just possible setting for Chrome could affect it. Do you have JavaScript turned off? Test here:
https://www.whatismybrowser.com/detect/is-javascript-enabled

Obviously you have tried re-installing, which is the first thing to do.


Obnivelint
30 Mar 2018, 14:52

Windows 10. Version 1709
NET Framework 4.7.1
Javascript is enabled in chrome, is it possible that the embedded version could have it disabled but not the browser?

I've also tried moving the install folder when running the installer, heard that may work. No dice. Neither of the program files fixed the problem.


K.V.
30 Mar 2018, 16:08

I get that error message quite frequently, and I never know why. (In other words, the debug.log file frequently (and apparently randomly) appears in my game folders with that same message when I notice no problem while playing a game.)


If the interface loads, try clicking on 'HTML Tools' (enter a command or two first):

image


...then click on the 'Console' tab and see if there are any error messages (there are none in this screenshot):
image


Screenshot with error message:
image


Obnivelint
30 Mar 2018, 17:20

I was looking for an in-game Console. Thanks for the help, turns out there is an error.
Uncaught ReferenceError: questCefInterop is not defined

The error only occurs once I try to interact with the game - commands or links.
Console says that the error occurs in desktpplayer.js - same as the forum post below.

the only info I could find on the keyword was this - https://textadventures.co.uk/forum/quest/topic/q28gof4no02qfufafzjsca/quest-problem

Similar if not the same problem. The solution was apparently updating the .NET framework. But I have the latest version. Is it possible that I need to install an earlier version?

If it helps, Using Quest 5.7.2. I dont think it does, I tried 5.7.1 as well.

Does this error/keyword "questCefInterop" mean anything to anyone?


mrangel
30 Mar 2018, 19:44

Looks like questCefInterop is a JS variable created by the line ctlWebView.RegisterJsObject("questCefInterop", m_interop) in PlayerHTML.vb … as far as I can see, this seems to be how you expose a C# object and its methods to javascript code running within Chromium.

If questCefInterop isn't defined, then PlayerHTML_Load must have failed somewhere.

There should be a file called debug.log that may have a more informative error message. It will be created in the location returned by Path.GetTempPath()) in C# ... I assume that is going to be the system's TEMP directory, but it's years since I used Windows so I can't be sure.


-=Darchy=-
30 Mar 2018, 20:59

Dunno if this has been tried yet, but are you installing/running it under Administration access?


Obnivelint
31 Mar 2018, 05:43

That Worked!

ran as Admin. Boom.

...did not expect that. Feels kinda anticlimactic, though i'm also grateful it was that easy.

Could you explain why that works?


-=Darchy=-
31 Mar 2018, 10:43

@Obnivelint - In a nutshell - running as admin allows access to folders that are protected under UAC, to be written to. It is good practice to always install and run using the Run as Admin feature of windows.

Glad it worked.

-=Darchy=-


hegemonkhan
31 Mar 2018, 12:53

Always the simple solution... laughs....

it's like "why is this not working?", ANSWER: is it plugged in and/or turned on? OH!, whoops, ya, now it's working! (This happens to a lot of people, even professionals, lol)


Awesome job Darchy!


-=Darchy=-
31 Mar 2018, 13:07

Thanks hegemonkhan - It gave me a warm fuzzy feeling to be able to contribute for once :)


Obnivelint
31 Mar 2018, 16:06

Thanks for the help everyone!

If I may, maybe it would be a good idea to add "Trying installing/running as Admin" to one of the troubleshooting pages.