Forums

Topic: Petit Computer

Posts 7,861 to 7,880 of 9,618

Discostew

Yep, MAINCNTL(ow) and MAINCNTH(igh). You can make 2 variables that hold these values, and then each loop, first examine MAINCNTLH to see if it differs from what you recorded. If the same, then check MAINCNTL.

Discostew

Switch Friend Code: SW-6473-2521-3817

LeviCelJir

@IAmAPerson I successfully converted my 1.5 map into 1.7.1 with no crashing and I can build and save Yayyyyyy!!!!!!!! I'm getting so much done today...

Hi I'm Levi and I like Bloopys :^)

ramstrong

@randomous

If that stream is y*256+x, then my understanding of @Discostew algorithm is correct. Just in case, here is something to try. Replace the core of the program

GPAGE 0
C=GSPOIT((I*64+X*8+XX),(J*64+Y*8+YY))
GPAGE 1
GPSET CX,CY,C
CX=(CX+1)%256
IF CX==0 THEN CY=CY+1

With this straight translation from Discostew code:

GPAGE 0
OS=J*16384+I*4096+Y*512+X*64+YY*8+XX
IS=J*16384+I*64+Y*2048+X*8+YY*256+XX
OSX=FLOOR(OS%256): OSY=FLOOR(OS/256)
ISX=FLOOR(IS%256): ISY=FLOOR(IS/256)
C=GSPOIT(ISX,ISY)
GPSET ISX,ISY,0
GPAGE 1
GPSET OSX,OSY

The pictures given by both versions are identical. So, I don't know what's wrong. Maybe Discostew can enlighten me?

[Edited by ramstrong]

Petit Computer Journal
Old site http://ramstrong.blogspot.com

Let's just call a spade, a spade.

Discostew

@ramstrong @randomous You really want to know where the problem lies? You're going to hit yourselves on the forehead after I tell you this.

Here's the thing about the GRP within PTC. It's "already" in the 8x8,8x8,4x3 format. What you want to do is convert in the "opposite" direction. In the portion where you have the GSPOIT and GSET, swap the location variables/algorithm, so that you're reading with CX/CY, and writing with the other calculation.

The current setup is taking the current format, and applying the 8x8,8x8,4x3 conversion a 2nd time. That's why it looks so screwy. Basically, you were converting into it rather than converting out of it.

[Edited by Discostew]

Discostew

Switch Friend Code: SW-6473-2521-3817

ramstrong

Discostew wrote:

@ramstrong @randomous You really want to know where the problem lies? You're going to hit yourselves on the forehead after I tell you this.

Here's the thing about the GRP within PTC. It's "already" in the 8x8,8x8,4x3 format. What you want to do is convert in the "opposite" direction. In the portion where you have the GSPOIT and GSET, swap the location variables/algorithm, so that you're reading with CX/CY, and writing with the other calculation.

The current setup is taking the current format, and applying the 8x8,8x8,4x3 conversion a 2nd time. That's why it looks so screwy. Basically, you were converting into it rather than converting out of it.

Ahahaha, the double encoding problem I've been very careful about! Well, @randomous, you know what to do now. ^_^;

Petit Computer Journal
Old site http://ramstrong.blogspot.com

Let's just call a spade, a spade.

ShadowGame

I've got a question:
Is Petit Computer Utilites legal to download?

ShadowGame

Pixelrobin

@ShadowGame of course! Why would it be illegal? Its used to manipulate PTC files. Would the hundreds of photo editing programs out there be illegal too since they didn't own the photo file formats?

Everybody do a chirp. CHIRP.

GraphicGenius

@randomous If you are making sudoku you should use that NUMRECOG thing in it.

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens. Wait was that just a joke?

randomous

@GraphicGenius Hmm... it's almost like that's what I made it for lol (sarcasm). I'm sorry, I know that was rude. Yes, that's what I'm planning on doing.

randomous

GraphicGenius

@randomous by the way can you do something where it doesn't print any of the data or guesses?

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens. Wait was that just a joke?

randomous

@GraphicGenius I'd like to finish up the Sudoku game first, then I'll release a number recognition tool. I know I'll be adding stuff to it (like saving your handwriting and whatnot), plus I might tweak the recognition function, so I want to wait. I'm sorry!

randomous

InsertPi

Ok. I have finished Minecraft DS Beta 1.8 (@Bluerobin2 you are now in the credits under "Terrain Generator"), I will now work on syntax highlights in my THOLITU interpreter! dag nab it...

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

Pixelrobin

@IamAPerson hey thanks! So I see you found it useful and glitch free? No seriously, any problems with it? I am using it myself you know.

Everybody do a chirp. CHIRP.

InsertPi

@Bluerobin2 it is working perfectly. I've changed it to my needs, and it's much faster than my other one. (My other one for a 64x64 map took about 30 tones as long as yours, no exaggeration)

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

ShadowGame

When is the iOS edition of the strategy guide going to come?

ShadowGame

InsertPi

I might not be able to release Minecraft DS Beta 1.8 or the THOLITU interpreter this weekend. Definitely not today. Last night one of my dogs (Maggie) attacked my other dog (Sebastian) and drew blood. She has a history of aggression. Sebastian is in the animal hospital right now getting stitches in his arm. We can no longer keep Maggie; she is too aggressive and territorial. She was a rescue dog, but we can't have her in our house anymore. If we can't find another family with no other pets or children who will be willing to adopt her, she will have to be put down (humanely killed). My grandmother also has a birthday today, so that's going on. So, yea. I can't release anything today. I hope you understand, and sorry for the off-topic.

On the bright side, I have added nice syntax highlighting in THOLITU, and I'm working on FOR loops! (The actual command is about like this: ^*~%{I}>[I^1].0@5{} )

EDIT: Maggie will be put down on Monday.

[Edited by InsertPi]

If Facebook, Myspace, Twitter, Instagram, and Snapchat were all destroyed, 90% of teens would go insane. If you're one of the 10% that would be laughing at them, copy & paste this into your signature and hope it happens.

X:

Sorry, this topic has been locked.