ambiera logo

Ambiera Forum

Discussions, Help and Support.

folder icon Ambiera Forum > CopperCube > CopperCube Open discussion
forum topic indicator Visual Scripting for CCB6
person icon
VP
Guest
Quote
2023-08-17 08:32:55

After searching for a ling time, I found that someone has already created a Visual Coding system for CopperCube 6 (and other Game Engines).

It claims to convert visual blocks to javascript for CopperCube which may become a very useful tool for me.

It's $35 - Does this look legit? I'm considering purchasing it.

https://love2d.org/forums/viewto...

Thanks.

person icon
eoh
Registered User
Quote
2023-08-17 12:36:26

hi VP
just learn javascript like your doing and you will be fine

A combination of visual scripting and javascripting is the best in my opinion making games and apps in CCB

just my 3 cents.

I only use javascript if i can do it more easilly with it or can not do it with Visual Scripting

person icon
VP
Guest
Quote
2023-08-17 13:17:37

Thanks EOH.

I agree - but it's not really a case of me "just learning to code" - I have been coding (poorly) since I was around 10 years old (Basic on a ZX Spectrum, Amos on an Amiga, Dark Basic on PC and also studied coding in college and done countless online courses and tutorials and game-mods). I'm now nearly 50 but don't feel any further forward in this particular field- no-where near capable of creating anything of my own that works (not even simple script mods).

The problem is that I was diagnosed with dyscalculia (a specific form of dyslexia) which makes it impossible for me to code efficiently due to the way my mind structures and processes data. My thinking is, however, extremely visual - so it's well suited to Geometry and Engineering, hence I can do fairly complex visual coding and block-concepts very well - because it's more of a tangible (real-world) form, than a theoretical (lexicon/mathematical) form.

I think the CodeWorks project uses Google "blockly" to inject the Coppercube API into the interface - so as long as all the CCB6 API javascript funtions are fully implemented, it should be exactly the same functionality as using Coppercube's visual editor (which I'm using exclusively for everything). It's just that CopperCube's built-in visual editor is clunky. As we've discused previously, it works - but it's not quick (or easy) to use and makes it very difficult to go back and edit your work efficiently.

The main advantages of using Blockly as a Coppercube visual editor would be:

1- You can see the javascript code that the blocks are creating, in real-time.

2- You can view and edit the blocks (or the code) quickly and directly.

3- The API is automatically colour coded to enable quick reference of main functions and distinguish their relationship between other commands in the code (kinda like syntax highlighting in a code editor).

4- You can drag and drop the API directly onto the workspace (instead of copy/pasting text) - then quickly snap code-snippets into one-another.

