Forums

Topic: Petit Computer

Posts 9,461 to 9,480 of 9,620

If_Then_Else

NFreak007 wrote:

If_Then_Else wrote:

Hi, I'm new here and I have a question: up to now, I developed with Petit Computer on a DSi. If I want to share my programs with friends on 3DS, is it correct that the only modification I have to do is changing the background size? Or is this not even necessary?
Thanks in advance for your help!

That won't be necessary. The 3DS runs DSiWare titles at their original resolution, so you can share your programs as they are with no problems!

Great, thanks!
Does it mean they will appear cropped on 3ds screens? Or do they extend to fill the bigger screen?

If_Then_Else

CinnamonRobin

If_Then_Else wrote:

NFreak007 wrote:

If_Then_Else wrote:

Hi, I'm new here and I have a question: up to now, I developed with Petit Computer on a DSi. If I want to share my programs with friends on 3DS, is it correct that the only modification I have to do is changing the background size? Or is this not even necessary?
Thanks in advance for your help!

That won't be necessary. The 3DS runs DSiWare titles at their original resolution, so you can share your programs as they are with no problems!

Great, thanks!
Does it mean they will appear cropped on 3ds screens? Or do they extend to fill the bigger screen?

By default they'll expand to fill as much of the screen as possible without changing the aspect ratio. As the 3DS' screens are higher resolution this results in it looking a little blurry. If that bothers you, you can also make Petit Computer (and any other DS or DSiWare game) run in its original resolution by holding down Start or Select when you start the game from the 3DS Home menu.

CinnamonRobin

If_Then_Else

NFreak007 wrote:

If_Then_Else wrote:

NFreak007 wrote:

If_Then_Else wrote:

Hi, I'm new here and I have a question: up to now, I developed with Petit Computer on a DSi. If I want to share my programs with friends on 3DS, is it correct that the only modification I have to do is changing the background size? Or is this not even necessary?
Thanks in advance for your help!

That won't be necessary. The 3DS runs DSiWare titles at their original resolution, so you can share your programs as they are with no problems!

Great, thanks!
Does it mean they will appear cropped on 3ds screens? Or do they extend to fill the bigger screen?

By default they'll expand to fill as much of the screen as possible without changing the aspect ratio. As the 3DS' screens are higher resolution this results in it looking a little blurry. If that bothers you, you can also make Petit Computer (and any other DS or DSiWare game) run in its original resolution by holding down Start or Select when you start the game from the 3DS Home menu.

Many thanks!

If_Then_Else

Mariominer

Okay, this is driving me nuts. I'm writing a text box feature for my game, so I added a feature to make the box change size. I'll slightly edit the line I added to make it readable with just the bugged line:
PRINT ("|"+(" "X29)+"|"+" |")X(3-LIN)
LIN is how many lines the text takes up and the current max is three. My question is why does this code bug? It doesn't give me an error, but at the bottom it SKIPS A LINE. This leaves the box open, and why would I want that? Please help. And before you complain, if I ' the line out, it works fine, so it is just that line causing this. Note the X's in the line mean multiple by. I had to do this because otherwise it would be Bold

Edited on by Mariominer

Like a boss? Please, I AM a boss. You're welcome

3DS Friend Code: 1543-5315-3818 | Nintendo Network ID: Storybookten9

Discostew

Mariominer wrote:

Okay, this is driving me nuts. I'm writing a text box feature for my game, so I added a feature to make the box change size. I'll slightly edit the line I added to make it readable with just the bugged line:
PRINT ("|"+(" "*29)+"|"+" ")+(3-LIN)
LIN is how many lines the text takes up and the current max is three. My question is why does this code bug? It doesn't give me an error, but at the bottom it SKIPS A LINE. This leaves the box open, and why would I want that? Please help.

