1

Salut.
Je dispose de plusieurs fichiers .h contenant des définitions de sprite...
quelqu'un saurait m'expliquer clairement comment en faitre une archive compressée ?
parce que là, je rame sad

merci
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

2

Déjà, il te faut des sprites en format binaire, pas en format source C. Donc: compile un fichier contenant les sprites et extrais-les avec ttextract. Ensuite seulement passe à ttpack et puis ttarchive.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

3

OK. merci, v tenter ça.
qd tu dis de compiler, fo que je fasse un source en C, en mettant :

#define TImachin
void _main(void)
{

LES DEFINITIONS DES SPRITES

}

c'est un truc comme ça que je fais ,
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

4

Oui, et mets des macros __MARK (macro défini dans tigcclib.h et non documenté) avant et après le sprite.

__MARK(_StArT_tOkEn_)
static unsigned long sprite[]={...}
__MARK(_E*n*D_tOkEn_)


Attention, les tokens que tu choisis ne doivent pas correspondre à des données comprises dans ton sprite!

Ensuite, utilise ttextract sur ça.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

5

OK.
v tenter ça !
merci bcp !

(justement, je me posais des question sur le token, que demandais ttextract)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

6

arf...
quand j'écris ce code sous TIGCC (dans un projet nommé test1) :


#define USE_TI92PLUS // Produce .9xz File
#include <tigcclib.h>

void _main(void)
{

__MARK(_testDEB_)

static unsigned short fond1_1[]={
0xFE00,0xFE00,0xFE00,
0xFF80,0x8980,0xFF80,
0xFFE0,0xB060,0xD1E0,
0xFFF0,0xF210,0x8070,
0xFFF8,0xA488,0xA018,
0xFFFC,0xC514,0xA00C,
0xFFFE,0xE00A,0x8606,
0xFFFF,0xC647,0xD9A1,
0xFFFF,0xC647,0xD9A1,
0xFFFE,0xE00A,0x8606,
0xFFFC,0xC514,0xA00C,
0xFFF8,0xA488,0xA018,
0xFFF0,0xF210,0x8070,
0xFFE0,0xB060,0xD1E0,
0xFF80,0x8980,0xFF80,
0xFE00,0xFE00,0xFE00};

__MARK(_testFIN_)

}


=> ça me crée le fichier test1.9xz (je l'ai compilé en -O0, sans la moindre optimisation donc, normalement)
quand ensuite je fais (via ligne de commande) :
ttextract test1.9xz test1 _testDEB_ _testFIN_
=> le prog me dit : "ERROR : endpos <= startpos"

Force est de reconnaitre que sur ce coup là, je suis un peu largué sad
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

7

Bizarre, essaye de changer les tokens. (Par exemple, mets _DEBtest_ et _FINtest_.)
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

8

j'avais essayé avec _test_ et _fintest_ et ça me donnat le même rtésultat sad
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

9

je viens de retenter avec d'autres nom (ceux donnés au post 7).
=> même pb.
j'ai essayé d'inverser les deux ds l'appel de ttextract => j'ai qd m^me la même erreur sad

(j'utilises TTsuite version 100 beta 7)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

10

Contacte Thomas Nussbaumer avec ton problème, il devrait pouvoir t'aider.
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

11

OK.
ou alors, mieux, je pose la question sur le forum de la TICT. de la sorte, les réponses pourront profiter à plusieurs personnes.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

12

Attends, j'ai une idée de ce qui pourrait être le problème: comme tu as mis tout ça au milieu d'une fonction, le tableau n'est probablement pas entre tes marqueurs. Mets plutôt ça:
#define USE_TI92PLUS // Produce .9xz File 
#include <tigcclib.h> 

__MARK(_testDEB_) 

unsigned short fond1_1[]={ 
0xFE00,0xFE00,0xFE00, 
0xFF80,0x8980,0xFF80, 
0xFFE0,0xB060,0xD1E0, 
0xFFF0,0xF210,0x8070, 
0xFFF8,0xA488,0xA018, 
0xFFFC,0xC514,0xA00C, 
0xFFFE,0xE00A,0x8606, 
0xFFFF,0xC647,0xD9A1, 
0xFFFF,0xC647,0xD9A1, 
0xFFFE,0xE00A,0x8606, 
0xFFFC,0xC514,0xA00C, 
0xFFF8,0xA488,0xA018, 
0xFFF0,0xF210,0x8070, 
0xFFE0,0xB060,0xD1E0, 
0xFF80,0x8980,0xFF80, 
0xFE00,0xFE00,0xFE00}; 

__MARK(_testFIN_) 

void _main(void) 
{ 
}
avatar
Mes news pour calculatrices TI: Ti-Gen
Mes projets PC pour calculatrices TI: TIGCC, CalcForge (CalcForgeLP, Emu-TIGCC)
Mes chans IRC: #tigcc et #inspired sur irc.freequest.net (UTF-8)

Liberté, Égalité, Fraternité

13

OK. je venia sjustement voir s'il y avait quelque chose de nouveau avant de poser la question sur le forum de la TICT.
Effectivement, à l'éditeur hexa, le fichier .9xz met les gfx, puis, tout à la fin, les étiquetes de __MARK
le vais tester ça...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

14

CA MARCHE !!!!
merci Kevin !!!!!!

j'ai juste un petit pb avec les couleurs, mais ça, ça doit venir de ce que je bidouille pour l'affichage (je fais l'affichage pr tester totalement à l'arrcha sad) mais le dessin est le bon, et j'ai mon archive en plusieurs blocs => nickel !!!


Encore merci !
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

15

C'est pourtant evident (poour quelqu'un qui a fait de l'assembleur). KK, tu me decois de ne pas l'avoir vu avant.

16

po grave, maintenant, ça marche !
(et puis, ct pas vraiment urgent : g po mal de trucs à faire avant ça, mais je suis en train d'essayer d'éliminer tout ce qui me pose pb... ainsi, il ne me restera qu'à coder les trucs simples, ou à mettre bout à bout les truc complexes que j'aurai déjà codé ailleurs, comme c'est maintenant le cas pour ça)
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

17

je remonte ce topic...
je me demande si ça va pas servir à quelqu'un...
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall

18

merci. grin
Non-Webmaster et non-programmeur du site. .Pour tout probleme ou question ,débrouillez vous avec les Webmasters .

«- Pas Moo ! ^^

19

de rien.
avatar
Tutorial C (TI-89/92+/v200) - Articles Développement Web (PHP, Javascript, ...)
« What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against? » - Larry Wall