This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#176 2012-11-30 21:00:43

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: M30W New Official Topic

Magnie wrote:

Try 'python M30w' without the quotes.

Thx!


http://i.imgur.com/YBeXc.png

Offline

 

#177 2012-12-01 16:48:18

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

pwiter wrote:

I need some help with setup. There is no M30W.py, only a M30W file in scripts. I also tried:

Code:

python setup.py install

.

yeah, i should probably change it to M30W.pyw or something. or keep both

so do you want to join? it'd be great if you could debug the weird windows bug i described before

Offline

 

#178 2012-12-01 17:44:34

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: M30W New Official Topic

roijac wrote:

pwiter wrote:

I need some help with setup. There is no M30W.py, only a M30W file in scripts. I also tried:

Code:

python setup.py install

.

yeah, i should probably change it to M30W.pyw or something. or keep both

so do you want to join? it'd be great if you could debug the weird windows bug i described before

Sure, I'll join.


http://i.imgur.com/YBeXc.png

Offline

 

#179 2012-12-01 20:10:48

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: M30W New Official Topic

I think as a start for the project viewer, we should first create the [run] and [stop] buttons. Then I think we should work on displaying the sprites and displaying them at the x and y values. Then sprite direction/rotation, etc. Once we have the basic display up (so I can manually change x, y, direction, and visibility), then we can work on block functions (maybe create a folder called "blocks" and then have a separate file for each block/command). Then once the functions and stuff are done, we will have to decide how to deal with script execution. Which will be the hard part with threads and all.

I would personally go with greenlets/gevent, but that just adds *another* dependency to the four (or so) we already have.

Code:

gevent.spawn(start_script, sprite, [start, end])

This would basically spawn another script to be run in [sprite]'s scripts, lines [start number] through [end number]. Like so:

Sprite's Scripts:

Code:

when gf clicked
forever
    point towards [mouse-pointer]
    move (5) steps
end

Python:

Code:

gevent.spawn(start_script, sprite, [1,4])

def start_script(sprite, lines):
    for line_number in xrange(lines[0], lines[1]):
        parse(sprite.scripts[line_number])

Obviously going to be different, but something like that.

Make sense?  smile

Also: Please add lots of comments so I can learn and understand what's going on.  big_smile

Offline

 

#180 2012-12-01 20:16:32

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: M30W New Official Topic

Magnie wrote:

Also: Please add lots of comments so I can learn and understand what's going on.  big_smile

Yeah, that would be helpful.

Also, my sourgeforge username is lolzballs.


http://i.imgur.com/YBeXc.png

Offline

 

#181 2012-12-02 05:43:16

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

Magnie wrote:

I think as a start for the project viewer, we should first create the [run] and [stop] buttons. Then I think we should work on displaying the sprites and displaying them at the x and y values. Then sprite direction/rotation, etc. Once we have the basic display up (so I can manually change x, y, direction, and visibility), then we can work on block functions (maybe create a folder called "blocks" and then have a separate file for each block/command). Then once the functions and stuff are done, we will have to decide how to deal with script execution. Which will be the hard part with threads and all.

I would personally go with greenlets/gevent, but that just adds *another* dependency to the four (or so) we already have.

Code:

gevent.spawn(start_script, sprite, [start, end])

This would basically spawn another script to be run in [sprite]'s scripts, lines [start number] through [end number]. Like so:

Sprite's Scripts:

Code:

when gf clicked
forever
    point towards [mouse-pointer]
    move (5) steps
end

Python:

Code:

gevent.spawn(start_script, sprite, [1,4])

def start_script(sprite, lines):
    for line_number in xrange(lines[0], lines[1]):
        parse(sprite.scripts[line_number])

Obviously going to be different, but something like that.

Make sense?  smile

Also: Please add lots of comments so I can learn and understand what's going on.  big_smile

