-g gameengineoption (blenderplayer)

hi
do anyone know if there is more commands then -g noaudio in [-g gamengineoptions]
I hope that is.


usage:   C:\BlenderPublisher\BlenderPlayer.exe [-p l t w h] [-f fw fh fb ff] -c
[-g gamengineoptions] -s stereomode filename.blend
  -p: specify window position
       l = window left coordinate
       t = window top coordinate
       w = window width
       h = window height
  -f: start game in full screen mode
       fw = full screen mode pixel width
       fh = full screen mode pixel height
       fb = full screen mode bits per pixel
       ff = full screen mode frequency
  -s: start player in stereo
       stereomode = hwpageflip or syncdoubling depending on the type of stereo y
ou want
  -c: keep console window open

example: C:\BlenderPublisher\BlenderPlayer.exe -p 10 10 320 200 -g noaudio c:\lo
adtest.blend

thx jm

Yeah, there are.

Hold on while I dig up the Blender GameKit…

Found it, now browsing through…

Ok. here:


Game Engine specific options:
  -g fixedtime      Run on 50 hertz without dropping frames
  
  -g vertexarrays   Use Vertex Arrays for rendering (usually faster)

  -g noaudio        No audio in Game Engine

  -g nomipmap       No texture Mipmapping

  -g linearmipmap   Linear Texture Mipmapping instead of Nearest (default)

Whew! That was hard! I hope I spelled it right. %|

:smiley:

i have blender gamekit also:D
I was remember that i saw some information about it, but I don’t found it.
I’m just find it. but the help in gamekit is for 2.24 and I’m using 2.25. I think that some features don’t work with 2.25.

what do you think about it?
jm

I dunno, but just try it and tell us what happens!

in gamekit is a few things that don’t work if I used example from 2.25, but it make any error.
if you are typed the basic line not correctly the help schown itself automaticly, so there you can see the diference betwen this help and help in gamekit.

help of blender player from 2.25


usage:   C:\BlenderPublisher\BlenderPlayer.exe [-p l t w h] [-f fw fh fb ff] -c
[-g gamengineoptions] -s stereomode filename.blend
  -p: specify window position
       l = window left coordinate
       t = window top coordinate
       w = window width
       h = window height
  -f: start game in full screen mode
       fw = full screen mode pixel width
       fh = full screen mode pixel height
       fb = full screen mode bits per pixel
       ff = full screen mode frequency
  -s: start player in stereo
       stereomode = hwpageflip or syncdoubling depending on the type of stereo y
ou want
  -c: keep console window open

example: C:\BlenderPublisher\BlenderPlayer.exe -p 10 10 320 200 -g noaudio c:\lo
adtest.blend

and the help from gamekit(the diferencies

::almoast every things that I wrote with simple font don’t work::
render options:
-s <name> - setscene
-f <frame> - render frame and seve it
-s <frame> - set start to frame(use with -a)
-e <farame> - set end to frame (use with -e) <frame>
-a -render animation

Animation option:
-a <file(s)> playbeck file(s)
-m - read from disk (don’t buffer)

window options:
-w force opening window borders
-p <sx><sy><w><h> open window from left corner… it works

game engine specific options:
-g fixed times I don’t know if it’s work because I run examle without code with information about fps
-g vertexarrays - usssualy faster ?
-g linearmipmaping

mist options:

  • d turn debugging on
  • noaudio it works I suppose
    -h print this help “]for me it isn’t working
    -y disable onload scripts ???

if anyone have some expiriences with this things, please post it here
jm

That second list is from blender (not blenderplayer)

Note that the player parameter handling is dodgy in 2.34 (going all the way back to 2.25?) and is fixed in CVS.


  -w: display in a window
  -p: specify window position
       l = window left coordinate
       t = window top coordinate
       w = window width
       h = window height
  -f: start game in full screen mode
       fw = full screen mode pixel width
       fh = full screen mode pixel height
       fb = full screen mode bits per pixel
       ff = full screen mode frequency
  -s: start player in stereo
       stereomode: hwpageflip       (Quad buffered shutter glasses)
                   syncdoubling     (Above Below)
                   sidebyside       (Left Right)
                   anaglyph         (Red-Blue glasses)
                             depending on the type of stereo you want
  -g: game engine options:
       Name            Default      Description
       ----------------------------------------
       fixedtime          0         Do the same timestep each frame "Enable all frames"
       nomipmap           0         Disable mipmaps
       show_framerate     0         Show the frame rate
       show_properties    0         Show debug properties
       show_profile       0         Show profiling information
       vertexarrays       1         Enable vertex arrays

show_* is new in CVS, and nomipmap is forced on under OSX.

You can also do things like this:

gameplayer -g vertexarrays = 0 game.blend

well i can’t manage to force my .blend file to run in fullscreen in the player
i tryed “-f 640 480 32 85 .blend” but without success…
i use 2.34, any ideas?

Just save it with the fullscreen option checked in the game frame settings.

of course but…if i want to make a menu to choose various resolutions withe .bat files launching the player?

  1. Only Win32 & MacOSX support switching display settings.
  2. Can your monitor do 85 Hz?
  3. Can your video card do 32 bit? (try 16 or 24 bit)

What does it do when you run blenderplayer? It might be related to that command line parsing being broken thing…

of course but…if i want to make a menu to choose various resolutions withe .bat files launching the player?

Um, good point. Hope this is really fixed soon.

Well if you know some python scripting, you can script a python console which makes a user able to give his input. Like:

  • Resolution: 1 = 800x600, 2 = 1024x768, 3 = more blalalblab
  • Bit: 1 = 16, 2 = 24, 3 = 32
  • fullscreen: yes/no

Afther giving the user his input, the python script writes a bat file with the commands or something else and included the information. Afther that before the python console quits it runs the file, and closes the python script. Now the game starts with your settings. :smiley:

Sounds easy as hell, but no idea if it’s crossplatform, but that’s just taking time to figure out how it works on Linux, Mac. The idea I told was something I tested on Windows, it works very good. :smiley: Just run the script, do 3 inputs, and the rest is automatic. Next time you start the script it directly runs the game on those settings if you hit enter, if you hit something else it calls the setup again. 8)