the Rainbow Networks
+++eXy FFA
Map: hektik
Players: 4 / 18
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
hyp3rfocus
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.
Code::
#!BPY
import os
os.system('quake3')
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...
Code::
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...
Code::
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


Membership:
Latest: Evilemerold
New Today: 0
New Yesterday: 0
Overall: 354

People Online:
Members: 0
Visitors: 18
Total: 18
Who Is Where:
 Visitors:
01: The golden pot
02: The golden pot
03: The golden pot
04: The golden pot
05: The golden pot
06: The golden pot
07: The golden pot
08: The golden pot
09: The golden pot
10: Rainbow Media
11: The golden pot
12: The golden pot
13: The golden pot
14: The golden pot
15: The golden pot
16: The golden pot
17: Maps
18: The golden pot

Staff Online:

No staff members are online!

The Rainbow Networks website is hosted by JockeTF and Soder on furver.se.

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