i know pretty much how scripts execution is gonna be, i'll implement it using generators. i think i'll have some decorators like @block(redraw_sprite=False, refresh_stage=False) so you can indicate when the stage should be refreshed after a block (e.g. say, ask, move...) and when the sprite needs to be redrawn, for example effects/size change/direction (i'll probably cache the sprites)

@pwitter, i added you  smile
i also merged all tickets from the dropbox file, it's easier when i dont need to send every1 invitations

Last edited by roijac (2012-12-02 06:28:18)

Offline

 

#182 2012-12-02 06:18:17

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: M30W New Official Topic

Magnie wrote:

Code:

def start_script(sprite, lines):
    for line_number in xrange(lines[0], lines[1]):
        parse(sprite.scripts[line_number])

The way the parser works, you really don't want to parse a single line at a time. It'd be much easier to parse it all at once, and then iterate over the Script/Block objects.

M30W source wrote:

# I don't trust kurt :)

*pretends not to be offended*

Last edited by blob8108 (2012-12-02 06:18:29)


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#183 2012-12-02 06:29:18

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

blob8108 wrote:

M30W source wrote:

# I don't trust kurt  smile

*pretends not to be offended*

who knows what the evil kurt can do with naive helpless mutable lists  yikes

Offline

 

#184 2012-12-02 06:53:35

blob8108
Scratcher
Registered: 2007-06-25
Posts: 1000+

Re: M30W New Official Topic

roijac wrote:

blob8108 wrote:

M30W source wrote:

# I don't trust kurt  smile

*pretends not to be offended*

who knows what the evil kurt can do with naive helpless mutable lists  yikes

"evil"...? O_o


Things I've made: kurt | scratchblocks2 | this cake

Offline

 

#185 2012-12-02 19:14:45

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: M30W New Official Topic

Wow...
I log on to my email, and I have like 20 unread emails waiting. And they are all from sourceforge.


http://i.imgur.com/YBeXc.png

Offline

 

#186 2012-12-03 06:37:09

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

pwiter wrote:

Wow...
I log on to my email, and I have like 20 unread emails waiting. And they are all from sourceforge.

spam filters? XD
i filled all the new bugs, that may be it  wink

Offline

 

#187 2012-12-09 15:20:17

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

yeah!
windows installers  big_smile
at this point, only M30W, so it will require you to download the dependencies yourself, but i will make a zip folder with all installers and a .bat script tomorrow or so  smile

Offline

 

#188 2012-12-09 17:13:32

fetchydog567
Scratcher
Registered: 2011-12-28
Posts: 500+

Re: M30W New Official Topic

Bringing
Up
Your
Post
buyp


http://www.minecraftanonymous.com/assets/banners/banner_51.pngJust a reminder I won't be on Scratch that much but I 'll still be here, so if i'm on something, I will be commenting back, okay! wink , PICO Team!!!!!!!!!!! SCRATCH DEADW!!! PICO HACK ACCOUTNTT@@

Offline

 

#189 2012-12-10 19:57:35

djdolphin
Scratcher
Registered: 2010-03-23
Posts: 100+

Re: M30W New Official Topic

When I tried the Windows Installer it said that there was no python installation in the registry, but I have Python installed.

Last edited by djdolphin (2012-12-11 07:21:09)

Offline

 

#190 2012-12-11 08:55:27

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

I think that's a problem with x64/x32 registry, does this workaround help? (replace 2.6 with 2.7)

Offline

 

#191 2012-12-11 17:26:03

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

Could any co-developer on sf upload those two files to the "M30W and Dependenecies" folder? My ISP is blocking large file uploading  hmm
one two

Last edited by roijac (2012-12-11 17:26:13)

Offline

 

#192 2012-12-11 18:00:43

pwiter
Scratcher
Registered: 2010-06-02
Posts: 100+

Re: M30W New Official Topic

roijac wrote:

Could any co-developer on sf upload those two files to the "M30W and Dependenecies" folder? My ISP is blocking large file uploading  hmm
one two

Sure  smile


http://i.imgur.com/YBeXc.png

Offline

 

#193 2012-12-13 15:05:02

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

Alpha 0.1 is now officially released for PyPI (pip), windows installers will come tomorrow  smile

The linux pip install now even creates a .desktop file with icons for you!  big_smile

Offline

 

#194 2012-12-17 09:26:26

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

guys, uploading files again for me?

https://dl.dropbox.com/u/38975042/scratch%20things/M30W_x64_0.1.0_dependencies.zip
https://dl.dropbox.com/u/38975042/scratch%20things/M30W_x32_0.1.0_dependencies.zip
https://dl.dropbox.com/u/38975042/scratch%20things/M30W-0.1.0.win-amd64.exe

Offline

 

#195 2012-12-20 05:03:36

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

bump

can anybody upload the 0.1 files?

Offline

 

#196 2013-03-31 09:42:19

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

So, alpha 0.2 has just came out!
Featuring:
-Edit costumes side-by-side in your favorite image editor (gimp, paint, photoshop...)
-Edit and execute scripts while syncing your projects alongside Scratch and M30W using two clicks!
-Sprites rendered correctly on the stage (sizing and effects still missing)
-Bug-fixes  smile

Offline

 

#197 2013-04-03 17:40:06

MrFlash67
Scratcher
Registered: 2012-08-08
Posts: 500+

Re: M30W New Official Topic

Suggestion: Have the M30W project viewer and the M30W project editor separate, have M30W contain both, and have the M30w project viewer available separately for those who want to have it separate. This may not work, and I am OK if it does not get accepted.  smile  I may join the team soon, as I am learning Python.


Who would win, SOPA or PIPA?

Offline

 

#198 2013-04-04 04:38:57

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: M30W New Official Topic

MrFlash67 wrote:

Suggestion: Have the M30W project viewer and the M30W project editor separate, have M30W contain both, and have the M30w project viewer available separately for those who want to have it separate. This may not work, and I am OK if it does not get accepted.  smile  I may join the team soon, as I am learning Python.

I've thought of this before, the stage is really taking too much spcae  smile
I thought to just add an option to hide it, I'll have a look at it in the next days.

Offline

 

#199 2013-04-04 05:12:25

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: M30W New Official Topic

roijac wrote:

MrFlash67 wrote:

Suggestion: Have the M30W project viewer and the M30W project editor separate, have M30W contain both, and have the M30w project viewer available separately for those who want to have it separate. This may not work, and I am OK if it does not get accepted.  smile  I may join the team soon, as I am learning Python.

I've thought of this before, the stage is really taking too much spcae  smile
I thought to just add an option to hide it, I'll have a look at it in the next days.

It'd be a good idea to hide it - but they shouldn't be separate applications, just different windows.

Offline

 

#200 2013-04-13 15:49:19

davidkt
Scratcher
Registered: 2011-11-09
Posts: 100+

Re: M30W New Official Topic

can I join? see my sig  smile


I'm Upsilon920 for everything else.
http://www.blocks.scratchr.org/API.php?action=text&string=I_am_currently_&bgr=123&bgg=132http://blocks.scratchr.org/API.php?user=davidkt&action=onlineStatus&type=squarehttp://blocks.scratchr.org/API.php?user=davidkt&action=onlineStatus&type=text

Offline

 

Board footer