Search found 728 matches

by Shine
Wed Jul 26, 2006 5:36 pm
Forum: PSP Lua Player Development
Topic: table instances
Replies: 10
Views: 5434

Re: table instances

then, Row[2][1] becomes 15 too. That's really annoying. Anyone knows a way to avoid this? You can copy the table: function copyTable(old) local new = {} table.foreach(old, function (item) table.insert(new, item) end) ...
by Shine
Fri Jul 21, 2006 5:34 am
Forum: PSP Lua Player Development
Topic: Can't compile 0.20
Replies: 2
Views: 2436

Re: Can't compile 0.20

Try to update the Lua library.
by Shine
Mon Jul 10, 2006 9:34 pm
Forum: PSP Lua Player Development
Topic: LuaPlayer "bug".
Replies: 8
Views: 5019

Take a look at the serial port example in Lua Player for a full terminal simulation with newline and scrolling.
by Shine
Wed Jul 05, 2006 12:36 pm
Forum: PSP Lua Player Development
Topic: Benefits of LUA Player?
Replies: 8
Views: 5334

You won't find the silver bullet, which solves all problems. Of course, you can do anything in C++ or C and there are GCs for C, too, like the Boehm GC. And you are right, you can't implement a fast image rotate function in Lua, because it is too slow for single pixel manipulating low-level tasks li...
by Shine
Tue Jul 04, 2006 11:30 pm
Forum: PSP Lua Player Development
Topic: Benefits of LUA Player?
Replies: 8
Views: 5334

I don't consider garbage collection a plus in particular Do you have a reaons, why you don't consider it as a plus? E.g. Java is very successful and one reason may be that it has a GC and the programmer doesn't have to take care when to release memory. A GC can be even faster than manual memory man...
by Shine
Tue Jul 04, 2006 11:22 pm
Forum: PSP Lua Player Development
Topic: Sound Playing
Replies: 2
Views: 2510

Re: Sound Playing

When you are calling "yourSound=Sound.load(...)" and then "yourSound.play()", you'll get a Voice object, on which you have to call playing: sound = Sound.load("test"); voice = sound:play(); while voice:playing(&...
by Shine
Thu Jun 22, 2006 10:49 pm
Forum: General Discussion
Topic: ABUSERS OF OOPO.NET DOWNLOAD ACCESS
Replies: 14
Views: 11585

Maybe setup a Sourceforge project, then you can provide it as a "file release" for download, which is mirrored all over the world on fast central ISP servers.
by Shine
Sat Jun 17, 2006 11:32 pm
Forum: PS2 Development
Topic: PS2 Lua Player
Replies: 26
Views: 97922

Re: PS2 Lua Player ?

Now that we have a recent (5.1) and functional lua interpreter running on the PS2 (still have few minor issues but they will be corrected in the next few days), it would be great to see coming a PS2 Lua player ! This is a good idea. Having reviewed a bit the PSP player, I noticed that there is no a...
by Shine
Sat Jun 10, 2006 3:20 am
Forum: PSP Lua Player Development
Topic: File Functions
Replies: 13
Views: 6118

nvm, it was "for index,value in table do". it took a while to change them to ipairs and pairs, i really needed the jpeg support! so why did you want to make it lua 5.1, wasnt that a hassle? So how long do you need to replace "in table" with "in ipairs(table)", when sea...
by Shine
Fri Jun 09, 2006 5:11 am
Forum: PSP Lua Player Development
Topic: v0.20 Bugs
Replies: 4
Views: 2805

Do you have some non-working example? I've removed your screen.flip and this works with Lua Player 0.20: screen:clear(Color.new(0, 0, 0)) screen:print(0, 264, "I have text here", Color.new(255,255,255)) img = I...
by Shine
Fri Jun 09, 2006 3:33 am
Forum: PSP Lua Player Development
Topic: File Functions
Replies: 13
Views: 6118

