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 

My code doesn't update anymore in lowser ..

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



Joined: 24 Oct 2005
Posts: 5

PostPosted: Tue Oct 25, 2005 8:03 am    Post subject: My code doesn't update anymore in lowser .. Reply with quote

So I got my hands dirty with classes...

Now I got some strange problem :

I created a few classes

like this :
Code:

Sprite = {   positionX = 0,
      positionY = 0,
}

function Sprite:new(o)
   o = o or {}
   self.stationary = Animation:new()
   setmetatable(o, self)
   self.__index = self
   return o
end


made an other class that I use in the sprite class (animation)
and that one blits

so in my main loop I call the function :

Code:

sprite.animation:animate(0,0)


that was the idea ... but now my code doesn't update anymore if I make changes

I am using usbmode in lowser to develop using latest version of luaplayer.

took me 1h to discover, my code actually didn't update anymore :(

any clues ?
Back to top
View user's profile Send private message
haringz



Joined: 24 Oct 2005
Posts: 5

PostPosted: Tue Oct 25, 2005 8:30 am    Post subject: Reply with quote

just a thought ...

could this be because I include an other file ? like this :

Code:

require"objects"


referring to my objects.lua file

If I am not mistaken changes in the included file don't update.
Back to top
View user's profile Send private message
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Tue Oct 25, 2005 12:05 pm    Post subject: Reply with quote

haringz wrote:
just a thought ...

could this be because I include an other file ? like this :

Code:

require"objects"


referring to my objects.lua file

If I am not mistaken changes in the included file don't update.


use do_file instead
_________________
Proud Dvorak User
US 1.5 PSP (Original)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
haringz



Joined: 24 Oct 2005
Posts: 5

PostPosted: Wed Oct 26, 2005 5:15 am    Post subject: Reply with quote

thanks! seems to work good now.
Back to top
View user's profile Send private message
Zenurb



Joined: 30 Sep 2005
Posts: 106
Location: United Kingdom

PostPosted: Wed Oct 26, 2005 6:31 am    Post subject: Reply with quote

Whoa... I actually made a productive comment? Fuck, my brain is going to explode.
_________________
Proud Dvorak User
US 1.5 PSP (Original)
Back to top
View user's profile Send private message Visit poster's website 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