How can i run lugaru in windowed mode ?

The place to discuss all things Lugaru.
Post Reply
TimeToRule
Posts: 57
Joined: Fri Oct 10, 2008 3:38 pm

How can i run lugaru in windowed mode ?

Post by TimeToRule » Fri Aug 07, 2009 11:24 am

hey guys.
I am just wandering how can i play Lugaru in windowed mode ? My Monitor is just too wide and the screen doesen't look so good on fullscreen..

User avatar
Untadaike
Posts: 1660
Joined: Mon Jan 05, 2009 7:46 pm
Contact:

Re: How can i run lugaru in windowed mode ?

Post by Untadaike » Fri Aug 07, 2009 1:47 pm

Unfortunately, it is impossible to play in a windowed mode, I believe. Corrections?

User avatar
tannim
Posts: 271
Joined: Tue Sep 30, 2008 5:54 pm
Contact:

Re: How can i run lugaru in windowed mode ?

Post by tannim » Fri Aug 07, 2009 6:08 pm

try running the windows version in Linux under Wine with an emulated desktop

User avatar
rudel_ic
official Wolfire heckler
Posts: 2193
Joined: Sun Aug 28, 2005 11:19 pm
Location: Hamburg City
Contact:

Re: How can i run lugaru in windowed mode ?

Post by rudel_ic » Fri Aug 07, 2009 8:26 pm

You can't run Lugaru in a window unless you start it in a virtual desktop (that's why wine works).
As for the aspect ratio, you should be able to change the screen geometry with the tools your driver has. NVidia for example lets you change the geometry of the screen for resolutions via the display settings tool (or at least they used to, can't check unfortunately because there's no Windows here).

User avatar
nutcracker
Posts: 1119
Joined: Tue Apr 22, 2008 2:16 am
Location: Western Finland

Re: How can i run lugaru in windowed mode ?

Post by nutcracker » Sat Aug 08, 2009 6:51 am

LIES!
YOU ALL LIES!

Just play lugaru in the safe mode, that is windowed, no other differences compared to the normal version.

User avatar
Untadaike
Posts: 1660
Joined: Mon Jan 05, 2009 7:46 pm
Contact:

Re: How can i run lugaru in windowed mode ?

Post by Untadaike » Sat Aug 08, 2009 12:08 pm

And how to do you get into this "safe" mode of yours?

TimeToRule
Posts: 57
Joined: Fri Oct 10, 2008 3:38 pm

Re: How can i run lugaru in windowed mode ?

Post by TimeToRule » Sun Aug 09, 2009 5:01 am

When i run it in safe it crashes..anywayz. will have to play it full screen then :/

garg
Posts: 1
Joined: Thu Dec 23, 2010 10:51 am

Re: How can i run lugaru in windowed mode ?

Post by garg » Thu Dec 23, 2010 10:57 am

(holy thread necro - sorry in advance).

I just bought Lugaru and was surprised to find out it can't be played in windowed mode (at least on Linux). I came up with the following solution:

(1) pop up a terminal window and cd to the directory where you installed Lugaru
(2) touch fakesdl.c
(3) vim fakesdl.c (replace vim with your favorite text editor)
(4) copy-paste the code below:

Code: Select all

#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <dlfcn.h>

#define SDL_FULLSCREEN  0x80000000

typedef void * ( *cf_t )( int, int, int, uint32_t );

static cf_t ptr;

static void __attribute__(( constructor )) _f_init( void )
{
	void *h = dlopen( "./libSDL-1.2.so.0", RTLD_NOW );
	if ( !h ) {
		printf( "Could not open libsdl: %s\n", dlerror() );
		exit( 1 );
	}
	ptr = ( cf_t )dlsym( h, "SDL_SetVideoMode" );
}

void *SDL_SetVideoMode( int w, int h, int bpp, uint32_t flags )
{
	printf( "NO FULLSCREEN !!1\n" );
	return ptr( w, h, bpp, ( flags & ~SDL_FULLSCREEN ) );
}
(5) compile by running: gcc -m32 -fPIC -DPIC -shared -o fakesdl.so fakesdl.c
(6) run Lugaru like so: LD_PRELOAD=./fakesdl.so ./lugaru
(7) ????
(8) enjoy window mode

tommis
Posts: 7
Joined: Wed Dec 22, 2010 6:18 pm

Re: How can i run lugaru in windowed mode ?

Post by tommis » Fri Dec 24, 2010 4:48 pm

This is plossible in linux with Xnest.

User avatar
admalledd
Posts: 16
Joined: Mon Dec 06, 2010 10:05 pm

Re: How can i run lugaru in windowed mode ?

Post by admalledd » Sat Dec 25, 2010 2:40 am

wait... i am pressing alt+enter to make lugaru go windowed, both windows and linux for me (gotten via the bundle)

or by adding "-windowed" on the command line (for those who know what that is)

Post Reply