Search found 12 matches

by Benihana
Mon Sep 05, 2005 10:06 am
Forum: PSP Development
Topic: kexploit and PSP Toolchain on MacOS X, Linux, BSD, etc... ?
Replies: 4
Views: 1926

Thanhda wrote:... i dont usually code in mac, use linux or cygwin...
This is midly amusing. He already IS using linux.

As for an answer, please STFF, you will find a stickied note in the PSPSDK forum. It says very clearly how to set up the toolchain on OS X.
by Benihana
Tue Aug 23, 2005 2:30 pm
Forum: PSP Lua Player Development
Topic: Coding Help with buttons
Replies: 6
Views: 4628

Lua doesn't mean what it says half the time - and that's not really Lua's fault. It would be near impossible for it to know what you mean when you make a mistake. If this is your only code, you have an extra end... therefore my guess is that is what is causing your issues. Since I am not at home I c...
by Benihana
Tue Aug 23, 2005 4:59 am
Forum: PSP Lua Player Development
Topic: Rounding Decimals
Replies: 4
Views: 3716

That's because you didn't follow the link and look at the way it was used... it is part of the math library, therefore implentation is as follows:

local x = math.ceil(2.3)
print(x) --> 3
by Benihana
Tue Aug 23, 2005 4:50 am
Forum: PSP Lua Player Development
Topic: include in lua
Replies: 3
Views: 3188

You can always use a comment line with asterisks across it, or some other deliniater. If I have reusable code I keep it seperate from the games code by doing such. Also, I HOPE you are using a Lua dev...there are a few out there. I use find a lot...would be nice to have a IDE with a little search bo...
by Benihana
Tue Aug 23, 2005 4:47 am
Forum: PSP Lua Player Development
Topic: Guide me please
Replies: 9
Views: 5995

Great compilation of development links You do know you will need to install Cygwin first? It's pretty simple...or rather you won't need to do much with it. It provides you with a POSIX enviroment to run the dev tools. Then follow this FAQ , and hop over to PSP SDK forum if you run into difficulties...
by Benihana
Tue Aug 23, 2005 4:29 am
Forum: PSP Lua Player Development
Topic: Rounding Decimals
Replies: 4
Views: 3716

Programming in Lua
rounding functions (floor, ceil)

Wikipedia entry for floor and ceil
floor: for a real number x, floor(x) is the largest integer less than or equal to x.
ceil: for a real number x, ceiling(x) is the smallest integer no less than x.
by Benihana
Tue Aug 23, 2005 4:22 am
Forum: PSP Lua Player Development
Topic: include in lua
Replies: 3
Views: 3188

You have probably figured it out by now, but: "...require does the same job as dofile, but with two important differences. First, require searches for the file in a path; second, require controls whether a file has already been run to avoid duplicating the work." - Programming in Lua So ba...
by Benihana
Tue Aug 23, 2005 4:17 am
Forum: PSP Lua Player Development
Topic: Guide me please
Replies: 9
Views: 5995

Barcode, Not sure how in depth LOGO programming is. Does it have classes and objects? Lua is a "scripting" language that is powerful enough to function as a full featured enviroment. If you have never programmed, it's not a bad place to start. If you are familiar with C or similar language...
by Benihana
Sat Aug 20, 2005 12:59 pm
Forum: PSP Lua Player Development
Topic: Wait command
Replies: 5
Views: 3970

Oops it's screen.waitVblankStart() Also, Lua is CASE sensitive, therefore you must write that function exactly as you see it here, with a lowercase wait, an upper case V, lowercase blank, and uppercase Start. Otherwise Lua will think you are trying to call some function waitvblankstart, which you ha...
by Benihana
Sat Aug 20, 2005 9:54 am
Forum: PSP Lua Player Development
Topic: Lua Player for PSP
Replies: 351
Views: 310170

Try making i a local array (outside your for loop so that Lua does not assign it every loop); local iArray = i You should also be able to compare both variables; if {x,y} == {past_x[iArray],past_y[iArray]} then ... end And finally make sure you are running this comparison once per move cycle, not on...
by Benihana
Sat Aug 20, 2005 9:47 am
Forum: PSP Lua Player Development
Topic: Wait command
Replies: 5
Views: 3970

How about: waitVblankStart(i)
where i = 1/60 second
by Benihana
Sun Jul 31, 2005 5:43 am
Forum: PSP Development
Topic: linux
Replies: 9
Views: 4735

Unlike Windows, Linux can be compiled for many different architectures. Take the iPod for example. There is no need to wait for a x86 emu. <a href="http://www.linux-mips.org/wiki/Main_Page"> Linux/MIPS </a> is one that would be worth looking at.

-Benihana