DSiWare Forum

Topic: Petit Computer

Showing 2,701 to 2,720 of 9,568

AuthorMessage
Avatar

PixelRobin

2,701. Posted:

@Mrsirr thank you. I take piano so I know all the note stuff, I just needed to know how to write them into DATA. Thank you.
@Randomouscrap98 your text wrap program is amazing! I know you can set the sound. I also changed it around a bit and removed the sound and height variables, The yes no choice, and replaced all the top variables removed with numbers. I also added a sound when the player presses a or b.

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

randomous

2,702. Posted:

@Bluerobin2 Oh, you didn't need to let the user select Yes/No? Did you stick with the standard 3 line height or did you change it?

randomous

AuthorMessage
Avatar

MrSirr

2,703. Posted:

Bluerobin2 wrote:

@Mrsirr thank you. I take piano so I know all the note stuff, I just needed to know how to write them into DATA. Thank you.
@Randomouscrap98 your text wrap program is amazing! I know you can set the sound. I also changed it around a bit and removed the sound and height variables, The yes no choice, and replaced all the top variables removed with numbers. I also added a sound when the player presses a or b.

Oh cool! I play piano too! So did I help?

MrSirr

AuthorMessage
Avatar

MrSirr

2,704. Posted:

MrSirr wrote:

http://imageshack.us/a/img13/6375/qr0.png
http://imageshack.us/a/img203/596/qr1.png

Ok so I'm doin really good on my game. Its a simple car dodge game like frogger only its solely a survival game. Now if you time it just right, you can just go in circles and avoid the cars easily. Can someone give me a suggesion to fix it? Thanks. P.S. I got the idea from Car Accident, so credit to the creator.

EDIT: You might need this:

http://imageshack.us/a/img832/3692/qr0z.png
http://imageshack.us/a/img802/596/qr1.png
http://imageshack.us/a/img21/8189/qr2.png
http://imageshack.us/a/img716/8813/qr3f.png

MrSirr

AuthorMessage
Avatar

PixelRobin

2,705. Posted:

@Mrsirr Yes you helped. Thank You.
@Randomouscrap98 I made it 2, not 3.

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

randomous

2,706. Posted:

@Bluerobin2 Wow, did you need a lot of screen space? Or do you just like 2 better?

If anybody's interested, the QR stitcher I made is on the Petit Computer wiki, and I've added some features: http://petitcomputer.wikia.com/wiki/Petit_Computer_QR_Stitcher

@Discostew Maybe it'll be useful for your MM2 remake? All those QR's... if you had to stitch them by hand, it would be a nightmare! Unless you're going to release them individually/already have a stitcher.

Edited on by randomous

randomous

AuthorMessage
Avatar

Discostew

2,707. Posted:

@randomouscrap98 I've been using PTCUtilities QR code creator, which outputs the individual QR codes and makes an HTML page to display them all. It works, but it also means I'll have 100+ QR codes in a folder on my site, whereas I could probably use your program to make one image containing all codes, and reduce the clutter. I'll see what is needed when I get to that point.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

randomous

2,708. Posted:

@Discostew I didn't know PTCUtilities did that! I should really use it, but I don't want to keep scanning QR codes every time I want to test it on my system. That's cool that it makes an HTML page though.

Edited on by randomous

randomous

AuthorMessage
Avatar

Sniper101

2,709. Posted:

@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?

Edited on by Sniper101

Sniper101

3DS Friend Code: 2208-4619-7423

AuthorMessage
Avatar

Discostew

2,710. Posted:

Sniper101 wrote:

@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?

DATA 0 is just to indicate to the BGM functions that load/play music that it is the end of the current track.

The @x (where x is a number) is the way to set an instrument to the current channel. That's just basic MML design.

If you're referring to quotation marks for music like "CDEFGAB<C>", that's another design choice for MML to make it compatible with BASIC, as the only valid use of letters outside of quoted segments (which are strings in BASIC) are for functions, labels and variable names.

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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

AuthorMessage
Avatar

MrSirr

2,711. Posted:

Discostew wrote:

Sniper101 wrote:

@MrSirr What is the point of the DATA 0 part in your arpeggio program? Also why do you have to put @ in front of the instrument number? Another question, why do you put quotation marks around the instrument and note data?

DATA 0 is just to indicate to the BGM functions that load/play music that it is the end of the current track.

The @x (where x is a number) is the way to set an instrument to the current channel. That's just basic MML design.

If you're referring to quotation marks for music like "CDEFGAB<C>", that's another design choice for MML to make it compatible with BASIC, as the only valid use of letters outside of quoted segments (which are strings in BASIC) are for functions, labels and variable names.

