forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Issues with Blitting

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
Kameku



Joined: 23 Mar 2006
Posts: 32
Location: Oregon, USA

PostPosted: Mon Mar 27, 2006 11:24 am    Post subject: Issues with Blitting Reply with quote

Okay, so, in my code, I have a segment that looks like this:
Code:
drop = Image.load("gui/dropper.png")
crange = Image.load("gui/colors.png")

And then later, I have a part that looks like this:
Code:
screen:blit(353,240,drop)
screen:blit(383,240,crange)


BUT, when I run the prog on Windows LuaPlayer, it flashes, and creates a file named "luaplayer.exe.stackdump", which contains
Code:
Stack trace:
Frame     Function  Args
0022EEA8  007F48D6  (00000000, 00000000, 0040C9BE, 0022EF1A)
0022EEE8  0040CB66  (00000002, 10030EF8, 10030090, 610A5E22)
0022EFD8  61004DD2  (0022EFF0, 000F000E, 00110010, 00130012)
0022FF88  6100594F  (00000000, 00000000, 00000000, 00000000)
End of stack trace


But, when put into comments, all my other images blit fine. Why?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
glynnder



Joined: 04 Sep 2005
Posts: 35

PostPosted: Mon Apr 03, 2006 10:26 pm    Post subject: Reply with quote

ok i cant tell you completely how to fix it unless u show me your whole script. but the way to stop the screen flashing like that is to add a screen.waitvblankstart(number goes here) somewhere

That should solve ur problem
Back to top
View user's profile Send private message
JorDy



Joined: 11 Dec 2005
Posts: 121

PostPosted: Tue Apr 04, 2006 1:12 am    Post subject: Reply with quote

Lua IS case sensitive so its

screen:waitVblankStart([number])
Back to top
View user's profile Send private message
Kameku



Joined: 23 Mar 2006
Posts: 32
Location: Oregon, USA

PostPosted: Tue Apr 04, 2006 4:20 pm    Post subject: Reply with quote

Oh, sorry, I figured out the problem ages ago. >_> I had made the image, and for some reason, my computer saved it as "crange.png.bmp"

Thanks for the input, though. :]
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group