Game Development Community

Gorpe Rpg Cvs Compile Help

by Scott Szretter · in Torque Game Engine · 08/09/2003 (12:14 pm) · 53 replies

I grabbed GORPE off the cvs (/cvs/gorpe), and followed the instructions within the docs folder to compile - I installed python 2.3, uncompressed swig and twisted and registered my 2 enviornment vars for swig and gorpe. I opened the vc6 workspace and did a torque debug build. Everything built fine except it couldnt find the python.h include files. So I copied the include dir in the python directory to the engine directory - that worked, and it got to the linking stage. So thats where I am now - it cant find python23_d.lib - which does not exist anywhere. I even tried changing in python.h the filename to python23.lib, but I cant get the compiler to find it even if I put it in various torque directories. I think im probably just missing some env or compiler setting, or file, but im stuck.

(www.gorpe.com)
#21
09/26/2003 (1:35 pm)
Sounds good. Say, can you give me any more updates on GORPE? Or so? Im planning on CVSing tonight (in about 2 hours), and wanted to start out with a fresh/clean base (torque+gorpe).
#22
09/26/2003 (2:34 pm)
What sort of updates are you looking for?

Right now GORPE is essentialy the following.

Torque (Of course)

TerrainManager - The TM in GORPE has better support for paging, though it's not complete yet. Things like the lightmpas for each terrain block are now properly generated and then saved as part of the terrain block itself.

XML serialization - Much more tightly coupled to the engine, see SimObject.toXML for example.

Enhanced Python bindings - TGEPython plus a bunch of SWIG interfaces. There's a lot of the engine exposed to Python but not all of it. I've got a 100% Python based app version of the demo app underway. As I run into things I can't do with the bindgings as the are I add to them.

Object Selection - GORPE defaults to not using mouselook (hold down the right mous button to mouselook) and instead allows the user to select objects and points in space with the mouse cursor.

There's probably more but I've got to go back over what I've brought over from the old GORPE tree.
#23
09/26/2003 (4:36 pm)
Now with the new pyconfig.h file i get these errors:
c:\gorpe\engine\python\intobject.h(41) : error C2632: 'long' followed by 'long' is illegal
c:\gorpe\engine\python\longobject.h(37) : error C2632: 'long' followed by 'long' is illegal
c:\gorpe\engine\python\longobject.h(38) : error C2632: 'long' followed by 'long' is illegal
c:\gorpe\engine\python\longobject.h(39) : error C2632: 'long' followed by 'long' is illegal
c:\gorpe\engine\python\longobject.h(40) : error C2632: 'long' followed by 'long' is illegal
c:\gorpe\engine\python\longobject.h(41) : error C2632: 'long' followed by 'long' is illegal
tgeaudio.cc


for 72 errors?
#24
09/27/2003 (6:08 am)
That PyConf is for Python 2.2. I've not yet upgraded to 2.3. That might be the problem.

I've also checked in my Python.h since it appears I've made modifications to it as well.
#25
09/27/2003 (10:08 am)
Ah, ok I think I am looking for the wrong things :) I am basically looking for around a 100 player max mini-mmorpg. And thought that with the GORPE i could do that :) Sorry to bother :)
#26
09/27/2003 (10:59 am)
@Shannara - That's the direction GORPE is headed. Unfortunatly, there are about a million things that need done before Torque is even close to ready for something like that and I'm only one person. GORPE tends to generate a lot of interest and people offering their help, to date none have followed through.

So I keep plugging away, working on the bits that interest me, or that folks like David Dougher and Fredrick Svenson request.

I DO suggest that if you're planning any kind of RGP, MMO or not, you use the GORPE source as a base, if only for the TerrainManager code. Otherwise you're going to butt heads against the small playfield/mission/zone size of Torque.
#27
09/27/2003 (12:17 pm)
Just wornding is there any other help you need beside programming?
#28
10/12/2003 (12:30 am)
Can someone help me with GORPE please.

I have downloaded the DR_0_1 and Head, tried compiling both, says im missing files.

I have downloaded SWIG and Python, and installed everything the way the instructions say.

THis is driving me crazy
#29
10/12/2003 (6:55 am)
Brian,

