Forums

Topic: Petit Computer

Posts 2,901 to 2,920 of 9,620

Pixelrobin

Just for an example, Here is the code for only the navigation of the site (which currently only has a Home button)

<center><table border="0" bgcolor="#3d85c6">
<tr>
<th><a href="http://petitcommunity.blogspot.com">
<img src="http://imageshack.us/a/img843/9595/homekv.png" alt="Go Home" title="Go Home" width="99" height="38" onmouseover=" this.src=&#39;http://imageshack.us/a/img198/4762/homemouse.png&#39;" onmouseout=" this.src=&#39;http://imageshack.us/a/img843/9595/homekv.png&#39;"
style="cursor:pointer;" />
</a></th>
<th>Menu is still in progress</th>
</tr>
</table></center>

O.o

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

GeekDude

It's not online, it's downloadable. Petit Editor already has that covered, I just wanted a simple and stable downloadable one. I'm naming it "PyTC QR Editor", unless someone else can come up with something better.

GeekDude

Pixelrobin

@GeekDude what did you use to create this program?

Everybody do a chirp. CHIRP.

3DS Friend Code: 3007-9228-5126

Hairmanban19

Bluerobin2 wrote:

How is something like this? (I can change the color if I want)
Untitled

Also What do you think of the site so far? I've spent about an hour so far hand-coding it from the original Blogger site.
BTW the logo is Completely original (Except for the PTC part). I made it all using Greenfish Icon Editor Pro; A Photoshop clone.

I like that more!

...

3DS Friend Code: 3136-7615-5907

midasmulligan

Hello all. I've been working on a program, but having a problem with CHRED. After I save a CHR file and then reload it in the CHRED program, it looks like my images are being over written, like images are being copied on to half of my images. This only started happening recently, but now my images are completely distorted. Anyone seen this before?

midasmulligan

randomous

@midasmulligan Are you using a size other than the default? I've always had trouble with sprites that aren't 16X16.

@GeekDude Wow, that program is cool. Can you give a quick overview (or a link to the place where you got it) of how the header/footer of the code is structured? When you look at a PTC file, it's got all this junk at the top/bottom. Is that important, or is that stripped off when the QRs are generated? Thanks.

Edited on by randomous

randomous

Discostew

@midasmulligan - Are these CHRs for the BG, or for SPs, and are you setting the tab to BG/SP just to the right of the edit window for those particular CHRs? All CHRs arrange their "tiles" in 8x8 blocks. SPs use a sequence of these 8x8 blocks to form other dimensions, like 16x16, 32x8, 64x64, etc. When the SP tab is set, it not only loads the CHR from the SP slots, but it also arranges the CHR so you can see what they'd look like if the entire CHR was using the designated dimensions you selected. With the BG tab, they do not at all. they remain as 8x8 blocks.

Discostew

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

randomous

@Discostew I know that wasn't directed at me, but thanks for the information!

randomous

midasmulligan

@Discostew hmmm. For instance, I modify an SU character then save this with the SU tab still selected. I then reload this "file" and now all the SU characters have half of their images copied over by the "original" image.

midasmulligan

GeekDude

@randomouscrap98
When you open a .PTC file from the SD card, there is a bit at the top, and for some reason, sometimes a single null character at the bottom. To be honest, I have no idea what any of it means. I'm not even sure what some of the QR code format means. The PTC file format and the qrcode format, however, are completely different. I learned the QR code format for PTC by viewing the page source of PetitEditor. If you would like, I could attempt to write a guide to it, but it wouldn't be simple to understand. Perhaps a better way would be to show my (well commented) python source code?

GeekDude

randomous

@GeekDude Sure, that sounds great!

@Bluerobin2 Just leave the logo blue but change the color of the site. This is just my opinion, but I don't like it when a site is all blue (or red or green).

Edited on by randomous

randomous

randomous

@GeekDude I've written in Python before, so I'll manage. Thanks for posting it! Now maybe I'll write my own stripped-down IDE just for fun.

Edit: The first "Converted from PetitEditor" brings characters who have codes beyond 255 down to an acceptable range by just chopping off all the bits except the first 8. So, special characters and stuff turn into random characters. It's not a good solution, considering that typing a random character (like Ʃ) may insert something like "A" and change the meaning of your code. You may want to change that to a simple if statement and just remove unwanted characters. The "PETCO0300RPRG" and all that junk is a portion of the header, which is actually included in PTC files too (but you already knew this). That second for loop after compressing does the same thing, but I don't know why... maybe just for safety.

Huh, look at this: http://www.gamefaqs.com/boards/663843-petit-computer/66379522
Why does everybody get the same idea at the same time?

Edited on by randomous

randomous

Discostew

@midasmulligan - Think you could take a photo of your problem? A "before" and "after" shot, using a camera, phone, etc? It may give us a better understanding of what the problem is.

Discostew

3DS Friend Code: 4425-1477-0127 | Nintendo Network ID: Discostew

GeekDude

@randomouscrap98
I was thinking it might be a good exercise to just make it a code editor plugin, like N++, or SciTE
Also, PetitEditor's code was highly redundant

Edited on by GeekDude

GeekDude

randomous

@GeekDude Oh, I wasn't saying it was a bad thing that multiple people decided to write the same thing, I just thought it was interesting. The same thing happened here, when a bunch of us decided to make drawing applications. Also, if you change the zlib.compress(code_data) to zlib.compress(code_data,9), you may get less QR codes.

randomous

Please login or sign up to reply to this topic