Search found 24 matches

by Slopey
Fri Jul 28, 2006 11:48 pm
Forum: PSP Development
Topic: Installing Freetype
Replies: 2
Views: 1359

Fixed - had to reinstall Cygwin but it's working now.
by Slopey
Fri Jul 28, 2006 6:51 pm
Forum: PSP Development
Topic: Installing Freetype
Replies: 2
Views: 1359

Ok, I found aclocal-1.9 and renamed it, and also did the same thing for autom4te, but now I get a new error: $ sh autogen.sh running `aclocal -I .' 12042 [main] ? (5844) C:\cygwin\bin\sh.exe: *** fatal error - C:\cygwin\bin\sh .exe: *** couldn't allocate heap, Win32 error 487, base 0x6D0000, top 0x6...
by Slopey
Fri Jul 28, 2006 6:42 pm
Forum: PSP Development
Topic: Installing Freetype
Replies: 2
Views: 1359

Installing Freetype

Hi All, I'm having horrendous problems installing freetype on my Cygwin installation. I can check it out from the svn no problem, but the sh autogen.sh fails and Im not sure what I'm missing. Output is as follows: $ sh autogen.sh running `aclocal -I .' autogen.sh: line 15: aclocal: command not found...
by Slopey
Wed Jul 26, 2006 9:07 am
Forum: PSP Development
Topic: Convert number to a string
Replies: 3
Views: 1455

Convert number to a string

Hi All, What's the easiest way to convert a number to a string (for example an integer?) in C/C++? In the past Ive used itoa but I believe thats non-standard. Thanks in advance - it's been a while since I've done any C/C++ and this one has complete escaped me - it's also missing from my books :/ Che...
by Slopey
Sat Jul 22, 2006 9:32 am
Forum: PSP Lua Player Development
Topic: 3D via irrlicht?
Replies: 3
Views: 3407

3D via irrlicht?

Just from PSP Updates today, LTEStudios are porting the irrlicht 3d engine over to the psp. Theres a Lua wrapper for the engine on other platforms - is that something which could be implemented into LuaPlayer?

see http://irrlicht.sourceforge.net/
and http://irrlua.sourceforge.net/
by Slopey
Mon Apr 24, 2006 7:55 pm
Forum: PSP Lua Player Development
Topic: 2 Question : Hidding code , and help for another things...
Replies: 7
Views: 4684

You can do it with any version of LuaPlayer - you recompile the player itself to load your application when it starts. Seeminly it's in this documentation for the LuaPlayer source.
by Slopey
Thu Apr 20, 2006 2:16 am
Forum: PSP Lua Player Development
Topic: 2 Question : Hidding code , and help for another things...
Replies: 7
Views: 4684

