Advertising (This ad goes away for registered users. You can Login or Register)

[NEW LUA INTERPRETER] ONElua v3

Most of the homebrews discussed in this forum can be downloaded here
gdljjrod
Posts: 228
Joined: Mon Apr 25, 2011 3:15 pm

[NEW LUA INTERPRETER] ONElua v3

Post by gdljjrod » Sun Jun 01, 2014 2:17 am

We're proud to share our work: OneLua is a brand new Lua Interpreter to create our homebrews to both PSP as PSVita.
As LuaDEV, OneLua is based on OSLib, so there are many similar functions (with slightly different syntax).
In this version there are enough modules to make decent homebrews.
Autors: gdljjrod and Rober Galarga.
ONElua Web Doc http://onelua.x10.mx/

Image

Image


Image


Image


Image


UPDATE: ONEluav3
https://twitter.com/gdljjrod/status/614144012090523648

[Changelog]
V2R1
Added new module SIO.

Add the new Debugger
os.debug() To enable debug mode.
Added new Callback onDebug() that serve to replace our screen error

Added onelua_rdriver.prx for game.launch() function that returns you to ONElua.
(Requires onelua_rdriver.prx in seplugins to PSPGo should go in ef0:/seplugins).

New functions (batt):
batt.tonormal()
batt.topandora()
batt.toautoboot()
batt.backupbat()
batt.restorebat()

New functions (files):
files.scan()
files.extractfile()

New function (3D):
amg.rendertrans() for models with transparencies.
Fixed some bus with reflections.

New functions (hw):
hw.ofwinitial()
hw.fuseid()
hw.fusecfg()
hw.kirk()
hw.spock()
hw.nandseed()
hw.placa changed by hw.board()
hw.getmodel() now detects PSVITA model.

New functions (screen):
screen.toimage()
screen.buffertoimage()

New functions (math):
math.bitnot()
math.bitand()
math.bitor()

New functions (os):
os.password()
Update os.getcfw now detects TNV/ARK
os.reset() changed by os.restart()

Modified image.save() and screen.shot() only accept PNG format.
Changed the function osk.init() Now put two modes: Normal Keyboard and Numeric Keyboard.


[spoiler]This version includes a 3D demo by Mills (Downloads are in our web)
ONElua v2 Bundle Demo:
https://dl.dropboxusercontent.com/u/487 ... Bundle.rar

[Changelog]
++ Added the all-new 3D Module (special thanks to Andresmargar for AMGLib and his invaluable help... YOU ROCK MAN!).
++ Added a new error screen, now you can edit the error line directly in your PSP (no PC needed). This is still in development and tests, so some errors will not be fixable in this way.
++ Now you can access correctly to both ms0 and ef0 on PSP Go.
++ Fixed MOD sounds loading (.mod, .it, .s3m and .xm).
++ Fixed os.message(), now it returns your choice correctly.
++ files.list(),files.listfiles() and files.listdirs() were optimized.
++ Utils module renamed to game.
++ sound.getid3() got a new field: "cover", which contains the album art if available.
++ Added three new functions: image.pixel(), screen.brightness() and os.delay() (please refer the docs to get further details).
++ Now files.size() also works on directories.
-- Disabled AT3 files loading.[/spoiler]
OneLua features basic functions, as sound load (mp3), images, ini files, functions to copy & paste and many more (feel free to explore the docs).

However, there are a bug: there aren't functions to delete sounds, images, timers and other objects, so to free them you'll need to use the basic way:

Code: Select all

var = nil
Maybe you'll want to call collectgarbage("collect") after that to clean effectively the memory used by the object. ;)

Features:
-Most math module functions now uses the VFPU, so the trigonometric calculations will be VERY fast.
-Color masking while loading images. This allow, for example, remove a solid-color background in your images.
-Dedicated HW module, which contains plenty of new functions, as PSP model detection, battery mode detection (normal, pandora or autoboot... only works for unbrickeable consoles), motherboard type and model detection...
-Detects correctly the free space in both ms0 and ef0 (for PSP Go).
-Detects the CFW that you're running.
-UMD functions: info and dump directly.
-Files: copy, rename, delete, fast-move (using the Total_Noob sample), unzip & unrar (with or without password).
-Unified and easy-to-use buttons reading, using constants (see the docs for an example).
-WiFi configs backup & restore.
-callbacks and constants in several functions, to ease your life ;)
FOR PSP GO USERS
-If you want to read both ms0 and ef0 devices, your HB should be placed in ms0. <--Fixed v2.
-The function files.move doesn't work properly between devices (ms0 to ef0 and vice versa), only performs a copy. Other functions work fine.

We'll appreciate if you report us all the bugs you encounter. Any other feedback is welcomed, too.
Advertising
Last edited by gdljjrod on Thu Jun 25, 2015 6:58 pm, edited 21 times in total.

User avatar
Joel16
Posts: 912
Joined: Wed Oct 12, 2011 8:47 pm

Re: [NEW LUA INTERPRETER] ONElua v0R1

