Search found 36 matches

by cgruber
Mon Dec 12, 2005 3:09 am
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

http://stuff.hyperpixel.net/lsokoban.zip

Version 0.5 with 29 playable levels and the control fix thanks to Geo
by cgruber
Mon Dec 12, 2005 12:54 am
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

I got so pissed off about this I stopped working on it but today I sat down and finally found the solution to that bug.

The fix is to use a local variable and set that to equal the result of the io.open
and then close the handler with variable.close(). Works perfect now
by cgruber
Thu Sep 22, 2005 6:44 pm
Forum: PSP Lua Player Development
Topic: I started working on
Replies: 15
Views: 7993

neat
by cgruber
Thu Sep 22, 2005 7:48 am
Forum: PSP Lua Player Development
Topic: help. problem with gravity and block.
Replies: 5
Views: 3769

I think I'll probably be making a platform psp game in the near future so I'll try to contribute.
by cgruber
Thu Sep 22, 2005 7:17 am
Forum: PSP Lua Player Development
Topic: help. problem with gravity and block.
Replies: 5
Views: 3769

General gravity concept that I use with my platform games is that you are always falling regardless. When you jump your still falling but your acceleration upwards is greater than the downward acceleration. When your standing on a platform your still fallling it's just that the object is holding you...
by cgruber
Wed Sep 21, 2005 6:58 am
Forum: PSP Lua Player Development
Topic: io.open() bug?
Replies: 1
Views: 2151

io.open() bug?

function LoadLevel() num_moves=0 levelnum = tostring(level) map=string.format("%s%s", "./levels/", levelnum) map=string.format("%s%s", map, ".lua") if(io.open(map, r)==nil...
by cgruber
Wed Sep 21, 2005 6:56 am
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

That io.open bug doesnt happen in lua player for windows.

BTW level 29 is interesting :)
by cgruber
Wed Sep 21, 2005 6:49 am
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

I've been working on opening files and it works most of the time but theres another bug to track down. :(
by cgruber
Tue Sep 20, 2005 8:55 pm
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

added some of the new stuff you wanted.

http://stuff.hyperpixel.net/editor.zip

just replace the exe with this one.
by cgruber
Tue Sep 20, 2005 9:54 am
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

Nice I'll try it out.
by cgruber
Sun Sep 18, 2005 9:56 pm
Forum: PSP Lua Player Development
Topic: dofile() help
Replies: 4
Views: 3558

Yes it is..Seems the problem is with io.open()

If I remove it i can get more than 10 calls, but why can i only call io.open 10 times?
by cgruber
Sun Sep 18, 2005 8:58 pm
Forum: PSP Lua Player Development
Topic: dofile() help
Replies: 4
Views: 3558

dofile() help

