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é.


1, 2, 3 Suivante
Aragorn Hors ligne Membre Points: 807 Défis: 5 Message

Citer : Posté le 31/01/2015 20:53 | #



Je n'arrive pas à croire que tu as fait une faute aussi stupide. Si je n'étais pas en compétition et si je ne voulais pas à tout pris gagner, je te redirigerais vers ce lien : http://tools.planet-casio.com/SH4compatibility/ .
Mes Programmes
Cliquer pour enrouler
The Legend of CASIO - Basic Quest ( Basic )
Notes ( logiciel qui calcule votre moyenne, basic )
Professeur Layton ( jeu d'énigme en C )
Mario & Sonic Rush ( jeu de course 3D en C )
Projets
Cliquer pour enrouler
Zelda Ancestral Relics ( projet en C )
Projets que je soutient
Cliquer pour enrouler
Pokémon jade de Dodormeur
Jetpack Joyride de Drakalex007
Arcuz de Dark Storm
Casion de Az et Darkysun




Un jeu de course en 3D pour calculatrice :
http://www.planet-casio.com/Fr/programmes/voir_un_programme_casio.php?showid=2773&page=1.
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 20:54 | #


J'ai déjà fait ceci, j'ai même fait un rebuild all avant de le passer au sh4 compatibility tool.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Aragorn Hors ligne Membre Points: 807 Défis: 5 Message

Citer : Posté le 31/01/2015 20:56 | #


:aie2:
Mince, je viens de m'apercevoir que ce n'est pas un système error. Sans doute la fatigue. Pourrais-tu préciser les lib que t'utilises stp ?
Mes Programmes
Cliquer pour enrouler
The Legend of CASIO - Basic Quest ( Basic )
Notes ( logiciel qui calcule votre moyenne, basic )
Professeur Layton ( jeu d'énigme en C )
Mario & Sonic Rush ( jeu de course 3D en C )
Projets
Cliquer pour enrouler
Zelda Ancestral Relics ( projet en C )
Projets que je soutient
Cliquer pour enrouler
Pokémon jade de Dodormeur
Jetpack Joyride de Drakalex007
Arcuz de Dark Storm
Casion de Az et Darkysun




Un jeu de course en 3D pour calculatrice :
http://www.planet-casio.com/Fr/programmes/voir_un_programme_casio.php?showid=2773&page=1.
-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 20:57 | #


va regarder dans l "addinInfo" et regarder quelle est la version et peut être changer
In Arch, I trust ! And you ?
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 20:59 | #


@Aragorn : fixlib, monochrome et usefull, mais elle est commentée, mais les fichiers sont présents.

@Flo : [VERSION] : "01.00.0000"
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 21:00 | #


pourtant c'est normal ça
In Arch, I trust ! And you ?
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 21:01 | #


//------------------------------------------------------------------
// Addin-Application header control file, created with the CASIO SDK
//------------------------------------------------------------------
[OUTPUT] : "PROJET.G1A"
[BINDATA] : "FXADDINror.bin"
[DISPNAME] : "Projet"
[APPNAME] : "@Projet"
[VERSION] : "01.00.0000"
[APL_ICON] : "MainIcon.bmp"
[MODULE_NUM] : 0
[MOD1_TITLE] : "Projet"
[MOD1_ICON] : "eActivityIcon.bmp"

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



Aragorn Hors ligne Membre Points: 807 Défis: 5 Message

Citer : Posté le 31/01/2015 21:02 | #


Essaie de remplacer 01.00.0000 par 1.00
Si ca ne change rien, ça vient de ton code car j'utilise les mêmes lib.

Tu devrais créer un add-in avec des mots différents qui apparaissent avant chaque fonction pour savoir à quelle fonction ça bloque.
Mes Programmes
Cliquer pour enrouler
The Legend of CASIO - Basic Quest ( Basic )
Notes ( logiciel qui calcule votre moyenne, basic )
Professeur Layton ( jeu d'énigme en C )
Mario & Sonic Rush ( jeu de course 3D en C )
Projets
Cliquer pour enrouler
Zelda Ancestral Relics ( projet en C )
Projets que je soutient
Cliquer pour enrouler
Pokémon jade de Dodormeur
Jetpack Joyride de Drakalex007
Arcuz de Dark Storm
Casion de Az et Darkysun




Un jeu de course en 3D pour calculatrice :
http://www.planet-casio.com/Fr/programmes/voir_un_programme_casio.php?showid=2773&page=1.
-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 21:03 | #


je suis entrain de comparer avec un de mes projets pour voir ce qui ne va pas mais peut être n'est pas du tout ça

EDIT : met APPNAME tout en majuscule
In Arch, I trust ! And you ?
Darkysun Hors ligne Membre Points: 1747 Défis: 52 Message

Citer : Posté le 31/01/2015 21:05 | #


[APPNAME] : "@Projet"
peut etre faut-il enlever le @ ceci est une supposition je n'en ai aucune certitude
Si je ne réponds pas à un post depuis trop longtemps : envoyez-moi un message pour me le rappeler !




-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 21:05 | #


le @ va bien mais ce qui est après en maj
In Arch, I trust ! And you ?
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 21:06 | #


Même en majuscules cela ne marche pas.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Theprog Hors ligne Membre Points: 1447 Défis: 20 Message

Citer : Posté le 31/01/2015 21:08 | #


L'add-in info n'a rien a voir je pense et ne peut rien avoir de faux dedans.
C'est en effet plutot dans le code qu'il y a un soucis. Mais j'ai jamais vu cette erreur ...
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

Citer : Posté le 31/01/2015 21:10 | #


J'enlève usefull.c et .h pour voir.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 21:10 | #


ça m'étonnerais que ça vienne de là
In Arch, I trust ! And you ?
Legolas Hors ligne Ancien rédacteur Points: 3266 Défis: 104 Message

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


Non. Je fouille le code pour voir se qui pourrait faire ceci, peut-être ma matrice ?

Ajouté le 31/01/2015 à 21:25 :
Les sources non colorisée car le coloriseur est actuellement buggué :

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

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, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x57, 0x80, 0x0, 0x0, 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x0, 0x0, 0x0, 0x3, 0xea,
    0x57, 0x80, 0x0, 0x0, 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x0, 0x0, 0x0, 0x3, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0, 0x0, 0x0, 0x0, 0x8, 0x0, 0x0, 0x0, 0x0, 0x20, 0x0, 0x0, 0x0, 0x0, 0xea,
    0x56, 0x0,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57, 0x80, 0x0, 0x0, 0x0, 0x3e, 0x0, 0x0, 0x0, 0x0, 0xf8, 0x0, 0x0, 0x0, 0x3, 0xea,
    0x57, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xea,
    0x50, 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;
}

int Credits()
{
    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_vram();
}



int Niveau1()
{
    const unsigned char fond[]={
    0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x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0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0x80, 0x0, 0x0, 0x0, 0x0, 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(20,7,"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;
}


#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

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



Darkysun Hors ligne Membre Points: 1747 Défis: 52 Message

Citer : Posté le 31/01/2015 21:26 | #


Il y a une virgule avant la fin des accolades des images

Si je ne réponds pas à un post depuis trop longtemps : envoyez-moi un message pour me le rappeler !




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

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


Bizarre que cela ne fasse aucune erreur sur l'émulateur. Merci, je teste.


Ajouté le 31/01/2015 à 21:30 :
Non, même sans j'ai l'erreur.
Mes programmes
Cacher les programmes
Mes défis
Cacher les défis



Lephenixnoir Hors ligne Administrateur Points: 24145 Défis: 170 Message

Citer : Posté le 31/01/2015 21:32 | #


Ça peut pas être ça enfin, c'est évident.

Legolas, tu as regardé dans la doc si le header du fichier est bon (attention c'est inversé) ? Si tu commentes tout le code pour laisser juste un return dans le main(), ça fonctionne (savoir si c'est dû au code) ?
Mon graphe (24 Mars): (gint#27 ; (Rogue Life || HH2) ; PythonExtra ; serial gint ; Boson X ; ...) || (shoutbox v5 ; v5)
-florian66- Hors ligne Ancien rédacteur Points: 2383 Défis: 20 Message

Citer : Posté le 31/01/2015 21:32 | #


tu met tes images dans la addIn_main ? omg
In Arch, I trust ! And you ?
1, 2, 3 Suivante

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 71 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