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

#51 2012-09-11 22:17:13

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

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

Thanks, Math.  Do you know C++?

Offline

 

#52 2012-09-11 22:35:01

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

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

I've written a Scratch file reader in it. It's not used for anything so there could be many many many bugs. :3


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

Offline

 

#53 2012-09-12 07:45:59

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

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

i'd use wxwidgets, but thats up to you  smile

Offline

 

#54 2012-09-12 13:45:53

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

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

i think we'll go with SDL, but have some nice abstraction so we could use a different library


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

Offline

 

#55 2012-09-12 14:19:42

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

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

Yeah, sounds good.  Let's go ahead and write a bunch of graphics classes for accessing the SDL stuff.

Offline

 

#56 2012-09-12 14:37:03

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

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

amcerbu wrote:

Yeah, sounds good.  Let's go ahead and write a bunch of graphics classes for accessing the SDL stuff.

yep. i'll try and set up a issue tracking site to assign tasks to people


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

Offline

 

#57 2012-09-12 14:57:13

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

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

TRocket wrote:

yep. i'll try and set up a issue tracking site to assign tasks to people

But GitHub has a built-in issue tracker...?


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

Offline

 

#58 2012-09-12 15:03:05

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

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

blob8108 wrote:

TRocket wrote:

yep. i'll try and set up a issue tracking site to assign tasks to people

But GitHub has a built-in issue tracker...?

oh yeah, i never noticed that  tongue


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

Offline

 

#59 2012-09-12 17:11:55

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

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

Haven't used SDL before, does it work multiplatform on visual studio(cause visual studio only has windows console application)?
Or do I have to get Eclipse C++ or something?


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

Offline

 

#60 2012-09-12 20:59:35

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

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

Yeah, I've used SDL in Visual Studio before (I've got VS 2010).

Offline

 

#61 2012-09-13 16:08:53

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

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

bump


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

Offline

 

#62 2012-09-13 17:52:50

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

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

I've got SDL setup.  big_smile  My github username is "MathWizz"


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

Offline

 

#63 2012-09-13 17:58:01

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

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

Let's get started with storing the data in a Scratch file.  First, we'll need to read from the .sb filetype.  Then, we need to store it, probably in a new filetype (how about .spp?).  Anyway, we could do with some help from blob8108 with converting to/from the .sb file.  Are we planning to allow this to be embedded in a browser? 

Anyway, we need to decide exactly what features this player should have before we begin developing.  Let's plan out the program in pseudo-code.  This is what I've had in mind so far:

