My code doesn't update anymore in lowser ..

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
haringz
Posts: 5
Joined: Mon Oct 24, 2005 5:51 am

My code doesn't update anymore in lowser ..

Post by haringz »

So I got my hands dirty with classes...

Now I got some strange problem :

I created a few classes

like this :

Code: Select all

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: Select all

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 ?
haringz
Posts: 5
Joined: Mon Oct 24, 2005 5:51 am

Post by haringz »

just a thought ...

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

Code: Select all

require"objects"
referring to my objects.lua file

If I am not mistaken changes in the included file don't update.
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

haringz wrote:just a thought ...

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

Code: Select all

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)
haringz
Posts: 5
Joined: Mon Oct 24, 2005 5:51 am

Post by haringz »

thanks! seems to work good now.
Zenurb
Posts: 106
Joined: Fri Sep 30, 2005 8:33 am
Location: United Kingdom
Contact:

Post by Zenurb »

Whoa... I actually made a productive comment? Fuck, my brain is going to explode.
Proud Dvorak User
US 1.5 PSP (Original)
Post Reply