Homebrew Homebrew Development

ernilos

Well-Known Member
Member
Joined
Aug 28, 2013
Messages
145
Trophies
0
Location
CAT
XP
260
Country
United States
Good progress made on 3DSController today:

- The IP is now read from the 3DS SD card, in "root:/3DSController.ini" rather than being hard coded into the app,
- The touch screen now moves the mouse on the PC,

Initial release will be soon.

I did a shit like this a loong time ago, I used it to play Osu! easy songs xD
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,658
Trophies
2
Age
44
Location
Engine room, learning
XP
15,225
Country
France
if you could stream your PC to the console at the same time that would be even better for Osu :P


Someone made a server/client controller for Wii and Windows using PPjoy. (PadSend, look in the homebrew competition section)
It's currently only compatible with Gamecube and DS, but that would be great if his project wasn't dead :(
Maybe you could try to contact him if you could add 3DS support?
 
  • Like
Reactions: filfat

YoshiInAVoid

Banned!
Banned
Joined
Jan 10, 2011
Messages
560
Trophies
0
Website
google.com
XP
453
Country

minexew

ayy lmao
Member
Joined
Mar 16, 2013
Messages
228
Trophies
0
XP
264
Country
Soooo has anyone found out yet how to either
- change newlib's stdout pointer to your own FILE*
- redirect printf, puts etc. without recompiling the whole of devkitARM
?

I've looked around the newlib sources for a bit, but haven't found a function that could do either. (at least now I know where the stdout pointer is located)
I assume it would be possible to get hold of the default stdout structure and rewrite its contents, but I'm keeping that as the last resort.
 

YourNerdyJoe

Active Member
Newcomer
Joined
Jul 18, 2014
Messages
41
Trophies
0
Age
25
Website
yournerdyjoe.github.io
XP
169
Country
United States
Soooo has anyone found out yet how to either
- change newlib's stdout pointer to your own FILE*
- redirect printf, puts etc. without recompiling the whole of devkitARM
?

I've looked around the newlib sources for a bit, but haven't found a function that could do either. (at least now I know where the stdout pointer is located)
I assume it would be possible to get hold of the default stdout structure and rewrite its contents, but I'm keeping that as the last resort.

I found this way back when I was doing gba homebrew. If you look in his stdio-0.1.tar.gz you'll see he modifies functions like _write_r which I believe are called by printf and other functions in newlib.
Maybe you can do something like this for 3DS.
 
D

Deleted User

Guest
Soooo has anyone found out yet how to either
- change newlib's stdout pointer to your own FILE*
- redirect printf, puts etc. without recompiling the whole of devkitARM
?

I've looked around the newlib sources for a bit, but haven't found a function that could do either. (at least now I know where the stdout pointer is located)
I assume it would be possible to get hold of the default stdout structure and rewrite its contents, but I'm keeping that as the last resort.


I usually just override printf, etc by defining it to my own function that calls svcPrintDebugString. Useful for printing debug to a console when testing in an emulator.
 

minexew

ayy lmao
Member
Joined
Mar 16, 2013
Messages
228
Trophies
0
XP
264
Country
I found this way back when I was doing gba homebrew. If you look in his stdio-0.1.tar.gz you'll see he modifies functions like _write_r which I believe are called by printf and other functions in newlib.
Maybe you can do something like this for 3DS.

Yeah, that still involves recompiling newlib though.

I usually just override printf, etc by defining it to my own function that calls svcPrintDebugString. Useful for printing debug to a console when testing in an emulator.

I might actually end up doing something this awful, thanks for the idea.
 

jasonmbrown

Well-Known Member
Newcomer
Joined
Sep 11, 2010
Messages
47
Trophies
0
XP
183
Country
Canada
Im almost Finished a really Crappy homebrew version of space invaders, If anyone wants to check out the first version of it. I uploaded it below. No source for the moment.

Keys are as follows
R Trigger = Reset level
A Button Fires Bullet
Start Resets
Circle Pad Left Or Right Moves you.

Theres No Game over yet so you cant actually die. Its my first time coding anything in C So I dont think its 2 bad. Uses pixel Collision which is a little bit buggy. Gimme some feed back :D (I am Trying to make it Very configurable but im going to have to double check all my math, and im having trouble with larger sprites (invaders). I coded Mostly From scratch, With the exception of the fonts, which I grabbed from a github somewhere that has the entire unicode system pre converted to a nice and easy "bits" format (each 8x8 sprite only uses 8 char variables) Il get the link later when i upload the source

Left in a really Dumb Bug, Fixed it now though. Gonna figure out why Its lagging so much. Enjoy!...
Edit:OOps didnt actually update the fixed File.. Reupped

Just a heads up Some stuff thats broken with it, The invaders teleport so if your shooting between them you probably wont ever hit them. *its pixel collision based as well so you will notice lag the more bullets you spam out, im going to optomize the pixel collision as best i can* Bullets are only 1 pixel but im going to make them a bit bigger (although im not sure how much bigger)

I do plan on having a small menu and a level editor by the first version, but i have to get my code for loading different "sprites" to work correctly.


Does anyone Have a built version of citra emulator?.. (current github version isnt building?)
 

Attachments

  • Spaceinvadersv01b.zip
    45.2 KB · Views: 1,644

2Hack

HYPiavelli
Member
Joined
Nov 26, 2014
Messages
2,255
Trophies
1
Location
Underground
Website
soundcloud.com
XP
3,121
Country
Canada
Left in a really Dumb Bug, Fixed it now though. Gonna figure out why Its lagging so much. Enjoy!...
Edit:OOps didnt actually update the fixed File.. Reupped

Just a heads up Some stuff that's broken with it, The invaders teleport so if your shooting between them you probably wont ever hit them. *its pixel collision based as well so you will notice lag the more bullets you spam out, im going to optomize the pixel collision as best i can* Bullets are only 1 pixel but im going to make them a bit bigger (although im not sure how much bigger)

Pixels could use a little beefing up, but I'm not seeing any abnormal lag. Space invaders was initially supposed to be slow then speed up as sprites were removed, making it go at the intended speed.

There are areas where shots will go straight through without hitting anyone regardless, but thats obviously because you're teleporting them rather than moving them side to side.

Also you forgot to mention,

L+R+START+SELECT = Exit game.
 

jasonmbrown

Well-Known Member
Newcomer
Joined
Sep 11, 2010
Messages
47
Trophies
0
XP
183
Country
Canada
Pixels could use a little beefing up, but I'm not seeing any abnormal lag. Space invaders was initially supposed to be slow then speed up as sprites were removed, making it go at the intended speed.

There are areas where shots will go straight through without hitting anyone regardless, but thats obviously because you're teleporting them rather than moving them side to side.

Also you forgot to mention,

L+R+START+SELECT = Exit game.

Actually its just Start lol. Also I fixed A Major part of the lag that was happening, thats what v01b is lol... (I stoped it looping through every bullet including the non existant ones) Before I did the collision detection it was running WAY faster... so im gonna have to do something about that!
 

2Hack

HYPiavelli
Member
Joined
Nov 26, 2014
Messages
2,255
Trophies
1
Location
Underground
Website
soundcloud.com
XP
3,121
Country
Canada
Actually its just Start lol. Also I fixed A Major part of the lag that was happening, thats what v01b is lol... (I stoped it looping through every bullet including the non existant ones) Before I did the collision detection it was running WAY faster... so im gonna have to do something about that!

Haha Yeah I think I should get to sleep. I always try the l-r-start-select combo first.
 

Arisotura

rise of melonism
Member
Joined
Dec 5, 2009
Messages
839
Trophies
1
Age
28
Location
center of the Sun
Website
kuribo64.net
XP
2,451
Country
France
is there a way (I mean already done by someone else's project) to fill portion of the screen with color based on 4 coordinates? making rectangles, but not with "pixel + height + width", more like 4 unaligned pixels.
Should I need to use the 3D engine with vertex? (it's only creating forms with triangles, not rectangles?)

Or do I need to coded it myself? maybe a scanline parser and filling matching pixels?

I didn't start anything yet, just reading and getting info on what I could do.
I never developed anything with 3D models, I would prefer to start with 2D.
If you want to draw non-trivial shapes, you'd be better off using the GPU I guess.
 
  • Like
Reactions: Cyan

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,658
Trophies
2
Age
44
Location
Engine room, learning
XP
15,225
Country
France
it depends what you mean by manager.
copy/delete/rename?

There are homebrew to mount SD and browse the files and folders.
But no renamer yet I think.
It could be useful to be able to rename files, to manage different Launcher.dat or multiple savegame files. (a savegame manager homebrew would be great)


Look at SDbrowser, by lectem.
http://wiki.gbatemp.net/wiki/List_of_3DS_homebrew_applications


If you want to edit your files without removing the SD card, you can use FTBrony.
it supports RNFR and RNTO commands, but maybe renaming is not working? git readme has this mention : rename syscall is broken?
instead transfer to computer, rename on computer, transfer again and delete old one.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Dark_Phoras @ Dark_Phoras:
    The younger generation uses mostly TikTok and YouTube, some Instagram. It seems like they don't care so much about social profiles.
    Gift
  • KenniesNewName @ KenniesNewName:
    I just keep it for worthless friends and families that don't do nothing
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I have no idea what's happening with all my friends from other places
    Gift
  • KenniesNewName @ KenniesNewName:
    It's weird people in their mid 50s-20s seems to like social media more than TikTok and YouTube
    Gift
  • KenniesNewName @ KenniesNewName:
    Unless they get paid to upload videos
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I used TikTok a couple of days and got tired
    Gift
  • Dark_Phoras @ Dark_Phoras:
    But it's still better than Facebook
    Gift
  • KenniesNewName @ KenniesNewName:
    One dude here swore I was trolling him on twitch and I never even used it
    Gift
  • Dark_Phoras @ Dark_Phoras:
    But that's a thing with social media; it creates an illusion of proximity, when in truth everyone is overwhelmed with all the information and all the social demands in the platforms
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And a lot of people are addicted to the phone, checking social media or talking with someone. Some exercise in the gym while being glued to the phone, not even activity takes them away from it
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And I was like that too, until I left social media. Now sometimes I'm grabbing my phone, opening the browser and thinking: I've seen everything I wanted to see, I don't have a reason to use the phone. And I put it down
    Gift
  • KenniesNewName @ KenniesNewName:
    I'd rather look at my phone than sit at a computer 24/7
    Gift
  • KenniesNewName @ KenniesNewName:
    Funnily when I'm out I hardly use my phone other than checking a message here and there
    Gift
  • KenniesNewName @ KenniesNewName:
    I'm mostly too busy making sure my neighbor doesn't get himself arrested
    Gift
  • Dark_Phoras @ Dark_Phoras:
    This evening two guys were speeding head first into my car in these:
    bolt-announces-a-custom-built-scooter-model-2-1024x536.jpg
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I didn't make case, I made my manoeuver to park the car. But I caught them off-guard, the one ahead hit the brakes and had to jump from the scooter. For a second I thought he would go against the car. They were trying to race through a gap they perceived, thinking I was going to always drive forward
    Gift
  • Dark_Phoras @ Dark_Phoras:
    I guess they learned a valuable lesson, don't assume that real roads are a playground
    Gift
  • KenniesNewName @ KenniesNewName:
    I had a woman walk in the middle of the intersection once I was debating on flooring it
    Gift
  • Dark_Phoras @ Dark_Phoras:
    In those cases I honk
    Gift
  • KenniesNewName @ KenniesNewName:
    I need to get my uncle to install a cow horn
    Gift
  • Dark_Phoras @ Dark_Phoras:
    Those scooters go 40km/h, and the kids were riding them with no helmets
    Gift
  • Dark_Phoras @ Dark_Phoras:
    And trying to make for the gap like they're Millennium Falcon
    Gift
  • KenniesNewName @ KenniesNewName:
    Annoying can't find any type c to usb adapters in my place at least they're like $3
    Gift
  • KenniesNewName @ KenniesNewName:
    Sweet found one installing emudeck
    Gift
  • KenniesNewName @ KenniesNewName:
    Lol stupid ips is blocking rom sites time for a vpn
    Gift
    KenniesNewName @ KenniesNewName: Lol stupid ips is blocking rom sites time for a vpn