![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Lua Error - pretty simple, really within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Code: start menu = Image.load("images/start menu.png") -->the start menu, only comes during gameplay Error: '=' expected near 'menu' that code ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
Code:
start menu = Image.load("images/start menu.png") -->the start menu, only comes during gameplay
that code looks perfect to me. (everybody thinks its perfect until an error is pointed out) did i use a word that luaplayer automatically recognizes as a command of some sort? (you know, like 'if' and 'then' and 'else')
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] Last edited by EminentJonFrost; 04-08-2006 at 12:36 PM.. Reason: misleading title - it WAS simple, not anymore |
|
|
|
|
|
#2 |
![]() ![]() Tha Sigerator
|
umm hmm.....can u use 2 words (start menu)...try without a space (startmenu)
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -
|
|
|
|
|
|
#4 |
|
11th Squad Captain
|
start menu = Image.load("images/start menu.png")
has tobe startmenu = Image.load("images/start menu.png")
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
#8 |
![]() ![]() ...in a dream...
|
Or as all great coders do, to signify a space when coding, use the handy dandy underscore _!_!_!_!
start_menu = Image.load("image/start menu.png")
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#10 | |
|
11th Squad Captain
|
Quote:
Code:
if StartMenuSelection == 1 then screen:print(5,5,"That will work.") end
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
|
#11 | |
![]() ![]() Tha Sigerator
|
Quote:
Code:
if StartMenuSelection == 1 then
__________________
- - - - Somewhere Lurking in THA SHADOWS - - - -
|
|
|
|
|
|
|
#12 | |
![]() ![]() Save The World
|
Quote:
__________________
![]() |
|
|
|
|
|
|
#13 |
![]() |
whoooo!
ok i see the problem. man! i amaze myself at how little attention i pay to the important details... oh, thanks (again) xodiac21 and c5cha7! edit - you too Vaza! thanks!
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
#14 | |
|
11th Squad Captain
|
Quote:
to your attention
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
|
#15 | |
![]() |
Quote:
appreciate that! (an offer you may regret offering when i get to more complicated matters...lol)
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
|
#16 | |
|
11th Squad Captain
|
Quote:
As of know i love coffee so i will be active for a extra 24 hours lol... Anyways good luck with whatever your doing! i hope you develop something neat soon .(its nice to see people using lua)
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
|
#17 |
![]() ![]() total-Z
|
Let me guess... another shell?
I mean... start_menu... what else?
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#18 |
![]() |
a menu that starts the game? :icon_razz
__________________
[IMG]http://img121.imageshack.us/img121/3852/untitled1copy7rf.png[/IMG] [IMG]http://img99.imageshack.us/img99/9711/newavatarjb9.gif[/IMG] [URL=http://forums.qj.net/showthread.php?t=9733][COLOR=DarkRed]Operation Positive Posting[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=49762][COLOR=Red]Guide to All Guides[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=13798][COLOR=Blue]Posting Guidelines[/COLOR][/URL] [URL=http://forums.qj.net/showthread.php?t=4394][COLOR=Green]Piracy Policy[/COLOR][/URL] [SIZE="3"][URL=http://forums.qj.net/f-general-psp-help-22/t-guide-opening-psp-disassembly-assembly-video-104303.html][COLOR=Red][B][U]PSP Disassembly Assembly Video Tutorial[/U][/B][/COLOR][/URL][/SIZE] |
|
|
|
|
|
#19 | |
|
11th Squad Captain
|
Quote:
I guess i am very stupid at guessing stuff, and usually when i do guess i get it wrong anyways... Off-Topic: What are you working on youresam? anything cool or new?
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
|
#20 |
![]() ![]() total-Z
|
Oh, a main game menu..ok.
Right now im working on Wario Ware PSP! I got the menu finished, advcontlib finished, and the GU perfected! (Yeah..I learned 3D programming JUST for this!)
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#21 | |
![]() ![]() Save The World
|
Quote:
__________________
![]() |
|
|
|
|
|
|
#22 | |
|
11th Squad Captain
|
Quote:
:icon_razz Oh and thanks for letting me steal your MSN smileys lol I will use them wisley!
__________________
FAVORITE GAME! - BEER & ANIME! - SO EXICTING! ![]() 開発者, 携帯用プログラマー 日本サポータおよび恋人 本名のアダムの鍛冶屋 Currently Working On: - Flashmod V2.50 - Flashmod V2.60 Currently Drinking: Coffee! - 私はコーヒーを飲む Chao Garden: DEMO v0.6 Chao Garden V0.5b Review! |
|
|
|
|
|
|
#23 | |
![]() ![]() Save The World
|
Quote:
__________________
![]() |
|
|
|
|
|
|
#24 |
![]() |
sorry to burst your bubbles people...but i'm not making a shell.
c5cha7, your guess was right. (youre not as bad as you think!) its a start menu for game. (pause game, menu comes out with options...get the idea? lol)
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
#25 |
![]() |
new problem now..and its not so simple.
(its not the coding) when i press start, the screen clears entirely and shows just the menu. now, this menu has (just) two options. one is to continue, another is supposed to show an error message i made saying that the function isnt implemented yet. (for convienience, and to serve as an explanation so that i dont have to explain myself later) what i am testing here is: the error message. i can at least get to it (sorta, i'll explain), but its not clean looking at all. the start menu doesnt cleanly show up, its missing half the photo and the words dont appear at all (but it still follows through with their functions when i call them). when i do the function that doesnt work yet, the error message is supposed to show up. this is where things just get uglier. the half-shown-but-isnt-supposed-to-be-there-now start menu is still there, and my error pic is blitting like crazy at the bottom of the screen. *takes a deep breath* now what do i do? (c5cha7, i wont hold you to your offer, yet. you can still get out before its too late! lol) EDIT - I'll post the code if i have to, but i warn you. its pretty big.
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] Last edited by EminentJonFrost; 04-07-2006 at 04:17 PM.. |
|
|
|
|
|
#26 |
![]() ![]() total-Z
|
I need your code. Just paste it all... I can sort through it
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth |
|
|
|
|
|
#27 | |
![]() |
ooo kkk...
Quote:
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
|
|
#29 |
![]() ![]() total-Z
|
You forgot to redefine "pad" in the function "notice()", and you left out screen.flip() in function "pressStart()"
Your welcome. EDIT: Actually, shouldnt you NOT have a while loop in "notice()"?
__________________
牧来栠摩琠敨映汩獥PSN: youresam From Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth Last edited by youresam; 04-07-2006 at 05:34 PM.. |
|
|
|
|
|
#30 | |
![]() |
Quote:
ok, doing what you said helped somewhat. now at least the screen clears what wasnt needed anymore (which was the game). but it still buggy on showing the start menu and the notice. the text doesnt even show (during the start menu). hmm...i may have to get rid of the start menu and make another. does it matter if when making the pic, i used less opacity on a color? (i'm gonna try blitting the start menu without removing the game from the picture to see what happens.) the notice pic shows up several times along the side of the screen except its starts very small on top and gets bigger on the way down. but the message i put (the text) comes up fine.
__________________
[CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER] |
|
|
|
|
![]() |
| Tags |
| error , lua , pretty , simple |
| Thread Tools | |
|
|