Raydium 3D Game Engine

Official forum for everything about Raydium, ManiaDrive, MeMak, ...
It is currently Thu Mar 28, 2024 1:20 pm

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: sprites commit
PostPosted: Tue Jun 24, 2008 3:41 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
I just have commit a new system for 2D sprites.
Can you test if it compiles in your machines?
Also there is a new demo called test-sprite.c but it needs a texture. Not sure if the texture has uploaded right, so if you have problems downloading it you can get it form here:
http://87.216.217.107/raydium/sprite1-test.tga
If it's not uploaded, Xfennec could you take care of it?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 24, 2008 7:37 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Hello Vicente,

I would like test your work. But when I try to compil it, I have errors :
Code:
 ./ocomp.sh test6.c
In file included from raydium/index.c:66,
                 from test6.c:13:
raydium/sprites.c: Dans la fonction «raydium_sprite_load» :
raydium/sprites.c:241: attention : déclaration implicite de la fonction « «raydium_ode_object_delete_name» »
raydium/sprites.c:242: attention : déclaration implicite de la fonction « «raydium_ode_object_create» »
raydium/sprites.c:245: attention : déclaration implicite de la fonction « «raydium_ode_object_box_add» »
raydium/sprites.c:245: erreur: «RAYDIUM_ODE_STANDARD» undeclared (first use in this function)
raydium/sprites.c:245: erreur: (Each undeclared identifier is reported only once
raydium/sprites.c:245: erreur: for each function it appears in.)
raydium/sprites.c:247: attention : déclaration implicite de la fonction « «raydium_ode_element_move_name_3f» »
raydium/sprites.c: Dans la fonction «raydium_sprite_move» :
raydium/sprites.c:348: attention : déclaration implicite de la fonction « «raydium_ode_object_move_3f» »
raydium/sprites.c: Dans la fonction «raydium_sprite_free» :
raydium/sprites.c:434: attention : déclaration implicite de la fonction « «raydium_ode_object_delete» »
raydium/sprites.c: Dans la fonction «raydium_sprite_copy» :
raydium/sprites.c:532: erreur: «RAYDIUM_ODE_STATIC» undeclared (first use in this function)
In file included from raydium/ode.c:10,
                 from raydium/index.c:85,
                 from test6.c:13:
raydium/headers/ode.h: Hors de toute fonction :
raydium/headers/ode.h:668: erreur: conflicting types for «raydium_ode_object_box_add»
raydium/headers/ode.h:668: note: an argument type that has a default promotion can»t match an empty parameter name list declaration
raydium/sprites.c:245: erreur: previous implicit declaration of «raydium_ode_object_box_add» was here
raydium/headers/ode.h:838: attention : conflicting types for «raydium_ode_element_move_name_3f»
raydium/sprites.c:247: attention : previous implicit declaration of «raydium_ode_element_move_name_3f» was here
raydium/headers/ode.h:903: attention : conflicting types for «raydium_ode_object_move_3f»
raydium/sprites.c:348: attention : previous implicit declaration of «raydium_ode_object_move_3f» was here
raydium/headers/ode.h:1414: erreur: conflicting types for «raydium_ode_object_delete»
raydium/sprites.c:434: erreur: previous implicit declaration of «raydium_ode_object_delete» was here
raydium/headers/ode.h:1420: erreur: conflicting types for «raydium_ode_object_delete_name»
raydium/sprites.c:241: erreur: previous implicit declaration of «raydium_ode_object_delete_name» was here
./ocomp.sh: 14: ./test: not found


If I remove #include "sprites.c" in "index.c" all work good.

I try to compil "test-sprite.c" but it make a lot of errors.

I use revision 633 on ubuntu hardy.

Totoro


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 24, 2008 8:58 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Can you try now?, i have done a new commit.
Thanks for testing


Top
 Profile  
 
 Post subject: bad news
PostPosted: Tue Jun 24, 2008 9:49 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
hello,

With rev 634 i have compile errors:


