Les membres ayant 30 points peuvent parler sur les canaux annonces, projets et hs du chat.
La shoutbox n'est pas chargée par défaut pour des raisons de performances. Cliquez pour charger.

Forum Casio - Autres questions


Index du Forum » Autres questions » Erreur version add-in
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Erreur version add-in

Posté le 31/01/2015 19:47

Bonjour, je viens de programmer un add-in, et, pour le tester, je l'ai envoyé sur ma graph 35+ USB os de 75 sh4 (02.02.2201). Au démarrage de celui-ci, il m'affiche un beau panneau "Erreur Version"; Cela vous est-il déjà arrivé ? Si oui, qu'avez-vous fait pour que cela marche ?
J'ai eu beau chercher, je n'ai pas trouvé.


Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 22:09 | #


Je ne met que les fonctions ou aussi les variables ?

Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Dodormeur Hors ligne Ancien rédacteur Points: 3965 Défis: 84 Message

Citer : Posté le 31/01/2015 22:11 | #


Ben étant donné que je l'ai écris, tu ne l'as même pas entendu

Je trouve que cela encombre, cela peut faire croire (si on jette un coup d’œil rapide) qu'il prend quand même un argument, alors que () est très clair, pas d'argument.

Et c'est comme le fait de ne pas mettre le nom des arguments dans le .h, j'ai toujours entendu que c'était une mauvaise idée et assez illisible, mais chacun est juge

Pokemon !!!!!! => pokemon stadium/battle

mes meilleurs jeux
Cliquer pour enrouler
un jeu avec des niveaux de gris mais compatible SH4 (mais en monochrome pour les SH4) => bomberman
envie de plonger dans la mer pour ramasser des tresors? => ballon sea
envie de sauver l'univers dans un jeu avec une longue durée de vie? => saviors of the future
un add-in addictif avec plein de secret et de trophées => evasion survival
un shmup bien dur et sadique => saviors 2

projets
Cliquer pour enrouler

pokemon
Cliquer pour enrouler



encodage des données de combat (sprite, attaques et nom)
   100%

systeme de combat
   100%

