Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

[FIXED] A Bug

A topic by Nordok created May 13, 2018 Views: 546 Replies: 11
Viewing posts 1 to 6
(1 edit)

Hi, it looks great, but i have a Bug.
When i start project, i see many of "Open a file" dialogs like this: Screenshot

and "address string" are blinking every time...


Known issues:

  • Cannot be run from inside Gamemaker. Please export your game as a zip to run it. (For some reason, running this from within GM causes some open dialogs to appear, and the DLL to not work).

now I see. Thanks ))

Developer

Yeah, sorry about that, I don't know why that happens, there's no "open dialog" anywhere in the code.  I haven't found a way around it.

Developer

I have found a workaround for this issue: setting Chromium to single-thread mode will allow it to work in the IDE; albeit at a lower performance.  I've added a chromium_create_test() function that will launch it in this mode.  I've also added a scr_demo_check_if_ide script to the demo project that can be used to determine whether the game is running inside the IDE, so you can decide whether to launch the chromium_create() or chromium_create_test() functions (see demo project for implementation details)

Thanks for that!
It is much more convenient.

emm... sorry, but why chromium_get_last_http_code() always return "0", not source code of the page?

Developer

will look into...

Developer

Unfortunately, it looks like Chromium will return an http code for each thing that is loaded, so while it may return a 200 code for a successful load, it may also return multiple different values (including 0) for the various things it loads.  Each time you run the chromium_get_last_http_code() you'll only get the last code returned, which may be the 200 for the page, or it may be 0 for one of the things it loads along with the page.  Unfortunately there doesn't see to be a good way to make absolutely sure everything is correctly loaded using this method.

I see that I misunderstood the meaning of this function, I do not need the status of the request at the moment. I need to get the current code of the current page in a variable in order to find the necessary information in it. Besides, it would be very cool to get not the original code (before the java script is executed and others), namely the current one, which is generated by all the scripts on the page. Is this possible?

Developer

I have also been looking into this too.  I agree, it would be very useful.  I will be testing the functions today and aim to release a new version tomorrow.

Developer

I've released a new version that allows you to get data back from javascript into GM.  Take a look at the demo project for implementation details.

You know, you are the best :). Big thanks!

P.S. Today I will test this. I hope for an early release of a stable version.