Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: chattahippie on July 29, 2011, 07:51:02 pm

Title: AR Code Generator (Pokemon)
Post by: chattahippie on July 29, 2011, 07:51:02 pm
Finally finished! ;D

Although I'm sure this is highly unoptimized, I feel it is time for a release. :P
Since the current version of Pokedex 3d only includes the 5th generation, so does this.  I'm working on all 649 names currently, and will update this when the Pokedex gets an update.
I appreciate any feedback, so feel free to post errors and bugs.

It creates a qr code like image for any number up to 1024 (?) by binary conversion.
It also goes through a gigantic string and pulls out the name of the pokemon number entered.

The image then can be identified by a 3ds running the Pokedex 3d application, and "make a pokemon appear" in real life, also known as Augmented Reality, AR.

Although it has almost no practical use  I still think that it is a neat idea, and was amazed it actually worked (3ds recognized it) when I was making it.

I did not personally "crack the code" of the qr images, I found an article and used it to help deduce how to generate each image.
I feel the need to say:
I don't own Pokemon, or Pokedex, or any of the Pokemon names, or Pokedex 3d.  Nintendo does.

Wow, just realized I messed up the name system a lot!  Fixed it!

Note:  This is my first program to ever be released, so be prepared!  :P

I've given up the hope of using one program for now due to a lack of conversion software, so these three should work.
Send all three files to calc, then run POKEDEX
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 29, 2011, 10:26:01 pm
What is this, exactly? Do you have a screenshot?
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 29, 2011, 10:41:44 pm
No, sorry for the lack of description, I was kinda nervous.

It creates a qr code like image for any number up to 1024 (?) by binary conversion.

It also goes through a gigantic string and pulls out the name of the pokemon number entered.

The image then can be identified by a 3ds running the Pokedex 3d application, and "make a pokemon appear" in real life, also known as Augmented Reality, AR.

Although it has almost no practical use :P I still think that it is a neat idea, and was amazed it actually worked (3ds recognized it) when I was making it.

I did not personally "crack the code" of the qr images, I found an article and used it to help deduce how to generate each image.

Fixed the first post.
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 29, 2011, 10:54:53 pm
what, so I'm still a little confused. You input a qr code, and it displays a corresponding pokemon on a 3ds?
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 29, 2011, 11:08:30 pm
You input a number (each pokemon is assigned a number, I use the ones from the game), and then it creates the qr code that the 3ds reads and displays a pokemon on, the 3ds Augments Reality.

