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

#251 2012-10-06 16:11:08

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

roijac wrote:

TRocket wrote:

roijac wrote:

nice progress guys!
i get sometimes seg faults, but most projects are working  smile
keep going!

if this helps, here is an error message i get on some files:

Code:

itchy: /build/buildd/cairo-1.12.2/src/cairo-pattern.c:187: _cairo_pattern_set_error: Assertion `status < CAIRO_STATUS_LAST_STATUS' failed.
Aborted (core dumped)

What os are you using?

i'm using windows with slashes  tongue



jk, linux

macs use slashes too... :p
have you tried with the latest commit? I've moved all the GUI(cairo) stuff around...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#252 2012-10-06 16:17:07

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Itchy++ - a Scratch C++ Port

amcerbu wrote:

We might be able to do it with an array of function pointers, each member representing one block (just putting out an idea -- I don't like the idea of a huge switch statement).  I was thinking that each bytecode value could represent an index in that array of function pointers, and we could call the appropriate function by feeding it the current byte value.

Any thoughts?

Offline

 

#253 2012-10-07 04:04:59

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

Re: Itchy++ - a Scratch C++ Port

still

Code:

Itchy++ v0.0(dev)
Scratch Project
Info Size: 7612
Is Object
Object Size: 68
Is Object
Object Size: 2158
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 0
Unknown field ID: 6
Unknown field ID: 0
Read time: 17ms
itchy: /build/buildd/cairo-1.12.2/src/cairo-pattern.c:187: _cairo_pattern_set_error: Assertion `status < CAIRO_STATUS_LAST_STATUS' failed.
Aborted (core dumped)

(just realized full output may help..)

Offline

 

#254 2012-10-07 04:42:43

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

What scratch project are you using?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#255 2012-10-07 05:01:02

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

Re: Itchy++ - a Scratch C++ Port

something i never finished...
tried to implement encryption but floating points were too annoying  hmm
https://dl.dropbox.com/u/38975042/scratch%20things/encryption.sb

Offline

 

#256 2012-10-07 10:51:06

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

@roijac - Interesting. I'll look into it in a bit.


http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#257 2012-10-07 11:25:23

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

Oh. *facepalm* I spent 20 minutes trying to figure out why something was reading too many bytes. It turns out that id 6 hasn't been implemented yet.

Code:

...
case 5: // SmallInteger16
    length = 2;
    data = new char[length];
    this->stream->readBlockR(data, length);
    break;
// long int stuff to come          <----- See the problem? xD
case 8: // Float
    length = 8;
    data = new char[length];
    this->stream->readBlockR(data, length);
    break;
...

http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#258 2012-10-07 16:11:56

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

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

Oh. *facepalm* I spent 20 minutes trying to figure out why something was reading too many bytes. It turns out that id 6 hasn't been implemented yet.

Code:

...
case 5: // SmallInteger16
    length = 2;
    data = new char[length];
    this->stream->readBlockR(data, length);
    break;
// long int stuff to come          <----- See the problem? xD
case 8: // Float
    length = 8;
    data = new char[length];
    this->stream->readBlockR(data, length);
    break;
...

Id 6 is LargePositiveInteger, should I implement it and LargeNegativeInteger

Last edited by pwiter (2012-10-07 16:36:10)


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

Offline

 

#259 2012-10-08 15:33:42

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

amcerbu wrote:

amcerbu wrote:

