Freecol Version 0.10.3
Vista Home Basic
On the title screen, there is normally a video that plays in the middle box. After I installed the latest update, the sound plays, but the video does not appear. It seems like the video is playing under the full screen image instead of on top of it.
I believe the video should be returned to playing on top of the title screen image.
Can you upload the FreeCol.log folder from your Documents/FreeCol/ directory?
There have been longstanding issues with the intro on Windows, see BR#3048802. Nothing has changed in the video code since this before this was first reported in 0.9.4. No progress is likely either until we have a FreeCol developer that runs Windows.
FWIW: I run windows and I see the video just fine. Could it be a problem with the version of Java the user is running since in this case, both our Operating Systems are the same.
Log file from just starting, getting the tile page and quitting.
I am also having this problem on Windows 7 64b, Sun Java 1.6.0. The sound is playing, but instead of the video there is just some blank generic rectangle. Note this only happens in fullscreen mode, never windowed.
Check whether launching the game like this helps (BR#2928730):
java -Xmx512M -Dsun.java2d.d3d=false -jar FreeCol.jar
Yes, it helps. Video plays normally, and so does the game.
As an interesting/humorous side note, if I launch the game without your parameters and press alf-F4 when the video is suppossed to be playing, a confirmation dialog appears ('do you really wanna exit...'). This fixes the movie :-)
Liosan
Fixed by sinomaen with revision 9698.
Reopened following new duplicate from cyberlpt, who reports:
In full screen mode only (window mode working correctly):
- intro video appear behing.
- In game most colonie menus appear behind, usualy only the 2 first buildings in the colonie works
I discovered that they where behind when I did ALT+Tab and i saw all the menus still there.
I tried different resolution all the sames. I'm running win7, java jdk 1.6_20
I updated java to 1.7 and problem still there.
A little googling found several similar reports with other applications. None of the suggestions I saw that advised `write the Java this way' were applicable to the FreeCol codebase, so we are pretty much stuck. One of the posters suggested:
1. Change the value of ForegroundLockTimeout within HKEY_CURRENT_USER\Control Panel\Desktop into "0"
2. Logoff/Logon
3. The issue was solved for the logged in account, not for the other accounts.
I have no idea what this means or if it makes sense.
The stated recommendation is to change one of the global settings for the Windows desktop in the Windows registry. I would do this only as a last resort as this has the potential to affect multiple programs, including the Windows operating system itself, not just FreeCol. As a workaround, for now, suggest that Windows users use Windowed mode at least when starting the program..
This is not happening for me anymore.
Though when I was experimenting for bug#2729 one of the things I did was setAlwaysOnTop on the JFrame and suddenly I had the problem with dialogs hidden behind the frame again.
I did not search the codebase for old changes, but was that setting used once and removed? Or could this be outdated from newer Java doing something differently with the GUI?
Very good news.
Quite possibly, although if it was by me it was not because I knew what I was doing.
Also quite possibly.
What I would like to see here is for you to add a comment stating your findings to the relevant code, to help avoid regressions.
As to the bug status, I am inclined to leave it open for now as AFAICT its behaviour does change across several windows versions.
Well, I'm pretty sure JFrame and JDialog use native MSWindows-windows internally and the setAlwaysOnTop method of JFrame is forwarded to MSWindows. This setting causes a window to be drawn above all other windows without this setting, even when the other windows have focus, and it does not switch focus automagically.
That means, try not to use this setting on the JFrame, even though it looks attractive for keeping the game on top in fullscreen mode.
A possible area for research on the minimizing bug is to set it in fullscreen mode for the JFrame and set it for any and all JDialogs and other windows, too. Then test it on all OS to be sure there is no Java bug like http://stackoverflow.com/questions/20210782/jdialog-setalwaysontop-not-working-in-java-7 and make sure it interacts correctly with other applications, by deactivating/reactivating it at the right times.
I'd suggest closing this as outdated, as I'm sure it was fixed by some change in FreeCol/Java long ago and I don't think it depends on Windows version.
Fair enough if you can no longer reproduce it. However, this one has risen from the dead at least twice before.