Trying to port Chip's Challenge (Open Source) to 3DS, a little help please?

Discussion in '3DS - Homebrew Development and Emulators' started by OctopusRift, Jul 27, 2015.

  1. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    Margen67 and BORTZ like this.
  2. KingOfHell

    KingOfHell Advanced Member

    Newcomer
    74
    20
    Mar 15, 2015
    United States
    Oh holy crap. I was just thinking the other day that I wanted to play this game again. I don't really have time to look at the source, but the site says it uses SDL, so, if that SDL port someone was making doesn't work, try to port the stuff that doesn't require SDL and do the rest with something like one of the other libs (Calena or sf2d, or whatever Xepi's lib was called)?

    Sorry to not be much help, but at the very least there's at least one other person interested in this.
     
    OctopusRift likes this.
  3. nop90

    nop90 GBAtemp Maniac

    Member
    1,436
    2,137
    Jan 11, 2014
    Italy
    Rome
    There was a port of SDL 1 for 3DS. Never tested and if I remember well it was missing some functions, but if you can find it on this forum and you are lucky, porting this game could be only matter of adjusting a makefile.

    An other option is to rewrite all the drawing (and sound if the game use it) primitives. Not a fast task, but there are a lot of example on this forum.
     
  4. BORTZ

    BORTZ You get a hat, and YOU get a hat!

    Supervisor
    GBAtemp Patron
    BORTZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    11,754
    14,901
    Dec 2, 2007
    United States
    Pittsburgh
    Ohh interesting. Chips Challenge was the best game to be packaged on those weird Win98 machines. I was always jealous of people with those games, since the first PC we got was a Gateway with Win 95 (RIP sweet prince) and the next one was the bastardization of all that was good and holy, shipping within that 3 month window. Thats right, my family owned a Win ME computer. So I never got those sweet free preinstalled goodies. Other than my middleschool laptops circa 2001, I haven't found what distro came with the snake game with actual levels. Anyways.

    So what is the original game written in?

    Also, I wish we had better toolkits. I would love to see loads of topdown games remade (homebrew or otherwise HINT HINT nintendo) with the Link Between Worlds engine.
     
  5. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    by xerpi eh? ye. I like it.

    I agree about the ALBWs thing. That'd be awesome. AND! It's open source and as @KingOfHell said, it's written in SDL so https://gbatemp.net/threads/sdl-for-3ds.374519/ this shouldn't be too difficult, one small thing though, I've never ported a program before, so any help doing so would be AWESOME!

    NINJA'd: https://github.com/xerpi/SDL-3DS this too.
     
  6. gudenau

    gudenau Largely ignored

    Member
    GBAtemp Patron
    gudenau is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,300
    1,253
    Jul 7, 2010
    United States
    /dev/random
    I still want to make my own, not based on tile world.
     
  7. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    well then... ITS A RACE (not really though cuz this is gonna take me a while)
     
  8. stanleyopar2000

    stanleyopar2000 The Official GBATEMP Thread Killer. No Mercy.

    Member
    3,981
    605
    Jun 22, 2007
    United States
    BUMMER.
     
  9. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    Contribute! Just a little push in the right direction.
     
  10. gudenau

    gudenau Largely ignored

    Member
    GBAtemp Patron
    gudenau is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    3,300
    1,253
    Jul 7, 2010
    United States
    /dev/random
    Gona take me a while aswell. :-D
     
  11. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    do ya wanna... work... together? I dunno much about software porting at all, so if you could have help I'd be ecstatic, but I can offer you an artist to make all of your stuff for the app! (me)
     
  12. hippy dave

    hippy dave BBMB

    Member
    2,598
    1,809
    Apr 30, 2012
    United Kingdom
    Right, here's a project I was working on that I have basically stopped doing anything with because I'm a lazy bum, and have moved on to other projects.

    edit: Whoops right file this time:
    https://mega.nz/#!jNA3DDaY!J6T0VTRbtHMbYfNl-QsCfK2v5qOTllApyUTbuL5NRiw

    I also wanted to play Chip's Challenge, so I started porting Handy, the Atari Lynx emulator, to 3ds. The emulator works, with no sound, but seems to play CC well. I ported it from a Dingux version, which was based on an SDL version, which was based on the original - and the menu is mostly from the Dingux version which was taken from gpSP. There are various credits files scattered in there but I haven't done one.
    Um, the 3dsx build seems to crash all the time from Ninjhax (1.x, haven't tried NH2), the cia build is a bit busted in that it doesn't show on the home menu, but you can run it from devmenu or equivalent. The menu mostly works, thumbnails for save states are often corrupted but that doesn't break anything. Ideally, someone will take this source, throw it up on github, and people will fix it up (I imagine the cia icon not being visible will be trivial to fix for a start) - I just can't be bothered. But in the meantime, if you throw lynxboot.img and some .lnx roms in /lynx/ on your sdcard, install the cia and run it from devmenu etc, then you too can play Chip's Challenge with no sound.
    There's an exit menu option, but pressing Select also exits immediately, and writes a save state (that isn't listed in the menu), which reloads when you open that rom. I think R trigger also writes over that save state. L trigger changes screen scaling. That's probably about it, have fun.
     
    Last edited by hippy dave, Jul 28, 2015 - Reason: Uploaded wrong file like a chump
    SLiV3R likes this.
  13. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    It's nice to see SO MUCH love for chips!
     
    hippy dave likes this.
  14. nop90

    nop90 GBAtemp Maniac

    Member
    1,436
    2,137
    Jan 11, 2014
    Italy
    Rome
    I downloaded the zip but it doesn't seem to be your port. No makefile for 3DS and all file date very old. Can you check please.

    I would like to work a little on it this summer.
     
    OctopusRift likes this.
  15. OctopusRift
    OP

    OctopusRift GBATemp's Local Octopus, Open 9am-2am. "Not Yet"

    Member
    1,460
    832
    Nov 19, 2014
    Saint Kitts and Nevis
    I want to see this happen.
     
  16. hippy dave

    hippy dave BBMB

    Member
    2,598
    1,809
    Apr 30, 2012
    United Kingdom
    Ha you're right, sorry - uploaded the wrong file. Have edited my last post but here's the new link again:
    https://mega.nz/#!jNA3DDaY!J6T0VTRbtHMbYfNl-QsCfK2v5qOTllApyUTbuL5NRiw

    Good luck, I look forward to seeing your improvements :)
    e: also, forgive some of my more ugly hacking :)
     
    Last edited by hippy dave, Jul 28, 2015
  17. nop90

    nop90 GBAtemp Maniac

    Member
    1,436
    2,137
    Jan 11, 2014
    Italy
    Rome
    Thanks.

    Do you have a github project for pushing updates? If not i'ts ok if I create a project on my githib?
     
  18. hippy dave

    hippy dave BBMB

    Member
    2,598
    1,809
    Apr 30, 2012
    United Kingdom
    No I don't, yes please go for it :)
     
  19. nop90

    nop90 GBAtemp Maniac

    Member
    1,436
    2,137
    Jan 11, 2014
    Italy
    Rome
    Tested the cia version and i'ts a nice work.

    It doesn't show in menu because you didn't provided a banner and a icon file, but this is easy to fix.

    The 3dsx version crashes as you said, and i suppose it's due to memory allocation issues. In the past I had similar problems in 3dsx file, not happening in the cia version.

    Now I have to install all the libs you used in my devkitpro folder, buti want to use the sdl-3ds lib by xerpy linked some posts above that should have sound (I already compiled it witout problems).

    The only thing to decide is if it's better to use your version and add again the sound code (yet don't know if it's only commented out or if you made some big change - I'm scared of that file from blargnes in the root) or to start from the original source checking your changes to make the port from scratch.
     
  20. hippy dave

    hippy dave BBMB

    Member
    2,598
    1,809
    Apr 30, 2012
    United Kingdom
    Afaik that sdl lib uses software rendering, it might be useful for sound but I'd expect it to be too slow for the graphics. The emulation core already has to draw the screen pixel by pixel to memory - I've pointed it to do so directly to a texture's memory, and then that's drawn to the screen by the gpu using sf2 or whichever the library is called. No more cpu drain plus free scaling :)