Here's a qr code image off teh interwebz:
(http://i188.photobucket.com/albums/z32/xforever1/Pokedex%203d/004_Tepig.png)

and then the 3ds creates a pokemon on top of it, like this:
(http://nintendo3ds.davidturnbull.netdna-cdn.com/wp-content/uploads/2011/06/Pokedex-3D-14.jpg)
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on July 30, 2011, 12:42:40 pm
I tried downloading the program, but the files inside the .zip didn't seem to work... Maybe you used a Mac? The Mac version of TI-Connect is a bit different. Try saving it as an .8xp file instead.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 02:43:23 pm
I tried downloading the program, but the files inside the .zip didn't seem to work... Maybe you used a Mac? The Mac version of TI-Connect is a bit different. Try saving it as an .8xp file instead.

Thanks for telling me, it should be a .8xp now ;D
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on July 30, 2011, 03:01:01 pm
It doesn't seem to work. msd8x tells me that the file is corrupt. :( Are you sure that you saved the file as .8xp? Simply renaming it won't work.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 03:10:23 pm
Hmm, it told me that it saved itself as a .8xp file...

That is wierd.  Upon inspection, it just saved itself with a different extension, it didn't even change the file at all.
I will upload it once I can convert it.

If you know a way to change it to an .8xp, pm me.
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 30, 2011, 04:01:36 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 04:23:20 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.


Just updated the download, hopefully this one should work, I just took the source files right off the calc and uploaded them
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 30, 2011, 04:25:08 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.

The problem isn't with money. It's with my parents.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 04:26:49 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.

The problem isn't with money. It's with my parents.

There's always college to look forwards to :P
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 30, 2011, 04:35:33 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.

The problem isn't with money. It's with my parents.

There's always college to look forwards to :P

haha yeah. but that's in about three years :P
Title: Re: AR Code Generator (Pokemon)
Post by: SolusIpse on July 30, 2011, 04:39:17 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.

The problem isn't with money. It's with my parents.

There's always college to look forwards to :P

haha yeah. but that's in about three years :P

Unfortunately for a lot of people in college now, money is the problem.
Title: Re: AR Code Generator (Pokemon)
Post by: LincolnB on July 30, 2011, 04:40:53 pm
Ok, cool. Makes sense now. :) However I don't have a 3ds (or really any game system besides computer) so I can't test it out. :P

You should get one, cause they are pretty neat, plus about a $100 price drop in about a month.

The problem isn't with money. It's with my parents.

There's always college to look forwards to :P

haha yeah. but that's in about three years :P

Unfortunately for a lot of people in college now, money is the problem.

Yes, that's too bad. However, one nice thing about my parents is that I get paid absolutely outrageous wages to work for my dad's side-company, science-surplus.
Title: Re: AR Code Generator (Pokemon)
Post by: DJ Omnimaga on July 30, 2011, 04:55:58 pm
Ohai Solus, and yeah, I remember my college year. Near the end I had some financial issues because I didn't get a loan(didn,t want debts) so I was paying school stuff from my small job. Plus I live in Quebec, where school is much cheaper than in the rest of Canada, let alone USA. (roughly $400-800 per semester, including books, but excluding appartment bills)
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 05:22:29 pm
Has anyone confirmed that it works now?  I can't test it myself.
Title: Re: AR Code Generator (Pokemon)
Post by: ben_g on July 30, 2011, 05:32:39 pm
use wabbitemu?
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 05:42:40 pm
use wabbitemu?

No, I don't have it installed currently
Title: Re: AR Code Generator (Pokemon)
Post by: DJ Omnimaga on July 30, 2011, 05:46:34 pm
Has anyone tried SourceCoder? You need a Cemetech account but sometimes, opening the program in SourceCoder, editing/saving it (making sure the program is unlocked in the options) and then sending it to the calc fixes it.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 30, 2011, 05:57:07 pm
Has anyone tried SourceCoder? You need a Cemetech account but sometimes, opening the program in SourceCoder, editing/saving it (making sure the program is unlocked in the options) and then sending it to the calc fixes it.

I just wanna be sure it sent .8xp files and not .TiProgram files like it had been
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on July 31, 2011, 03:57:22 am
The .8xp files are working! The three programs are on my calc now, and they seem to work fine. However, my 3DS doesn't seem to be able to read the AR Markers well, because of how the calc screen is made... :/ And for some reason, after inputting Leavanny's Unova dex number (048), the program displayed "PIGNITE 542", but the AR Marker was Leavanny's. And for some reason, 152 (Kyurem) didn't produce an AR Marker that worked, and no name was displayed.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 31, 2011, 06:37:09 am
The .8xp files are working! The three programs are on my calc now, and they seem to work fine. However, my 3DS doesn't seem to be able to read the AR Markers well, because of how the calc screen is made... :/ And for some reason, after inputting Leavanny's Unova dex number (048), the program displayed "PIGNITE 542", but the AR Marker was Leavanny's. And for some reason, 152 (Kyurem) didn't produce an AR Marker that worked, and no name was displayed.

Found the bug causing the problems.  Open POKEDEX and scroll down a bit.
Replace the:
Code: [Select]
Input "Dex Num:",Q
If {theta} <=155
Q +494 ->Q
with
Code: [Select]
Input "Dex Num:",Q
If Q <=155       //The theta needs to be a Q
Q + 494 -> Q

I don't have time to reupdate the download right now, but I will when I have time.  If you fix the program, it should work.
As for making them show up to the 3ds, increase the screen contrast so that is black and that light green.
Thanks for pointing out the bug!
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on July 31, 2011, 08:19:42 am
I added that modification to the program, and optimized things a bit. (I can upload the changed version if you want to). Leavanny still displays the name PIGNITE, and Kyurem's AR Marker has changed (it still isn't valid) and it's named "RRLOIN  LI". I'm not sure if that problem is caused by my optimizations or not.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 31, 2011, 08:53:55 am
Sure. I would appreciate the optimizations.
I have a version that actually works (I think) on my calc ATM, do I will upload that later today, when I have a chance. I think I know why the names aren't writing themselves correctly, but I'll look at what you post in order to make sure.
Thanks for helping me get this running correctly! ;D
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on July 31, 2011, 09:12:23 am
Here are the files! Most of the optimizing was done by removing parentheses and using DelVar instead of storing 0. The "Q instead of theta" change is also present.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on July 31, 2011, 03:38:00 pm
Thanks man! I will upload a hopefully glitch-free version in a few minutes.  I figured out why the names were messing up, a simple variable problem.  Hooray!

EDIT:
Here it is, a [hopefully] glitch-free version.  I haven't put in JosJuice's optimizations yet, I wanted to post this quickly, and I know this version works.  Kyurem (152) does work, though only if it is already unlocked, JosJuice. 

The main post download will also be changed, again  <_<
Title: Re: AR Code Generator (Pokemon)
Post by: JosJuice on August 01, 2011, 01:19:40 am
It seems to work nicely now! The Pokédex logo is drawn a bit faster, too, which is helpful when starting the program. I still haven't managed to make my 3DS read the calc screen, but I would like to thank you for creating this program anyway.
Title: Re: AR Code Generator (Pokemon)
Post by: chattahippie on August 01, 2011, 11:41:21 am
It seems to work nicely now! The Pokédex logo is drawn a bit faster, too, which is helpful when starting the program. I still haven't managed to make my 3DS read the calc screen, but I would like to thank you for creating this program anyway.

Yeah, I tried to speed that up from the slowness known as Pxl-On(.
May I suggest editing the contrast to have as much contrast between the screen and the on pixels to help it worked, it worked for me.
And thanks for helping me finally release a working version, after about five or six tries! ;D

I might try to make this into an Axe program, as an easy intro to Axe kinda thing.  It would definitely increase the speed factor :P