We might be able to do it with an array of function pointers, each member representing one block (just putting out an idea -- I don't like the idea of a huge switch statement).  I was thinking that each bytecode value could represent an index in that array of function pointers, and we could call the appropriate function by feeding it the current byte value.

Any thoughts?

sounds good...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#260 2012-10-08 16:39:08

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

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

pwiter wrote:

TRocket wrote:

hmm, for me it doesn't seem to render the sprites at all?

You need a project with more than 1 sprite, it prints all but one.

I'd like to see this actually happen...

Opps, it got fixed, sorry about that.


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

Offline

 

#261 2012-10-11 02:17:18

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

What zip library should I use for reading scratch 2 files?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#262 2012-10-11 16:01:36

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

gzip, maybe?


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#263 2012-10-11 16:08:50

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

bobbybee wrote:

gzip, maybe?

probably.
Would you like to be a github project admin? I don't have much experience with github...

Last edited by TRocket (2012-10-11 16:09:04)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#264 2012-10-11 16:09:57

bobbybee
Scratcher
Registered: 2009-10-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

Sure. Wanna join the Play Puppy team? (look at my sig)


I support the Free Software Foundation. Protect our digital rights!

Offline

 

#265 2012-10-11 16:14:48

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

bobbybee wrote:

Sure. Wanna join the Play Puppy team? (look at my sig)

added, sure i'll post on that thread...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#266 2012-10-12 17:14:05

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

has anyone managed to compile for windows yet?
I'm currently trying to on windows 2000...


http://i.imgur.com/1QqnHxQ.png

Offline

 

#267 2012-10-12 17:25:17

MathWizz
Scratcher
Registered: 2009-08-31
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

has anyone managed to compile for windows yet?
I'm currently trying to on windows 2000...

Code:

2000
.
..
....
........
................
................................
................................................................
................................................................................................................................
................................................................................................................................................................................................................................................................

http://block.site90.net/scratch.mit/text.php?size=30&amp;text=%20A%20signature!&amp;color=333333

Offline

 

#268 2012-10-12 17:54:59

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

MathWizz wrote:

TRocket wrote:

has anyone managed to compile for windows yet?
I'm currently trying to on windows 2000...

Code:

2000
.
..
....
........
................
................................
................................................................
................................................................................................................................
................................................................................................................................................................................................................................................................

NT 5.0 FTW  tongue
Just realised win2000 is actually older than me  smile


http://i.imgur.com/1QqnHxQ.png

Offline

 

#269 2012-10-12 17:59:30

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

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

MathWizz wrote:

TRocket wrote:

has anyone managed to compile for windows yet?
I'm currently trying to on windows 2000...

Code:

2000
.
..
....
........
................
................................
................................................................
................................................................................................................................
................................................................................................................................................................................................................................................................

NT 5.0 FTW  tongue
Just realised win2000 is actually older than me  smile

Lol, that means your under 12(I'm 12).

Where did you get the cairo stuff for windows?

Last edited by pwiter (2012-10-12 18:00:15)


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

Offline

 

#270 2012-10-12 18:03:23

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

pwiter wrote:

TRocket wrote:

MathWizz wrote:


Code:

2000
.
..
....
........
................
................................
................................................................
................................................................................................................................
................................................................................................................................................................................................................................................................

NT 5.0 FTW  tongue
Just realised win2000 is actually older than me  smile

Lol, that means your under 12(I'm 12).

Where did you get the cairo stuff for windows?

Yep, I'm 12
I got the stuff from here


http://i.imgur.com/1QqnHxQ.png

Offline

 

#271 2012-10-12 18:06:29

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

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

pwiter wrote:

TRocket wrote:


NT 5.0 FTW  tongue
Just realised win2000 is actually older than me  smile

Lol, that means your under 12(I'm 12).

Where did you get the cairo stuff for windows?

Yep, I'm 12
I got the stuff from here

Thx.


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

Offline

 

#272 2012-10-13 05:25:58

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

I've managed to build for windows!
Screenshot:
http://i.imgur.com/K8rL8.png

As you can see from the picture I was using a windows 2000 VM I will upload the files soon!

EDIT: download here

Last edited by TRocket (2012-10-13 06:37:22)


http://i.imgur.com/1QqnHxQ.png

Offline

 

#273 2012-10-13 07:50:28

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

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

I've managed to build for windows!
Screenshot:
http://i.imgur.com/K8rL8.png

As you can see from the picture I was using a windows 2000 VM I will upload the files soon!

EDIT: download here

Hmm, you seen to be missing some dlls.


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

Offline

 

#274 2012-10-13 08:00:24

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: Itchy++ - a Scratch C++ Port

pwiter wrote:

TRocket wrote:

I've managed to build for windows!
Screenshot:
http://i.imgur.com/K8rL8.png

As you can see from the picture I was using a windows 2000 VM I will upload the files soon!

EDIT: download here

Hmm, you seen to be missing some dlls.

which ones?


http://i.imgur.com/1QqnHxQ.png

Offline

 

#275 2012-10-13 10:23:20

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

Re: Itchy++ - a Scratch C++ Port

TRocket wrote:

pwiter wrote:

TRocket wrote:

I've managed to build for windows!
Screenshot:
http://i.imgur.com/K8rL8.png

As you can see from the picture I was using a windows 2000 VM I will upload the files soon!

EDIT: download here

Hmm, you seen to be missing some dlls.

which ones?

libfontconfig-1.dll, xmlparse.dll, and xmltok.dll.
Not sure if my system is missing them or what because I can't find them in the cairo and SDL files.

Last edited by pwiter (2012-10-13 10:29:00)


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

Offline

 

Board footer