• Axe Q&A 5 5
Currently:  

Author Topic: Axe Q&A  (Read 600303 times)

0 Members and 2 Guests are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #375 on: May 23, 2011, 09:38:07 am »
Avoid double posting in a 10-minute time, please edit your posts in the "Modify" or in the "Quick Modify" button.

Ninja'd you there by 11 hours ;)




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #376 on: May 23, 2011, 11:00:12 am »
Does data count to the maximum size of a flash app?
I'm not a nerd but I pretend:

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Q&A
« Reply #377 on: May 23, 2011, 11:03:37 am »
Yes. It counts toward the max size of an Axe program too, anyway.




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe Q&A
« Reply #378 on: May 23, 2011, 12:48:34 pm »
But does it also count to the executable code? I mean, can you for example have 8000 bytes exec code and 13000 bytes of data?
I'm not a nerd but I pretend:

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Q&A
« Reply #379 on: May 23, 2011, 12:53:44 pm »
It does not count to the max size of a program, you *can* have 8800 bytes of code and as much data as you want :)

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: Axe Q&A
« Reply #380 on: May 23, 2011, 12:53:59 pm »
But does it also count to the executable code? I mean, can you for example have 8000 bytes exec code and 13000 bytes of data?
Both data and code have to be under 16k together, your data is written directly into the app.
If you don't want it, you should use appvars.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe Q&A
« Reply #381 on: May 23, 2011, 01:50:20 pm »
Can I use Lists (no, not arrays) the same way in Axe as in Basic or I need to use Arrays? Thanks

Offline Aichi

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +76/-3
    • View Profile
    • Devrays
Re: Axe Q&A
« Reply #382 on: May 23, 2011, 03:52:16 pm »
Can I use Lists (no, not arrays) the same way in Axe as in Basic or I need to use Arrays? Thanks
I wonder what do you need it for?

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #383 on: May 23, 2011, 03:52:21 pm »
It's all just a bunch of bytes. At this level, you could create a triangular array and be perfectly fine. What, exactly, are you trying to do?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe Q&A
« Reply #384 on: May 23, 2011, 04:07:37 pm »
http://pastebin.com/L2Y2gg5F

Why can't I display greyscale (the Rect(^r)) in that code? The supposedly grey blocks appear as grey and a milisecond after change to black forever.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #385 on: May 23, 2011, 04:21:38 pm »
Is the second Rect() supposed to be a RectI()? And that Rect()r gets overwritten by the StorePic anyway.
The reason that It's going black is because immediately after you display the greyscale, you copy the back buffer to the front buffer, rendering the second frame b/w because the contents of the front buffer match the back buffer, so it's either 00 or 11 for every single pixel
« Last Edit: May 23, 2011, 04:24:22 pm by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe Q&A
« Reply #386 on: May 24, 2011, 07:15:52 am »
Is the second Rect() supposed to be a RectI()? And that Rect()r gets overwritten by the StorePic anyway.
The reason that It's going black is because immediately after you display the greyscale, you copy the back buffer to the front buffer, rendering the second frame b/w because the contents of the front buffer match the back buffer, so it's either 00 or 11 for every single pixel

1. The secodn Rect is indeed RectI.
2. Ah I see so when we Store or RecallPics we can't use greyscale or is there a way around? Thanks.

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #387 on: May 24, 2011, 10:04:49 am »
Well, what's going on is that StorePic and RecallPic make L3 and L6 the same, so it's still greyscale, but all the greyscale routine sees is black pixels and white pixels. Remove the RecallPic or draw some more on the back buffer to fix it.
« Last Edit: May 24, 2011, 10:40:23 am by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe Q&A
« Reply #388 on: May 24, 2011, 02:59:16 pm »
Well, what's going on is that StorePic and RecallPic make L3 and L6 the same, so it's still greyscale, but all the greyscale routine sees is black pixels and white pixels. Remove the RecallPic or draw some more on the back buffer to fix it.

I have tried drawing in the back buffer right before DispGraph (not just in the stored pic) but it changes quickly to black :S

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Axe Q&A
« Reply #389 on: May 24, 2011, 03:52:44 pm »
Does it display as grey initially?
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!