Blender version lockdown example

In recent builds you can check the Blender version with Python.

Attached is an example of using this to require a certain version.
version_lockdown.blend (453 KB)
Again, you’ll need a recent build for this to work. Anything <= official 2.75a doesn’t have the module and will report as too old.

Usage
Edit the variables at the top of the script to match your version(s).
Put your game’s blend in the “Start game from file” actuator.

API docs:
http://www.blender.org/api/blender_python_api_2_75_3/bge.app.html

Attachments

version_lockdown.blend (455 KB)

Hum that’s new… Didn’t see that in the api a week ago…