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; I also have a question about 3D how do you know like how to meet up the the vertices to ...
-
04-06-2007, 04:23 PM #6571QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
I also have a question about 3D
how do you know like how to meet up the the vertices to make the triangles
-
04-06-2007, 04:25 PM #6572QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Depends on the drawing/rendering mode.
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-06-2007, 04:32 PM #6573QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
what do you mean by a drawing/rendering mode
-
04-06-2007, 04:37 PM #6574QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
From the GU header
http://www.opengl.org/documentation/....1/node17.htmlCode:#define GU_POINTS (0) #define GU_LINES (1) #define GU_LINE_STRIP (2) #define GU_TRIANGLES (3) #define GU_TRIANGLE_STRIP (4) #define GU_TRIANGLE_FAN (5)
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-06-2007, 04:41 PM #6575
Ah, thanks, that pic helps.
In the sample codes I've seen, some people set the fov to 50, and others have used 75. Is one of them more accurate, or is it just a personal prefrence of the programmers?
-
04-06-2007, 04:49 PM #6576QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
ok now this has been bugging me
wtf is this stackdump error, i keep getting it when i try to run my game
-
04-06-2007, 04:50 PM #6577QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Depends on the environment it is being used, I can't remember what we use for our game, I think 75 for Widescreen or wide aspects..
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-06-2007, 05:02 PM #6578
if so, then 75 would be better for the psp wouldn't it? Well whatever, I think I got it now, thanks.
-
04-06-2007, 05:06 PM #6579QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Some people like to use 45 for 1/8th of a circle, some 50 because its half of 100, it depends on the person
-
04-06-2007, 05:07 PM #6580QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
here's the exact error
Code:4 [sig] luaplayer 1720 open_stackdumpfile: Dumping stacks trace to luaplayer.exe.stackdump
-
04-06-2007, 05:10 PM #6581
well can someone simplify the code to only play sprites and blit them?
-
04-06-2007, 06:21 PM #6582
all this gu and 3d talk may actually get me to look into it now :)
-
04-06-2007, 06:23 PM #6583Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
it depends on the game. on a racing game, 75 would be good. but on other games, 75 is overkill.
Zitat von Merick
--------------------------------------------------------------------------------------
-
04-06-2007, 06:36 PM #6584QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
do .gif's work in luaplayer?
-
04-06-2007, 06:58 PM #6585QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
Dont think so I think it only supports .png or .jpg and maybe bmp w/ the lrx
-
04-06-2007, 07:06 PM #6586Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
no, not as of now.
Zitat von Urameshi
--------------------------------------------------------------------------------------
-
04-06-2007, 07:10 PM #6587
or bmplib I made.
Zitat von xpack
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
04-06-2007, 08:14 PM #6588QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
no wonder the game im tryin to use keeps crashing, cause of the .gif
-
04-06-2007, 08:28 PM #6589
lol, im trying to get animlib to work, i have not changed anything in animlib or added anything and i have this on my lua file to test it out
like i said i have not added anything to the animlib code or changed anything, but when i start up my lua file with the code above, an error message posp up saying:Code:dofile("animLib.lua") --animations walkright = SS.new("jackrunright", "png", 64, 48, "images/jack/") while true do walkright:blit(0,0,100) screen.waitVblankStart() screen.flip() end
error: animLib.lua:27: '<eof>' expected near 'end'
-
04-06-2007, 08:29 PM #6590QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
Well what line is 27
-
04-06-2007, 08:29 PM #6591QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
i think it means delete the end near line 27
-
04-06-2007, 08:29 PM #6592
ya, in the line 27 it says end and before that on line 26, it's just a blank line
-= Double Post =-
think i should delete the blank lineGeändert von moncristo_da_dev (04-06-2007 um 08:30 PM Uhr) Grund: Automerged Doublepost
-
04-06-2007, 08:30 PM #6593QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
Well then you probably have an extra 'end' in your file
-
04-06-2007, 08:31 PM #6594
but before the blank line, there is no other end
-= Double Post =-
lines 25, 26, 27:
25:return c
26:
27:endGeändert von moncristo_da_dev (04-06-2007 um 08:32 PM Uhr) Grund: Automerged Doublepost
-
04-06-2007, 08:32 PM #6595QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
Well that may be it there, that end must be there and it's not suppose to ... print all your code and point out line 27
-
04-06-2007, 08:34 PM #6596
ok, i solved that problem, now it says eof expected near function on line 33
-
04-06-2007, 08:35 PM #6597QJ Gamer Gold
- Registriert seit
- Aug 2006
- Ort
- Under Your Bed
- Beiträge
- 3.083
- Points
- 12.189
- Level
- 72
- Downloads
- 0
- Uploads
- 0
Whats the function???
-
04-06-2007, 08:35 PM #6598QJ Gamer Gold
- Registriert seit
- Aug 2006
- Beiträge
- 1.633
- Points
- 11.629
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Urameshi, why'd you ask here when I told you 20 minutes earlier in a PM that gif's are not compatible with luaplayer?
-
04-06-2007, 08:36 PM #6599
man, did this ever happen to you guys when you started using animlib?
-= Double Post =-
starting with line 25:
25:-- BLIT ANIMATION --
function ANIM:blit(x, y, delay)
self.interval = delay
self.timer:start()
if self.timer:time() >= self.interval then
33: self.currentFrame = self.currentFrame + 1
self.timer:reset()
endGeändert von moncristo_da_dev (04-06-2007 um 08:37 PM Uhr) Grund: Automerged Doublepost
-
04-06-2007, 08:38 PM #6600QJ Gamer Gold
- Registriert seit
- Nov 2006
- Ort
- ...
- Beiträge
- 2.080
- Points
- 11.942
- Level
- 71
- Downloads
- 0
- Uploads
- 0
no you didnt, you told me that either the code was wrong, or it was because luaplayer windows sucked
Zitat von TacticalPinguin


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