function LoadLevel() num_moves=0 levelnum = tostring(level) map=string.format("%s%s", "./levels/", levelnum) map=string.format("%s%s", map, ".lua") if(io.open(map, r)==nil...
by cgruber
Sun Sep 18, 2005 2:04 pm
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

Maybe if it matches the oldvalue a delay should be inserted so you don't have to keep pressing it.

Found a weird bug. Ocassionally the game crashes saying the map file isnt there even though it is. If you press back and forth enough times it will show up.
by cgruber
Sun Sep 18, 2005 1:11 pm
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

Just to verify your using version 0.4 and seeing that?
by cgruber
Sun Sep 18, 2005 12:45 pm
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

Thanks for the levels and feedback. I think I can add everything you requested.. It was basically a quick hack to get a level editor working (~15 minutes in visual basic). I'm gonna play those levels now and add then into the rotation. One question, what do you mean by save as a different name? Like...
by cgruber
Thu Sep 15, 2005 1:50 pm
Forum: PSP Lua Player Development
Topic: Lsokoban level editor for Windows
Replies: 20
Views: 11011

Lsokoban level editor for Windows

Hi guys, Just wanted to let you know I threw together a quick level editor for making new Lsokoban levels. It's very basic and only allows you to save files not load them but I think it's more than enough to whip out a couple levels in no time flat. Just remember to save them to /levels directory an...
by cgruber
Tue Sep 13, 2005 1:12 am
Forum: PSP Lua Player Development
Topic: Lowser and dofile()
Replies: 3
Views: 3109

dofile does work because I use it. What do you have for code in it and the other obvious question are you positive that your path is correct to it?
by cgruber
Mon Sep 12, 2005 7:29 am
Forum: PSP Lua Player Development
Topic: WiFi, Infared, threads, and a bug?
Replies: 8
Views: 5144

It takes time to learn how the hardware works so that an abstraction layer can be created to take advantage of it. I think Lua Player is excellent and will continue to improve.
by cgruber
Mon Sep 12, 2005 7:06 am
Forum: PSP Lua Player Development
Topic: os.date
Replies: 10
Views: 6665

os.date

When I run os.date("%c") on my psp the time is wrong.
It should give me 14:44 but I get 22:14.

What am I doing wrong? the lua player on windows displays the correct time.
by cgruber
Sun Sep 11, 2005 10:23 am
Forum: PSP Lua Player Development
Topic: Sokoban clone
Replies: 5
Views: 7323

version 0.3

Includes a few more levels and the basic scoring info.

http://stuff.hyperpixel.net/lsokoban.zip
by cgruber
Sat Sep 10, 2005 8:10 am
Forum: PSP Lua Player Development
Topic: Breakout clone
Replies: 7
Views: 7155

That's fine as well.
by cgruber
Thu Sep 08, 2005 10:56 pm
Forum: PSP Lua Player Development
Topic: Breakout clone
Replies: 7
Views: 7155

Your math looks more complex than it really needs to be. All those trig functions can be replaced with a bit of simple if then logic.
by cgruber
Thu Sep 08, 2005 11:47 am
Forum: PSP Lua Player Development
Topic: Sokoban clone
Replies: 5
Views: 7323

Here’s my version 0.1 of lsokoban, the level engine is 100% and you can play the first level. It's written in Lua and you will need to place the files in the lua player applications directory. Editing the array in /levels/1.lua will allow you to create your own level. 2 = pushable block 1= grey bloc...
by cgruber
Thu Sep 08, 2005 3:57 am
Forum: PSP Lua Player Development
Topic: lua player on future psp diskmag?
Replies: 3
Views: 3141

Sony seems pretty hellbent on stopping homebrew so I doubt they'd go for it.
by cgruber
Thu Sep 08, 2005 1:05 am
Forum: PSP Lua Player Development
Topic: Limitations?
Replies: 8
Views: 5265

Well you can now play the game although there's only one level and the game doesn't know that you won yet.

Still need to figure out the best way to do the winning spots on the map..
by cgruber
Wed Sep 07, 2005 1:44 am
Forum: PSP Lua Player Development
Topic: Include external files?
Replies: 4
Views: 3652

Thanks for the links I'll take a look. The psp functions are pretty straight forward, the majority of my questions are lua specific.
by cgruber
Wed Sep 07, 2005 1:22 am
Forum: PSP Lua Player Development
Topic: Include external files?
Replies: 4
Views: 3652

:) Sure if that works

I don't like the documentation on lua.org...
by cgruber
Wed Sep 07, 2005 12:31 am
Forum: PSP Lua Player Development
Topic: unset image variable
Replies: 10
Views: 4321

I'm doing both. I'm just anal I guess :)

Are you going to be continuning work on the Windows Lua Player? I think it's great and very well could be a nice gaming enviroment for making simple cross platform games as well.
by cgruber
Tue Sep 06, 2005 11:53 pm
Forum: PSP Lua Player Development
Topic: Include external files?
Replies: 4
Views: 3652

Include external files?

Is there away to have array in an external file and then reference it like #include in C?

My goal is to have all the maps be individual files represented by the level name (i.e 1.lua 2.lua 3.lua)
by cgruber
Tue Sep 06, 2005 11:51 pm
Forum: PSP Lua Player Development
Topic: Sokoban clone
Replies: 5
Views: 7323

Sokoban clone

I'm coming along pretty nicely with this for starting yesterday.
If anyone would be willing to make some nicer tiles that would be super.
They need to be 32x32

Here's what I have so far
Image
[/img]