I asked the same question a while back (and the search you need to do isn't particularly obvious). However, if you want to hide your code, your only option as I understand it is to compile it into a version of the player manually. Seemingly there are hints on how to accomplish this in the docs with ...
by Slopey
Tue Mar 28, 2006 1:47 am
Forum: PSP Lua Player Development
Topic: Which version of Lua can I use on Firmware 2.6?
Replies: 2
Views: 2491

Nevermind - I see from Fanjita's site that both 14 and 16 work.

Cheers,
S.
by Slopey
Mon Mar 27, 2006 9:56 pm
Forum: PSP Lua Player Development
Topic: Which version of Lua can I use on Firmware 2.6?
Replies: 2
Views: 2491

Which version of Lua can I use on Firmware 2.6?

Hi All, Anyone succesfully running Lua on a PSP with FW 2.6? I've got a spanky new UMD of Lemmings which I'm itching to play, but it'll mean going from 1.5 to 2.6 I've previously read that v13 will run on 2.0 via the GTA exploit? Just wondering if anyone has any wisdom before I succumb to the lure o...
by Slopey
Tue Jan 10, 2006 10:08 pm
Forum: PSP Lua Player Development
Topic: Menu skipping
Replies: 7
Views: 4126

Re: Menu skipping

Koba- your code is working correctly - if hl1 == 1 and you then set it to 2 then on the next if statement hl1 == 2 evaluates to true. You'll need to use elseif rather than a new if statement ie: if pad:down() then if hl1 == 1 then hl1 = 2 screen.waitVblankStart(10&...
by Slopey
Fri Dec 30, 2005 11:05 pm
Forum: PSP Lua Player Development
Topic: Help: Downloading images
Replies: 7
Views: 3787

use

local data = file:read("*a")

it'll load the entire file in binary into the data variable.

There's more info at http://www.lua.org/pil/21.2.2.html on the lua site proper.
by Slopey
Fri Dec 30, 2005 11:03 pm
Forum: PSP Lua Player Development
Topic: fillRect()
Replies: 3
Views: 1880

screen:fillRect(10, 10. 200, 150, color)

should be

screen:fillRect(10, 10, 200, 150, color)

You've got a period after the y coordinate which should be a comma.
by Slopey
Thu Dec 22, 2005 6:00 am
Forum: PSP Lua Player Development
Topic: Lua source encryption on the fly?
Replies: 17
Views: 6228

Yeah, I did, just didn't use "protected" :) Dug it up now, thanks.
by Slopey
Thu Dec 22, 2005 3:48 am
Forum: PSP Lua Player Development
Topic: Lua source encryption on the fly?
Replies: 17
Views: 6228

Lua source encryption on the fly?

Hi All, Anyone have any cunning ideas on how to protect the main source file for a lua app? I'm currently rattling through a little RPG which I'm coding and I'd quite like to prevent end users from easily changing the source. If it's left as is, it'll be woefully easy for someone to edit the source ...
by Slopey
Tue Oct 04, 2005 8:11 pm
Forum: PSP Lua Player Development
Topic: weird controls problem in lua player for windows
Replies: 3
Views: 2493

Its a bug in the Windows player - I reported it previously, hopefully a fix is not too far off! :)
by Slopey
Sat Aug 27, 2005 1:43 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Luaplayer windows controls question

Hi All, I'm using the windows lua player to code up my app without having to copy over to the PSP all the time, but I can't get the controls to work correctly. My test program (included below) produces the following results for the following keys: a, s, q & w all work as described ie sel, start ...
by Slopey
Thu Aug 25, 2005 5:57 pm
Forum: PSP Lua Player Development
Topic: Exiting a function
Replies: 2
Views: 2983

DOH! My humble apologies. I'll rtfm twice next time. :)

Thanks nevyn!
by Slopey
Thu Aug 25, 2005 9:07 am
Forum: PSP Lua Player Development
Topic: Exiting a function
Replies: 2
Views: 2983

Exiting a function

Hi All,

I've been right through the Lua docs, and I can't find any way to exit a function prematurely. Is there an exit or other keyword which I'm missing?

Ta,
S.
by Slopey
Wed Aug 03, 2005 1:40 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Many thanks Shine, I wait the PC version with bated breath :) (luckily I'm away until next week so I won't be able to do anything until then anyway). Anyways - I've finally knocked up a test dungeon crawler to test out a few ideas for a game I want to do (a Bards Tale clone) in Lua. Basic screenie: ...
by Slopey
Tue Aug 02, 2005 9:45 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Managed to get my head round most of it now thanks to the examples above :)

Is there any way to test out the script on the PC? Copying to the PSP and running through the menus to test stuff is getting a little tedious! ;) I've tried it with the PBP emulator, but no joy.
by Slopey
Mon Aug 01, 2005 2:13 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Oh, by the way, does the Lua Player run on the PSP ELF emulator?
by Slopey
Mon Aug 01, 2005 1:50 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Doh! I'll go grab it now :)
by Slopey
Mon Aug 01, 2005 1:21 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

Hi, Slopey. Actually, I was fiddling around with something like that just last night. I used a copy of Bitmap Font Builder to make a font and wrote some Lua code to make a 'fontOut' routine. http://www.kinsmangames.com/files/LuaText.zip It does word wrapping :) Cool - that's a more elgant example o...
by Slopey
Sun Jul 31, 2005 8:18 pm
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 307170

First up - many thanks to Shine for the Lua stuff - i can finally code something on my PSP!! :) Anyway, could somone tell me if it's possible to use Lua to print text to a specific location? I'm looking for a text equivalent of void printDecimal(int x, int y, int value, int color) if that's not curr...