Oddlabs Forum

It is currently Wed Jun 19, 2013 4:37 pm

All times are UTC + 1 hour




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 
Author Message
 Post subject: starts, just in wrong position
PostPosted: Fri Apr 01, 2005 5:04 pm 
Offline

Joined: Fri Apr 01, 2005 4:55 pm
Posts: 2
Using Debian Sarge Linux, Window Maker set to not focus new windows.

Upon startup, window is automatically iconified. de-iconify and the resolution
changes, X view is limited to the upper left corner, game window is centered
on old screen resolution. I am unable to move the game window or change the
X view position


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 04, 2005 1:09 pm 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Does it work if new windows are focused? Does your system support the X11 Rotate and Resize extension (XRandR)? The game logs will mention XRandR if it is supported.

- elias


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 05, 2005 4:53 am 
Offline

Joined: Fri Apr 01, 2005 4:55 pm
Posts: 2
It seems my presumption concerning focus was groundless.

The server reports support for the RANDR extension.

Xrandr extension version 1.1
Using Xrandr for display mode switching

std.err
Code:
Xrandr extension version 1.1
Using Xrandr for display mode switching
Original display dimensions: width 1280, height 1024 freq 85
XF86VidMode extension version 2.2
Initial mode: 1280 x 1024 x 24 @85Hz
Removed 0 duplicate displaymodes
getPathFromClassLoader: searching for: openal
getPathFromClassLoader: Path found: /usr/local/scratch/tmp/tribaltrouble/tribaltrouble/gamedata/data-1/native/.svn/text-base/libopenal.so.svn-base
getPathFromClassLoader: searching for: lwjgl
getPathFromClassLoader: Path found: /usr/local/scratch/tmp/tribaltrouble/tribaltrouble/gamedata/data-1/native/.svn/text-base/liblwjgl.so.svn-base
Removed 0 duplicate displaymodes
Mode 0: 1280x1024 @85
Mode 1: 1280x1024 @75
Mode 2: 1280x1024 @60
Mode 3: 1280x960 @85
Mode 4: 1280x960 @60
Mode 5: 1152x864 @75
Mode 6: 1024x768 @85
Mode 7: 1024x768 @75
Mode 8: 1024x768 @70
Mode 9: 1024x768 @60
Mode 10: 1024x768 @87
Mode 11: 800x600 @85
Mode 12: 800x600 @75
Pixel format info: r = 8, g = 8, b = 8, a = 0, depth = 24, stencil = 8, sample buffers = 0, samples = 0
Using NetWM for fullscreen window
Created window
Mode 0: 1280x1024 @85
Mode 0: 1280x1024 @85


std.out
Code:
revision = 3436
os_name = Linux
os_arch = i386
os_version = 2.4.27-kurnl0k7
java_version = 1.5.0_02
java_vendor = Sun Microsystems Inc.
modes[i] = 1024 x 768 x 24 @85Hz
modes[i] = 800 x 600 x 24 @75Hz
modes[i] = 1024 x 768 x 24 @70Hz
modes[i] = 800 x 600 x 24 @85Hz
modes[i] = 1024 x 768 x 24 @87Hz
modes[i] = 1280 x 1024 x 24 @85Hz
modes[i] = 800 x 600 x 24 @70Hz
modes[i] = 832 x 624 x 24 @75Hz
modes[i] = 1280 x 960 x 24 @60Hz
modes[i] = 800 x 600 x 24 @72Hz
modes[i] = 1280 x 1024 x 24 @75Hz
modes[i] = 1280 x 960 x 24 @85Hz
modes[i] = 1024 x 768 x 24 @60Hz
modes[i] = 1024 x 768 x 24 @75Hz
modes[i] = 800 x 600 x 24 @65Hz
modes[i] = 800 x 600 x 24 @56Hz
modes[i] = 1152 x 864 x 24 @75Hz
modes[i] = 1280 x 1024 x 24 @60Hz
modes[i] = 800 x 600 x 24 @60Hz
target_mode = 800x600 32bit 75Hz
considering mode = 800 x 600 x 24 @75Hz
setting mode = 800 x 600 x 24 @75Hz
GL version: 1.5.1 NVIDIA 61.11
GL vendor: NVIDIA Corporation
GL renderer: GeForce4 Ti 4200/AGP/SSE/3DNOW!
GL extensions: GL_ARB_depth_texture GL_ARB_imaging GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_shadow GL_ARB_shader_objects GL_ARB_shading_language_100 GL_ARB_texture_border_clamp GL_ARB_texture_compression GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_texture_mirrored_repeat GL_ARB_transpose_matrix GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_window_pos GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_multi_draw_arrays GL_EXT_packed_pixels GL_EXT_paletted_texture GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_specular_color GL_EXT_shadow_funcs GL_EXT_shared_texture_palette GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_object GL_EXT_vertex_array GL_HP_occlusion_test GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_copy_depth_to_color GL_NV_depth_clamp GL_NV_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_texgen_reflection GL_NV_texture_compression_vtc GL_NV_texture_env_combine4 GL_NV_texture_rectangle GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_program GL_NV_vertex_program1_1 GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum
r = 8 | g = 8 | b = 8 | a = 0 | depth = 24 | stencil = 8 | sample_buffers = 0 | samples = 0
OpenGL 1.3 is supported
vsync = true
vbo = true
pbuffer = true
Switched mode to 800x600 24bit 75Hz
Maximum texture size 4096
Init done after 7481
number of AL Sources: 32


