• Axe Q&A 5 5
Currently:  

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

0 Members and 2 Guests are viewing this topic.

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Axe Q&A
« Reply #1695 on: March 08, 2014, 07:24:37 pm »
I would recommend SourceCoder. Simply upload the image and voila, tons of output formats, one of which should be plain black-and-white image hex.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Axe Q&A
« Reply #1696 on: March 08, 2014, 07:27:51 pm »
You can convert it to a .8xi file with TI-Screen Capture (see TI-Connect/Tools) and send it to your calc. From there,  include [PicX]->Y, where PicX is whatever Pic variable you stored your bitmap in, and Y any Axe variable or static pointer. You'll need the said Pic variable every time you'll compile your program, but you can archive it. It's exactly the same as typing it in in hex, just a hundred times less annoying.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1697 on: March 09, 2014, 04:51:14 am »
It's still a bit annoying because you "only have" 10 Pic variables (notice the quotes, I know we can have more but TI-Screen Capture can't use the unofficial ones) so you can't have tons of projects with images on your calc.

The image converter is the only thing I use in SourceCoder but I find it very useful. There are two downsides to it, one being that you can't use it without an internet connection, and the other one being that your image now uses 1536 bytes in your source code instead of 768. But you don't use any variable so you can't have unlimited projects (if we forget the limited memory of your calc).

Something to get rid of all downsides could be to use TI-Screen Capture to convert as a Pic, then use TokenIDE and Wabbitemu to quickly coin a program that converts the Pic into an appvar. This way, no need for an internet connection, a bit more than 768 bytes but far from 1536 and unlimited names :)
It just takes time the first time you write the Picā†’Appv program, but it takes like 1 minute and only the first time.
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 ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Q&A
« Reply #1698 on: March 09, 2014, 11:44:33 am »

Quote
I would recommend SourceCoder. Simply upload the image and voila, tons of output formats, one of which should be plain black-and-white image hex.
Thank you runner, that did it.

Quote
You can convert it to a .8xi file with TI-Screen Capture (see TI-Connect/Tools) and send it to your calc. From there,  include [PicX]->Y, where PicX is whatever Pic variable you stored your bitmap in, and Y any Axe variable or static pointer. You'll need the said Pic variable every time you'll compile your program, but you can archive it. It's exactly the same as typing it in in hex, just a hundred times less annoying.
This would be really nice because it would save space, but it doesn't work when I try. After I store it to my variable, do I use the bitmap command?


Quote
Something to get rid of all downsides could be to use TI-Screen Capture to convert as a Pic, then use TokenIDE and Wabbitemu to quickly coin a program that converts the Pic into an appvar.
That's a smart idea; you could get as many pics as you need and not be limited to ten.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Axe Q&A
« Reply #1699 on: March 09, 2014, 12:00:04 pm »
Quote
You can convert it to a .8xi file with TI-Screen Capture (see TI-Connect/Tools) and send it to your calc. From there,  include [PicX]->Y, where PicX is whatever Pic variable you stored your bitmap in, and Y any Axe variable or static pointer. You'll need the said Pic variable every time you'll compile your program, but you can archive it. It's exactly the same as typing it in in hex, just a hundred times less annoying.
This would be really nice because it would save space, but it doesn't work when I try. After I store it to my variable, do I use the bitmap command?
Since it's a classical image, you can do DispGraph(pointerToThePic) to display it immediately, or Copy(pointerToThePic) to copy it to L6. Bitmap() won't work since you need a header.

How does it not work ? Does it compile at least ?

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Q&A
« Reply #1700 on: March 09, 2014, 12:11:56 pm »
Thank you, that fixed it. However I have a problem with SourceCoder  :/  it exported my pic into pic1 but it's shifted... The code is correct and working, but SourceCoder exports my pic wrong.
Code: [Select]
.RUN
ClrDraw
DispGraph([Pic1])
Repeat getkey(15)
End
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Axe Q&A
« Reply #1701 on: March 09, 2014, 12:14:30 pm »
You might want to ask KermM about that. I never used SourceCoder for fullscreen images.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Q&A
« Reply #1702 on: March 09, 2014, 12:17:20 pm »
It's fixed now. Instead of importing a bmp and exporting 8xi, I imported a png instead. But yeah, I'll tell him. And thank you  :)
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: Axe Q&A
« Reply #1703 on: March 12, 2014, 11:43:48 am »
I need to implement a timer in my game (don't step the white tile) and want to do so with interrupts. How would I do this? I've tried learning from the documentation but my code always crashes.


I'd like to make it so that it stores the seconds in D and hundredths of seconds in E.
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1704 on: March 13, 2014, 09:59:24 am »
I noticed when using MirageOS (I do that sometimes) that some programs by thepenguin77 have an icon. However, they seem to be compiled for Ion since zStart alone can run them. So could the Ion header used when compiling for Ion accept MirageOS icons ?
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 Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Axe Q&A
« Reply #1705 on: March 13, 2014, 01:34:37 pm »
I thought the Ion header doesn't support an image icon ???

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1706 on: March 13, 2014, 03:16:01 pm »
Well that's the point, I think there might be a possibility for it to support icons, so I am asking whether I am wrong (and I had MirageOS on my calc without knowing it, it can happen -.-) or if that header could be implemented ;)
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 Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Axe Q&A
« Reply #1707 on: March 14, 2014, 02:00:58 am »
The Ion header is just a jump to label followed by a description IIRC. So if you add an image after the said description, I'm pretty confident MirageOS will display it.

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: Axe Q&A
« Reply #1708 on: March 14, 2014, 02:04:16 am »
Well then why not add the support for #Icon() when compiling for Ion ? This way we can make programs that everyone can run (compiled for Ion) and with an Icon in case it's ran through MirageOS or DoorsCS.
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 Matrefeytontias

  • Axe roxxor (kinda)
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1982
  • Rating: +310/-12
  • Axe roxxor
    • View Profile
    • RMV Pixel Engineers
Re: Axe Q&A
« Reply #1709 on: March 14, 2014, 02:07:31 am »
I guess it's because it's not the way the creator of Ion intended the Ion header. Try inputting an Ion header with an image with Asm( and see if it works.