5- The blocks prevent mismatch errors (you can't clip together unexpected syntax together).

*Obviously there are just as many disadvantages to using visual coding - but seeing as I will never be able to code effectively using plain-text scripts, somthing like this could be the ultimate tool for me in terms of learning and in terms of getting my ideas working.

I had considered converting Coppercube's API to Blockly in the past - but even the task of injecting the existing functions proved to be too problematic for me.

I just wanted to know if the Coppercube API is implemented in Codeworks or not? - that was my question - I simply don't want to waste $35 on a project that doesn't suit my needs. I imagine other people have seen/used it before for Coppercube as it seems like a well-established project.

If not, I think I'll just pay someone on ffiver to implement the Coppercube commands to Blockly for me - then I can share it with the community if it would be helpful for anyone else in a similar situation to me.

person icon
hanicraft
Registered User
Quote
2023-08-17 13:37:11

I also seen that
But if you wait I'm working on one right now. It will be free and open source
Also that disease doesn't stops you from learning coding. I believe Albert Einstein also had same disease

person icon
eoh
Registered User
Quote
2023-08-17 13:45:11

wrote

The problem is that I was diagnosed with dyscalculia (a specific form of dyslexia) which makes it impossible for me to code efficiently due to the way my mind structures and processes data

-------------------
ok i see

wrote
Amos on an Amiga
-----------------------
nice i also tried that did you own a amiga? i owned a amiga 1200 aga was a lovely computer

person icon
just_in_case
Moderator
Quote
2023-08-17 13:50:01

@VP, creating a javascript wrapper will be fine, but you won't be able to assign it as behaviors or actions in CC. Until someone creates this with the C++ source actually or @niko implements it in the engine.

So till then, that visual scripting things won't be of much helpful. They might help you in creating custom action or behavior by wrapping the code in visual blocks.

But you still have to go through all the tedious boxes for the actions and behaviors in the editor itself.

It would not be hard for someone to create a node based overflow who have great skills in C++. Maybe @niko will create it in future, I just hope so.

person icon
VP
Guest
Quote
2023-08-17 14:23:17

Thank you Hanicraft, I'm looking forward to your Project! Yes, Einstein was dyslecic/aspergic but excelled in mathematics. I'm the opposite, quite good with language but not good with numbers. These disabilities affect people specifically/differently. I'll definitely keep trying- thanks for the encouragement.

Thanks Eoh, yes I had an A600 and kept it for decades - loved it. Mainly for gaming but I loved OctaMed and Deluxe Paint - for making music and art. I later purchased an A1200 in 1997 - but I accidentally burned it out (and my fingers) by trying to upgrade the CPU chip. (FYI: Raspian on a Pi3b makes a perfect Amiga 1200 replacement with Workbench OS.)

Thanks for explaining Just_In_Case - great to hear from you again! Ah, I see, I'm probably misunderstanding the while potential of it. Just out of curiosity, let's say I wrote a large chunk of script (using blocky with the injected Coppercube API) and exported the visual-code as a converted "javascript" - and then I just copy/paste it into Coppercube using: "Special>Execute Java Script" - what would happen when I run the CCB project, would the script work as expected - or would it, more than likely, immediately run into problems that I would struggle to fix?

Thanks everyone for the feedback. I am still trying each day to learn to code using Coppercube/Javascript by using examples from the documentation and the forum

person icon
VPq
Guest
Quote
2023-08-17 14:24:22

*Sorry, I meant Amibian/Amiberry, not Raspbian.

person icon
creaturefreak
Registered User
Quote
2023-08-18 09:41:55

VP wrote:


Thanks everyone for the feedback. I am still trying each day to learn to code using Coppercube/Javascript by using examples from the documentation and the forum


Hi VP,

YHea brother, I'm in the exact same boat as you are..with programming it's really difficult for me to remember all the logic and code , even though JS is maybe one of the easiest . I prefer visual scripting. I had an idea of creating the visual code using the Goggle Blocky as you did, but that in itself is difficult to put CC code into it. Some one using Game Guru was able to do this for Game Guru. Where you change things with Blockly then it saves it to the Game Guru .

Yhea if the CC behaviors/action could be put into a "visual nodes" system where you can connect them in a sperate window and see everything at once. The way it is now it's a hassle to keep opening sub-menu and submenue..it gets confusing. I have the utmost respect for guys like Robbo, JustInCase, Sven and others who can code.

CF

person icon
just_in_case
Moderator
Quote
2023-08-20 08:30:41

Well, to use a visual editor for writing large chunks of code, you need a dedicated Javascript Visual editor as well, as CC api alone will not provide your enough funtions and features, but if you are writing your own code in the exceute javascript action, and the code make sense, meaning it has not errors then it will work just fine.

Actually, you don't need actions and behaviors at all if you are good in scripting, you can write the whole game logic and everyhting in just pure javascript. Almost all of the @smnMhmdy games are written in pure javascript, he don't use any action or behavior.

He used a main.js file that contains the code for all the animtors and events. I actually own all of his game codes, so I know a lot of things how he has done things. He is a very talented programmer, Man I miss him. Hope he is alright. He shared so many projects with me, and was planning so many CC projects.

Anyways, the visual scriptiong with blocky or any other thing is good for aiding a bit help in creating actions or behavior, but without a complete powerful JS integration it won't be that useful to use visual scripting.

It will be much easier an better if you learn very basic, very simple javascript, core funtionality like Variables, and operators and most of your game will be dependent on these two only. All the other things like arrays, and everything else you will only need them in advanced games, as you are already good with logic building and even in the inbuilt actions alone, you are only using these two things only .

The if and else operators and variables, you will need to learn these two at first place in scripting, then the other elements you can learn them as you progress through your project and if you think there is a need to learn them or ugent requirement. I beleive @VP you can lean them even with your condition, variables and operators are not that hard. Just don't get yourself involved with other things for now, don't involve yourself with functions, object, arrays, and other stuff.

@CF, I think you are also comfortable with scripting as well, I remember you can debug codes, even if it's written in HLSL, and that too can only be done by people who are comfortable with programming.

person icon
VP
Guest
Quote
2023-08-20 16:41:47

Perfect advice.Thanks JIC. I'll do that.

Thanks CF - sorry for the late reply.

person icon
pmax
Registered User
Quote
2023-08-20 17:33:21

experimentation with Google Blockly is just a test I modified a project found on Github I don't think I will carry it forward the project to those interested I put the link to download it. Don't ask me what are all those files in the project because I don't know either :)

File link: https://www.dropbox.com/scl/fi/h...

person icon
pmax
Registered User
Quote
2023-08-20 17:45:09

I found out now that maybe all those files are not needed, try moving the index.html file and the main.js file to another folder the whole thing seems to work the same to me.

person icon
blackwater
Registered User
Quote
2023-08-24 10:20:49

Oh, how interesting VP!
Would have absolutely loved if something like Blockly would work with Coppercube, so tell me if you (or whomever) ever find something that works!

I am in my mid 40's and also discovered (in my early 20's) that i had dyscalculia and now later in life i have confirmed ADD (if i had only understood that in my teens or even earlier...)
Had a Spectrum as my first computer but started with coding (trying at least) on the Atari with STOS (similar to AMOS). Felt dumb and have still felt dumb during the years trying to learn different kinds of coding, trying both online (what an old expression!) and a class at university. Even HTML was a hassle at times during the years i worked with "the web" some 20 years ago. Kind advice from j_i_c will not work for me for sure, haha. And saying "Just learn, it's easy" is like encouraging people that havent drawn anything more advanced than stick figures, to learn drawing like Rembrandt or similar. My brain-body is fantastic in many ways as i do have the ability to paint like Rembrandt, but coding is something completly different, a total opposite. In javascript i am mostly restricted to copy-paste and to change a number here and there.