encodage des données de pokemon (niveau d'apprentisage et evolution)
   100%


moteur de la carte
   50%

level design
   1%

finition de pokemon jade
   42%

merci a tout le monde pour son soutien


projets que je soutiens
Cliquer pour enrouler
minecraft de limachi
zelda prizm de smashmaster (en esperant qu'il puisse le finir)
les tests de marmotti
un RPG de dark storm (dont je connais le nom, mais pas vous ) Arcuz !
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 22:13 | #


Donc, en gros, ceci marcherait :

#ifndef _Geometry_H
    #define _Geometry_H

unsigned int key;
void Credits(void);  
int Niveau1(int score);
#endif    


Ajouté le 31/01/2015 à 22:15 :
(C'est le Geometry.h, et dans le Geometry.c j'ai bien mis include "Geometry.h" )

Ajouté le 31/01/2015 à 22:20 :
Je suis embêtant, je sais, mais cela ne marche pas :
Le Geometry.h :
#ifndef _Geometry_H
    #define _Geometry_H

unsigned int key;
void Credits(void);  
int Niveau1();
#endif    


Et le Geometry.c :

#include "fxlib.h"
#include "MonochromeLib.h"
#include "Geometry.h"

void Credits(void)
{
    int x;
    for (x=63;x>-387;x--)
    {
        ML_clear_vram();
        PrintXY(45,x,"Credits",0);
        PrintMini(33,x+70,"Programmeur :",0);
        PrintMini(25,x+80,"Legolas",0);
        PrintMini(45,x+150, "Idee de :",0);
        PrintMini(25,x+160,"Legolas",0);
        PrintMini(30,x+230, "Auteur original :",0);
        PrintMini(25,x+240,"Robert Tapala",0);
        PrintMini(35,x+310, "Titre original :",0);
        PrintMini(25,x+320,"Geometry Dash",0);
        PrintMini(21,x+390,"Programme a l'occas-",0);
        PrintMini(21,x+400,"ion du Casio Progra-",0);
        PrintMini(21,x+410,"mming Contest n14",0);
        ML_rectangle(0,0,128,10,0,0,1);
        ML_rectangle(128,64,0,54,0,0,1);
        ML_rectangle(0,0,20,64,0,0,1);
        ML_rectangle(108,0,128,64,0,0,1);
        ML_line(0,64,20,54,0);
        ML_line(128,64,108,54,0);
        ML_line(0,0,20,10,0);
        ML_line(128,0,108,10,0);
        ML_display_vram();
        
        if (IsKeyUp(KEY_CTRL_SHIFT))
        {
            Sleep(25);
        } else
        {
            x--;
        }
    }

    ML_clear_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 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55};
    unsigned int score=0;
    unsigned int loop2;
    unsigned int testShift=0;
    int matrice[6][1000]; //0 pour rien, 1 pour pic, 2 pour carre, 3 pour la boule
    unsigned int loop;
    unsigned int testMat;
    unsigned int tour=0;
    int shift=0;
    unsigned int positionY= 0;
    ML_clear_vram();
    PrintXY(10,27,"Chargement en cours",0);
    ML_display_vram();

    //INITIALISATION
    for (loop=0; loop<1000;loop++)
    {
        for (loop2=0;loop2<6;loop2++)
        {
            matrice[loop][loop2]=0;
        }
    }
    matrice[0][21]=1;
    matrice[0][42]=1;
    matrice[0][43]=1;
    matrice[0][60]=1;
    matrice[0][61]=1;
    matrice[0][62]=2;
    matrice[0][63]=2;
    matrice[0][64]=2;
    matrice[0][65]=2;
    matrice[0][66]=2;
    matrice[0][67]=2;
    matrice[0][68]=2;
    matrice[0][69]=2;
    matrice[1][69]=1;
    matrice[0][80]=1;
    matrice[0][81]=2;
    matrice[0][82]=1;
    matrice[1][83]=2;
    matrice[0][84]=1;
    matrice[3][85]=2;
    matrice[0][95]=1;
    matrice[1][97]=2;
    matrice[0][100]=1;
    matrice[0][101]=1;
    matrice[0][108]=2;
    matrice[1][110]=2;
    matrice[2][112]=2;
    matrice[3][114]=2;
    matrice[4][116]=2;
    matrice[4][117]=2;
    matrice[2][119]=2;
    matrice[0][118]=1;
    matrice[2][120]=2;
    matrice[2][121]=2;
    matrice[2][122]=1;
    matrice[3][123]=2;
    matrice[3][124]=1;
    matrice[3][125]=2;
    matrice[3][126]=1;
    matrice[3][127]=2;
    matrice[2][128]=2;
    matrice[1][129]=2;
    matrice[0][130]=1;
    matrice[0][131]=1;
    matrice[0][140]=2;
    matrice[0][141]=2;
    matrice[0][142]=2;
    matrice[0][143]=2;
    matrice[0][144]=2;
    matrice[0][145]=1;
    matrice[0][146]=2;
    matrice[0][147]=2;
    matrice[0][148]=2;
    matrice[0][149]=1;
    matrice[0][157]=1;
    matrice[0][158]=1;
    matrice[1][159]=2;
    matrice[0][160]=1;
    

    while (1)
    {
        
        if ( ((IsKeyDown(KEY_CTRL_SHIFT) && positionY<5) || shift==-1 ) && testShift==0)
        {
            positionY++;
            if ( shift==0) {shift=-1;}
            else
            {
                shift=0;
                testShift=1;
            }    
        }
        else
        {
            if (positionY!=0 && matrice[positionY-1][tour-1]!=2)
            {
                positionY--;
            }
            else
            {
                testShift=0;
            }
            
        }

        ML_clear_vram();
        switch (positionY)
        {
        case 0: ML_filled_circle(8,58,2,1);
            break;
        case 1: ML_filled_circle(8,48,2,1);
            break;
        case 2: ML_filled_circle(8,38,2,1);
            break;
        case 3: ML_filled_circle(8,28,2,1);
            break;
        case 4: ML_filled_circle(8,18,2,1);
            break;
        case 5: ML_filled_circle(8,8,2,1);
            break;    
        }
        
        if (matrice[positionY][tour]==1 || matrice[positionY][tour-1]==2)
        {
             break; //******************************************************************************************
        }
        //ML_rectangle(loop*10,58,loop*10+10,48,0,0,1);

        for (loop=1; loop<18;loop++)
        {
            for (loop2=0; loop2<7;loop2++)
            {
                switch (loop2)
                {
                    case 0: testMat=5;
                        break;
                    case 1: testMat=4;
                        break;
                    case 2: testMat=3;
                        break;
                    case 3: testMat=2;
                        break;
                    case 4: testMat=1;
                        break;
                    case 5: testMat=0;
                        break;
                }
                switch (matrice[testMat][loop+tour-1])
                {
                    case 1: ML_line(loop*10+5,(loop2+1)*10+8,loop*10+5,(loop2+1)*10-2,1);
                        ML_line(loop*10+4,(loop2+1)*10+8,loop*10+4,(loop2+1)*10,1);
                        ML_line(loop*10+3,(loop2+1)*10+8,loop*10+3,(loop2+1)*10+2,1);
                        ML_line(loop*10+6,(loop2+1)*10+8,loop*10+6,(loop2+1)*10,1);
                        ML_line(loop*10+7,(loop2+1)*10+8,loop*10+7,(loop2+1)*10+2,1);
                        break;
                    case 2: ML_rectangle(loop*10,(loop2+1)*10+8,loop*10+10,(loop2+1)*10-2,1,0,1);
                        break;
                    case 5: ML_rectangle(loop*10,55,loop*10+10,54,0,0,3);
                        break;
                }
            }
        }
        ML_bmp_or ( fond, 0, 0, 128, 64);
        ML_display_vram();
        tour++;
        Sleep(110);
    }
    
    
    ML_display_vram();


    return score;
}

int AddIn_main(int isAppli, unsigned short OptionNum)
{
    const unsigned char imgMenu[]={
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe,
    0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2,
    0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa,
    0x50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0x83, 0xff, 0xff, 0xff, 0xff, 0xe7, 0xff, 0xff, 0xe0, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0x79, 0xff, 0xff, 0xff, 0xff, 0xd3, 0xff, 0xff, 0xde, 0x7f, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xfe, 0x81, 0x87, 0x87, 0x1, 0xe1, 0xd3, 0x8c, 0xcf, 0xa0, 0x41, 0xe1, 0xcf, 0x3f, 0xea,
    0x57, 0xfe, 0x81, 0x73, 0x72, 0xec, 0xdc, 0xb9, 0x62, 0x27, 0xa0, 0x3c, 0xdc, 0xa0, 0x9f, 0xea,
    0x57, 0xfe, 0x98, 0x88, 0x88, 0x92, 0x22, 0x10, 0x82, 0x27, 0x9c, 0xa2, 0x22, 0x24, 0x9f, 0xea,
    0x57, 0xfe, 0x88, 0xf8, 0x88, 0x92, 0x3e, 0x52, 0x9a, 0x27, 0xc2, 0x22, 0x22, 0x24, 0x9f, 0xea,
    0x57, 0xfe, 0x88, 0x80, 0x88, 0x92, 0x20, 0x52, 0x9a, 0x27, 0xc2, 0x22, 0x22, 0x2a, 0x9f, 0xea,
    0x57, 0xfe, 0x70, 0x78, 0x70, 0x92, 0x1e, 0x48, 0x99, 0xe7, 0xbc, 0x22, 0x1c, 0x11, 0x1f, 0xea,
    0x57, 0xff, 0x1, 0x1, 0x2, 0x0, 0x40, 0x60, 0x1c, 0x27, 0x80, 0x0, 0x40, 0xc0, 0x3f, 0xea,
    0x57, 0xff, 0x83, 0x81, 0x87, 0x24, 0x60, 0x71, 0x1e, 0x27, 0xc0, 0xcc, 0x61, 0xe6, 0x7f, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfd, 0xc7, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc, 0xf, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe, 0x1f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 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, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa,
    0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfa,
    0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2,
    0x7f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfe,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};


    unsigned int key;
    unsigned int pos=9;

    


    ML_bmp_or ( imgMenu, 0, 0, 128, 64);
    ML_display_vram();

    while (IsKeyUp(KEY_CTRL_EXIT))
    {
        pos=9;
        ML_clear_vram();
        ML_bmp_or ( imgMenu, 0, 0, 128, 64);
        ML_display_vram();

        while (IsKeyDown(KEY_CTRL_SHIFT)){}

        while (IsKeyUp(KEY_CTRL_SHIFT))
        {
            if (IsKeyDown(KEY_CTRL_RIGHT) && pos!=85)
            {
                ML_clear_vram();
                pos+=38;
                ML_rectangle(pos,25,pos+32,55,2,1,-1);
                ML_bmp_or ( imgMenu, 0, 0, 128, 64);
                ML_display_vram();
                Sleep(400);
            }
            if (IsKeyDown(KEY_CTRL_LEFT) && pos!=9)
            {
                ML_clear_vram();
                pos-=38;
                ML_rectangle(pos,25,pos+32,55,2,1,-1);
                ML_bmp_or ( imgMenu, 0, 0, 128, 64);
                ML_display_vram();
                Sleep(400);
            }
            /* if (IsKeyDown(KEY_CTRL_RIGHT) && pos==85)
            {
                pos+=38;
                ML_rectangle(100,40,112,52,2,1, -1);
            }*/
    
        }
        switch (pos)
        {
            case 9: Niveau1();
                break;
            case 47: Niveau1();//A Changer**************************************************************
                break;
            case 85: Credits();
                break;
        }
           ML_clear_vram();
        ML_clear_screen();
    }

    while(1){
        GetKey(&key);
    }

    return 1;
}


#pragma section _BR_Size
unsigned long BR_Size;
#pragma section
#pragma section _TOP
int InitializeSystem(int isAppli, unsigned short OptionNum)
{
    return INIT_ADDIN_APPLICATION(isAppli, OptionNum);
}

#pragma section


Je ne comprend plus trop là. Je les ai pourtant bien déclarés et dans le bon sens ?
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Lephenixnoir En ligne Administrateur Points: 24236 Défis: 170 Message

Citer : Posté le 31/01/2015 22:23 | #


Attention, il faut bien comprendre que le header ne sert qu'à donner des infos au compilateur.

Le header ne doit jamais contenir de données ou de code.

Donc pas de unsigned int key dans le header. Tu le mets dans un fichier source et dans le header tu mets :
extern unsigned int key:

qui informe le compilateur que la variable est déclarée ailleurs.

Au passage le void entre les parenthèses pour indiquer l'absence d'arguments se fait aussi pour la fonction Niveau1. Tu peux le mettre ou ne pas le mettre mais essaie de faire pareil partout.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 22:28 | #


J'ai changé en extern, mais j'ai toujours l'erreur version.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Lephenixnoir En ligne Administrateur Points: 24236 Défis: 170 Message

Citer : Posté le 31/01/2015 23:11 | #


T'as comparé la doc avec le header du g1a (cf. plus tôt) ?
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 23:28 | #


Heu, je ne comprend pas grand chose à ta doc...
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Lephenixnoir En ligne Administrateur Points: 24236 Défis: 170 Message

Citer : Posté le 31/01/2015 23:44 | #


Le fichier g1a est fait de deux composants : un header contenant les infos (nom d'app, icône, version, etc) et le code.
Je pense qu'une telle erreur doit venir de l'analyse du header donc je te demandais d'ouvrir le g1a en hexadécimal et de regarder si chaque champ avait une valeur acceptable.
Mon graphe (11 Avril): ((Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; passe gint 3 ; ...) || (shoutbox v5 ; v5)
Dodormeur Hors ligne Ancien rédacteur Points: 3965 Défis: 84 Message

Citer : Posté le 31/01/2015 23:51 | #


Ou sinon tu crée un nouveau projet et tu copie colle le code de tes fichiers sources (ça a parfois déjà résolus plusieurs erreurs bizarre chez moi)
Pokemon !!!!!! => pokemon stadium/battle

mes meilleurs jeux
Cliquer pour enrouler
un jeu avec des niveaux de gris mais compatible SH4 (mais en monochrome pour les SH4) => bomberman
envie de plonger dans la mer pour ramasser des tresors? => ballon sea
envie de sauver l'univers dans un jeu avec une longue durée de vie? => saviors of the future
un add-in addictif avec plein de secret et de trophées => evasion survival
un shmup bien dur et sadique => saviors 2

projets
Cliquer pour enrouler

pokemon
Cliquer pour enrouler



encodage des données de combat (sprite, attaques et nom)
   100%

systeme de combat
   100%

encodage des données de pokemon (niveau d'apprentisage et evolution)
   100%


moteur de la carte
   50%

level design
   1%

finition de pokemon jade
   42%

merci a tout le monde pour son soutien


projets que je soutiens
Cliquer pour enrouler
minecraft de limachi
zelda prizm de smashmaster (en esperant qu'il puisse le finir)
les tests de marmotti
un RPG de dark storm (dont je connais le nom, mais pas vous ) Arcuz !
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 01/02/2015 22:29 | # | Fichier joint


Voici la version finie mais qui buggue sur ma calto.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis




LienAjouter une imageAjouter une vidéoAjouter un lien vers un profilAjouter du codeCiterAjouter un spoiler(texte affichable/masquable par un clic)Ajouter une barre de progressionItaliqueGrasSoulignéAfficher du texte barréCentréJustifiéPlus petitPlus grandPlus de smileys !
Cliquez pour épingler Cliquez pour détacher Cliquez pour fermer
Alignement de l'image: Redimensionnement de l'image (en pixel):
Afficher la liste des membres
:bow: :cool: :good: :love: ^^
:omg: :fusil: :aie: :argh: :mdr:
:boulet2: :thx: :champ: :whistle: :bounce:
valider
 :)  ;)  :D  :p
 :lol:  8)  :(  :@
 0_0  :oops:  :grr:  :E
 :O  :sry:  :mmm:  :waza:
 :'(  :here:  ^^  >:)

Σ π θ ± α β γ δ Δ σ λ
Veuillez donner la réponse en chiffre
Vous devez activer le Javascript dans votre navigateur pour pouvoir valider ce formulaire.

Si vous n'avez pas volontairement désactivé cette fonctionnalité de votre navigateur, il s'agit probablement d'un bug : contactez l'équipe de Planète Casio.

Planète Casio v4.3 © créé par Neuronix et Muelsaco 2004 - 2024 | Il y a 42 connectés | Nous contacter | Qui sommes-nous ? | Licences et remerciements

Planète Casio est un site communautaire non affilié à Casio. Toute reproduction de Planète Casio, même partielle, est interdite.
Les programmes et autres publications présentes sur Planète Casio restent la propriété de leurs auteurs et peuvent être soumis à des licences ou copyrights.
CASIO est une marque déposée par CASIO Computer Co., Ltd