the 0.19 lowser wont work and "for i=1,string.len(somethin) do" doesnt work and its annoying You are right, 0.19 lowser doesn't work, but I've fixed it. Lowser in Lua Player 0.20 works. The only changes needed were the pairs/ipairs changes, like described in the release notes. And I can't...
by Shine
Thu Jun 08, 2006 11:58 pm
Forum: PSP Lua Player Development
Topic: v0.20 Bugs
Replies: 4
Views: 2805

Re: v0.20 Bugs

I didn't tried it, but looks like you are copying the wrong screen. There are 2 screens: the visible screen and the backbuffer. Copying from screen to image uses the backbuffer. Let me know, if you have still the error when copying the backbuffer, then I'll check it on my PSP.
by Shine
Tue Jun 06, 2006 3:40 am
Forum: PSP Lua Player Development
Topic: Lua Player v0.20 Image.load issues
Replies: 2
Views: 2280

Re: Lua Player v0.20 Image.load issues

But then the real problem came up. For some reason a regular Image = Image.load("filename.png") displays (random?) Image.load: Error loading image errors. Do I need to load all my graphics with the new Image.loadFromMemory function or is the soft having trouble with the resolution of my ....
by Shine
Mon Jun 05, 2006 5:39 pm
Forum: PSP Lua Player Development
Topic: [LuaPlayer 0.20] - 3D issue?
Replies: 2
Views: 2227

Re: [LuaPlayer 0.20] - 3D issue?

See the release note: "it's pure Lua 5.1: no binary operators". Use "+" instead of "|", like in my cube example shipped with the 0.20 release of Lua Player.
by Shine
Mon Jun 05, 2006 7:55 am
Forum: PSP Lua Player Development
Topic: Load Image from Array of Bytes
Replies: 7
Views: 4068

Re: Load Image from Array of Bytes

puffo83 wrote:Creating an image from array of bytes is a new features of new Lua Player 0.20??
Really???
Yes, see http://forums.ps2dev.org/viewtopic.php?t=5885 . Maybe this will be useful later when integrating physfs, too, which will allow packing all files of a game in one zip file.
by Shine
Sun Jun 04, 2006 10:34 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7740

I mean than luaplayer 0.20 doesn't work with eloader 0.97 Then it would be a good idea to ask the author to enhance eloader 0.97. Maybe the module loading is not supported. A solution might be this thread: http://forums.ps2dev.org/viewtopic.php?t=5663 But I want to concentrate more on Lua Player co...
by Shine
Sun Jun 04, 2006 9:57 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7740

Doesn't work.... :( Maybe you can write a bit more about what doesn't work. Lua Player 0.20 works? Then this works, too: function ip2string(ip) local string = nil for i = 1, 4 do if string then string = string .. "." else string = "" end string = string .. ip&...
by Shine
Sun Jun 04, 2006 8:13 pm
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7740

aserto wrote:Will Luaplayer 0.20 work on eloader 0.97?
I don't know, because currently I have only a 1.0 and 1.5 PSP, but you can try it, Lua Player 0.20 is released: http://forums.ps2dev.org/viewtopic.php?t=5885
by Shine
Sun Jun 04, 2006 4:26 am
Forum: PSP Lua Player Development
Topic: Load Image from Array of Bytes
Replies: 7
Views: 4068

Re: Load Image from Array of Bytes

puffo83 wrote:Exist a way to load a jpeg Image from Array of Bytes?
Yes, see the release notes of Lua Player 0.20.
by Shine
Sun Jun 04, 2006 4:25 am
Forum: PSP Lua Player Development
Topic: LongtoIp problem
Replies: 21
Views: 7740

Re: LongtoIp problem

aserto wrote:this function converts a number like this: 4294967295 to 255.255.255.255
i tested it on lua5.1 and works. But in luaplayer doesn't work... I don't know what to do
In Lua Player 0.20 I've integrated Lua 5.1 with double as number type, to avoid such problems. Now it should work.
by Shine
Sun Jun 04, 2006 4:23 am
Forum: PSP Lua Player Development
Topic: File Functions
Replies: 13
Views: 6118

