Author Topic: Meteoroid3D  (Read 14742 times)

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #20 on: February 07, 2015, 05:28:07 pm »
Okay, I have a theory, why it crashes on the GCW without debug informations.

Could someone please test this version?

http://ziz.gp2x.de/downloads/meteoroid3d/meteoroid3d_test.opk

Thanks a lot!

Ziz

This release works without problems (with the exception of the sound volume too low! :P )
Nice!

@Sound: That should only be the case for the default setting. You can adjust it with the shoulder buttons!
I am a leaf on the wind - watch how I soar. Wash

Gab1975

  • Posts: 1165
Re: Meteoroid3D
« Reply #21 on: February 07, 2015, 06:24:40 pm »
@Sound: That should only be the case for the default setting. You can adjust it with the shoulder buttons!

Of course... it's also specified in the onscreen instructions... sometimes I'm a little absent-minded ! :P

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #22 on: February 07, 2015, 06:40:08 pm »
I got some 3D glasses today just to try this :)

I found the 3D good but it depends on how close the filters are to your glasses.

Could you allow the user to manually set the colours to allow fine tuning? That would allow anyone who takes the time to get a perfect 3D result!

Also, I struggled with aiming. Could you add a crosshair for us bad aimers?

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #23 on: February 07, 2015, 07:00:32 pm »
I got some 3D glasses today just to try this :)
Nice :D

Quote
I found the 3D good but it depends on how close the filters are to your glasses.
Could you allow the user to manually set the colours to allow fine tuning? That would allow anyone who takes the time to get a perfect 3D result!
Hm, of course. But I will need some time for this. At least it is working now on the GCW at all! :D

Quote
Also, I struggled with aiming. Could you add a crosshair for us bad aimers?
I am not sure, whether this helps much... But I will have a try.
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #24 on: February 07, 2015, 10:53:32 pm »
I implemented the requested crosshair, furthermore if you target a meteoroid, the crosshair gets bigger.

Furthermore keep in mind, that Meteoroid3d supports C4A, an online score system!

So, if you don't have a C4A account yet, create one with the "Sparrow C4A Manager" (http://ziz.gp2x.de/downloads/Sparrow-C4A-Manager/Sparrow-C4A-Manager.opk or direct download with the OPKManager). All you need is an internet connecton on your GCW.

When you play and there is a connection, it will submit your best score at game end. If there is no conneciton, the score is cached and can be submitted with the named Sparrow C4A Manager or the next time you exit Meteoroid3d with wifi enabled. ;)

You can have a look at the highscore at this page http://c4a.openpandora.org/#/meteoroid3d or with the Sparrow C4A Manager on your GCW.

Don't pass up the golden opportunity to kick some pandora users asses! :>

Greetings, Ziz
« Last Edit: February 07, 2015, 10:59:09 pm by Ziz »
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #25 on: February 07, 2015, 11:14:51 pm »
Now the opk in the OP doesn't work again :(

The above test release works though.

Seg fault again

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #26 on: February 07, 2015, 11:28:41 pm »
Hm, I did uploaded a new version, where I try to fix the issue.

However if it still crashes, could someone give me a debug output, so that I know, whether it stil crashes at that SDL_FillRect?
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #27 on: February 07, 2015, 11:42:59 pm »
Works for me too now.
Thanks for the crosshairs, my current highscore is 1525 so I'm not sure I'm in contention for a highscore but I'll give it a go   ;D
« Last Edit: February 07, 2015, 11:45:18 pm by David Knight »

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #28 on: February 08, 2015, 12:04:26 am »
Works for me too now.
Thanks for the crosshairs, my current highscore is 1525 so I'm not sure I'm in contention for a highscore but I'll give it a go   ;D
Great!

If my assumption is right, I should not call SDL_Displayformat if the surface is locked. So I unlock it first. I tried to implement this direct to sparrow. Could someone try this new version? I am just interested, whether it starts, it doesn't change anything ingame. ;)

http://ziz.gp2x.de/downloads/meteoroid3d/meteoroid3d_new.opk
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #29 on: February 08, 2015, 12:16:25 am »
This also works fine :)

You beat my score though :(

Also, I notice only horizontal OR vertical movement is possible, could you allow diagonal movement as well?
« Last Edit: February 08, 2015, 12:20:08 am by David Knight »

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #30 on: February 08, 2015, 12:41:46 am »
This also works fine :)
Excellent!