Top
 Profile  
 
 Post subject: Re: starts, just in wrong position
PostPosted: Sat Apr 09, 2005 11:25 pm 
kurnl wrote:
Using Debian Sarge Linux, Window Maker set to not focus new windows.

Upon startup, window is automatically iconified. de-iconify and the resolution
changes, X view is limited to the upper left corner, game window is centered
on old screen resolution. I am unable to move the game window or change the
X view position


Same kind of trouble (not Tribal hopelessly ;)) here.
"Same" because my window manager is also set not to focus new windows, and I observe resolution switching too. However, it happens only when I ask for fullscreen, and the program simply get stuck after these few resolutions switchings.

When I reconfigure my wm to set focus on new windows, everything is going fine.
(But I definitively don't wan't to configure my wm like that)
Then, it seems like focus considerations were the correct guess...

PS : Gentoo Linux, Xorg 6.8.2, Mesa DRI Radeon, XRandR is supported


Top
  
 
 Post subject:
PostPosted: Tue Apr 12, 2005 2:21 pm 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Bah, SuSE 9.2 has an old version of Window Maker that doesn't support the NetWM protocol. I'll download a fresh version and see if I can get it running. In the meantime, what version of WM are you using?

- elias


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 13, 2005 10:50 pm 
elias wrote:
In the meantime, what version of WM are you using?


Erf, my window manager is probably something you can't rebuild, I guess you'd better wait for kurnl's answer about his WindowMaker version.

(My current window manager has been built against some kind of a slightly hacked developpment source checked out from the old pekwm CVS. Though, it's been about one year I use it and I barely have any problem with it.)


Top
  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 8:00 am 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Don't worry, I've got the problem reproduced on a fresh Window Maker 0.91.

- elias


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 11:17 am 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Ok, it seems that Window Maker doesn't like the NetWM+XRandR combination LWJGL uses, so I've added a workaround to force LWJGL back to using good old XF86VidMode. Set the LWJGL_DISABLE_NETWM environment variable to true before running TT in the next update and fullscreen should work again.

- elias


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 14, 2005 11:47 am 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Oh, and if anybody knows of a reliable (and easy) way of detecting Window Maker from code so the flag can be enabled per default, I'd like to know.

- elias


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 27, 2006 9:08 pm 
Offline

Joined: Thu Sep 21, 2006 9:10 pm
Posts: 2
Hello, all. I have this:
I'm using Red Hat Linux. Window Maker is set to not focus new windows too. So after windows is drawing, it has bad resolution, not the same as other windows.:( Can anybody help me? [/url]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 28, 2006 9:44 am 
Offline
User avatar

Joined: Fri Sep 26, 2003 6:44 pm
Posts: 236
Try putting -DLWJGL_DISABLE_NETWM=true in the tribaltrouble run script:

#!/bin/sh

JAVA=jre1.5.0_04/bin/java

if [ "$1" != "" ] && [ -e $1 ]; then
cd $1
fi

${JAVA} -DLWJGL_DISABLE_NETWM=true -Xmx80000000 -cp loader.jar com.oddlabs.loader.Loader ${JAVA} loader.jar com.oddlabs.tt.Main --silent


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 11 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group