|
Development Forum |
 |
| 
Astalron

|
8/8/2014 | |
Hello! I was wondering where I might learn CHAOS?
I've searched online, but either I'm really bad at Googling (which is possible), or there aren't many sites that show you how to do it.
I've never really coded before, so I haven't the first clue as to where to begin.
Any help is greatly appreciated!
Thanks!
|
 Peppery One
Papriko
    
|
8/8/2014 | |
Well, the way I learned it was by tearing apart cosfiles. Those are basically raw CAOS codes. Also, you might wanna look up commands you don't know.
Start out by manipulating existing scripts, see what happens.
First tweak a few values.
Then, add or remove a few lines.
When that goes right, try messing with whole chunks of code.
Ultimately, you might want to attempt writing your very own scripts.
Additional comments: the language is called CAOS without the H Creatures Agent/Object Script. And by the CAOS doc, you presumably only need the "categorical" one. The alphabetic one is kind of useless once you find out that you can use Ctrl + F to search things.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |

the1whoscreams
  
|
8/8/2014 | |
I tried that once,and docking station crapped its pants every time I made a new world.Should have made some backups.I had to reinstall just because of a simple position change code that I deleted for a sprite overhaul. |

Astalron

|
8/8/2014 | |
Okay, so I'll mess with files carefully, and make backups, and try not to kill everything, hehe knowing me, this is going to be an interesting experience!
Thanks for the help guys, I am on my way to trying to code in CAOS  |
 Peppery One
Papriko
    
|
8/8/2014 | |
You don't wanna know how many things I broke and in how many ways... XD
But savannahs11 made a good point, make sure to have backups.
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |

Malkin
     Manager

|
8/8/2014 | |
What kind of CAOS are you interested in? If you want to make simple objects for your game, like a food, a toy, or a vendor, you might like to try checking out this list of agent-making tutorials, or having a general browse in the development resources section. You might also like to try some cheats in the CAOS Command Line.
A lot about coding is just getting into the mindset - you have to use the CAOS language to tell your object how to behave, and use logic to do that and to solve its problems.
My TCR Norns |

Astalron

|
8/8/2014 | |
I think I'll toy around with learning the language a little better, and then try to make some agents ![[nlaugh] [nlaugh]](/images/smilies/emot_laugh.gif) |

Siinamon
 
|
8/8/2014 | |
Whee, I think I need to go through those tutorials again... I am failing magnificently lately. |

Astalron

|
8/8/2014 | |
Okay, so I'll mess with files carefully, and make backups, and try not to kill everything, hehe knowing me, this is going to be an interesting experience!
Thanks for the help guys, I am on my way to trying to code in CAOS  |
 Peppery One
Papriko
    
|
8/9/2014 | |
The most important command you will need for working with cosfiles is JECT.
* add a cosfile or reload if already added
ject "somescriptfile.cos" 7
* get rid of it (i.e. run the stuff that comes after the "RSCR" line in the file)
ject "somescriptfile.cos" 1 |
There are other JECT values than 1 and 7 as well, but you do not really need them. Lines marked with a * at the beginning are comments.
Make sure you type the file name perfectly right, even with captialization and stuff and also add the .cos file ending. When you make a typo of any sorts and the engine does not recognize the file you mean, the CAOS console will just say "OK" and do nothing at all, leaving you with no information on why your script ain't working 
Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis... |
|