flat assembler
Message board for the users of flat assembler.

Index > Windows > How fix using fasm or fasm macro ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 672
Roman
I have this text file:
Code:
 Animation {  
  { CreatureRig_R_ArmDigit42 }
  AnimationKey  {
   4;
   3;
   0;16;0.572249,0.000411,-0.820109,0.000000,-0.000718,0.999995,0.000000,0.000000,0.820065,0.000589,0.572243,0.000000,5.830555,0.000004,0.000008,1.000000;;,
   320;16;0.756320,0.000544,-0.654231,0.000000,-0.000718,0.999995,0.000000,0.000000,0.654195,0.000470,0.756311,0.000000,5.830559,0.000000,-0.000004,1.000000;;,
   480;16;0.892313,0.000641,-0.451450,0.000000,-0.000718,0.999995,0.000000,0.000000,0.451424,0.000324,0.892302,0.000000,5.830555,0.000000,0.000004,1.000000;;;
  }
 }
 Animation {  
  { CreatureRig_R_ArmDigit43 }
  AnimationKey  {
   4;
   4;
   0;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099136,0.000000,0.000004,1.000000;;,
   160;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099125,0.000000,0.000002,1.000000;;,
   320;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099129,0.000000,0.000000,1.000000;;,
   480;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099127,0.000004,0.000000,1.000000;;;
  }
    


Last edited by Roman on 10 Jan 2016, 10:02; edited 1 time in total
Post 10 Jan 2016, 09:59
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 672
Roman
I need fix and get two AnimationKey equal ! And save text to disk
Like this:
Code:
 Animation {  
  { CreatureRig_R_ArmDigit42 }
  AnimationKey  {
   4;
   4;
   0;16;0.572249,0.000411,-0.820109,0.000000,-0.000718,0.999995,0.000000,0.000000,0.820065,0.000589,0.572243,0.000000,5.830555,0.000004,0.000008,1.000000;;,
   160;16;0.572249,0.000411,-0.820109,0.000000,-0.000718,0.999995,0.000000,0.000000,0.820065,0.000589,0.572243,0.000000,5.830555,0.000004,0.000008,1.000000;;,
   320;16;0.756320,0.000544,-0.654231,0.000000,-0.000718,0.999995,0.000000,0.000000,0.654195,0.000470,0.756311,0.000000,5.830559,0.000000,-0.000004,1.000000;;,
   480;16;0.892313,0.000641,-0.451450,0.000000,-0.000718,0.999995,0.000000,0.000000,0.451424,0.000324,0.892302,0.000000,5.830555,0.000000,0.000004,1.000000;;;
  }
 }
 Animation {  
  { CreatureRig_R_ArmDigit43 }
  AnimationKey  {
   4;
   4;
   0;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099136,0.000000,0.000004,1.000000;;,
   160;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099125,0.000000,0.000002,1.000000;;,
   320;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099129,0.000000,0.000000,1.000000;;,
   480;16;0.856746,-0.000617,-0.515775,0.000000,0.000718,0.999995,-0.000004,0.000000,0.515734,-0.000367,0.856736,0.000000,2.099127,0.000004,0.000000,1.000000;;;
  }
    


Last edited by Roman on 10 Jan 2016, 10:12; edited 1 time in total
Post 10 Jan 2016, 10:01
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 672
Roman
I show this simple example, for understanding.
Step 160. I must get first and next , compare and if difference 160, then goto next.
Post 10 Jan 2016, 10:06
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 672
Roman
In text file may be a hundred AnimationKey.
May be exist special programms for my case ?
Post 10 Jan 2016, 10:09
View user's profile Send private message Reply with quote
idle



Joined: 06 Jan 2011
Posts: 359
Location: Ukraine
idle
>>Step 160. I must get first and next , compare and if difference 160, then goto next.
Is AnimationKey a structure?
- are those 4;4;0;160;320;480;.. arbitrary defined, that is structure#123 contains 1st field 321?
- do you need 2 adjacent structures be -160-equal?
I think slight change into fasm structure form will help.
Post 10 Jan 2016, 19:20
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.