Quote
You beat my score though :(
I am the developer... I HOPE that I stay the best for a long time. :P

Quote
Also, I notice only horizontal OR vertical movement is possible, could you allow diagonal movement as well?
Of course! In fact I thought, this is already possible, but I did just the animation for this, not the movement. >.<

The recent version fixes this.
I will go berserk, if this crashes again...
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #31 on: February 08, 2015, 01:07:39 am »
It works!

But A-stick doesn't do diagonals, only D-Pad.

Could you apply the same changes to analog joystick code?

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #32 on: February 08, 2015, 11:04:45 am »
It works!

But A-stick doesn't do diagonals, only D-Pad.

Could you apply the same changes to analog joystick code?
Hm, it should work with analog stick out of the box. So I need to have a look in my backgroud library, which handles this. -_-
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #33 on: February 08, 2015, 12:29:45 pm »
Could you apply the same changes to analog joystick code?
Does it work now?
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #34 on: February 08, 2015, 01:37:31 pm »
Segfault  :(

A-stick worked on the previous release but not diagonally.

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #35 on: February 08, 2015, 01:53:33 pm »
Segfault  :(

A-stick worked on the previous release but not diagonally.
Okay. Could you debug it?
I am a leaf on the wind - watch how I soar. Wash

David Knight

  • Posts: 577
Re: Meteoroid3D
« Reply #36 on: February 08, 2015, 02:04:50 pm »
Segfault  :(

A-stick worked on the previous release but not diagonally.
Okay. Could you debug it?
Identical stack trace, segfaults at SDL_Fillrect again.

Code: [Select]
opendingux:/media/data/local/home/meteoroid3d/meteoroid3d # LD_LIBRARY_PATH=. gdb .
/meteoroid3d
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-gcw0-linux-uclibc".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /media/data/local/home/meteoroid3d/meteoroid3d/meteoroid3d...d        one.
(gdb) run
Starting program: /media/data/local/home/meteoroid3d/meteoroid3d/meteoroid3d
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
Found 1 Joysticks
  Opened Joystick 0 (linkdev device (Analog 2-axis 8-button 2-hat))
Support for ogg: Yes
Support for mp3: No (Mixer not built with MP3 support)
Support for flac: No (Mixer not built with MP3 support)
Support for mod: Yes
Try to open Sound: Success
  8 channels are avaible as default

Program received signal SIGSEGV, Segmentation fault.
0x77a407c4 in SDL_FillRect () from /usr/lib/libSDL-1.2.so.0
(gdb) bt
#0  0x77a407c4 in SDL_FillRect () from /usr/lib/libSDL-1.2.so.0
#1  0x777dc064 in spFontChangeLetter () from ./libsparrow3d.so
#2  0x777dc23c in spFontInternalAddOneCharacter.part.2 () from ./libsparrow3d.so
#3  0x777dd370 in spFontAdd () from ./libsparrow3d.so
#4  0x004047e0 in reload_font ()
#5  0x00406028 in set_color ()
#6  0x00406564 in init_stereo ()
#7  0x004036cc in main ()
(gdb) quit
A debugging session is active.

        Inferior 1 [process 570] will be killed.

Quit anyway? (y or n)
« Last Edit: February 08, 2015, 02:09:00 pm by David Knight »

zear

  • * Moderator
  • Posts: 2381
Re: Meteoroid3D
« Reply #37 on: February 08, 2015, 02:09:01 pm »
I've moved this thread to "Development" section of the boards, as the game is clearly not release ready and there is an ongoing development talk.

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #38 on: February 08, 2015, 02:33:55 pm »
I tested it on my go2x - with the same result!

Which is good, because I can now (printf) debug it.
I am a leaf on the wind - watch how I soar. Wash

Ziz (OP)

  • Posts: 284
    • http://ziz.gp2x.de
Re: Meteoroid3D
« Reply #39 on: February 08, 2015, 02:54:12 pm »
Fixed it.

Sometimes I should read my own documentation:
http://ziz.gp2x.de/documentation/files/sparrowCore-h.html#spSetDefaultWindowSize

To quote myself:

Quote from: spSetDefaultWindowSize
Sets defaults values for the window.  Only for PC (not handhelds!) and only useable before the spInitCore-function.

I called this function after spInitCore, set the window size to 800x480, the gcw wasn't able to create such a fullscreen surface and returned NULL. However from time to time I tested the game with the resolution 320x240 - in that cases it worked. ;)
I am a leaf on the wind - watch how I soar. Wash