[quake3] Python game code

Thilo Schulz arny at ats.s.bawue.de
Tue Nov 21 17:38:18 EST 2006


On Tuesday 21 November 2006 18:34, Neil Toronto wrote:
> As long as I'm writing, I'll give a status update. :D I've got the
> engine loading Python files and using them as entry points now. (You set
> vm_cgame and friends to 3.) It can call them to initialize the game,
> render frames, etc. -  not that the Python game does anything right now
> - and it receives return values. One especially nice thing is that
> Python can use zip files in its system path, so the first thing it does
> after initializing the interpreter is add the engine's search path to
> sys.path. When a Python game file does something like "import cengine"
> (the client engine wrapper), the interpreter loads cengine.py from
> baseq3/pygame.pk3 (or an overriding file).

Looks pretty neat. Someone who wanted to use this will have to write the mod 
code all over again, though. Isn't that a bit large task to do compared to 
actually get python stuff running?

-- 
Thilo Schulz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <http://icculus.org/pipermail/quake3/attachments/20061121/e179ad9b/attachment.pgp>


More information about the quake3 mailing list