Post by Joel16 » Sun Jun 01, 2014 3:13 am

Sweet gdljjrod! is the source available? I'd like to help you guys out if I can.
Advertising
"Forever in darkness, a guardian devil."

User avatar
DS_Marine
Developer
Posts: 276
Joined: Wed Oct 10, 2012 1:32 pm
Location: Argentina
Contact:

Re: [NEW LUA INTERPRETER] ONElua v0R1

Post by DS_Marine » Sun Jun 01, 2014 4:01 am

Hey guys.
First of all, gratz on your release.
Second, while I don't code in lua, I know some who does. So the question is if you can enumerate some advantages of ONElua over other interpreters to help decide if moving over or not.
Thanks!
ImagePSP-Controlled drone
"Hackers don't have superpowers. Just a hackable PSP and a brain (ships by default on most humans models)" - A famous guy
Image

gdljjrod
Posts: 228
Joined: Mon Apr 25, 2011 3:15 pm

Re: [NEW LUA INTERPRETER] ONElua v0R1

Post by gdljjrod » Mon Jun 02, 2014 6:08 pm

sauske_firekid wrote:Sweet gdljjrod! is the source available? I'd like to help you guys out if I can.
sorry, the src isn't available right now (maybe later) ;)


=====

DS_Marine wrote:Hey guys.
First of all, gratz on your release.
Second, while I don't code in lua, I know some who does. So the question is if you can enumerate some advantages of ONElua over other interpreters to help decide if moving over or not.
Thanks!
Done, right the thread again :D
Last edited by SMOKE on Tue Jun 03, 2014 1:21 am, edited 1 time in total.
Reason: merged posts

saiyan x
Posts: 79
Joined: Mon Oct 31, 2011 1:17 pm
Contact:

Re: [NEW LUA INTERPRETER] ONElua v0R1 Fix

Post by saiyan x » Wed Jun 04, 2014 8:26 am

Can you tell what advantages this interpreter has over others?

User avatar
Applelo
Posts: 39
Joined: Wed Mar 28, 2012 12:36 pm

Re: [NEW LUA INTERPRETER] ONElua v1 R0

Post by Applelo » Fri Jun 27, 2014 8:36 pm

The function image.free() is available ?
Great Jobs for your work
Image

User avatar
Rinnegatamante
VIP
Posts: 840
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: [NEW LUA INTERPRETER] ONElua v1 R0

Post by Rinnegatamante » Fri Jun 27, 2014 11:29 pm

AppleIo, according to this:
However, there are a bug: there aren't functions to delete sounds, images, timers and other objects, so to free them you'll need to use the basic way:

Code: Select all

 var = nil
I think you have to use something like this:

Code: Select all

image = Image.load("MYFILE.PNG")
image = nil
This interpreter is not bad but why not to make it opensource and why to write a new ones when there are several interpreters completely open source? (LP Euphoria, Phoenix Game Engine, my LPP and relative mods of them?)

Rewriting a new ones is only taking you a lot of time for basic functions i think :?
If you want, visit my website: http://rinnegatamante.it :D

User avatar
fouadtjuhmaster
Posts: 763
Joined: Sat Jan 01, 2011 12:27 am
Location: Segangan, Oriental, Morocco
Contact:

Re: [NEW LUA INTERPRETER] ONElua v1 R0

Post by fouadtjuhmaster » Sat Jun 28, 2014 4:45 pm

Looks awesome! Congratulations on your release :)
Image

gdljjrod
Posts: 228
Joined: Mon Apr 25, 2011 3:15 pm

Re: [NEW LUA INTERPRETER] ONElua v1 R0

Post by gdljjrod » Sun Jun 29, 2014 5:53 am

Rinnegatamante wrote: This interpreter is not bad but why not to make it opensource and why to write a new ones when there are several interpreters completely open source? (LP Euphoria, Phoenix Game Engine, my LPP and relative mods of them?)
Well, we are not trying to beat no one... or to exceed any interpreter... we started this project as an interpreter "based" on LuaDEV (because we liked it very much) and intended for personal-use, but we figured it's easy-to-use and very complete right now, so we decided to share it. For the same reason, the project isn't open-source. We are considering to release the src when it's complete and optimized.
Rinnegatamante wrote: Rewriting a new ones is only taking you a lot of time for basic functions i think :?
Not only for basic functions, but all of them! (specially the callbacks). Also, oslib is not completely documented, so we needed to retrieve info for some functions and it took a while. Of course, documenting the functions and making the website also took a lot of time (mainly because Rober Galarga had never used doxygen before... he says it's pretty tricky xD)

saiyan x
Posts: 79
Joined: Mon Oct 31, 2011 1:17 pm
Contact:

Re: [NEW LUA INTERPRETER] ONElua v1 R0

Post by saiyan x » Fri Jul 04, 2014 7:56 pm

Hey guys this is really awesome, especially if you can get it to be faster than all the other lua interpreters. Also your debug screen is great but it's in spanish, can't you maybe add an option for it to be shown in english?

Post Reply

Return to “Homebrews”