[Release] Lua Player Plus 3DS (lpp-3ds) - LUA interpreter for 3DS

Discussion in '3DS - Homebrew Development and Emulators' started by Rinnegatamante, Mar 18, 2015.

  1. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    I fixed it, I moved the folder to C:\ instead of desktop

    But I have another issue
    Code:
    c:/Users/Alessio/Desktop/Repositories/lpp-3ds/libctru/source/system/syscalls.c:57: undefined reference to `__tdata_lma_end'
    c:/Users/Alessio/Desktop/Repositories/lpp-3ds/libctru/source/system/syscalls.c:57: undefined reference to `__tdata_lma'
    c:/Users/Alessio/Desktop/Repositories/lpp-3ds/libctru/source/system/syscalls.c:57: undefined reference to `__tls_start'
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [/c/lpp-3ds-master/lpp-3ds-master.elf] Error 1
    make: *** [build] Error 2
     
  2. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Looks like you have an outdated devkitArm.
     
  3. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    Updated devkit now I get this.
    Code:
    c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find 3dsx_crt0.o: No such file or directory
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [/c/lpp-3ds-master/lpp-3ds-master.elf] Error 1
    make: *** [build] Error 2
    Sorry, I dont know how to fix this thats all

    Edit: fixed that but now this

    Warning: Spoilers inside!
     
    Last edited by ElyosOfTheAbyss, Feb 26, 2016
  4. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    You posted incomplete errors ("does not...")
     
  5. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    Thats seriously all it gives me... Thats what it ends in
    Capture.PNG
     
  6. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    You changed in Makefile floating-point value. It MUST be mfloat-abi=softfp. (Or you're using a bad libjpeg.a lib)
     
  7. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    Ok, Then how do I fix this?
    Code:
    c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find 3dsx_crt0.o: No such file or directory
    collect2.exe: error: ld returned 1 exit status
    make[1]: *** [/c/lpp-3ds-master/lpp-3ds-master.elf] Error 1
    make: *** [build] Error 2
    
     
  8. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Go in C:\devkitPro\devkitARM\arm-none-eabi\lib and do "make CRT=3dsx"
     
  9. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    Thanks, Sorry for wasting your time but atleast it's finnaly building.
     
    Rinnegatamante likes this.
  10. ElyosOfTheAbyss

    ElyosOfTheAbyss GBAtemp Addict

    Member
    7
    Aug 20, 2015
    Are you going to update the temp documentation with the obj model things?
     
  11. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Documentation is up-to-date with latest release so it will be updated when r5 will come out.
    I've some other things to add/bugfix before r5 release.
     
  12. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Lua Player Plus r5 finally available for download!

    A lot of new things, bug-fixes and improvements.
    An experimental 3D render module has been added (Render) with native support to Wavefront object models (.obj). Little note: Only models exported in triangles primitives work fine (You can easily convert your quads models in triangles ones with Blender for example).

    libjpeg has been replaced by libjpeg-turbo bringing a huge speedup to Video module and all JPG related functions.
    There are also more news but i'll leave your the complete Changelog text to let you know:
    Code:
    New functions:
    
    - System.extractFromZip() - Extracts a selected file from a Zip file.
    - System.launchPayload() - Launches an ARM9 Payload.
    - System.addNews() - Adds a Notification to the system.
    - System.listNews() - Lists all system Notifications.
    - System.getNews() - Gets text from a selected Notification.
    - System.eraseNews() - Deletes a selected Notification.
    - System.checkSDMC() - Checks if SD card is inserted.
    - Graphics.setViewport() - Sets viewport for Graphics scene.
    - Color.convertFrom() - Converts a Render-type color to a Color-type ones.
    - Render.init() - Inits 3D Render.
    - Render.term() - Terminates 3D Render.
    - Render.initBlend() - Starts blending phase for 3D Render.
    - Render.termBlend() - Terminates blending phase for 3D Render.
    - Render.loadObject() - Loads a 3D Model in Wavefront Object (.obj) format.
    - Render.createVertex() - Creates a vertex.
    - Render.loadModel() - Loads a 3D Model starting from a vertices table.
    - Render.drawModel() - Draws a selected model.
    - Render.unloadModel() - Frees a model.
    - Render.convertColorFrom() - Converts a Color-type color to a Render-type ones.
    - Render.createColor() - Creates a Render-type color.
    - Render.setLightColor() - Sets vertex shader light color.
    - Render.setLightSource() - Sets ambiental position of vertex shader light.
    
    New features and improvements:
    
    - Now lpp-3ds is usable also with Memchunkhax2 execution (Needs source compilation).
    - Now lpp-3ds loads index.lua from romFs partition by default (SD if not found).
    - Improved a lot dsp::DSP audio service quality.
    - Now Camera.init() can change also internal Photo mode state.
    - Now any CIA related function will initialize external title database automatically.
    - Now Video module is a lot faster.
    - Now JPG images loading/saving is a lot faster.
    - Now System.installCIA() can installs also NAND contents.
    - Now lpp-3ds can load files even from romFs filesystem.
    
    Deprecated functions:
    
    - System.addNotification() - Replaced with System.addNews().
    
    Syntax changes:
    
    - Now System.installCIA() takes one more argument for mediatype target.
    - Now Camera.init() takes one more argument for Photo mode.
    - Now System.currentDirectory() will always returns a slash-terminated string by default.
    
    Bugfixes:
    
    - Minor bugfixes in Video module.
    - Bugfix for some globals not correctly registered.
    - Now Socket.accept() correctly binds socket.
    - Now Socket.connect() is usable in loops.
    - Now dsp::DSP audio service supports looping feature with streaming flag.
    - Now System.launch3DSX() works fine on NH 2.x.
    - Now Controls.read() and Controls.readCirclePad() works fine together.
    - Increased speed for Socket.receive() function.
    
    Samples:
    
    - Complete samples refactor with syntax update and minor tweaks.
    - Added 3D Rendering samples.
    
    In the r5 package you'll find now also a folder named as RomFs Buildscripts:
    With the batch scripts included here you can create a homebrew with files included in the executable!
    Just place in this folder lpp-3ds.elf you want to use (unsafe or not) and lpp-3ds.smdh file (or whatever smdh you want).
    Then place all your files in romfs folder (you can include also the main script [index.lua]!) and use the buildscript you need (3ds, cia or 3dsx) and you'll have your homebrew ready to be used.
    To refer to romFs files in your scripts just use normal syntax but when you want to load a file from romFs use this kind of path:
    Code:
    System.loadImage("romfs:/image.jpg")
    Download: https://github.com/Rinnegatamante/lpp-3ds/releases
     
    Last edited by Rinnegatamante, Feb 28, 2016
  13. UltiNaruto

    UltiNaruto GBAtemp Regular

    Member
    2
    Sep 4, 2015
    France
    How much polies can you render with the current Render module?
     
  14. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    Basically as many as you want, i've tried to render 9 cubes and it was still running at 60 fps.
     
  15. UltiNaruto

    UltiNaruto GBAtemp Regular

    Member
    2
    Sep 4, 2015
    France
    I'll try with some models then and tell you the results.

    EDIT: @Rinnegatamante Looks like my model has too much polies. It freezes the 3DS.
     
    Last edited by UltiNaruto, Feb 28, 2016
  16. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    To anyone who wants to use the new Render module:

    i found right now a big bug in loadObject function. I'm testing right now the patch and i'll upload a corrected version of r5 when i'm satisfied with it.
     
    GalladeGuy likes this.
  17. UltiNaruto

    UltiNaruto GBAtemp Regular

    Member
    2
    Sep 4, 2015
    France
    I'll be looking forward for this. I'd like to use it. Maybe I'll work on something with it.
    Any ways that you could add somekind of debug string that shows how much polies are currently loaded with a boolean as last argument?
     
    Last edited by UltiNaruto, Feb 28, 2016
  18. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
    I've made a testscript for windows which uses the same parsing algorithm and it tells you at the end faces number (so poligons number).
    It's also useful to know if your model is compatible with loadObject (for example it uses correct primitives).
    If you want it, i can upload it somewhere.
     
    UltiNaruto likes this.
  19. UltiNaruto

    UltiNaruto GBAtemp Regular

    Member
    2
    Sep 4, 2015
    France
    That would be helpful indeed. Thanks.
     
  20. Rinnegatamante
    OP

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna

    Attached Files:

    • obj.rar
      File size:
      18.6 KB
      Views:
      49
Loading...