I assume the "+" prior to the (3-LIN) is meant to be a "*" (multiply)?
Anyways, the reason why it bugs out is it adds the CR-LF command characters to the end of the print (carriage return, line feed). Basically, it restarts on the left-side, and onto the next line. While this won't be a problem for most places with printing, it does affect the very last line. Because it not only reached the end horizontally, but also vertically, it pushes everything on the screen up one line so it can have a new line to work with at the very bottom. To prevent this, add ";" to the end of your print statement, like...

PRINT ("|"+(" "x29)+"|"+" ")x(3-LIN); (replace "x" with "*").


Now for some odd (and possibly bad) news. I thought I had a couple hundred lines left to work with before I'd reach the 9999 line limit, but it turns out I have around 50 left. I already did some clean-up, but I don't know how much more I can combine together. I am getting rather close here, but I will continue to see what I can do as I continue this development. Some things I had planned for the project may not be added because of this (like Boss Rush mode). We shall see.

Edited on by Discostew

Discostew

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

Mariominer

Thanks @Discostew! I knew that sometimes that happened (I've run lines that went a little over and did the same thing) But I didn't know that you could fix it in any way. So thanks.

Like a boss? Please, I AM a boss. You're welcome

3DS Friend Code: 1543-5315-3818 | Nintendo Network ID: Storybookten9

Discostew

Now I'm starting to get worried with my project. I'm not sure what's going on, but every little I add is beginning to affect the last lines of code, insomuch that commands/characters are disappearing, and some lines are forced into others (not of my doing) and messing them up. I'm wondering if I truly am hitting the character limit and not just the line limit. It is almost 400KB for just the program.

Edited on by Discostew

Discostew

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

Discostew

I think I have a way to fix my problem. My program used a lot of DATA outside of GRPs, consisting of numbers and strings. I'm attempting to take most of that, and push them into GRPs and make subroutines that will access them in a similar fashion as I currently access them now. That should not only free up program space, but also program lines. The DATA for the credits alone is a good 50 lines and used up over 2000 characters. 2KB may be a drop compared to 400KB, but every little bit helps at this point.

Discostew

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

Mariominer

Hello people! Just so I not only just made a text box feature, but also a 'Choice box' feature. Basically you set what each option is on the array 'OPTIONS$' and say what number the options go up to and it creates a box with these options that lets you select one of the options and sends back data telling the program where to go. If you don't know how I did this, here it is: First it creates where the box will go. OPT is how many options there are:
LOCATE 0, 27-OPT
Then it creates the top layer that we've already made room for (and the bottom layer):
PRINT "/"+("-"*29)+""
Note that that isn't what you need to use, I didn't use it either but that character doesn't exist on a keyboard. Anyway, to display the options, we use this code:
FOR I=0 TO OPT
PRINT "|"+OPTIONS$(I)+(" "*(29-LEN(OPTIONS$(I))))+"|"
NEXT
Finally the bottom layer, it's practically the same as the top, so there's no point showing you it. See? The code is fairly easy. You have a variable (like CHO or DEC) then you have the A button return the value of the variable, the up button make the variable one less (with IF CHO<0 THEN CHO=OPT) and down make the variable one more. Fairly simple, but wait-how will the user tell which one is currently chosen? It's a matter of preference, so you decide, because I bet this entire thing probably bored you to death and If you don't know how then you should go to the tutorial section! Anyway, the next thing I need to add is a respond box feature. Basically a box where you can type a free response. So if you go to sell something, there's too many things to just make a choice box, and no max inventory to go through, so you'd enter what you want to sell. Also, what I need to add next to my HOME project (You probably haven't heard of it) is self employment, where say you buy an oven, you can run a bakery! This would be a tremendous feature though, as I'd have to add code to hire workers, see if your workers are behaving, fire workers, have a business expense, ect. So when I release it it will be amazing.

EDIT: Okay, I don't want to double post. So I have code that runs this line: IF INKEY$()!=CHR$(13) THEN DVAR$=DVAR$+INKEY$(). My problem is that even though it specifies the line end character to not be allowed to be inputted, NOTHING gets inputted. I've run tests and haven't found anything wrong with INKEY$() and the line end character. The only thing inputted is the tab character.

EDIT 2: Okay, I solved my problem. The problem was that INKEY$() Clears its memory when called, kind of like read url (is that right?) in Python. So the main problem was it passed the test, but then it had nothing to add. So I fixed it by making INPK$=INKEY$(). Easy! Thanks anyway! I'll tell you how it goes, but it will probably take a lot of convincing to let my mom let me upload it's QR's, but I'll try when I get 2.5 released (I've been working on it for a while without giving it to anybody...)

Edited on by Mariominer

Like a boss? Please, I AM a boss. You're welcome

3DS Friend Code: 1543-5315-3818 | Nintendo Network ID: Storybookten9

Mariominer

Okay, heck with it, if nobody's going to respond before I do, don't want to have too long of a post, so here we go.
Wow @Discostew, I've never heard of anyone going over the allotted amount of characters, though it is a large project, it might be SCARY!
Today is Halloween, so everything is scary... Yeah.
My saving and loading on my project HOME is bugged-SCARY!
When I see small programs that do a lot-SCARY!
Anyway, on HOME I'm very far away from reaching the limit, but maybe I should eliminate some lines that don't do anything to save space, because It could be the difference between 2.5 being 1000 lines or 900. My current feature I'm working on is saving, because there's so much you need to do to become a tycoon and with entrepreneurship on it's way, there will be so much to lose, and I plan to add computers that have online shopping using CC-computer credits-to purchase items that change every day. You'd earn CC by playing 'online' games. So you'd need to save if you wanted to take advantage of the computers. The problem is, when it saves, it doesn't put the dots where it would save it, so I have to figure this out. That's all for this post, and happy Halloween! ~ Mariominer

Edited on by Mariominer

Like a boss? Please, I AM a boss. You're welcome

3DS Friend Code: 1543-5315-3818 | Nintendo Network ID: Storybookten9

Discostew

Well, been doing a lot of clean-up with the code (still in the process), and I found out that there's a decent amount of it that I left after development of the various AI routines that was just copies of other lines, so that gave me some lines/space back. Also have been shifting many DATA lines into GRPs that were only read once or not often, so there's more space back. It looks like I may be able to throw in Boss Rush mode after all (and I composed a new audio track from an existing Megaman game just for that. Try and guess what it might be), but I had to make a few unique entities for it to work the way I wanted it to (not available for custom levels, but the audio track may be).

Discostew

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

Discostew

I have a question for all. Based on the original Megaman 2 game for the NES, how would you rate the Flashman fight with just the Mega Buster, with 1 being super easy and 10 being super hard? While I have been able to mimic his AI, I found the fight with the default weapon to be rather easy because of how he reacts to getting hit, and his attacks to be relatively weak. If you find it easy (or hard), what would you suggest be changed? Because I find it easy, I was thinking of making some changes (implement some but not all) to increase the difficulty.

  • Reduce the time between freeze flashes
  • Increase his weapon damage
  • Increase the angle range of the shots fired
  • After getting hit, the timer for his flash is reduced to a short time, and he's invulnerable until after the flash

Discostew

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

brizobst

Discostew wrote:

I have a question for all. Based on the original Megaman 2 game for the NES, how would you rate the Flashman fight with just the Mega Buster, with 1 being super easy and 10 being super hard? While I have been able to mimic his AI, I found the fight with the default weapon to be rather easy because of how he reacts to getting hit, and his attacks to be relatively weak. If you find it easy (or hard), what would you suggest be changed? Because I find it easy, I was thinking of making some changes (implement some but not all) to increase the difficulty.

  • Reduce the time between freeze flashes
  • Increase his weapon damage
  • Increase the angle range of the shots fired
  • After getting hit, the timer for his flash is reduced to a short time, and he's invulnerable until after the flash

1, I guess. I don't ever remember dying to him. I'd say leave the difficulty mode as is though, or maybe have an optional difficulty setting. It was pretty neat how the megaman zero series had rankings, and the bosses had special attacks if you're rank was high- though I know it's a lot easier to think of ideas than it is too actually program them, especially with the line limit...

brizobst

TexMurphy

Posted on the qrcode forum a new background editor program. It uses GRP file format.

TexMurphy

GraphicGenius

I need credits for my Text RPG, and accidentally deleted Randomous' credits program. Can someone give me a link or the qr codes?

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?

3DS Friend Code: 1478-3545-5136 | Nintendo Network ID: GreatGamer123

Discostew

MyLegGuy wrote:

How do I make bgm loop forever?

Brackets. Enclose the portion you want looped into the brackets. If you put a number greater than 0 right after the closing bracket, then that loop section will only loop that number of times. If you put 0 or no number after it, then it loops forever.

Edited on by Discostew

Discostew

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

MyLegGuy

What did I do wrong here?

@A
DATA "[:0T115@12O4C8F8A8O5C8.R16O4B-8.R16A8B-4R8O5G8D8.R4R16O4C8E8G8B-8.R16A8.R16G8A4R8O5"
DATA "F8D8.R4R16O3B-8O4D8A8G8.R16F4R8E4R8D4.O3C8.R16O4F8F8.R16F8.R16F8G8.R16"
DATA "A-4R8G4.O3E-8R8O4C8F8A8O5C8.R16O4B-8.R16A8B-4R8O5G8D8.R4R16O4C8E8G8B-8.R16A8.R16G8"
DATA "A4R8O5F8D8.R4R16O3B-8O4D8A8G8.R16F4R8E4R8D4.O3C8.R16O4F8F8.R16F8.R16F8G8.R16"
DATA "A-4R8G4.O3E-8R8O4C8F8A8O5C8.R16O4B-8.R16A8B-4R8O5G8D8.R4R16O4C8E8G8B-8.R16A8.R16G8"
DATA "A4R8O5F8D8.R4R16O3B-8O4D8A8G8.R16F4R8E4R8D4.O3C8.R16O4F8F8.R16F8.R16F8G8.R16"
DATA "A-4R8G4.O3E-8R8"
DATA ":1T115@12O3A8O4C8F8A8.R16G8.R16F8G4R8O5D8O4B-8.R4R16O3G8O4C8E8G8.R16F8.R16E8F4R8O5"
DATA "D8O4A8.R4R16O3F8B-8O4F8E8.R16D4R8C4R8O3B-4.R4O4C#8C#8.R16C#8.R16C#8E-8.R16"
DATA "F4R8E-4.R4O3A8O4C8F8A8.R16G8.R16F8G4R8O5D8O4B-8.R4R16O3G8O4C8E8G8.R16F8.R16E8F4"
DATA "R8O5D8O4A8.R4R16O3F8B-8O4F8E8.R16D4R8C4R8O3B-4.R4O4C#8C#8.R16C#8.R16C#8E-8.R16"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
DATA ":7T115R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1R1]"
DATA 0
BGMSETD 128,@A
BGMPLAY 128

Edited on by MyLegGuy

Hello.

Nintendo Network ID: MyLegGuy2

damolii

Ah geez, it's been a while....
Well, hey, everyone.I'll just make the intro quick. I'm sure some people remember (Notice me, Disctostew XD), but if you don'r, I used to program on Petit C. a lot Anyways, my main reason for coming back was to ask: are there any programs like Petit out there? Any programs that have such ease when it comes to programming. I, for one, just enjoyed the general feel Petit Computer gave to BASIC, and I hope there are other programs out there that do the same thing, but for different languages.
Alright then Thanks, everyone.

I don't have a 3DS so what do I put here? -Damolii

Please login or sign up to reply to this topic