Author Topic: Manipulation des appvars en Axe  (Read 25354 times)

0 Members and 1 Guest are viewing this topic.

Offline noelthebest

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 283
  • Rating: +20/-0
  • Worldwide Combos
    • View Profile
    • Worldwide Combos
Re: Manipulation des appvars en Axe
« Reply #15 on: September 03, 2011, 06:18:09 am »
Ils vont nous poursuivre jusque  dans notre tombe, disait Mathieu Nebra, il n'avait pas tort... :P

Offline dragoon1920

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #16 on: January 17, 2013, 06:31:07 am »
Bonjour!
Désolé de rouvrir le sujet, mais j'aurais une petite question: comment faire pour importe un Pic (ou un String ou encore un GDB) d'une appvar? Je m'explique:
Lorsque je créé une appvar dans un autre programme, j'y stocke disons: [FFFFFFFFFFFFFFFF]. Comment faire pour rappeler ceci en entier dans un pic que j'utilise après? Si je fais:
GetCalc("appvPIC",Y0)
Copy(Y0,Pic0,8
Ca ne marche pas, même si je simplifie en Copy("PIC",Pic0).
Quelqu'un pourrait-il m'aider? Merci!
Et Notch a dis: Si vous ne pouvez acheter Minecraft, hackez-le!

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Manipulation des appvars en Axe
« Reply #17 on: January 17, 2013, 10:00:41 am »
Qu'entends-tu par un pic ? Le pointeur ou la variable Ti-Basic ?

Et Copy("PIC",Pic0) est la plus grosse aberration que j'aie jamais vu avec des appvars. Là tu copies la chaîne "PIC" dans Pic0, que tu n'as pas encore déclaré.

Donc je répondrai en fonction de quelle Pic0 tu utilises (cf première question).

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #18 on: January 17, 2013, 01:29:07 pm »
Je crois qu'il veut copier le contenu d'une appvar dans la variable OS Pic0.
C'est pas le genre de truc que je fais souvent donc je dis peut-être n'importe quoi, mais il me semble que ce qu'il faut faire c'est
GetCalc("appvPIC",Y0)
GetCalc("varPic0")→V
Copy(Y0,V,768)
(où "var" est le token 2nd+8).
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline bew78

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #19 on: January 19, 2013, 06:15:24 am »
Enfait, ca qu'il veux faire, c'est ça :


Mais il repond que ça ne marche pas pour lui (j'ai pas testé)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #20 on: January 19, 2013, 07:03:03 am »
Ah ok.
En quoi il compile ? S'il compile en application, le Copy(A,Pic0,8) ne marchera pas puisqu'elle se lance directement depuis la flash.

(ps: Dolphin Browser for the win :P)
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline bew78

  • LV0 Newcomer (Next: 5)
  • Posts: 4
  • Rating: +0/-0
    • View Profile
Re: Re: Manipulation des appvars en Axe
« Reply #21 on: January 19, 2013, 07:32:34 am »
Finalement j'ai tester mon code, mais ça marche pas pour moi... la je vois pas le pb.. voulai meme pas faire une appli, et ça marche quand meme pas... grrrr

En tout cas la v4 du sdz sur mobile (dans le navigateur) est vraiment pas au point... (meme dns dolphin. )

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #22 on: January 19, 2013, 08:12:17 am »
Ce qui ne marche pas dans ton code c'est la partie [FFFFFFFFFFFFFFFF]→{P}. Il te faut mettre ça à la place:
[FFFFFFFFFFFFFFFF]→Pic0P
Copy(Pic0P,P,8)

(excusez mon message mal écrit tout à l'heure, j'étais sur mon Android :P)
« Last Edit: January 19, 2013, 12:50:14 pm by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Manipulation des appvars en Axe
« Reply #23 on: January 19, 2013, 03:56:37 pm »
Un programme complet qui devrait marcher :
Code: [Select]
:.déclare et remplit l'appvar
:GetCalc("appvCARRE",8)→A
:Copy([FFFFFFFFFFFFFFFF],A,8)
:
:.Copie l'appvar dans Pic0
:GetCalc("Pic0",756)→P
:.756 octets est la taille réglementaire d'une Pic
:Copy(A,P,8)

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #24 on: January 20, 2013, 01:57:52 am »
Un programme complet qui devrait marcher :
Code: [Select]
:.déclare et remplit l'appvar
:GetCalc("appvCARRE",8)→A
:Copy([FFFFFFFFFFFFFFFF],A,8)
:
:.Copie l'appvar dans Pic0
:GetCalc("Pic0",756)→P
:.756 octets est la taille réglementaire d'une Pic
:Copy(A,P,8)
Non mais en fait, d'après ce que j'ai compris, il ne veut pas importer l'appvar dans la variable OS Pic0, mais l'importer dans la data de son programme à un pointeur appelé Pic0.

Enfin bon, ce serait mieux s'il revenait lui-même nous dire ce qu'il veut.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline dragoon1920

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #25 on: January 20, 2013, 12:40:27 pm »
^^Ce que je voudrais, c'est tout simplement un programme qui créé une appvar contenant pic, string et GDB, puis ensuite appeler cet appvar d'un autre programme et y transmettre ses données dans d'autres pic, string et GDB. Tout celà à compiler en application, si possible.
En gros, c'est pour éviter que mon programme soit trop lourd et ne prenne pas plus d'une page pour pouvoir compiler en application.
« Last Edit: January 20, 2013, 12:43:39 pm by dragoon1920 »
Et Notch a dis: Si vous ne pouvez acheter Minecraft, hackez-le!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #26 on: January 20, 2013, 01:42:54 pm »
Si tu compiles en application, tu ne peux rien modifier de ce qu'il y a dans ton code une fois compilé. Je te suggère de regarder du côté des saferam genre L1 à la place.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline dragoon1920

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #27 on: January 20, 2013, 02:11:15 pm »
Je sais que je ne peux rien modifier, mais si il y a une solution pour les appvars, j'aimerai la connaître. Je vais regarder les "saferam".
Et Notch a dis: Si vous ne pouvez acheter Minecraft, hackez-le!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #28 on: January 21, 2013, 01:05:29 am »
En gros pour les saferam, au lieu de copier ta sprite dans ton pointeur Pic0, tu la copies dans le pointeur L1 (que tu n'as même pas besoin de déclarer) et il marchera comme le pointeur Pic0 ensuite. Tu pourras par exemple faire Pt-On(0,8,L1). Et si tu as d'autres sprites à copier, tu peux copier la suivante à L1+8, etc.
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline dragoon1920

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
Re: Manipulation des appvars en Axe
« Reply #29 on: January 24, 2013, 10:31:29 am »
pourrais-tu me communiquer le lien du tuto expliquant ça stp?
Et Notch a dis: Si vous ne pouvez acheter Minecraft, hackez-le!