Quote:
In file included from L:\raydium_sdk\raydium\raydium\index.c:66:
L:\raydium_sdk\raydium\raydium\/sprites.c: In function `raydium_sprite_load':
L:\raydium_sdk\raydium\raydium\/sprites.c:245: error: `RAYDIUM_ODE_STANDARD' undeclared (first use in this function)
L:\raydium_sdk\raydium\raydium\/sprites.c:245: error: (Each undeclared identifier is reported only once
L:\raydium_sdk\raydium\raydium\/sprites.c:245: error: for each function it appears in.)
L:\raydium_sdk\raydium\raydium\/sprites.c: In function `raydium_sprite_copy':
L:\raydium_sdk\raydium\raydium\/sprites.c:532: error: `RAYDIUM_ODE_STATIC' undeclared (first use in this function)
In file included from L:\raydium_sdk\raydium\raydium\index.c:68:
L:\raydium_sdk\raydium\raydium\/php.c: At top level:
L:\raydium_sdk\raydium\raydium\/php.c:133: warning: excess elements in struct initializer
L:\raydium_sdk\raydium\raydium\/php.c:133: warning: (near initialization for `raydium_sapi_module')
In file included from L:\raydium_sdk\raydium\raydium\/ode.c:10,
from L:\raydium_sdk\raydium\raydium\index.c:85:
L:\raydium_sdk\raydium\raydium\/headers/ode.h:668: error: conflicting types for 'raydium_ode_object_box_add'
L:\raydium_sdk\raydium\raydium\/headers/ode.h:668: note: an argument type that has a default promotion can't match an empty parameter name list declaration
L:\raydium_sdk\raydium\raydium\/sprites.c:245: error: previous implicit declaration of 'raydium_ode_object_box_add' was here
L:\raydium_sdk\raydium\raydium\/headers/ode.h:838: error: conflicting types for 'raydium_ode_element_move_name_3f'
L:\raydium_sdk\raydium\raydium\/sprites.c:247: error: previous implicit declaration of 'raydium_ode_element_move_name_3f' was here
L:\raydium_sdk\raydium\raydium\/headers/ode.h:903: error: conflicting types for 'raydium_ode_object_move_3f'
L:\raydium_sdk\raydium\raydium\/sprites.c:348: error: previous implicit declaration of 'raydium_ode_object_move_3f' was here



Bad day :(

Everything compile ok at rev 631.

Have a "nice" day ?

Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 24, 2008 10:58 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
New commit. Fixed.
I have checked it in a new folder from zero and now it works.
Please check it. Thanks.
Also i have noticed the new texture has been uploaded right. So you can check the new demo test-sprite.c


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 6:24 am 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
hello

rev 635 some errors:

Quote:
L:\raydium_sdk\raydium\raydium\/headers/ode.h:668: error: conflicting types for 'raydium_ode_object_box_add'
L:\raydium_sdk\raydium\raydium\/headers/ode.h:668: note: an argument type that has a default promotion can't match an empty parameter name list declaration
L:\raydium_sdk\raydium\raydium\/sprites.c:245: error: previous implicit declaration of 'raydium_ode_object_box_add' was here
L:\raydium_sdk\raydium\raydium\/headers/ode.h:838: error: conflicting types for 'raydium_ode_element_move_name_3f'
L:\raydium_sdk\raydium\raydium\/sprites.c:247: error: previous implicit declaration of 'raydium_ode_element_move_name_3f' was here
L:\raydium_sdk\raydium\raydium\/headers/ode.h:903: error: conflicting types for 'raydium_ode_object_move_3f'
L:\raydium_sdk\raydium\raydium\/sprites.c:348: error: previous implicit declaration of 'raydium_ode_object_move_3f' was here


Have a nice day
Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 7:35 am 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
not for me, sorry.
Can you test in a new folder?
If you done it already, have you done the configure?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 6:51 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,

I Found the problem :P and correct it (include order, ode include was after sprites.c).


Application works here on windows, quite funny.

Have a nice day now :D

Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 7:20 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
great then!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 8:51 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Sorry, with last svn test6.c works well, but test-sprites.c don't :?

Code:
 ./comp.sh test-sprite.c
Dans le fichier inclus à partir de raydium/headers/../ode.h:14,
          à partir de raydium/headers/ode.h:3,
          à partir de raydium/ode.c:10,
          à partir de raydium/index.c:84,
          à partir de test-sprite.c:10:
raydium/php/../ode/include/ode/ode.h:28:24: erreur: ode/config.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:29:31: erreur: ode/compatibility.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:30:24: erreur: ode/common.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:31:25: erreur: ode/contact.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:32:23: erreur: ode/error.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:33:24: erreur: ode/memory.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:34:25: erreur: ode/odemath.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:35:24: erreur: ode/matrix.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:36:23: erreur: ode/timer.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:37:26: erreur: ode/rotation.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:38:22: erreur: ode/mass.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:39:22: erreur: ode/misc.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:40:25: erreur: ode/objects.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:41:24: erreur: ode/odecpp.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:42:33: erreur: ode/collision_space.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:43:27: erreur: ode/collision.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:44:34: erreur: ode/odecpp_collision.h : Aucun fichier ou dossier de ce type
raydium/php/../ode/include/ode/ode.h:45:28: erreur: ode/export-dif.h : Aucun fichier ou dossier de ce type
In file included from raydium/headers/ode.h:3,
                 from raydium/ode.c:10,
                 from raydium/index.c:84,
                 from test-sprite.c:10:
raydium/headers/../ode.h:81: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «raydium_ode_world»
raydium/headers/../ode.h:82: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «raydium_ode_space»
raydium/headers/../ode.h:83: erreur: expected «=», «,», «;», «asm» or «__attribute__» before «raydium_ode_contactgroup»
raydium/headers/../ode.h:104: erreur: expected specifier-qualifier-list before «dReal»
raydium/headers/../ode.h:119: erreur: expected specifier-qualifier-list before «dReal»
raydium/headers/../ode.h:135: erreur: expected specifier-qualifier-list before «dReal»

It's just a sample of errors, more of them after...

I have trash raydium folder and checkout it... same errors...

Totoro


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 25, 2008 10:58 pm 
Offline
User avatar

Joined: Thu Sep 29, 2005 2:59 pm
Posts: 828
Are you sure you have updated to the last commit (from ouille)?
It's revision 636


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 26, 2008 1:11 pm 
Offline

Joined: Sun Oct 09, 2005 10:46 pm
Posts: 759
Hello,
rev 636 tested here (windows) with static and dynamic link.

I'll update the next windows sdk with static link.

Everything ok in both cases.

Have a nice day.

Ouille


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 26, 2008 5:38 pm 
Offline

Joined: Sat Oct 29, 2005 12:43 pm
Posts: 65
Hello,

Yes, version 636 (I have all deleted and checkout, and svn up to be sure ^^)

I try it on my laptop and it works fine :D

My 2 pc run ubuntu hardy heron... So I must be search why one of two don't want run test-sprite ^^

Totoro


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 40 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group