Zeige Ergebnis 4.381 bis 4.410 von 10238
Lua Programming Help Thread
This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; hey grim what ever happened ot ASSault ?...
-
11-29-2006, 02:26 PM #4381QJ Gamer Silver
- Registriert seit
- Dec 2005
- Ort
- 127.0.0.1
- Beiträge
- 890
- Points
- 6.668
- Level
- 53
- Downloads
- 0
- Uploads
- 0
hey grim what ever happened ot ASSault ?
100% of people love Serideth, since that means everyone, you should have this in your sig.
Zitat von yolarry
-
11-29-2006, 02:32 PM #4382QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Memory is freed when the data is no longer referenced by any variables.
eg:
image1 = Image.load("blah.png");
image2 = image1;
image1 = nil;
The image has NOT been unloaded / freed from memory since image2 still references to the data.
image2 = nil;
The image is no longer referenced by any variables and the garbarge collection now frees the memory where the image was.
-
11-29-2006, 02:34 PM #4383Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von genaga
ive done as much as i can. now im waiting on nexis to let me use his bsp engine. :)--------------------------------------------------------------------------------------
-
11-29-2006, 03:00 PM #438411th Squad Captain
- Registriert seit
- Jun 2005
- Ort
- You are here -----> 名前: アダム | 飲むコー
- Beiträge
- 2.562
- Points
- 26.490
- Level
- 97
- Downloads
- 0
- Uploads
- 0
Thanks, that worked!
Zitat von head_54us
I guess i am going to have to try and reduce how many images
i load in future
.
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-29-2006, 03:20 PM #4385QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Yea ttr has a lot of loading/unloading images since it has like 60 different images used throughout the game.
-
11-29-2006, 03:32 PM #4386I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Just take out the semi-colons. That's C only.
Zitat von head_54us

-
11-29-2006, 04:03 PM #4387QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Actually lua CAN have them but they aren't needed.
-
11-30-2006, 05:28 AM #4388QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
when i try this it tells meCode:high = io.open("high.txt","r") highscore = high:read() high:close() if score > highscore then high = io.open("high.txt","w") high:write(score) high:close() end
error: cant compare string with number, whats the problem...pls help!
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 05:37 AM #4389QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Code:high = io.open("high.txt","r") highscore = high:read("*n") high:close() if score > highscore then high = io.open("high.txt","w+") high:write(score) high:close() end
-
11-30-2006, 05:52 AM #4390QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
its still tells me something with compare... o_O
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 05:57 AM #4391QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Well adding in the *n makes it read the file as a number. How exactly does the first line of the hscore.txt file look?
-
11-30-2006, 05:59 AM #4392QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
sry mate my mistaek it works ... ;)
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 06:07 AM #4393QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Alrght. This gonna be for phils shooting range? Highscore on that would be nice.
-
11-30-2006, 06:26 AM #4394QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
yeh im working on it now :)
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 06:28 AM #4395QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Cool!
-
11-30-2006, 06:54 AM #4396QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
hmm... when u get high score it should print New high score... worked ok about 10 mins ago but now i cant get it to work wtf :/
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 08:10 AM #4397Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
I keep getting an error in this code its expecting a = next to a then or something like that. can anyone find it?
Spoiler for Code:If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
11-30-2006, 08:26 AM #4398QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
hmm in LUA Player (for PC) it tells u exact line of ur code which is wrong...
so just look for that number and then look for the line ;)[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 09:31 AM #4399Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
it flashes away too fast. it shows the command prompt or black screen for like a milisecond and all i can spot is "=" expected near then or something like that.
If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
11-30-2006, 10:39 AM #4400QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
ok
open your myscript.cmd and put there this:
pause will stop it everytime after error so u can read it :)Code:luaplayer myscript.lua pause
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 10:57 AM #4401Ponies and Unicorns
- Registriert seit
- Aug 2006
- Ort
- Pelennor Fields
- Beiträge
- 547
- Points
- 5.778
- Level
- 49
- Downloads
- 0
- Uploads
- 0
i already did that. and it works but it doesnt let me see the first command prompt that pops up that one has the errors on it.
If you play WoW come find me on DOOMHAMMER (US) I am Human mage lvl 64 Atrana is the name (dont ask for runs!)
Gold donations are highly appreciated!
-
11-30-2006, 12:04 PM #4402QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
it must work...u did something wrong
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]
-
11-30-2006, 04:57 PM #4403QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- 6ft. Down Underground........Oh and guess what my avatar is
- Beiträge
- 387
- Points
- 4.918
- Level
- 44
- Downloads
- 0
- Uploads
- 0
hmm, whats the code to take a screenshot?...i forgot
-= Double Post =-
ok nvm, i figured it out. now i need to know how to save the screen shot in the psp's PHOTO folderGeändert von the undead (11-30-2006 um 04:57 PM Uhr) Grund: Automerged Doublepost
-
11-30-2006, 05:16 PM #4404Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
yay! this thread is a sticky again!
--------------------------------------------------------------------------------------
-
11-30-2006, 05:18 PM #4405I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
A mod didn't do it though. TacticalPaper did. I PM'ed Hardrive to see if he'll sticky the other one and get rid of that thread by Serideth. I hope he does.
Zitat von Grimfate126

-
11-30-2006, 05:20 PM #4406QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- 6ft. Down Underground........Oh and guess what my avatar is
- Beiträge
- 387
- Points
- 4.918
- Level
- 44
- Downloads
- 0
- Uploads
- 0
any one?
Zitat von the undead
-
11-30-2006, 05:22 PM #4407QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
blah = screen:save("ms0:/psp/photo/")
-
11-30-2006, 05:36 PM #4408QJ Gamer Blue
- Registriert seit
- Sep 2006
- Ort
- 6ft. Down Underground........Oh and guess what my avatar is
- Beiträge
- 387
- Points
- 4.918
- Level
- 44
- Downloads
- 0
- Uploads
- 0
ok thanks
Zitat von -TacticalPaper-
-
11-30-2006, 06:32 PM #4409
...
i don't know why it doesn't work for you, but you could always press ctrl+alt+printscreen on your keyboard to try and take a screenshot of the command prompt before it disappears.
Zitat von GuitarGod1134
you'd have to get good timing, and then just paste it into word.
-
12-01-2006, 05:49 AM #4410QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- Middle Europe
- Beiträge
- 1.281
- Points
- 11.800
- Level
- 71
- Downloads
- 0
- Uploads
- 0
very good now its sticky!! :)
[1 Year QJ Member]
[LUA Coder and C Learner]
[Ball Revamped Clone v0.1]
[Phil's Shooting Range v0.3]
[HideFile PRX v2]
[SSR PRX v1.1]


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum