Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Derf321

Pages: 1 [2] 3 4
16
Axe / Re: Cannot compile my program into a shell?
« on: December 05, 2012, 12:12:14 pm »
What would a good alternative be? Just split L1 into two parts and use them?

17
Axe / Cannot compile my program into a shell? (SOLVED)
« on: December 05, 2012, 11:49:18 am »
I need to use Crabcake soon, but I cannot run the program in a shell (after compiling it for a shell). When I try, it lets me into the main menu of my program fine, but when I load the main loop it will only work for a couple seconds, displays xxx instead of numbers, and freezes and clears ram. Can someone take a look at it? It still does it when I tried emulating with wabbit, and I've tried compiling it for Mirage, ION, and Doors, but only "No Shell" or Axe Fusion work.

18
Axe / Re: Way to optimize Line( drawings?
« on: December 05, 2012, 11:41:05 am »
Warning: I'm not an Axe programmer :P
Basically what you can do is store all of the coordinates in order as data. Brackets are one way to do it, but then you have to convert all your coordinates to hex. Instead, use Data(. For example:
Code: [Select]
Data(1,9,25,9,25,1,25,9,3,4,4,4,...→A
Now you can run a For( loop to draw all your lines. I am not sure if this will work, but I think you will get the idea:
Code: [Select]
Data(1,9,25,9,25,1,25,9,3,4,4,4,...)-1→A
For(53      ;number of lines you have, I think
Line({A++},{A++},{A++},{A++})
End
EDIT: If Jacobly doesn't get around to it, this is the even more optimised version he gave on IRC:
Code: [Select]
Data(1,9,25,9,25,1,25,9,3,4,4,4,...)-2→A
For(53      ;number of lines you have, I think
Line({A+2→A}r,/256,{A+2}r,/256
End


I tried this and just using Data(12,31...)-4→A, Line({A+4→A},{A+1},{A+2},{A+3}), but either one slightly affects the display (one line out of place or something) like the attached picture.
Any clue?

19
Axe / Re: Error "Invalid" when I try using greyscale
« on: December 03, 2012, 12:32:02 pm »
Oh, that's helpful, thank you!

20
Axe / Re: Way to optimize Line( drawings?
« on: November 30, 2012, 01:03:06 pm »
There are some image to hex converters lying around, including SourceCoder on Cemetech
How do I use it to convert it to hex? Will it read Axe sources well?

21
Axe / Line( erase command? (SOLVED)
« on: November 30, 2012, 01:00:24 pm »
Is there an "erase" command for Lines in Axe? In BASIC there's Line(X,Y,A,B,0) to erase Line(X,Y,A,B). Is there an equivalent in Axe?

DrawInv worked, thanks!

22
Axe / Re: Negative/Opposite Numbers (SOLVED)
« on: November 30, 2012, 12:49:34 pm »
Nevermind, I was using an older version of axe that probably didn't support it.

23
Axe / Re: Error "Invalid" when I try using greyscale
« 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)

24
Axe / Re: Error "Invalid" when I try using greyscale
« 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

25
Axe / Re: Error "Invalid" when I try using greyscale
« 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

26
Axe / Re: Error "Invalid" when I try using greyscale
« 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

27
Axe / 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!

28
Axe / Re: Way to optimize Line( drawings?
« on: November 28, 2012, 02:59:06 pm »
Oh thanks for the idea Xeda, I probably will do that. It would save SO much program space!
Thank you too Hayleia! But it looks like that's a lot more bytes to type in in the long run. But now I know how the hex works, so thank you! =D

29
Axe / Way to optimize Line( drawings? (SOLVED)
« on: November 27, 2012, 11:36:00 pm »
I have a map drawn out on my game which does not move or change during it. Is there a more efficient way to do Line( drawings? I've seen people use those bracket hex code things like [23423492056] but I'm not sure how to use them or where to get info on them. My program's just getting up there in size and I'd like to condense it before I hit the Axe compiler limit.

Basically I just want to optimize this code that runs once at the start:
Spoiler For Spoiler:
Line(1,9,25,9):Line(25,1,25,9):Line(3,4,4,4):Line(4,3,6,3):Line(6,3,6,4):Line(6,4,7,4):Line(7,4,7,6):Line(6,6,6,7):Line(6,7,4,7):Line(4,6,3,6):Line(3,6,3,5):Line(94,1,94,62):Line(94,48,1,48):Line(1,62,1,1):Line(1,1,94,1):Line(1,62,94,62):Line(16,48,16,62):Line(31,48,31,62):Line(46,48,46,62):Line(61,48,61,62)
Line(1,29,25,29):Line(35,29,55,29):Line(55,29,55,36):Line(55,43,55,48)
Line(3,42,9,42):Line(3,42,3,34):Line(3,34,9,34):Line(9,34,9,42):Line(19,56,19,52):Line(20,54,20,50):Line(20,50,28,50):Line(28,51,24,51):Line(21,52,22,51):Line(37,54,38,53):Line(40,53,41,54):Line(34,52,44,52):Line(44,52,44,51):Line(41,51,34,51):Line(34,53,35,53):Line(38,50,39,50):Line(48,52,59,52):Line(48,53,50,53):Line(50,51,53,51):Line(52,53,52,55):Line(53,53,53,55):Line(54,53,54,53):Line(57,51,58,50):Line(57,52,58,54)
Line(4,55,4,52):Line(5,55,5,52):Line(4,52,11,52):Line(4,51,12,51):Line(6,53,6,53)

I appreciate any help!

30
Axe / Re: Negative/Opposite Numbers
« on: November 27, 2012, 11:29:26 pm »
couldn't you leave the parentheses
Code: [Select]
1=EXP1*2-1→Z
or if the "true" isn't always 1
Code: [Select]
0<EXP1*2-1→Z
Hmm, this didn't seem to work for me in my program. I guess Axe really doesn't support negative numbers in equasions. I figured out a different way to do it, and it works fine. Thanks for the help all!

Pages: 1 [2] 3 4