My progress in making games or related stuff, is deeply dependent on the visual functions to get things done. Thats the main reason i work with Coppercube as it is still the only engine that i know of, that is also versatile enough to make different kinds of stuff (put some hopes to Game Guru Max, but it's still too limiting unless one mostly makes FPS-things). But the "clunky way" of CC as VP put it, truly prevents making more complex games this way and that's the main reason why i have stalled in my own game making.
A revamp of CC in this regard or a neat whatever plugin-kind-of-thing that makes it much easier, would be a dream come true for me. I am all in for crowdfunding such a initiative or buying a CC 7.0-version with such an interface for quite a lot of cash, if Niko ever would present such an option.
I am otherwise looking into the Adventure Creator plugin for Unity, which has the kind of things i am asking for and would be suitable for most of my creating needs at the moment.

person icon
VP
Guest
Quote
2023-08-24 19:53:06

Sounds like we're in exactly the same boat blackwater

I almost gave up with Coppercube recently and have just purchased BlackIceAlpha FPSC (an older version of GameGuru). I keep coming back to Coppercube - I love COppercube, but it can get highly frustrating at times - and extremely rewarding at other times. I suppose that's the same with all things.

It's definitely possible to inject the Coppercube API instructions into Google blockly so it will work for spitting out actions/behaviours made in blockly's visual drag-drop environment with automatic syntax highlighting for debugging. They can then be used as actions/behaviours in coppercube. It would also give us a great starting-point for learning how the API works in javascript.

I'm thinking of throwing some money towards FFiver to see if someone there can do it - although I've been let down a few times by cheaper sellers (and in some cases,their work hasn't been any better than I can do for myself). If you know of anyone reputable, capable and dedicated enough to do it, I'd be happy to fund it with you - as you say, it would be a dream to unlock more potential - even if it just speedsup the process by making it a little easier.

I've already contacted the guy who made Codeworks (Blockly for GameGuru) - heinitially said he would includeCOpperCube 6 API - but he's now indicated that he's not going to continue working with his CodeWorks project any more beyond GameGuru.


Create reply:










 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


icon_holyicon_cryicon_devilicon_lookicon_grinicon_kissicon_monkeyicon_hmpf
icon_sadicon_happyicon_smileicon_uhicon_blink   






Copyright© Ambiera e.U. all rights reserved.
Contact | Imprint | Products | Privacy Policy | Terms and Conditions |