Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TedMar, AndrewAMD), 1,067 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
game resolution = windows resolution? #390263
12/25/11 12:07
12/25/11 12:07
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
I can't find in the manual how to change the resolution of the game to the same resolution of the operator system (like Windows XP or Vista). I want to change the resolution of the game on startup. How do I do this?

-EDIT
Also, I want to use PATH "dirname", but the Script Editor gives an error saying that it is an undeclared indentifier. Is PATH "dirname" C-script only, or also Lite-C?

Thanks in advance!

Last edited by reknak; 12/25/11 12:14.
Re: game resolution = windows resolution? [Re: reknak] #390264
12/25/11 12:12
12/25/11 12:12
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
just set your video_mode to 12

A8 automatically scans the modes that are not supported wth your current system.. and sets the highest.

if you want full screen, just set video_screen to 1


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: game resolution = windows resolution? [Re: Espér] #390265
12/25/11 12:20
12/25/11 12:20
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
That works, thanks very much Esper! Does anyone also know the PATH "dirname" thingy?

Re: game resolution = windows resolution? [Re: reknak] #390266
12/25/11 13:01
12/25/11 13:01
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Code:
#define PRAGMA_PATH "direction_name"




Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: game resolution = windows resolution? [Re: Espér] #390269
12/25/11 14:01
12/25/11 14:01
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Use the sys_metrics() function instead of Espers 'hack'. Its much cleaner and also works in future versions!


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: game resolution = windows resolution? [Re: WretchedSid] #390271
12/25/11 15:35
12/25/11 15:35
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
@JustSid, that works even better, thanks!

quote"#define PRAGMA_PATH "direction_name"", @Esper, I cannot get this to work. The Script editor cannot find the files that I moved to the subfolder. Atm I use this as the code:

#define PRAGMA_PATH "%EXE_DIR%\data";

I have put all files (except for .exe, WED maps .wmp and .dll files) in the subfolder 'data'. Am I doing something wrong?

Re: game resolution = windows resolution? [Re: reknak] #390305
12/26/11 16:05
12/26/11 16:05
Joined: Jan 2011
Posts: 65
R
reknak Offline OP
Junior Member
reknak  Offline OP
Junior Member
R

Joined: Jan 2011
Posts: 65
Never mind, I found an easy solution. Use add path in WED to create WDL that has the necessarily codes.

Re: game resolution = windows resolution? [Re: reknak] #390306
12/26/11 16:36
12/26/11 16:36
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
#define PRAGMA_PATH "direction_name";

";" is needed [according the manual]

Re: game resolution = windows resolution? [Re: Rei_Ayanami] #390355
12/28/11 01:02
12/28/11 01:02
Joined: May 2009
Posts: 439
T
TerraSame Offline
Senior Member
TerraSame  Offline
Senior Member
T

Joined: May 2009
Posts: 439
Hey... JustSid Nailed it...
Add this just after your level load...

video_set (sys_metrics(0),sys_metrics(1),32,1);

Woks great but switching agterwards is a trick...
Have fun


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1