the Rainbow Networks
+++eXy FFA
Map: q3tourney3
Players: 1 / 24
The golden pot › RAINBOW NETWORKS › Tech & Support › How to run Quake3 from Blender.
How to run Quake3 from Blender.
Something wrong with our servers or your system?
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexTech & Support
View previous topic :: View next topic  
Author Message
Forum Addict
Forum Addict

Joined: Aug 25, 2007
Posts: 466
Location: england

PostPosted: Mon Sep 28, 2009 3:43 pm    Post subject: How to run Quake3 from Blender. Reply with quote

I can't imagine this is something anyone is going to need to do very often, but it took me ages to figure it out so I thought I'd put it on the forum in case someone ever searches for it. The actual blender script is fairly simple.
import os
With quake3 being the name of the script that launches the game. The problem I encountered was that quake3 would try to launch, but would fail due to errors. The relevant error turned out to be this...
SDL using driver "dummy"
It seems that when you try and run a program from within blender it messes up SDL_VIDEODRIVER. To remedy this I added a line to my quake3 script to fix it. Like so...
export SDL_VIDEODRIVER="x11"
cd /home/me/software/quake3/game
./ioquake3.x86_64 &
Now that my quake3 script actually sets SDL_VIDEODRIVER before running ioquake3 there are no problems whatsoever.

Launching Quake3 from a Blender script may seem like an odd thing to do, but it could actually be quite useful. What I'm thinking of doing is adding some extra code to the .map export script to run a bash script. This bash script will compile the .map to bsp, make a pk3 of it, put it in Quake3's baseq3 folder and then make quake3 run this map. This means I could have a map set up in Blender and when I run the export script it's automatically launched in quake3. This would be a massive time saver.
Back to top
View user's profile Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum Index -> Tech & Support All times are GMT + 1 Hour
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Welcome Anonymous

Latest: kontol
New Today: 0
New Yesterday: 0
Overall: 355

People Online:
Members: 0
Visitors: 26
Total: 26
Who Is Where:
01: Shoutblock
02: The golden pot
03: The golden pot
04: The golden pot
05: The golden pot
06: Home
07: Home
08: The golden pot
09: The golden pot
10: The golden pot
11: The golden pot
12: Maps
13: The golden pot
14: The golden pot
15: The golden pot
16: The golden pot
17: The golden pot
18: The golden pot
19: The golden pot
20: The golden pot
21: The golden pot
22: The golden pot
23: The golden pot
24: The golden pot
25: The golden pot
26: My Account

Staff Online:

No staff members are online!

The Rainbow Networks website is hosted by JockeTF and Soder on

The Rainbow Networks
Interactive software released under GNU GPL, Code Credits, Privacy Policy
Azul theme and related images designed by Jamin