Вы находитесь здесь

Форум

Embedded objects in games

Games made by game maker

Автор Replies
Nexus_Guy Thursday 11 June 2015 at 4:44
Nexus_GuyAnonymous

Hi everyone,

I have been working on a project that will require WINE/PlayOnLinux to work on top of linux. However the project is developed and runs using Yoyo's game engine and one of the two most important issues has halted development which is embedded objects. For example, I want to embed a web browser and a video. The issue is to do with embedding objects in a continuously refreshing (30 fps) environment (or it seems). Because the web browser embed only shows up once in a very fast "flash" and you can tell its there by right clicking and the context menu will show up.

 

Infact if you embedded a video it would constantly flicker and if I programatically limited the fps to something like 1 fps per second the embedded video would flicker less (resulting in it being visible for a longer time (fps of the game doesnt affect that of the embedded video)). If I added a right click context menu, this freezes the game until the user makes a selection (expected behaviour in game maker) and this actually makes the video not flicker at all and play just fine.

What I am trying to point out here is that whenever a new frame is rendered, the embedded object has to actually be refresing itself to keep itself visible, that is why the Embedded web browser dll wont because it is not constantly redrawing things.

 

Here (https://drive.google.com/file/d/0B6MIf4zt-O7UN0ZHMHAxbmpYbVU/view?usp=sharing) is source files and also the simple exe making use of the embedded object (web browser). If you have a windows machine/installation closeby, you can run it and it will be fine. If you cant see the embedded object under WINE/PlayOnLinux right click and you'll see that its there with the internet explorer-like context menu.

 

I have reported this before on WINE bugs (twice in the last 2 years), but it seems like it was barried under other issues instantly and never found. Here (https://bugs.winehq.org/show_bug.cgi?id=37476) is the more recent post with a log uploaded there.

 

The sample "exe" under windows looks like: 

 

Thanks for time reading all of that :D,

Nexus_Guy

Ronin DUSETTE Thursday 11 June 2015 at 4:54
Ronin DUSETTE
Admin

Have you thought about writing a native port to Linux so that Wine is not needed? I know it costs money for that feature to export to Ubuntu, but it would probably be worth it instead of waiting for it to be fixed through Wine ($60 / 24 months is easy to justify for me. lol.).

That would be suggestion if no one can come up with a fix for it. Unfortunately, I am not sure what can be done. Have you checked the with wine-staging.com?


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Nexus_Guy Thursday 11 June 2015 at 11:36
Nexus_GuyAnonymous

A lot of it heavily relies on the windows environment and it is not a product to be sold (at least right now). Its something I have been working on alone, (now with some people) for years now, it simply is a lot to translate into native. Everything else works fine, and a lot of the elements used actually use a native back-end that would not work through WINE. But this specific bug is the only thing that has been a problem for me for a year or so.

I actually also use linux as my main OS and whenever I try games made by game maker that makes use of this, it always becomes a problem. So it hasnt been just for this, but my general user experience with WINE.

Edit: No I havent checked wine-staging, will see if there is a solution from there

 

Thanks.

Edited by Nexus_Guy

Nexus_Guy Thursday 11 June 2015 at 12:28
Nexus_GuyAnonymous

And I tried WINE staging and the same thing happened. Also I figured that if you hold "ctrl-a" you can actually see the webpage, because its constantly "selecting all"

 

Thanks again,

Nexus_Guy

Edited by Nexus_Guy

Ronin DUSETTE Thursday 11 June 2015 at 18:09
Ronin DUSETTE
Admin

This is just be my opinion, but running your app through Wine may not be the best solution for your users. I would file a bug report with WineHQ again and see if they will pay attention this time. lol. I just wish that I knew C so that I could help write patches. :)


Please:
Post debug logs & full computer specs in first post
No private messages for general help, use the forums
Read the wiki, Report broken scripts
Вы находитесь здесь: Index > PlayOnLinux > Embedded objects in games