AlienBreed SDL/Pygame on MorphOS
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    Quick port (5 minutes...) of this:

    http://wiiab.sourceforge.net/

    This is the fixed python code to make it useable with MorphOS Python2.5:

    http://www.yomgui.fr/python/alienbreed.lha

    If not done yet, please install python and pygame module from these archives:

    http://www.yomgui.fr/python/Python-2.5.4-133.tar.bz2
    http://www.yomgui.fr/python/thirdparties/2.5/pygame-1.9.1release.morphos.lha

    Install Alienbreed data as written in the 'readme' file (in alienbreed directory)

    Have fun.
    And now... next project!
  • »13.11.10 - 00:12
    Profile Visit Website
  • Butterfly
    Butterfly
    Mi-Go
    Posts: 95 from 2003/9/18
    Cool!
    Nice surprise to find at 3:19 a.m. ;-)

    I'm gonna try it right now, thanks!

    M.
  • »13.11.10 - 01:21
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    Ah, one note: The fire/enter key is 'c' (on my keyboard).
    And now... next project!
  • »13.11.10 - 15:14
    Profile Visit Website
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    'c' key here too :)

    I've just tryed another PyGame : Mobius_Skies.
    It works...

    Just download Aos4 version, edit launch script and remove line with Os4 exe file.
    Then double click on Mobius_Skies icon
    http://www.os4depot.net/index.php?function=showfile&file=game/shmup/mobiusskies.lha
  • »13.11.10 - 18:01
    Profile Visit Website
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Wow. Works here on 500 MHz PMac. Scrolling is a bit jumpy but anyway, quite playable. :-)
  • »13.11.10 - 19:15
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > I've just tryed another PyGame : Mobius_Skies. It works...

    I tried 30 Python/PyGame games (including Alien Breed and Mobius Skies) from OS4Depot and of them found the following 5 to not work on MorphOS:

    http://os4depot.net/index.php?function=showfile&file=game/puzzle/funfield.lha
    http://os4depot.net/index.php?function=showfile&file=game/puzzle/spaceball_2000.lha
    http://os4depot.net/index.php?function=showfile&file=game/strategy/panspermia.lha
    http://os4depot.net/index.php?function=showfile&file=game/strategy/planetumi.lha
    http://os4depot.net/index.php?function=showfile&file=game/shmup/space_war.lha

    The remaining 25 games work flawlessly on MorphOS. Some of them are even not too bad ;-) Definitely worth a try are to my taste:

    Alien Breed, Banished Wings, Invention, Mobius Skies, Slingshot, Which Way is Up
  • »14.11.10 - 02:53
    Profile
  • Butterfly
    Butterfly
    Mi-Go
    Posts: 95 from 2003/9/18
    This two work as well

    http://www.pygame.org/project-Zombii-1009-.html
    http://www.pygame.org/project-Banished+Wings-1242-.html

    The first one is nice :-)
    Maybe I'll try to make it run fullscreen properly.

    M.
  • »14.11.10 - 10:27
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    >> Definitely worth a try are to my taste:
    >> [...] Banished Wings

    > http://www.pygame.org/project-Banished+Wings-1242-.html

    ;-)
  • »14.11.10 - 11:41
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    Addendum:

    > Definitely worth a try are to my taste: [...]

    I found a true gem: http://www.pygame.org/project-Ardentryst-596-.html

    It works fine on MorphOS. Unfortunately, I have to turn off most extra gfx effects in order to keep it halfway smoothly on my 1.5 GHz G4.
  • »14.11.10 - 13:44
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    For more fps, change the constant value REFRESH_RATE in file utils.py by using a bigger value (was set to 20, you can put 30 ;-))

    But anyway, when many sprites move, the fps falls to 20! (press key 'f' during the game to print the fps value)
    And now... next project!
  • »15.11.10 - 09:50
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    >> I found a true gem: http://www.pygame.org/project-Ardentryst-596-.html
    >> It works fine on MorphOS. Unfortunately, I have to turn off most extra
    >> gfx effects in order to keep it halfway smoothly on my 1.5 GHz G4.

    > For more fps, change the constant value REFRESH_RATE in file utils.py

    There is no such file in Ardentryst.
  • »15.11.10 - 10:20
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    @Andreas_Wolf: it's for alienbreed...
    Each game has its way to handle the synchro, just search for the mainloop code.

    It's python, easy to hack ;-)
    And now... next project!
  • »15.11.10 - 10:59
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > it's for alienbreed...

    Ah okay. I was assuming wrongly because according to threaded view you gave your hint as a reply to my Ardentryst posting. That annoying MorphZone forum bug says hello ;-)

    > Each game has its way to handle the synchro, just search for the mainloop code.

    You mean I just have to change a certain value in the Ardentryst code and suddenly I can run the game smoothly with full gfx effects? Hard to believe...
  • »15.11.10 - 11:10
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    _DaNi_
    Posts: 154 from 2010/5/4
    From: Barcelona, Spain
    can any help? i have this error:

    MorphOS:Games/alienbreed/setup> python extract.py
    Traceback (most recent call last):
    File "extract.py", line 30, in <module>
    from xavreader import *
    ImportError: No module named xavreader
  • »15.11.10 - 12:18
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > ImportError: No module named xavreader

    Check if you have xavreader.py in the same directory as extract.py. Yomgui's package does come with it, so it's strange that you get this error.
  • »15.11.10 - 12:36
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    Quote:


    Andreas_Wolf wrote:
    > Each game has its way to handle the synchro, just search for the mainloop code.

    You mean I just have to change a certain value in the Ardentryst code and suddenly I can run the game smoothly with full gfx effects? Hard to believe...


    Depends on many things but possible!
    Some game coders use delay's to sync things, so...
    But I've not taken a look inside Ardentryst code. I only seen that some effects bugs and saving setup crashes.
    And now... next project!
  • »15.11.10 - 14:36
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > Depends on many things but possible!

    I doubt it, albeit it would be fantastic.

    > I only seen that some effects bugs and saving setup crashes.

    Yesterday I somehow managed to turn off all extra effects and successfully have that setup saved without crash.
  • »15.11.10 - 15:00
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    _DaNi_
    Posts: 154 from 2010/5/4
    From: Barcelona, Spain
    Test this new engine, SDL + OpenGL
    http://www.pegasosforum.de/viewtopic.php?t=4446

    Efika Ready! Work fastestttt :P

    [ Editado por _DaNi_ el 2010/11/15 17:45 ]
  • »15.11.10 - 16:39
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > this new engine

    ...is not new at all. It's from 2002:

    http://web.archive.org/web/20030212181418/http://projectz.ath.cx/?id=70
  • »15.11.10 - 17:31
    Profile
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    ardentryst seem's nice, but saving options fail with an errno 26.
    And the game is too slow with all effects on.
    Configure file is not really human friendly ! :)

    Ok, I modified adentryst.py file a bit to close opened .dat configure file. And now I can save prefs. The game is more playable with all effects disabled...

    Well, I hope all python devs don't code like that !

    OMG !!! Python check for indentation !??? What the FUCK !!!???

    I tryed to activate HW acceleration, it seem's a bit better too, but I'm not really sure. I wonder why they didn't provided HW acceleration as an option !? Really thoses guys suxx ! :)

    Ermmm.... Well CPU is at 100%, I guess they never use functions like SDL_Delay (in C + SDL) for main loop ! ;)

    SixK

    [ Edited by SixK on 2010/11/15 21:04 ]
  • »15.11.10 - 19:21
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > saving options fail with an errno 26.

    I really don't know what went right, but I was able to have my options saved without error. I remember that I left the screenmode options untouched (so running in window mode) and just switched off all effects.

    > the game is too slow with all effects on.

    Yes, I play with all effects off and it's only just playable on my 1.5 GHz G4. I can imagine that on a Pegasos II with 1.0 GHz G4 it's not playable at all.

    > I modified adentryst.py file a bit to close opened .dat configure file.
    > And now I can save prefs.

    Superb :-) Could you write in more detail what you changed in that file please?

    [ Edited by Andreas_Wolf on 2010/11/15 21:52 ]
  • »15.11.10 - 19:42
    Profile
  • Butterfly
    Butterfly
    SixK
    Posts: 72 from 2004/11/16
    Well, You just have to add optionsfile.close() when optionsfile File Pointer is not used anymore (about 5 or 6 lines after the open function).

    I can confirm that Hardware acceleration is not used in this game and pygame.time.delay() function is never used.

    This game is really not optimised ! ;(

    I've seen that pygame have an overlay function, that's a nice feature.
  • »15.11.10 - 20:22
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    About not closed files issue:

    Since few years I see more and more developpers using an implementation dependent behaviour of 'open' (or fopen): on linux if you try to open in write mode a file, then try again to open it in the same process without closing it before, it works. But not with MorphOS libnix implementation...

    This behavious is more and more used everywhere and cause me to loose all my hair! :-(

    Hopefully, in python 2.6 and more, they have introduced the 'with' expression, the close automatically the file when you exit of the 'with' expression block. (except if the silly coder try to open again the file inside it!)

    [ Edited by Yomgui on 2010/11/15 23:19 ]
    And now... next project!
  • »15.11.10 - 21:18
    Profile Visit Website
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Andreas_Wolf
    Posts: 12150 from 2003/5/22
    From: Germany
    > You just have to add optionsfile.close() when optionsfile File Pointer is no
    > used anymore (about 5 or 6 lines after the open function).

    Thanks, works a treat. Funnily, the game recognizes having been modified and won't allow upload of scores. But just for the purpose of changing options if needed a modified version of that file will do well. Thanks again.
  • »15.11.10 - 21:27
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    Yomgui
    Posts: 348 from 2004/8/31
    From: Québec - Canada
    @SixK: 'close' is a forbiden function in ardentryst code...!
    They have never called it... ouch.

    this code is a tutorial on how to write a bad python script!

    [ Edited by Yomgui on 2010/11/15 23:58 ]
    And now... next project!
  • »15.11.10 - 21:55
    Profile Visit Website