roijac wrote:
k, commited, make sure to upgrade to r52! (you can now save/load to/from .m30w files) and test it xD
Cool! But why aren't you just saving using Kurt?
Offline
blob8108 wrote:
roijac wrote:
k, commited, make sure to upgrade to r52! (you can now save/load to/from .m30w files) and test it xD
Cool! But why aren't you just saving using Kurt?
1. it's pretty slow, so it disturbs the work flow when saving every few minutes
2. slinger hasn't yet implemented it
did you ever think of using cython to make kurt faster?
Offline
slinger wrote:
Yeah, sorry about that
I'm really busy right now but once the constant flow of school work dies down expect something from me :p
np
do you want me to take the saving? once we have that we can release an official alpha or something
Offline
blob8108 wrote:
Magnie wrote:
blob8108 wrote:
Ah. You need to at least run setup.pyOh well.
Fine, then. At least install all the dependencies!
I installed PLY like I was supposed to.
Offline
roijac wrote:
well, i'd love too, but that involves deb packaging M30W, which isn't THAT easy.
maybe you could make the scripts?
some links:
http://stackoverflow.com/questions/1382569/how-do-i-do-debian-packaging-of-a-python-package
http://wiki.debian.org/Python/Packaging
http://savetheions.com/2010/01/20/packaging-python-applicationsmodules-for-debian/
Sounds like fun... But I don't have time to try this right now. Maybe I'll try to do it at some point in the future, but I'm going back to school (no internet) in two days . I'll put a text file with relevant information on my USB so I'll remember to try when I have a chance (likely not for a while) .
Offline
roijac wrote:
blob8108 wrote:
roijac wrote:
k, commited, make sure to upgrade to r52! (you can now save/load to/from .m30w files) and test it xD
Cool! But why aren't you just saving using Kurt?
1. it's pretty slow, so it disturbs the work flow when saving every few minutes
I get <10 seconds on my roads thing Is that still too long? Or do you just have lots of images?
And this is after I made saving 150x faster... (The comparison isn't quite fair, because the algorithm I replaced was in exponential time, I think. But you get the idea...)
2. slinger hasn't yet implemented it
Fair enough By the way, why don't you use Kurt objects directly, rather than converting to/from? I was thinking you'd have a kind of Model-View thing, where you'd have Kurt classes as your model; and SpriteView, StageView, etc classes that would each bind to a model object and would manipulate it.
did you ever think of using cython to make kurt faster?
Oh no, not another dependency...
I suppose I could add optional psyco support. But it never really seemed to make things that much faster for me...
Offline
roijac wrote:
slinger wrote:
Yeah, sorry about that
I'm really busy right now but once the constant flow of school work dies down expect something from me :pnp
do you want me to take the saving? once we have that we can release an official alpha or something
Sure, I will try to get active again but I'm having trouble doing many things that I would like to do :C
Offline
Magnie wrote:
blob8108 wrote:
Magnie wrote:
Oh well.Fine, then. At least install all the dependencies!
I installed PLY like I was supposed to.
Are you still seeing "WARNING: parser not available, requires PLY" messages when you import kurt?
Offline
blob8108 wrote:
Magnie wrote:
blob8108 wrote:
Fine, then. At least install all the dependencies!I installed PLY like I was supposed to.
Are you still seeing "WARNING: parser not available, requires PLY" messages when you import kurt?
Yeah. The htmlcolor is the one causing the error (I added a print Exception ).
Offline
Magnie wrote:
blob8108 wrote:
Magnie wrote:
I installed PLY like I was supposed to.Are you still seeing "WARNING: parser not available, requires PLY" messages when you import kurt?
Yeah. The htmlcolor is the one causing the error (I added a print Exception ).
Ah, I think that makes sense. Have you tried copying the htmlcolor folder to the directory containing "M30W.py"?
Offline
blob8108 wrote:
Magnie wrote:
blob8108 wrote:
Are you still seeing "WARNING: parser not available, requires PLY" messages when you import kurt?Yeah. The htmlcolor is the one causing the error (I added a print Exception ).
Ah, I think that makes sense. Have you tried copying the htmlcolor folder to the directory containing "M30W.py"?
Ah.. That would make sense. Didn't know there was one.
Offline
blob8108 wrote:
2. slinger hasn't yet implemented it
Fair enough By the way, why don't you use Kurt objects directly, rather than converting to/from? I was thinking you'd have a kind of Model-View thing, where you'd have Kurt classes as your model; and SpriteView, StageView, etc classes that would each bind to a model object and would manipulate it.
because I want the kurt & construct dependency optional for 1.4 files manipulation
don't take it personally
Offline
roijac wrote:
blob8108 wrote:
2. slinger hasn't yet implemented it
Fair enough By the way, why don't you use Kurt objects directly, rather than converting to/from? I was thinking you'd have a kind of Model-View thing, where you'd have Kurt classes as your model; and SpriteView, StageView, etc classes that would each bind to a model object and would manipulate it.
because I want the kurt & construct dependency optional for 1.4 files manipulation
don't take it personally
Hmm, fair enough, I guess. You could always package kurt with M30W, and only use the Construct-y parts when you need to, or something...
Offline
wx/M30W detest running on OS X.
Offline
I'm afraid I can't give any useful error reports. Everything just seems... crashy.
I might try it another time, and give you more useful feedback
Offline
so, i finished anything about saving except for parsing and saving code, which is obviously the hardest one
@blob, in the kurt manual you say sprite attributes aren't saved, maybe you should add x&y attrs to the kurt.Sprite object and redefine bounds on save, because this method worked for me
Offline
roijac wrote:
so, i finished anything about saving except for parsing and saving code, which is obviously the hardest one
It's not so bad! You can just use the function from Kurt, can't you?
@blob, in the kurt manual you say sprite attributes aren't saved, maybe you should add x&y attrs to the kurt.Sprite object and redefine bounds on save, because this method worked for me
Perhaps — then I'd probably have to store width and height as well, though...
"Kurt manual"? Where do I say that?!
Offline
blob8108 wrote:
Perhaps — then I'd probably have to store width and height as well, though...
I'm using this code to generate bounds:
rx, ry = self.costume.rotationCenter x1, y1 = self.x, self.y x1 -= rx - 240 y1 += ry - 180 y1 *= -1 w, h = self.costume.width, self.costume.height x2, y2 = x1 + w, y1 + h self.bounds = Rectangle([x1, y1, x2, y2])
blob8108 wrote:
"Kurt manual"? Where do I say that?!
https://github.com/blob8108/kurt#notes--restrictions
Last edited by roijac (2012-10-23 09:47:22)
Offline
MathWizz wrote:
code wrote:
Code:
x1 -= rx - 240 y1 += ry - 180WHAT? ARE THOSE KONSTANST? :OOOO
I believe that the x and y position comes from the origin of the rectangle plus the rotation center of the costume.
exactly
only that with the saving, scratch turns the y axis upside down and starts counting from top left stage corner
Offline
roijac wrote:
only that with the saving, scratch turns the y axis upside down and starts counting from top left stage corner
Also, the x position and y position of a sprite are at the center of its "bounds" rectangle.
Offline