QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Lua Help

This is a discussion on Lua Help within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; In LuaDevKit, what does this mean? Spoiler for Debug Error : Exit Value: 1 usage: luaplayer script.lua. I am following ...

Reply
 
LinkBack Thread Tools
Old 07-10-2007, 05:26 PM   #1
 
sjheiss's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 28
Trader Feedback: 0
Default Lua Help

In LuaDevKit, what does this mean?

Spoiler for Debug Error:
Exit Value: 1

usage: luaplayer script.lua.


I am following this tut and everything is right, but I get this error. I have two other srcipts I made and they are perferctly fine.

Here is what I have. Can someone please help me and tell me what's wrong?

Spoiler for Code:
red=Color.new(255,0,0)

Enemy={}
Enemy[1]={type="gargoyle", health=100}
Enemy[2]={type="vampire", health=100}
Enemy[3]={type="goomba", health=100}
Enemy[4]={type="ghost", health=100}
Enemy[5]={type="zombie", health=100}

Player={}
Player[1]={weapon="sword", health=100}

while true do
pad=Controls.read()

screen: print(5,10, "Player 1 Weapon:" .. Player[1].weapon, red)
screen: print(5,20, "Player 1 Health:" .. Player[1].health, red)

screen: print(250,10, "Enemy Type:" .. Enemy[1].type, red)
screen: print(250,20, "Enemy Health:" .. Enemy[1].health, red)

if pad:cross() then
Enemy[1].health = Enemy[1].health - 5
end

screen.waitVblankStart()
screen.flip()
end
sjheiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-10-2007, 05:45 PM   #2
 
Join Date: Nov 2005
Location: NoWhere . . . .
Posts: 1,266
Trader Feedback: 0
Default

hmm try changing the directory were you have the script saved.
zmathue is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-10-2007, 06:02 PM   #3
 
andyauff's Avatar
 
Join Date: Jan 2007
Location: U.S.
Posts: 405
Trader Feedback: 0
Default

Ha, I remember doing the same tutorial. The code looks fine to me, though....
andyauff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-10-2007, 06:14 PM   #4
 
sjheiss's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 28
Trader Feedback: 0
Default

I got it fixed. Apparently there was something wrong with the player, so I reinstalled it and it works now, even though I never changed anything.
sjheiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-10-2007, 11:46 PM   #5
 
the undead's Avatar
 
Join Date: Sep 2006
Location: 6ft. Down Underground........Oh and guess what my avatar is
Posts: 387
Trader Feedback: 0
Default

Quote:
Originally Posted by zmathue
hmm try changing the directory were you have the script saved.
Or dont use LuaDevKit......
the undead is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-11-2007, 11:14 AM   #6

total-Z
 
youresam's Avatar
 
Join Date: Jul 2005
Location: texas
Posts: 2,803
Trader Feedback: 0
Default

Quote:
Originally Posted by the undead
Or dont use LuaDevKit......
liek srsly
__________________
牧来栠摩琠敨映汩獥
PSN: youresam
From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
youresam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-11-2007, 01:53 PM   #7

is not posting very often
 
Glynnder's Avatar
 
Join Date: Feb 2006
Location: omnipresent
Posts: 5,161
Trader Feedback: 0
Default

wait till the next version of LuaDevKit comes out, cos that is very bad handling on the part of LuaDevKit!!

New beta coming out tomorrow morning

You can temp fix it by changing to a directory without any spaces in the path. Sorry!

EDIT: Noticed you fixed it, maybe it wasn';t LDKs fault after all (Though I still suggest to get the new R2 beta)
__________________
Quote:
Originally Posted by Abe
Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
http://forums.qj.net/501501-post26.html
Glynnder is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
lua

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:18 PM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us