Setup program for Blender games

EDIT: The latest .blend always here:
(Windows) http://etyekfilm.hu/configuration.blend
(Mac) coming soon
(Linux) coming soon

EDIT: I use bad word in the topic title. This is a configuration program. Please read all above.

I start to make a setup program for Blender games that uses Blenderplayer.exe!
It is a .blend and it does:

-display a setup with screen resolution, refresh rate etc. - you can set these
-on exit it saves a start.bat file for Windows - the start.bat contains the settings we set (for example: blenderplayer.exe -w yourblend.blend)

So the idea is simple.

Future development (with helping of the community):
-detecting the desktop settings (it must be a separated and non-blender program - Blender Game engine cant detect this) - desktop settings is a “safe setting” for non-hardcore pc users
-Linux and Mac version :slight_smile:
-your ideas :slight_smile:

So what exactly can this achieve…?

-Sunjay03

Can you just a free installer, like Advanced Installer? http://www.advancedinstaller.com/

I don’t think endi is creating an installer, from what I can make out it will be a way of configuring a games display settings before the game runs, such as resolution and fullscreen/window maybe refresh rate and BPP. I would rather create a native application that allows these settings to be changed/saved before launching the game. GTK would be a good choice for cross platform but C# && Winforms would be a quicker solution for windows platforms.

Does anybody read that I wrote? :slight_smile:

It was hard to make out…sorry.

Could you go into a bit more of what EXACTLY it does?

-Sunjay03

Okay, I use bad word. This is a config program, or options program.
In old times we call setup this. Now setup means: installer.

update: now it save all things

endi : you need to be more clear .

are you joking?

okay, I think forget this topic

are you joking?

okay, I think forget this topic

no offence , nice blend anyways , thanks :slight_smile: .

Köszi

Looks pretty interesting.


See the error I get

Init.
Python script error from controller “cont#CONTR#1”:
Traceback (most recent call last):
File “setclick”, line 10, in <module>
KeyError: ‘value = gameOb[key]: KX_GameObject, key “prop” does not exist’
Python script error from controller “cont#CONTR#1”:
Traceback (most recent call last):
File “setclick”, line 10, in <module>
KeyError: ‘value = gameOb[key]: KX_GameObject, key “prop” does not exist’
Python script error from controller “cont#CONTR#1”:
Traceback (most recent call last):
File “setclick”, line 10, in <module>
KeyError: ‘value = gameOb[key]: KX_GameObject, key “prop” does not exist’
Save done. Exit.

Oh I forget: it works with only 2.49…
Somebody can make the 2.5 version… :slight_smile:

I think this is a good and handy idea for a lot of new comers who will be wanting to learn but also skip some of the vital steps.

Once suggestion i would have for people is the commonly used BAT files, Script in n out of blender :wink:

Hey, this is great. Thank you, I will take a look at it.

eh… i have done something similar in one of my previous posts… :smiley:

edit: but i can do the full linux version of this, if you want…

Hi

I took a different path for the start.bat creation .

http://fdm4bge.1g.fi/Files/10001/FDM4BGE/BGE_screen.png

This EXAMPLE script needs a PIL & easygui installation for running.

import ImageGrab # Import the Python Imaging Library grap module. http://www.pythonware.com/products/pil/
import easygui # Import menu system. http://easygui.sourceforge.net/

s_blend = "yourgame.blend" # YOUR BGE game name


def menu():

    img=ImageGrab.grab() # get current desktop resolution

    # The setup menu txt    
    t = 'Screen setup'
    m = 'Setup screen play parameters'
    sx = 'Screen wide (current)'
    sy = 'Screen height (current)'
    c = 'Set the color mode (16 or 32)'
    s = 'Screen size: Full screen=f or window=w'
    f = 'Frame rate (be real)'

    # Show menu and get inputs (i)
    i = easygui.multenterbox(msg= m, title= t, fields=(sx, sy, c, s, f), values=(str(img.size[0]), str(img.size[1]),'32','f','60' ))

    # Add some sort of value range checking here. Loop back to the menu(), if some value is out of the range...
       
    return i


data = menu()

text = 'blenderplayer.exe -' + data[3]+ ' ' + data[0] + ' ' + data[1] + ' ' + data[2] +'  ' + data[4] + ' ' + s_blend

print text # just for showing

#### The start.bat file saving
##fileHandle = open ( 'start.bat', 'w' )
##fileHandle.write ( text )
##fileHandle.close()

Can someone make a linux version?

in the first post you can find a .blend that can run on every opsystem with blenderplayer