QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

[Release] LuaPlayer Euphoria V3 - Yet More Speed + IntraFont!

This is a discussion on [Release] LuaPlayer Euphoria V3 - Yet More Speed + IntraFont! within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Hola Hey. So after a bit of work I bring you LuaPlayer Euphoria V3. New Features, Improvements, Bug Fixes & ...

Reply
 
LinkBack Thread Tools
Old 05-17-2009, 01:44 PM   #1
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default [Release] LuaPlayer Euphoria V3 - Yet More Speed + IntraFont!

Hola

Hey.

So after a bit of work I bring you LuaPlayer Euphoria V3.

New Features, Improvements, Bug Fixes & Changes :

New Features :

1) IntraFont support. You can now load and blit fonts without the huge slowdown the built in font function has

How to use it ? Go to Samples/IntraFont for a working usage example.

Improvements :

1) Speed increase. Roughly between 20>40fps.
2) screen:clear() is now faster.

Bug Fixes :

1) screen:clear() now actually works. (it didn't in V2)
2) Image alpha on created images, colors, and loaded images now works.
3) 3D things I broke are now fixed (so 3d wise it is the same as .20 was).
4) FPS counter no longer flickers when not using waitVblankStart().
5) Checking for input (i.e pad = Controls.read()) no longer caps the framerate to 60fps. I suggest you use waitVblankStart() if you need to cap it to 60

Changes :

Ok, so all of the function names in V1 & 2 have changed. I meant to do this from the beggining but rushed so much I didn't quite get to it. The function names now ring true to the default LuaPlayer naming convention.

Here are the new functions and names (also included in the download) :

Quote:
-- New Functions & Features List. Including Usage --

-## System Functions

System.setCpuSpeed(number ) -- Set the Cpu speed. Options : 100, 222, 266, 333.
System.showFPS() -- Show the current FPS.
System.quit() -- Exit back to the XMB.

--REQUIRED SYSTEM FUNCTIONS (must be called in your loop)

System.startGu() -- Start the GU
System.endGu() -- End the GU

-!! Please see Either Samples/Mp3 or Samples/IntraFont for usuage examples

System.

-## MP3 Functions

Mp3.init() -- Initialize the Mp3 System.
Mp3.load(filename) -- Load a Mp3.
Mp3.play() -- Play a Mp3.
Mp3.stop() -- Stop a Mp3.
Mp3.pause() -- Pause a Mp3.
Mp3.end() -- Stop and Free a Mp3.
Mp3.free() -- Free a Mp3.
Mp3.endOfStream() -- Get the end of a Mp3 (ie . if Mp3.endOfStream == 1 then).
Mp3.getTime(string) -- Retrive the current play time position of the mp3.

-!! Please see Either Samples/Mp3 or Samples/IntraFont for usuage examples

-## IntraFont Functions

IntraFont.init() -- Initialize the IntraFont System.
IntraFont.load(filename) -- Load a font using intrafont (ie. font = IntraFont.load("font.pgf" )).
IntraFont.print(font, x, y, textSize, color, text) -- x, y & textsize are floating point variables (ie. 0.1, 1.0).
IntraFont.unLoad(font) -- Unload the loaded font.

-!! Please see Either Samples/Mp3 or Samples/IntraFont for usuage examples

-## Automatic Functions (Do not need calling)

Image swizzling -- Automatic upon loading an image
All the readme/function files have been updated to reflect this release.

Future :

Plenty of stuff planned, MP3 Playback on the media engine, ogg playback on the media engine, more optimizations, additions of PSP Sce features such as savedata dialogue, OSK etc.

If you would like to request a feature be added, please do so at the official forum : LuaPlayer Euphoria Forum

If you use this please leave a comment!

Download & Give Feedback Via Comments
Attached Files
File Type: zip LuaPlayer_Euphoria_V3.zip‎ (1.34 MB, 16 views)
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 02:41 PM   #2
Enter Custom Title
 
dan369's Avatar
 
Join Date: Jan 2008
Real First Name: Dan
Location: Wales, cardiff
Just Played: Overlord 2
Posts: 1,306
Blog Entries: 1
Trader Feedback: 0
Default

