Author Topic: Error "Invalid" when I try using greyscale (SOLVED)  (Read 4251 times)

0 Members and 1 Guest are viewing this topic.

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Error "Invalid" when I try using greyscale (SOLVED)
« on: November 28, 2012, 07:23:44 pm »
I'm writing a game, and I want to make a greyscale line within the code. Line(X,Y,A,B)r would be the command for this, correct? And then just use Dispgraphr at the end of the loop instead of normal dispgraph, right? It's giving me "INVALID" when I try and run the program (it compiles fine). Is it something to do with the greyscale or is it because it's making the game to large? (Source Size: 5014, Compiled: 8263) I heard the limit was 8811 or something. I appreciate any help!
« Last Edit: December 05, 2012, 11:50:50 am by Derf321 »

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: Error "Invalid" when I try using greyscale
« Reply #1 on: November 28, 2012, 07:24:22 pm »
If you're using Asm(, the limit is 8,192 bytes.

It should work fine from a shell.
« Last Edit: November 28, 2012, 07:24:30 pm by Deep Thought »




Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #2 on: November 28, 2012, 07:26:01 pm »
8,192 bytes.
Oh, well that would explain that part =P

I can't seem to run it from a shell, I tried compiling it for Mirage and Ion, and it just glitches out, freezes up, and clears my ram. Not sure why
« Last Edit: November 28, 2012, 07:27:24 pm by Derf321 »

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: Error "Invalid" when I try using greyscale
« Reply #3 on: November 28, 2012, 07:26:55 pm »
That's definitely a bug if it's crashing during compile, and you should report it o.O What model and OS, and is it the newest version of Axe?
« Last Edit: November 28, 2012, 07:29:46 pm by Deep Thought »




Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #4 on: November 28, 2012, 07:28:33 pm »
Would you like me to upload it really fast so you can see it yourself? Not sure where to report it either. Its a Ti84 SE+, latest OS from TI

On a side note, my calculator freezes sometimes upon grouping programs. Is this an axe related issue? I always back up programs i'm working on in groups in case of ram clears

Offline Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Error "Invalid" when I try using greyscale
« Reply #5 on: November 28, 2012, 07:30:34 pm »
As far as I can tell you can't do grayscale lines. That command is writing to L3 (the back buffer). Do you have anything stored there?
Edit: Read more closely :P
« Last Edit: November 28, 2012, 07:32:18 pm by Darl181 »
Vy'o'us pleorsdti thl'e gjaemue

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #6 on: November 28, 2012, 07:31:33 pm »
As far as I can tell you can't do grayscale lines. That command is writing to L3 (the back buffer). Do you have anything stored there?
I made a program to test greyscale lines (I wasnt sure either) and they worked fine. I don't have anything stored in L3, just L1 and L2

Also just realized I'm on OS 2.43, not the newest
« Last Edit: November 28, 2012, 07:34:04 pm by Derf321 »

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #7 on: November 29, 2012, 01:22:49 am »
I think you need CrabCake or Fullrene to make your program work when it is above the 8k limit ;)
(sry, need to go to school, haven't time to look for links)
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 Darl181

  • «Yo buddy, you still alive?»
  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3408
  • Rating: +305/-13
  • VGhlIEdhbWU=
    • View Profile
    • darl181.webuda.com
Re: Error "Invalid" when I try using greyscale
« Reply #8 on: November 29, 2012, 01:31:48 am »
It was solved on IRC, he was using version 1.0.0.
Vy'o'us pleorsdti thl'e gjaemue

Offline Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #9 on: November 30, 2012, 12:49:09 pm »
I think I'm going to look into Crabcake because I'll need more space eventually. By the way, is there any disadvantage to using Axe Fusion? I dont see a difference besides the resulting file size (smaller)

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #10 on: November 30, 2012, 12:52:33 pm »
Axe Fusion should be fine for programs that you don't plan to release, but for now I would recommend not using it for released works. It's a very new and still experimental feature and I expect it to change in the future, and very possibly not retain backwards compatibility.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #11 on: November 30, 2012, 12:55:11 pm »
I think I'm going to look into Crabcake because I'll need more space eventually. By the way, is there any disadvantage to using Axe Fusion? I dont see a difference besides the resulting file size (smaller)
There are the issues mentionned by Runer, plus the fact that compiling for Fusion produces a program that needs Axe to run. So people who don't program in Axe will not be able to run your programs.
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 Derf321

  • LV3 Member (Next: 100)
  • ***
  • Posts: 59
  • Rating: +0/-0
    • View Profile
Re: Error "Invalid" when I try using greyscale
« Reply #12 on: December 03, 2012, 12:32:02 pm »
Oh, that's helpful, thank you!
« Last Edit: December 05, 2012, 11:50:32 am by Derf321 »