Wow, you're good. Couldn't have explained it better myself(literally)

MrSirr

AuthorMessage
Avatar

randomous

2,712. Posted:

Well, I thought I'd share something that happened to me with you all in case it happens to you (although you may already know this):

I was implementing another feature in QuikNote which required a lot of jumping around and nested for-loops along with drawing/etc. Basically, it was doing a lot of repeated actions using for-loops. If I continuously ran a section of code within a for loop, the program would eventually crash with an "out of memory" error. Turns out that I was jumping out of a loop before the loop finished with a "GOTO" statement, but apparently however they've implemented the underlying code for "GOTO" doesn't take into account whether or not you're jumping out of the loop. They've probably got some code which keeps track of each loop you're in, and since I kept jumping out of the loop before finishing, it thought I was still in the loop, so when I came back to it, it thought I was in ANOTHER loop and made ANOTHER record for it. For you compiled language programmers out there, this is akin to "blowing the stack" because you made some super recursive function.

TLDR; Don't do this:

FOR I=0 TO 100
IF <WHATEVER> THEN <DO SOMETHING>:GOTO @ENDLOOP
NEXT
@ENDLOOP

Note: This is perfectly acceptable (if not a little messy) in pretty much all languages that are compiled to machine code (and support unconditional jumps to a fixed location), because the machine's not going to care about what loop you're in.

randomous

AuthorMessage
Avatar

Sniper101

2,713. Posted:

@Discostew Thanks. That's helpful.

Sniper101

3DS Friend Code: 2208-4619-7423

AuthorMessage
Avatar

Sniper101

2,714. Posted:

@randomouscrap98 Thanks. It's nice to know now.

Sniper101

3DS Friend Code: 2208-4619-7423

AuthorMessage
Avatar

randomous

2,715. Posted:

@TexMurphy Recursion is nice, but I've never liked it. If I could make a function iterative instead of recursive, even at the expense of extra data structures/complexity, I would. But I know they're useful! And yeah, pointers are always a pain, but unfortunately necessary in a lot of cases.

randomous

AuthorMessage
Avatar

Hamjam00

2,716. Posted:

I got bored this weekend and I made a simple drawing program. However, it only clears the screen with the a button. I'm going to fancy it up this week and get it up on twitter. (How do u post pics on nintendolife?)

Python, C/C++, Lua, Ruby rule (java is too complex lol)

Twitter: zombeesoft

AuthorMessage
Avatar

randomous

2,717. Posted:

@HamJam00 It's [img][/img] with the url in between

Also, here's a bunch of other stuff you can do: http://www.nintendolife.com/forums/help/helpful_tips_for_form...

Hey, I got bored this weekend and made a drawing program too! It's like it's the drawing program weekend or something. Well, really I got "inspiration" to make it, but it's still drawing program weekend lol.

Edited on by randomous

randomous

AuthorMessage
Avatar

PixelRobin

2,718. Posted:

@Randomouscrap98, Here is my updated version of your text wrap program that fits my needs. I hope it answers any questions.
Untitled
Note: This is just a demo for randomouscrap98. It is NOT a game.

Everybody do a chirp. CHIRP.

Blog: bluerobin2.blogspot.com
Backloggery: backloggery.com/bluerobin2

3DS Friend Code: 3007-9228-5126

AuthorMessage
Avatar

Nitras

2,719. Posted:

I just got petit composer, and while it's simple to use I have one question. How would I use an MML string saved in a GRP file?

Nitras

AuthorMessage
Avatar

Discostew

2,720. Posted:

Nitras wrote:

I just got petit composer, and while it's simple to use I have one question. How would I use an MML string saved in a GRP file?

Do you know how it writes the MML string to the GRP? Assuming you are able to get the length and position it starts, you just read it pixel-by-pixel, left-to-right, top-to-bottom on the GRP until you have multiple strings of the MML track (with each string being up to 256 characters). You would then use BGMSET or BGMPLAY, taking those strings, and using them for the parameters. For example, if you had A1$, A2$,...,A9$ filled with MML data, you'd use BGMSET like this...

BGMSET 0,A1$,A2$,A3$,A4$,A5$,A6$,A7$,A8$,A9$

If you needed only 5 string variables, you could still use the remaining ones, so long as they are empty.

If you are unsure about how to read from the GRP, just take a look at how I did it with my MM2 Audio Player.
http://lazerlight.x10.mx/projects/megaman-2-ptc/megaman-2-ptc...

Edited on by Discostew

"What fun is there in making sense?"
Lazer Light Studios - Home of the MM2 PTC project

Pokemon 3DS Friend Safari - Ice - Spheal, Sneasel, Lapras

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