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...
Embed a full web browser in your game · By
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...
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)
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?