* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: SF2D (3DS homebrew) Wrapper library  (Read 625 times)

0 Members and 1 Guest are viewing this topic.

Online gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 640
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
SF2D (3DS homebrew) Wrapper library
« on: October 22, 2016, 04:36:02 pm »
So after i saw countless 3DS homebrew titles and wondering how i could play them without the use of a 3DS emulator,
this is the result of it.
Most 3DS homebrew games use sf2d so i decided to basically emulate the sf2d's functions and sent them to their SDL2 equivalent.
After 2 days of work, Memory3DS, a simple 3DS homebrew game, was working properly with my library.



To the original source code, i only had to fix a bug and comment out some unemulated functions to get it to work.
Everything else was 100% 3DS-specific and i got it to work with my library.
My library also provides support for touch-screen and input support as well as some other functions. (like osGetTime())

The main reason why i did this library was to be able to play some 3DS homebrew games on my PC but
you can also use it for development purposes and use it to make your own 3DS title without resorting to an emulator.(or the real deal)

github repo is here :
https://github.com/gameblabla/sf2d_wrapper

To compile the Memory3DS game, go to same/modified_port and type make -f Makefile.SDL2.
Make sure you have SDL2, SDL2_gfx, SDL2_mixer and SDL2_image though.
There's also support for the SDL 1.2 series but due to lack of support for blending, rotation and scaling,
it is less compliant than the SDL2 version.
« Last Edit: October 22, 2016, 09:56:33 pm by gameblabla »


  • Calculators owned: TI Nspire CX, TI-89

Offline Juju

  • aka Yuki Kagayaki aka J̵̭͕͇ù̞̭̝̯̦j̴̭̙̗͖͡ù͏͓̲̕
  • CodeWalrus Staff
  • Super User
  • Server Maintenance
  • Moderator
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Inside a walrus
  • Posts: 2826
  • Post Rating Ratio: +18/-1
  • Couch potato
    • jul.savard
    • juju2143
    • @juju2143
    • juju2143
    • @julosoft
    • juju-kun
    • /u/juju2143
    • juju2143
    • View Profile
    • Juju's shed
  • Gender: Female
  • WalriiPoints: 99999
Re: SF2D (3DS homebrew) Wrapper library
« Reply #1 on: October 22, 2016, 06:12:38 pm »
Oooh, looks interesting, gotta try that out.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????:trollface:???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18195
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SF2D (3DS homebrew) Wrapper library
« Reply #2 on: October 23, 2016, 05:07:12 am »
That is a nice idea. Good job gameblabla :3=
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 640
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SF2D (3DS homebrew) Wrapper library
« Reply #3 on: October 23, 2016, 08:14:16 am »
Thank you, guys.

I have worked on this again and added more functions and stubs.
Now, Minicraft3DS (with some modifications) finally boots but with incorrect graphics...
There is still a lot to do.
  • Calculators owned: TI Nspire CX, TI-89

Online gameblabla

  • Super User
  • Join Date: May 2015
  • Location:
  • Posts: 640
  • Post Rating Ratio: +11/-6
  • TI-nspire porter
    • View Profile
Re: SF2D (3DS homebrew) Wrapper library
« Reply #4 on: October 27, 2016, 01:52:08 am »
Bump.
I have fixed a number of things :
- Each screen is now a texture. This should fix some graphical issues when sprites are rendered off-screen.
- Added a workaround when hidTouchRead (the main functiion) is never called but hidScanInput is.
- Added more stubs.
- Fixed texture scaling.

The last one fixed the titlescreen in Minicraft3DS and now you can see the titlescreen :


Unfortunely; it has lots of graphical glitches (perhaps because i had to modify it) and the game crashes when you attempt to start the game...

I'm also looking for sf2d games : i seriously can't find any that's open source.
« Last Edit: October 27, 2016, 01:56:35 am by gameblabla »
  • Calculators owned: TI Nspire CX, TI-89

Offline DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18195
  • Post Rating Ratio: +91/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: SF2D (3DS homebrew) Wrapper library
« Reply #5 on: October 27, 2016, 07:01:43 pm »
Nice to see more progress. As for sf2d games I can't help you since I don't know much about it, but I would be shocked if no open-source sf2d games existed, unless the sf2d dev community mentality is centered around closed-source, like I saw in certain other communities (unlike the TI community, which is very pro-open-source)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games