Store data pertaining to scripts in files (we'll need to work on fstreams).  Display data to screen as scripts. 

Allow editing of scripts, which will also edit the corresponding file. 

Parse script data and execute corresponding function calls (this can be acchieved using function pointers).

Offline

 

#64 2012-09-13 17:59:42

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

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

@amcerbu, get on Chat.js.  wink


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

Offline

 

#65 2012-09-13 20:25:52

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

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

amcerbu wrote:

Let's get started with storing the data in a Scratch file.  First, we'll need to read from the .sb filetype.  Then, we need to store it, probably in a new filetype (how about .spp?).  Anyway, we could do with some help from blob8108 with converting to/from the .sb file.  Are we planning to allow this to be embedded in a browser? 

Anyway, we need to decide exactly what features this player should have before we begin developing.  Let's plan out the program in pseudo-code.  This is what I've had in mind so far:

Store data pertaining to scripts in files (we'll need to work on fstreams).  Display data to screen as scripts. 

Allow editing of scripts, which will also edit the corresponding file. 

Parse script data and execute corresponding function calls (this can be acchieved using function pointers).

Ok, I think the filetype should be .ipp(ItchyPlusPlus).
Also, I set up a SDL Window with nothing in it, just a black screen, we can work the gui off that. Pushed it to GitHub  smile


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

Offline

 

#66 2012-09-13 20:51:18

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

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

pwiter wrote:

amcerbu wrote:

Let's get started with storing the data in a Scratch file.  First, we'll need to read from the .sb filetype.  Then, we need to store it, probably in a new filetype (how about .spp?).  Anyway, we could do with some help from blob8108 with converting to/from the .sb file.  Are we planning to allow this to be embedded in a browser? 

Anyway, we need to decide exactly what features this player should have before we begin developing.  Let's plan out the program in pseudo-code.  This is what I've had in mind so far:

Store data pertaining to scripts in files (we'll need to work on fstreams).  Display data to screen as scripts. 

Allow editing of scripts, which will also edit the corresponding file. 

Parse script data and execute corresponding function calls (this can be acchieved using function pointers).

Ok, I think the filetype should be .ipp(ItchyPlusPlus).
Also, I set up a SDL Window with nothing in it, just a black screen, we can work the gui off that. Pushed it to GitHub  smile

Why a file for each method? 0.o

I don't think IPP should have its own file type but just use the .sb type. Why create a second?


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

Offline

 

#67 2012-09-13 21:27:37

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

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

MathWizz wrote:

pwiter wrote:

amcerbu wrote:

Let's get started with storing the data in a Scratch file.  First, we'll need to read from the .sb filetype.  Then, we need to store it, probably in a new filetype (how about .spp?).  Anyway, we could do with some help from blob8108 with converting to/from the .sb file.  Are we planning to allow this to be embedded in a browser? 

Anyway, we need to decide exactly what features this player should have before we begin developing.  Let's plan out the program in pseudo-code.  This is what I've had in mind so far:

Store data pertaining to scripts in files (we'll need to work on fstreams).  Display data to screen as scripts. 

Allow editing of scripts, which will also edit the corresponding file. 

Parse script data and execute corresponding function calls (this can be acchieved using function pointers).

Ok, I think the filetype should be .ipp(ItchyPlusPlus).
Also, I set up a SDL Window with nothing in it, just a black screen, we can work the gui off that. Pushed it to GitHub  smile

Why a file for each method? 0.o

I don't think IPP should have its own file type but just use the .sb type. Why create a second?

Lol, looks more complicated with more methods.
But yeah, you can change it if you want  smile .

Well, about the file type thing, we could have different file types, 1 is .ipp(In case we add blocks), and 1 is .sb. So, basically you can export to scratch file.


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

Offline

 

#68 2012-09-14 02:47:46

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

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

I don't see why you need two file formats either.  hmm  How does it help you? It's just twice the effort. Scratch files are perfectly adequate for storing Scratch projects; they're designed to.

amcerbu wrote:

Anyway, we could do with some help from blob8108 with converting to/from the .sb file.

Happy to help  smile  But I thought you were going to work on the Scratch 2.0 (.sb2) file format? It's much, much easier to parse; and I thought the idea was to provide a way of running Scratch 2.0 without Flash.

You could always use Kurt to write a converter to .sb2 files, and integrate with that.

Last edited by blob8108 (2012-09-14 07:43:36)


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

Offline

 

#69 2012-09-14 06:47:40

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

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

blob8108 wrote:

I don't see why you need two file formats either.  hmm  How does it help you? It's just twice the effort. Scratch files are perfectly adequate for storing Scratch projects; they're designed to.

amcerbu wrote:

Anyway, we could do with some help from blob8108 with converting to/from the .sb file.

Happy to help  smile  But I thought you were going to work on the Scratch 2.0 (.sb2) file format? It's much, much easier to parse; and I thought the idea was to provide a way of running Scratch 2.0 without Flash.

You could always use Kurt to write a converter to .sb2 files, and integrate with that.  smile

Well Scratch 2.0 is not out yet...


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

Offline

 

#70 2012-09-14 07:43:24

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

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

pwiter wrote:

blob8108 wrote:

I don't see why you need two file formats either.  hmm  How does it help you? It's just twice the effort. Scratch files are perfectly adequate for storing Scratch projects; they're designed to.

amcerbu wrote:

Anyway, we could do with some help from blob8108 with converting to/from the .sb file.

Happy to help  smile  But I thought you were going to work on the Scratch 2.0 (.sb2) file format? It's much, much easier to parse; and I thought the idea was to provide a way of running Scratch 2.0 without Flash.

You could always use Kurt to write a converter to .sb2 files, and integrate with that.  smile

Well Scratch 2.0 is not out yet...

<psst> You can still access the alpha...  smile  </psst>


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

Offline

 

#71 2012-09-14 08:25:14

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

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

a suggestion - come over to M30W, i already have a working GUI and i'm working on kurt support, so the only thing to be left is programm the execution, which i pretty much know how i'm going to implement. its python, which is extremely easy to learn and fast to develop, plus me and blob could help much more.

cons:
another language
only text based

pros:
already working UI
kurt
faster developing, especially for cross-platform

what do you say?

(#speed, i know C++ is faster, but it's still not a major issue: i plan to implement a ightweight execution and i'm using c++ libraries, so you get native speed in UI)

Offline

 

#72 2012-09-14 16:24:04

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

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

For some reason git won't work  hmm
Error:
https://github.com/ItchyPlusPlus/ItchyPlusPlus.git: error occurred during unpacking on the remote end: index-pack abnormal exit

Any ideas?


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

Offline

 

#73 2012-09-14 16:34:30

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

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

pwiter wrote:

For some reason git won't work  hmm
Error:
https://github.com/ItchyPlusPlus/ItchyPlusPlus.git: error occurred during unpacking on the remote end: index-pack abnormal exit

Any ideas?

Not sure, don't have much experience using GitHub, maybe it's because I've changed the name too many times?


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

Offline

 

#74 2012-09-14 16:48:07

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

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

TRocket wrote:

pwiter wrote:

For some reason git won't work  hmm
Error:
https://github.com/ItchyPlusPlus/ItchyPlusPlus.git: error occurred during unpacking on the remote end: index-pack abnormal exit

Any ideas?

Not sure, don't have much experience using GitHub, maybe it's because I've changed the name too many times?

Worked yesterday. I shut off my computer for the night, and now it won't work


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

Offline

 

#75 2012-09-14 16:52:18

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

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

Python would be a lot easier, but C++ is faster; and if the idea is to implement Scratch/2.0 to work on Flash-less devices like the RasPi, then C++ is certainly more optimised.

roijac wrote:

only text based

You could always add graphical blocks/UI later  smile


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

Offline

 

Board footer