Re: File Functions

mallchin wrote:I see LuaPlayer has updated to 0.19, but does anyone have an updated list of functions?

I can't see any mention of the requests I've made, anyone managed to move/rename files?
I've added a System.rename function for Lua Player 0.20.
by Shine
Sun Jun 04, 2006 4:22 am
Forum: General Discussion
Topic: Lua Player version 0.20
Replies: 0
Views: 3456

Lua Player version 0.20

On http://www.luaplayer.org you can get the new version 0.20. It is updated to Lua 5.1, there are some bugfixes and a new function for loading images from memory. I'll try to add pspgl the next week. The changelog: v0.20 ========== updated for gcc 4.1 and Lua 5.1. Some things you need to change for ...
by Shine
Sun Jun 04, 2006 12:12 am
Forum: PSP Lua Player Development
Topic: More Truetype errors
Replies: 2
Views: 2342

Re: More Truetype errors

Hi, I have this problems: 1 - if I create an new image, and whant to put some text in it as: _font = Font.load('somefont.ttf') _font:setPixelSizes(0,30) fileImage = Image.createEmpty(480,272) fileImage:fontPrint(_font , 0, 0, 'Hello', Color.new(0,0,2555)) the text not render, it seems to need a: fi...
by Shine
Sat Jun 03, 2006 9:22 am
Forum: PSP Lua Player Development
Topic: Flip and screen.waitVblankStart
Replies: 9
Views: 6570

from reading some of the documentation it suggested that the waitVblankStart() should come before the flip (I see a lot of programs that use it this way). But from what you guys are saying it should always come after the flip, it that correct ? As romero126 said: You don't need it for your example....
by Shine
Sat Jun 03, 2006 8:05 am
Forum: PSP Lua Player Development
Topic: Flip and screen.waitVblankStart
Replies: 9
Views: 6570

Re: Flip and screen.waitVblankStart

I've tested this code: screen:print(10,10,"test",Color.new(255,255,255)) screen.flip() screen.waitVblankStart() pad = Controls.read() while not pad:start() do pad = Controls.read...
by Shine
Wed May 24, 2006 12:30 am
Forum: PSP Lua Player Development
Topic: Luamines is here! -- UPDATED 0.03 AVAILABLE NOW!
Replies: 8
Views: 8013

Re: New Screen shots for v0.03

Please ignore me, if you have painted the pictures yourself, but do you have the permission from the painters who draw it, to use it in your game?
by Shine
Mon May 22, 2006 8:16 pm
Forum: PSP Lua Player Development
Topic: image sizes
Replies: 8
Views: 4132

Lua can handle bigger images than 512x512. I myself use 1000x1000 images. There is one catch it has to be in JPG format. Also it shouldn't be to big a filesize (ok so two catches). The biggest i use is 58 kB. I haven't tested the limits, but maybe Shine can tell us? Maybe this is possible, but then...
by Shine
Mon May 22, 2006 8:11 pm
Forum: PSP Lua Player Development
Topic: Free Scrolling engine code for you guys
Replies: 7
Views: 5685

Re: Free Scrolling engine code for you guys

Let me know if the link goes down. It's being hosted at megaupload. If anyone wants to mirror, go ahead. This is really cool! I don't update my gallery, but this is an exception, I've mirrored it on my server and added it to the top of the unmaintained Lua Player gallery . BTW: works without proble...
by Shine
Mon May 08, 2006 9:26 pm
Forum: PSP Lua Player Development
Topic: searching for core developers
Replies: 1
Views: 4102

Re: searching for core developers

Ok, as I wrote, you should post to this thread, if you are working on a task to avoid duplicate work.

Currently I'm working on the pspgl integration. It is a bit more work than I thought, but I hope to release a new version this weekend.
by Shine
Sun May 07, 2006 8:12 am
Forum: PSP Development
Topic: Font Help
Replies: 1
Views: 1380

Re: Font Help