You forgot to mention that Color.new() now has alpha support as well (like PGE & HMv2).
Code:
---###Color###---
Color.new(r,g,b,a)

--range from 0-255
--alpha is optional & is defaulted to 255(no transparency)
dan369 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 02:46 PM   #3
LXD
 
LXD's Avatar
 
My Mood: Cheerful
Join Date: Aug 2008
Posts: 38
Trader Feedback: 0
Default

this is awesome
LXD is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 02:48 PM   #4
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

Quote:
Originally Posted by dan369 View Post
You forgot to mention that Color.new() now has alpha support as well (like PGE & HMv2).
Code:
---###Color###---
Color.new(r,g,b,a)

--range from 0-255
--alpha is optional & is defaulted to 255(no transparency)
Quote:
Originally Posted by Zack_PSP View Post
Bug Fixes :

1) screen:clear() now actually works. (it didn't in V2)
2) Image alpha on created images, colors, and loaded images now works.
Did I?

Thanks for making it clearer though
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 02:57 PM   #5
Enter Custom Title
 
dan369's Avatar
 
Join Date: Jan 2008
Real First Name: Dan
Location: Wales, cardiff
Just Played: Overlord 2
Posts: 1,306
Blog Entries: 1
Trader Feedback: 0
Default

, no problem zack. Even though most people won't use alpha in colours i still think it's a handy addition

As a added note the big 1000 posts
dan369 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 03:52 PM   #6
Banned from QJ for LIFE
 
Join Date: Jul 2006
Posts: 1,558
Trader Feedback: 0
Default

Congrats Dan.

(look at the bolded word in your sig..)
Mraellis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 04:10 PM   #7

Developer
 
homemister91's Avatar
 
Join Date: Sep 2007
Location: AUS
Posts: 281
Trader Feedback: 0
Default

Quote:
Future :

Plenty of stuff planned, MP3 Playback on the media engine, ogg playback on the media engine, more optimizations, additions of PSP Sce features such as savedata dialogue, OSK etc.

If you would like to request a feature be added, please do so at the official forum : LuaPlayer Euphoria Forum
I thought that this was not going to turn into LuaPlayerHM. I was hopeing that this was going to be a luaplayer for developing games, rather then one for app's.
__________________
Heres to the Wyvern,
Heres to getting Wyvern,
Heres to staying Wyvern,
And if you can't get Wyvern.......
You should become a kingsman!

http://arnold.hyperphp.com/ arnold, Light_AleX and my releases

homemister91 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 04:18 PM   #8
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

Quote:
Originally Posted by homemister91 View Post
I thought that this was not going to turn into LuaPlayerHM. I was hopeing that this was going to be a luaplayer for developing games, rather then one for app's.
I planned it to be universal.

There still only planned features though. If it's considered bloat I will gladly put it to a vote

After all I am doing this for the lua coders not myself, so if they don't want it I wont do it
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 04:45 PM   #9

Developer
 
homemister91's Avatar
 
Join Date: Sep 2007
Location: AUS
Posts: 281
Trader Feedback: 0
Default

Sounds good. Because i really like the luaplayer. It runs very fast and by fixing the 3d it will realy make lua a good language to program in for the psp again.
__________________
Heres to the Wyvern,
Heres to getting Wyvern,
Heres to staying Wyvern,
And if you can't get Wyvern.......
You should become a kingsman!

http://arnold.hyperphp.com/ arnold, Light_AleX and my releases

homemister91 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-17-2009, 06:24 PM   #10
 
Join Date: Mar 2007
Posts: 753
Trader Feedback: 0
Default

I thought that it was gonna be the exact same as the original luaplayer0.20, just with speed enhancements, and be backwards compatible with the luaplayer0.20 code.
But this is good too.
__________________
[I][U]QJ took away my sig. :([/U][/I]
michaelp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 02:00 AM   #11
 
Join Date: Mar 2008
Posts: 30
Trader Feedback: 0
Default

I have not tried this out yet, but I will soon. I'm planning on trying this with the newest build of Maelstrom, and seeing what kind of results I get.

And I'm all for a game version and a full-version, or just a game-optimized version. Also, for the game version, I think keeping 3d would be great as long as it does not cause too much of a slowdown.

Thanks.
MadMax11 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 02:38 AM   #12
Pro Hacker
 
nickxab's Avatar
 
My Mood: Daring
Join Date: Jan 2009
Real First Name: Nick
Location: Greece,Limnos
Just Played: Cross Fire
Posts: 2,498
Blog Entries: 3
Trader Feedback: 0
Talking

this is awesome
__________________
Phat PSP 1004 TA-079 v3+Sony 16GB Mark II with 5.00 m33-6+1.50 kernel+5.01 patch+6.10 version.txt
iPhone jailbroken with OS 3.0
PS2 Slim model SCPH-75004 + MC boot 1.8

Fujitsu Simens Amilo PA1510+2.5GB Ram+AMD Sempron 3400+ 1.8GHz+Windows XP

My site
My qj blog
My guides
Patch the 5.50/6.00 games to work with all FWs
My CWCheat databases





nickxab is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 11:10 AM   #13
 
Join Date: Feb 2007
Posts: 176
Trader Feedback: 0
Default

just wondering
how many people have forgotten about PGE LUA

phoenix game engine

also it would be interesting to compare the two in terms of speed etc

btw is that you ZION
emcp is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 11:17 AM   #14
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

LuaPlayer euphoria needs math optimization before it is fair to compare it to pge
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 01:40 PM   #15
 
Join Date: May 2009
Location: Michigan
Posts: 11
Trader Feedback: 0
Thumbs up I love this

I have learned Lua through the LuaPlayer tuts.
I have been learning alot more about lua via wiki and fourms...etc.
I love the fact you kept the Luaplayer functions.
With Pge and Hm or w/e I'd have to recode my whole game just to achieve the benefits of that interpreter.
Keep updating.
Your work is very much appreciated!!
D313oIFresh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 02:58 PM   #16

Developer
 
seanpaul223's Avatar
 
My Mood: Psychedelic
Join Date: Dec 2007
Location: B.F.
Posts: 308
Trader Feedback: 0
Default

Great work Zack.
I havn't tried it yet, but i'm planning to.
__________________
00:00: Windows is loading...Come back tomorrow.
01:00 : Booting done.Not yet errors encountered...
01:10: Fatal error.Windows has been detected on logical drive
01:22: Keyboard Locked, try everything.
01:42 : Mouse Device Pilot not found, or uninstalled.Press Left-Bouton to continue.
01:50 : Ending User session.Do you want to play another game ?
01:59: Not enough memory.Only 508'312'583 bytes available.
02:00 : System is shutting Down.
seanpaul223 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-18-2009, 03:09 PM   #17
Developer
 
Zack_PSP's Avatar
 
My Mood: Happy
Join Date: May 2009
Posts: 72
Trader Feedback: 0
Default

Quote:
Originally Posted by D313oIFresh View Post
I have learned Lua through the LuaPlayer tuts.
I have been learning alot more about lua via wiki and fourms...etc.
I love the fact you kept the Luaplayer functions.
With Pge and Hm or w/e I'd have to recode my whole game just to achieve the benefits of that interpreter.
Keep updating.
Your work is very much appreciated!!
Thanks

That is the plan, I don't want people to have to recode there scripts to use this there are a few new functions that have to be used (2. System.startGu() and System.endGu())) but i cannot see there being any more required functions that differ from the original lua player.

Quote:
Originally Posted by seanpaul223 View Post
Great work Zack.
I havn't tried it yet, but i'm planning to.
Your welcome
__________________

My Releases :



^-------------------------^

^-------------------------^

Zack_PSP is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-19-2009, 10:34 AM   #18
Banned from QJ for LIFE
 
Join Date: Jul 2006
Posts: 1,558
Trader Feedback: 0
Default

Good job man.
Mraellis is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
euphoria , fast , intrafont , luaplayer , release , speed , version3

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 01:47 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us