What files does it say you're missing? It's beginging to sound like I need to add the Python and SWIG files to CVS for the Win32 crowd. I've got to find out if I'm ALLOWED to do so under the GPL wihout jumping through a lot of hoops.

Here's some commonly missing files and their solutions:


Python.h - You're either haven't installed Python or the python22\include directory is not in your include path.

Python2.lib - - You're either haven't installed Python or the python22\lib directory is not in your include path.

Python22_d.lib - You're either haven't installed Python or the python22\lib directory is not in your include path. Also it's possible here that you have an incomplete installation of Python. To my knowledge the only way to get python22_d.lib is to build Python yourself. However you can copy python22.lib to Python22_d.lib provided you edit the Python.h and pyconf.h so that they don't declare any of the special debug functions.
#30
10/12/2003 (8:13 am)
Neither Python or SWIG are under the GPL license...

Just make sure _DEBUG isn't defined when including the Python headers... or haxor pyconfig.h... the relevant parts (on Windows) being:
#			ifdef _DEBUG
#				pragma comment(lib,"python23_d.lib")
#			else
#				pragma comment(lib,"python23.lib")
#			endif /* _DEBUG */

... and a little lower down:

#ifdef _DEBUG
#	define Py_DEBUG
#endif

Of course it's best to compile the python debug build so that you can actually run a debugger on your code...

-J
#31
10/12/2003 (12:32 pm)
Here are the files

Classview Information file when I load the GORPE Workspace

annot open source file: 'C:\sdl1\gorpe\engine\game\vehicles\guiSpeedometer.cc': No such file or directory
libpy.c
c:\sdl1\gorpe\engine\python\libpy.c(1) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgeaudio.cc
C:\sdl1\gorpe\engine\python\tgeaudio.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgeconsole.cc
C:\sdl1\gorpe\engine\python\tgeconsole.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgedgl.cc
C:\sdl1\gorpe\engine\python\tgedgl.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgegame.cc
C:\sdl1\gorpe\engine\python\tgegame.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgemath.cc
C:\sdl1\gorpe\engine\python\tgemath.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgenet.cc
C:\sdl1\gorpe\engine\python\tgenet.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgePyObject.cc
c:\sdl1\gorpe\engine\python\tgepyobject.cc(9) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgePython.cc
c:\sdl1\gorpe\engine\python\tgepython.cc(10) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgestring.cc
C:\sdl1\gorpe\engine\python\tgestring.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
tgevideo.cc
C:\sdl1\gorpe\engine\python\tgevideo.cc(26) : fatal error C1083: Cannot open include file: 'Python.h': No such file or directory
Error executing cl.exe.

Ive download and installed SWIG and Python, included the files according to the python instructions in the GORPE docs., but Im still getting errors.
#32
10/12/2003 (12:48 pm)
Brian,

See my message above.
#33
10/12/2003 (1:45 pm)
Ive done that tho. Maybe I missed something. Ill go back and rebuild Python and check everything.
#34
10/12/2003 (3:59 pm)
I got this error too:

Quote:cannot open source file: 'C:\sdl1\gorpe\engine\game\vehicles\guiSpeedometer.cc': No such file or directory
libpy.c
#35
10/12/2003 (5:37 pm)
J. Donovan

Do you have more comprehensive docs for exactly what we have to do? Its been 5 years since I used VC. I wouldnt bet that its im not understanding exactly what im supposed todo.
#36
10/12/2003 (6:39 pm)
I've checked in guiSpeedoometer.cc...

If you're getting errors about not being able to find python.h when you have python installed then you need to add your python include directory to your include path. It's under tools - Options - Directories in VC.
#37
10/13/2003 (3:08 pm)
Did the DR_0_1 update and it didnt give me guiSpeedmeter.cc

can you email to me? b_edey@hotmail.com

I hate CVS with a passion, I know its free but there are so many better types out there.
#38
10/13/2003 (4:23 pm)
Bleh, I didn't lay down the tag. :/ it's on it now. It's the same as from the Torqque HEAD if you have that.
#39
10/13/2003 (4:24 pm)
Hehe ok. Thanks J. you have been plenty paitent.
#40
10/13/2003 (4:48 pm)
I compile everything works except this error. LINK : fatal error LNK1104: cannot open file "python23_d.lib"

You are using Python22 so should I goto that version?