1. wicksand420

    wicksand420 GBAtemp Addict
    Member

    Joined:
    Nov 13, 2016
    Messages:
    2,724
    Country:
    United States
    It looks like its working on 5.0.2, but I can't get it to dump my cart, must have to have fatx or something
     
  2. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    I've planned support for all Nintendo platforms that devkitpro supports for the moment.
    Maybe, after finishing support for all of this platforms, I'd consider developing for other platforms.

    — Posts automatically merged - Please don't double post! —

    It's important to know that the engine Brew.js uses to parse JS doesn't support node.js API, I think only a few things of it are supported. So, basically, pegaswitch scripts are not supported.
    I'll see how could I make things like dumping NCAs or game carts, but Pegaswitch and and this project can't work together (for the moment)

    BTW, all the tests have been done with my 5.0.2 Switch.
     
    Last edited by XorTroll, May 19, 2018
    wicksand420 and H1B1Esquire like this.
  3. Fadi5555

    Fadi5555 GBAtemp Regular
    Member

    Joined:
    Jan 3, 2018
    Messages:
    271
    Country:
    United States
    How about 3.0.0?
     
  4. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    I guess it still needs to be tested, I've only tested it under 5.0.2
     
  5. AileenLumina

    AileenLumina Python main, software engineer and API designer
    Member

    Joined:
    Sep 27, 2015
    Messages:
    628
    Country:
    Germany
    Awesome! Now Switch homebrew can be written in C, C++, Lua, Python and JavaScript. (Did I miss any? No, Brainfuck doesn't count. :P )

    It will be amazing to see how many people will learn to code to create homebrew, and how the scene will flourish due to the variety of languages you can write homebrew apps in.
     
    lordelan, H1B1Esquire and XorTroll like this.
  6. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    Well, I didn't know Lua could be used to make Switch homebrew...
    Now it's our turn to extend our interpreters :yayswitch:
     
    SquidSquadAlpha and H1B1Esquire like this.
  7. AileenLumina

    AileenLumina Python main, software engineer and API designer
    Member

    Joined:
    Sep 27, 2015
    Messages:
    628
    Country:
    Germany
  8. Fadi5555

    Fadi5555 GBAtemp Regular
    Member

    Joined:
    Jan 3, 2018
    Messages:
    271
    Country:
    United States
    Can we use OpenGL/vulkan rendering for creating a good hombrew/emulator?
     
  9. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    Current graphic functions and variables are still experimental and are only useful for drawing simple bitmaps, so I just recommend you using console printing until I improve this.
     
    H1B1Esquire likes this.
  10. Naked_Snake

    Naked_Snake Constant Miscreant
    Member

    Joined:
    Oct 6, 2013
    Messages:
    1,747
    Country:
    Australia
    I ran the carddumper.js and it just went to this screen I’m guessing that’s not normal
     

    Attached Files:

  11. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    If that script is from Pegaswitch I've already said that Brew.js is not suitable with Pegaswitch.
    Error handling is still a bit poor, so it displays that when any errors happen at executing.
    I would like to embed Brew.js to Pegaswitch, but it will take me a while to do that.
     
    H1B1Esquire and Naked_Snake like this.
  12. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    I've been working and searching these two days, and here it goes. I've released a new version. (0.2)

    The difference between the old UI and the new UI:

    2018052015194100-DB1426D1DFD034027CECDE9C2DD914B8.jpg
    2018052015194900-DB1426D1DFD034027CECDE9C2DD914B8.jpg

    Release info:

    Using the interpreter
    Just copy the switch folder to your SD card (sdmc:/switch).
    In this version Brew.js requires some extra files, so copy everything, not just the NRO ROM.

    Change Log
    Wow, it's been just two days and a lot of changes have been done:

    • New UI! No more console, now beautiful backgrounds.

    • Some new functions and vars added, check the API guide. (README.md file)

    • Console printing has been disabled due to problems with graphics.

    • Result saving! When a project's execution finishes, it's output is saved to a log file.
      If it gets an error while executing, the project exists and the error's output is saved to the log file.

    • Three new examples were added, and the Hello World one was updated according to the new API.
    Important!
    If you have any projects with the previous API, read the documentation carefully and update it, because a few functions are deprecated or their names have been changed.

    Link: https://github.com/BrewJS/Switch/releases/tag/0.2
     
    renhei, Hking0036 and Fadi5555 like this.
  13. Fadi5555

    Fadi5555 GBAtemp Regular
    Member

    Joined:
    Jan 3, 2018
    Messages:
    271
    Country:
    United States
    Thanks for your efforts.
    Just a question please.
    Can we take the advantage of LibNX on 3.0.0? Because LibNX has JIT which is more better than interpeter?
     
  14. Shubshub

    Shubshub The Shubinator
    Member

    Joined:
    Oct 16, 2009
    Messages:
    1,003
    Country:
    New Zealand
    You're amazing, I 100% plan to use this provided you keep supporting it!
     
    XorTroll likes this.
  15. lordelan

    lordelan GBAtemp Psycho!
    Member

    Joined:
    Jan 4, 2015
    Messages:
    4,467
    Country:
    Germany
    ^ this! That's freakin' amazing!
     
  16. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    I'm actually remaking completely the graphics part, and adding some extra features.
    I think I'll release beta 3 in a few days.
     
    Fadi5555 and lordelan like this.
  17. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    Here you have the new version!

    Using the interpreter

    Just copy the Brew.js.nro ROM to your SD card, no matter the location.
    Remember that Brew.js searches for projects at sdmc:/switch/Brew.js!

    Change Log:
    • The UI has been improved, and it doesn't require those attached files from the 0.2 release.

    • All the graphic system has been updated, adding lots of features. Too many functions and elements to talk about... Now games can be easily made using Brew.js API!

    • Now the result of an execution is not just saved, now it's also displayed in the screen. (it might give some problems due to large results)

    • The examples have been updated according to this version's API, and some new examples were added. Wow! A PONG example to see how graphics work! (despite it's very poor)
    Important!
    If you have any projects with the previous API, read the documentation carefully and update it, because a few functions are deprecated or their names have been changed.

    Video showing keyboard example: (yay, new YouTube channel for my projects)


    Link: https://github.com/BrewJS/Switch/releases/tag/0.3
     
    Last edited by XorTroll, May 27, 2018
    Leonidas87, renhei, lordelan and 3 others like this.
  18. lordelan

    lordelan GBAtemp Psycho!
    Member

    Joined:
    Jan 4, 2015
    Messages:
    4,467
    Country:
    Germany
    Would it be possible to port this (Little Fighter 2 Open Source clone) with Brew.js?
     
  19. XorTroll

    OP XorTroll Tired of classic HOME menu
    Developer

    Joined:
    Dec 28, 2017
    Messages:
    621
    Country:
    Spain
    Well, it's a JavaScript game but it's a web-game, so it might be a bit difficult to port.
    But I guess it could be ported...
     
    lordelan likes this.
  20. Lil_SpazJoekp

    Lil_SpazJoekp Advanced Member
    Newcomer

    Joined:
    Apr 11, 2018
    Messages:
    87
    Country:
    United States
    Do you know when this might work with the dumpNCA scripts?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - JavaScript, homebrew,