PSP3D Left Header
PSP3D Header Right
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

Development Center - Learn the basics of coding or talk about advanced coding techniques with other developers.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > Development Center

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-30-2006, 02:53 PM
chrispy chrispy is offline
Senior Member
My Mood:
 
Join Date: Jan 2006
Posts: 351
Points: 41.22
Donate
Exclamation Lua question: am I being REALLY dumb?

Right, feel free to flame, Im at the end of my tether.
Whilst working on wormz (in bed, on my psp (if you dont know, wormz is DOS worms for PSP), I wrote the most simple while statement in existance, which comes into play in all lua programs, at least all of my lua programs anyway:
(text blanked out)

Code:
while true do pad = controls.read() screen:blit(0, 0, ui) screen:print(173 ,78, "XXXXXXXX", red) screen:print(145 ,100, "XXXXXXXX", yellow) screen:print(166, 192, "XXXXXXXX", yellow) screen.flip() if pad:start() then break end end
So please, dear god, why doesnt this work???

I tried running it direct from lowser, which was its usual helpful self (no script found)

I ran it in ttlde, and I got Function arguments expected, I think.

Please help me, Im still hungover

Last edited by chrispy : 03-30-2006 at 03:13 PM.
Reply With Quote
  #2 (permalink)  
Old 03-30-2006, 03:09 PM
2.6,CRACKED!'s Avatar
2.6,CRACKED! 2.6,CRACKED! is offline
Senior Member
My Mood:
 
Join Date: Feb 2006
Posts: 328
Points: 12.78
Donate
u need 2 include what the colour is e.g

red=Color.new(255,0,0)
__________________
---!CONGRATS TO FANJITA+DITLEW+CARTER 4 MAKING EBOOT HOMEBREW POSSIBLE!---



Reply With Quote
  #3 (permalink)  
Old 03-30-2006, 03:12 PM
chrispy chrispy is offline
Senior Member
My Mood:
 
Join Date: Jan 2006
Posts: 351
Points: 41.22
Donate
Thats outside the loop.
Thanks though.

No, the problem is with the while loop I think
Reply With Quote
  #4 (permalink)  
Old 03-30-2006, 03:14 PM
2.6,CRACKED!'s Avatar
2.6,CRACKED! 2.6,CRACKED! is offline
Senior Member
My Mood:
 
Join Date: Feb 2006
Posts: 328
Points: 12.78
Donate
can u show da whole code?
__________________
---!CONGRATS TO FANJITA+DITLEW+CARTER 4 MAKING EBOOT HOMEBREW POSSIBLE!---



Reply With Quote
  #5 (permalink)  
Old 03-30-2006, 03:19 PM
chrispy chrispy is offline
Senior Member
My Mood:
 
Join Date: Jan 2006
Posts: 351
Points: 41.22
Donate
Id Rather not, its kinda a work in progress and I dont want to reveal any of the code of the project that cant be learnt in 5 minutes.

Seirously, its a problem with that loop Methinks.

edit: Theres a thing about the screen:clear. I deleted that, and it sorta works now...?

Well it worked, but why did screen:clear mess it up?

Last edited by chrispy : 03-31-2006 at 10:36 AM.
Reply With Quote
Reply

« Recruiting: Worms for PSP!!! | Intelligent Remote for PSP (IRP) »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about memory sticks Xandrix General PSP Discussion 8 05-13-2006 07:07 AM
A Question about the PSP Menu Cannabis General PSP Discussion 2 02-23-2006 05:04 PM
x5 - question (maybe a dumb one) ForkenHell General PSP Discussion 0 12-29-2005 08:23 AM
Question slagger Homebrew/Hacking 4 12-17-2005 01:53 PM
Question about Eboot godpunk Homebrew/Hacking 4 12-02-2005 02:36 PM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com

PSP3D Footer Left Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 10:05 PM.
PSP3D Footer Right