Retro World v.1.0

not really, i have been programming as a website developer in actionscript for a few years, and i did a game in lingo 3d years ago, i always wanted to experiment a bit more with 3d stuff so i found panda3d and began to learn python. after one month of try-error-try-error i more or less understood the fundamentals, and realized that python is REALLY a wonderfull language, so easy to learn, wich i recommend to everyone. What i want to do now is to adquire a more deep knowledge of object oriented concept, so i can better organize things.

I’m currently writting down another tilebased project for panda3d, wich i hope will be better structured and simplified, more like a tutorial, kind of a 3d rendered roguelike thing, paying attention to simple mechanics, more than the graphic stuff

cheers

yes, unfortunatelly there’s more than one bug in this
a main one is that changing retro mode to false does NOT work, there’s a conflict when randomly locating objects like trees and crates etc
the effects of ultra coffee and sleepless mind :unamused:

I get this error:

The debugged program raised the exception unhandled StandardError
"No graphics pipe is available! Your Config.prc file must name at least one valid panda display library via load-display or aux-display."
File: /usr/share/panda3d/direct/directnotify/Notifier.py, Line: 130
Break here?

Ideas?

JB Skaggs

no idea, never saw that kind of error before, sorry.
does other panda programs work in your system?
c

All the panda samples and of course my own games.

I am really interested in this game maybe I will try in windows, this was a Ubuntu 9.04 sys.

JB

at the begining of Main.py i set some instructions for the loadPrcFileData
via this command i also set the load-display to pandagl
looks to me that your problem has something to do with that?

i get error:

me@rix:~/Desktop/retroWorld_v1$ python src/Main.py 
DirectStart: Starting the game.
Known pipe types:
  glxGraphicsPipe
(all display modules loaded.)
:audio(error): _system->init(): Error initializing output device. 
:audio(error):   FmodAudioManager is not valid, will use NullAudioManager
:audio(error): _system->init(): Error initializing output device. 
:audio(error):   FmodAudioManager is not valid, will use NullAudioManager
____________________________________________________
Class Main
____________________________________________________
Class Picker
____________________________________________________
Class Terrain
    /height map saved in ../_media/maps/hmap.png
Traceback (most recent call last):
  File "src/Main.py", line 140, in <module>
    main=Main()
  File "src/Main.py", line 103, in __init__
    self.terrain=Terrain.Terrain(self)
  File "/home/me/Desktop/retroWorld_v1/src/Terrain.py", line 43, in __init__
    theme='random',randomTiles=True)
  File "/home/me/Desktop/retroWorld_v1/src/Map.py", line 183, in __init__
    tilepath=self.setupTiles(theme,randomTiles)
  File "/home/me/Desktop/retroWorld_v1/src/Map.py", line 209, in setupTiles
    if randomTiles==True: path=self.chooseRandomTiles(theme,2,len(self.tiles))
  File "/home/me/Desktop/retroWorld_v1/src/Map.py", line 232, in chooseRandomTiles
    self.tiles[i]['tex']=path+random.choice(dir)
  File "/usr/lib/python2.5/random.py", line 248, in choice
    return seq[int(self.random() * len(seq))]  # raises IndexError if seq is empty
IndexError: list index out of range

@jbskaggs:
If you look in src/Main.py, you’ll see this line:

loadPrcFileData( '', 'load-display pandadx9' )

Just comment out that line. :slight_smile:

I am in WIndows 7 testing the app- very nice and I love retro look. Helps me remember when my oldest duaghter was just starting out on video games learning Spyro.

Good job. When I get back to Ubuntu Ill try it with ProRsoft’s suggestion.

JB

well glad to see u could run it jbs :slight_smile:
treeform, the app doesnt contain any audio prog at all
so must be some conflict between your system and the FmodAudioLib (?)
c

Well, but that’s not a fatal error. His actual problem is the python exception.

Darn. Looks like this is another of snaptothegrid’s works that can’t be obtained from their original host. I may as well ask here as well then. Anyone have a copy of this?

there you go

Thank you very much! :slight_smile: