User Tag List

Results 1 to 5 of 5

Thread: Binary Object sauvegarde

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,263
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Binary Object sauvegarde

    Bonjour;
    J'ai un éditeur de niveau qui <span style="font-weight: bold">enregistre les niveau</span> avec l'objet <span style="font-weight: bold">Binary Object</span>. A chaque foi que l'on dessine un objet dans l'éditeur l'application stock la valeur de la <span style="font-weight: bold">tuile dans un objet tableau</span>.
    Lorsque l'ont veux enregistrer, <span style="font-weight: bold">2 boucles imbriquées</span> recopient le <span style="font-weight: bold">tableau dans l'objet Binary</span>, puis l'objet <span style="font-weight: bold">binary enregistre tout ça dans un fichier</span> mais le fichier est toujours vide [img]<<GRAEMLIN_URL>>/frown.gif[/img]

    J'utilise cette action pour recopier:
    [img]<<GRAEMLIN_URL>>/binary.gif[/img] :Insert byte ValueAtXY(&quot; [img]<<GRAEMLIN_URL>>/array.PNG[/img] &quot;, LoopIndex(&quot;SaveX&quot, LoopIndex(&quot;SaveY&quot) at index x(&quot;[img]<<GRAEMLIN_URL>>/array.PNG[/img]&quot +(index y(&quot;[img]<<GRAEMLIN_URL>>/array.PNG[/img]&quot*DimX(&quot;[img]<<GRAEMLIN_URL>>/array.PNG[/img]&quot)

    Pourvez-vous m'aider ?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall CreatorInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2006
    Location
    France
    Posts
    1,263
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary Object sauvegarde

    J'ai une question est-ce qu'il est possible que le fichier soit sauvé lorsque les 2 boucles sont en exécution ? En gros peut -il y avoir des événement pendant une boucle.

  3. #3
    Gawen
    Guest

    Re: Binary Object sauvegarde

    A priori, lors d'une boucle rapide, seuls les évènements &quot;onBoucle&quot; sont exécutés.

  4. #4
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary Object sauvegarde

    Hello Xenon3000,
    Je ne crois pas que les index soit mis à jour automatiquement dans l'objet tableau. Ils changent uniquement lors de l'utilisation des actions associées. Il faudrait donc utiliser l'indice des boucles pour le calcul de la position du byte dans l'objet Binary.

    Si tu es dans une boucle complète de sortie des données, il vaut mieux travailler en append uniquement. Le résultat final sera le même (si l'ordre des boucles x et y est correct).

    Je ne sais plus non plus comment se comporte l'objet Binary lorsque l'on tente d'insérer un byte à une position nécessitant l'introduction de bytes intermédiaires. A vérifier.

    ouly

  5. #5
    Clicker Fusion 2.5 DeveloperInstall Creator Pro

    Join Date
    Sep 2006
    Posts
    517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Binary Object sauvegarde

    Après vérification : l'objet Binary ne permet effectivement pas d'insérer des données à une position qui nécessiterait l'introduction de bytes intermédiaires. Par exemple insérer un byte à la position 10 dans un bloc de données de taille 5 ne fonctionne pas.

Similar Threads

  1. Binary object help
    By Gabriel in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th December 2008, 07:59 PM
  2. [Bug] Binary object
    By Sphax in forum Extension Development
    Replies: 7
    Last Post: 17th May 2007, 10:04 AM
  3. Is this what I can do with Binary object?
    By aidmm in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th December 2006, 12:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •