| View previous topic :: View next topic |
| Author |
Message |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sun Dec 04, 2005 3:19 am Post subject: Lua Player version 0.15 |
|
|
On http://www.luaplayer.org you can get the new version 0.15.
The changelog:
- timer bug fixed (was bug in PSPSDK) [mrbrown]
- wlan socket support (based on PspPet's "WiFi Multi-Test .03") [Shine]
- changed sceGu* and sceGum* functions to Gu.* and Gum.* [Shine]
- System.getFreeMemory added [Shine]
- Freetype added, with 2 default fonts (see http://www.gnome.org/fonts/ for the licence) [Shine]
The new functions are documented at http://wiki.ps2dev.org/psp:lua_player:functions and with the 2 new samples: True Type Font and WLAN. The WLAN example has a webserver integrated: Enter the IP of your PSP in your webbrowser and the PSP delivers a simple test page.
I'm sure there are many bugs, especially the new WLAN support needs to be enhanced, e.g. DNS lookup and some internal TODOs, but at least it works :-)
Last edited by Shine on Sat Jan 07, 2006 6:23 pm; edited 1 time in total |
|
| Back to top |
|
 |
chaos
Joined: 10 Apr 2005 Posts: 135
|
Posted: Sun Dec 04, 2005 6:58 am Post subject: |
|
|
great work on the wireless.. can't wait to try it out. _________________ Chaosmachine Studios: High Quality Homebrew. |
|
| Back to top |
|
 |
nevyn
Joined: 31 Jul 2005 Posts: 136 Location: Sweden
|
Posted: Sun Dec 04, 2005 10:47 am Post subject: |
|
|
Dude, you added wireless :P Not a pure socket.h implementation it seems, but perhaps that's for the good... 'Tho adding the LuaSocket library (http://luaforge.net/projects/luasocket/) would kick serious ass.
I need to get back to the luaplayer scene... *too much school* |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Sun Dec 04, 2005 9:12 pm Post subject: |
|
|
Hello
I've just noticed that there is maybe some problem when printing
text to a screen with Luaplayer0.15:
FOSK0.20 works smoothly under Luaplayer v0.12, but when running with Luaplayer v0.15,
the lines with null length are printed with the same content as the prev.lines.
source: http://fosk4psp.dynamicweb.hu/
file: kbrdfnct.lua
routine: disptxt()
| Code: | for j = 1,k do
tx = j+starty
if (tx > 0)and (tx<numlines) then
screen:print(0, 8*(j-1), string.format("%s",string.sub(text[tx],startx,(string.len(text[tx])-mode1))), colors[2][1])
end
end
|
EDIT:
the same thing happens with MikeHaggar's Text Browser. |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Mon Dec 05, 2005 4:44 am Post subject: |
|
|
| mrn wrote: | FOSK0.20 works smoothly under Luaplayer v0.12, but when running with Luaplayer v0.15,
the lines with null length are printed with the same content as the prev.lines.
|
To fix your problem write this:
instead of
| Code: |
string.format("%s", yourStringVariable)
|
and
instead of
| Code: |
string.format("%s%s", sv1, sv2)
|
I don't know the reason for this bug, but looks like string.format uses the last string, when outputing an empty string. In Lua Player 0.12 this throws no assertion:
| Code: |
assert(string.format("%s", "1") == "1")
assert(string.format("%s", "") == "")
|
and in Lua Player 0.15 this throws no assertion:
| Code: |
assert(string.format("%s", "1") == "1")
assert(string.format("%s", "") == "1")
|
I've added it to the list of bugs: http://wiki.ps2dev.org/psp:lua_player:todos
BTW: this list is not for me only, if someone can fix a bug, I would be happy to include it to Lua Player :-) |
|
| Back to top |
|
 |
dkla
Joined: 17 Oct 2005 Posts: 21
|
Posted: Mon Dec 05, 2005 4:45 pm Post subject: Re: Lua Player version 0.15 |
|
|
[quote=
- Freetype added, with 2 default fonts (see http://www.gnome.org/fonts/ for the licence) [Shine]
[/quote]
Arrrgh, just when I finished writing all those font-blitting routines for my game, you built it into the Player!!! :-)
But seriously, good job on the Freetype stuff (and thanks for adding color support). I'll definitely check it out. |
|
| Back to top |
|
 |
dragaron

Joined: 06 Dec 2005 Posts: 6
|
Posted: Wed Dec 07, 2005 6:19 am Post subject: LUA v.15 |
|
|
Possible bugs:
I noticed that when checking for the time in this version it returns the hour inaccurately at 5 hours later than usual. If system clock says 5:00 pm, the LUA v.15 returns the hour as 10:00 pm.
Also, wav files sound slightly distorted in this version. They have a crackling noise in LUA v.15, when they played perfectly well in LUA v.15. _________________ He has showed you, O man, what is good.
And what does the LORD require of you?
To act justly and to love mercy
and to walk humbly with your God. (Micah 6:8) |
|
| Back to top |
|
 |
JoshDB

Joined: 05 Oct 2005 Posts: 87
|
Posted: Wed Dec 07, 2005 9:13 am Post subject: |
|
|
| The time in Lua Player is GMT -+0 |
|
| Back to top |
|
 |
2Xtremes2004
Joined: 31 Aug 2005 Posts: 53
|
Posted: Wed Dec 07, 2005 10:07 am Post subject: |
|
|
| JoshDB wrote: | | The time in Lua Player is GMT -+0 |
Is this new with v.15 because before (v.14) it was displaying the time according to the time zone set on my psp, if so is there a way to set the time zone within lua?
My current clock code.
| Code: |
function Clock()
time = os.time()
dateString = os.date("%l:%M%p %m/%d/%Y")
dateFields = os.date("*t", time)
screen:print(169, 2, dateString, white)
end
|
_________________ I want my money back!? |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Sat Dec 10, 2005 7:40 am Post subject: |
|
|
just tried to replace the "screen:print" with "screen:fontPrint" in F.O.S.K
and it become really-really slow: I need to press a button 10-15 times
until the cursor reacts. Removing "string:format" does not speed it up at all
(just try it in the dispText routine.)
So, the question is, why is it so and how can I make it faster?
(the only thing coming to my mind is to copy the actual screen
and re-display it if there is no change like cursor movement...
but still, it does not solve the true-type font speed question.)
thnx, mrn |
|
| Back to top |
|
 |
Shine
Joined: 03 Dec 2004 Posts: 728 Location: Germany
|
Posted: Sat Dec 10, 2005 8:14 am Post subject: |
|
|
| mrn wrote: |
So, the question is, why is it so and how can I make it faster?
(the only thing coming to my mind is to copy the actual screen
and re-display it if there is no change like cursor movement...
but still, it does not solve the true-type font speed question.)
|
You can cache the font drawing, but I think the best would be if it is cached from Lua Player, because otherwise it is difficult for Lua scripts when inserting single characters, because all other characters has to be redrawn, so caching could be done only per character. Currently the problem is that the glyphs are rendered every time again. Perhaps the bitmap objects, which are produced by Freetype, should be cached. |
|
| Back to top |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Sun Dec 11, 2005 7:54 am Post subject: |
|
|
Hey, dude -
When will version 0.15 for Windows platform be available?
I tried 3D Cube/index.lua from the version 0.14 distribution with the version 0.14 for Windows and I got a black screen.
It would be very helpful if I had a version 0.15 for Windows in order to experiment 3D stuff. I know OpenGL but Gu.* and Gum.* are not quite the same with OpenGL or even SDL. I spent a lot of time trying to figure out the differences.
Thanks. _________________ Geo Massar
Retired Engineer |
|
| Back to top |
|
 |
Zenurb
Joined: 30 Sep 2005 Posts: 106 Location: United Kingdom
|
Posted: Sun Dec 11, 2005 8:28 am Post subject: |
|
|
Unless you can somehow make Gu.* and Gum.* map to OpenGL functions which do the same thing exactly, there wont be any 3d functions in the windows version of luaplayer. _________________ Proud Dvorak User
US 1.5 PSP (Original) |
|
| Back to top |
|
 |
KawaGeo
Joined: 27 Aug 2005 Posts: 191 Location: Calif Mountains
|
Posted: Sun Dec 11, 2005 1:55 pm Post subject: |
|
|
Oh ... _________________ Geo Massar
Retired Engineer |
|
| Back to top |
|
 |
mrn
Joined: 02 Nov 2005 Posts: 116
|
Posted: Tue Dec 13, 2005 10:39 pm Post subject: |
|
|
| Quote: | | You can cache the font drawing, but I think the best would be if it is cached from Lua Player, because otherwise it is difficult for Lua scripts when inserting single characters, because all other characters has to be redrawn, so caching could be done only per character. Currently the problem is that the glyphs are rendered every time again. Perhaps the bitmap objects, which are produced by Freetype, should be cached. |
Shine, can you pls. implement the caching in one of the next versions of Lua Player?
It would allow to see much more from a text file, not to mention the look,
the zoomIn - zoomOut options, etc.
This would also support offline browser-type applications to be ported to Lua.
(btw, is there any offline browser for reading downloaded htm files?) |
|
| Back to top |
|
 |
willdenniss
Joined: 09 Oct 2005 Posts: 1
|
Posted: Sun Dec 18, 2005 6:09 pm Post subject: |
|
|
Thanks for the awesome software! I found a considerable speed increase upgrading to 0.15
fontPrint is cool, but extreemly slow. In it's current state, it's primary use that I see is for cached stuff - not to be called every frame. Perhaps the docs should warn about this.
Will. |
|
| Back to top |
|
 |
LiquidIce
Joined: 04 Apr 2005 Posts: 55
|
Posted: Mon Dec 19, 2005 4:24 pm Post subject: |
|
|
Shine, YOU are the man! Network support is perfect! This is exactly what I have been waiting for. Now I can finish my application. Look for some exciting news when I launch my Lua app on Jan 5th.
Thanks for all of your hard work, it is appreciated. |
|
| Back to top |
|
 |
justatest
Joined: 19 Dec 2005 Posts: 10
|
Posted: Tue Dec 20, 2005 3:14 pm Post subject: |
|
|
| cool !! network supported !!! and also waiting for the guy up there say Jan 15th !! keep going all ! |
|
| Back to top |
|
 |
ema
Joined: 07 Dec 2005 Posts: 11
|
Posted: Sat Dec 24, 2005 1:44 pm Post subject: |
|
|
LuaPlayer is a great work!
I'm enjoying more than playing any games :)
Now, I have a suggestion for 3D services.
How about dividing vertex prepareing from Gum.drawArray?
I've added a small user data for storing prepared vertices,
drawing 3D objects became extremely faster.
(it could draw over 12000 triangles in 1/60 sec.)
Here is the source code.
http://geocities.com/lua_ema/lua3dgs.zip
I'm glad if you like it.
Thanks. |
|
| Back to top |
|
 |
|