creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
ENDM?   
Geek2Nurse

Geek2Nurse
United States  

 visit Geek2Nurse's website: Adventures in Nornia
  4/22/2012

What does ENDM do? It's not listed in my CAOS documentation. It looks like it should be marking the end of something, but I can't tell what it's ending, in the code I'm looking at.

(Oops...I bet this should have gone in Development instead of Help...sorry!)


---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 
RisenAngel
Sanely Insane

RisenAngel

Manager


 visit RisenAngel's website: The Realm
  4/22/2012

"endm" is the "end of script" command. It's usually used to mark the end of event scripts (in fact, it's mandatory to put it there).

It can sometimes be found at the end of installation scripts and very rarely at the end of remove scripts.


~ The Realm ~
Risen Angel's Creatures Blog


 
Geek2Nurse

Geek2Nurse


 visit Geek2Nurse's website: Adventures in Nornia
  4/22/2012

Aha. So it's ending the ISCR, which I assume is the beginning of the installation script; also not in my docs.

It disturbs my OCD programmer self that the CAOS documentation file my engine generated is missing some rather important commands! :(


---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 
Papriko
Peppery One

Papriko



  4/22/2012

There are people who use ISCR? Usually the install script is simply the first piece of code at the beginning of the cosfile.

Much more important is that you end SCRPs with ENDM.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Moe

Moe


 visit Moe's website: Creatures 2 to Docking Station
  4/22/2012

ISCR was legacy coding from C2. To my knowledge it isn't stored in the scriptorium anyplace and serves no real purpose in C3/DS.

But as other have said, yes, ENDM signifies the end of a script.

 
Geek2Nurse

Geek2Nurse


 visit Geek2Nurse's website: Adventures in Nornia
  4/23/2012

I randomly selected the C3 hummingbird.cos file to explore...there aren't any comments, so I'm learning about CAOS by commenting the file as I try to figure out what's happening. It's where I ran across ISCR and ENDM.

Is there a more complete reference somewhere for CAOS commands? I'm still bothered by the fact that mine doesn't contain ENDM, since it seems like a pretty important command.


---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 
Horstj

Horstj



  4/23/2012

ENDM and SCRP are described in the Creatures Wiki, as well as in the CAOS chaos tutorial by Aquashee (it also features one of the greatest pices of code ever).
 
Liam

Liam


 visit Liam's website: Spellhold Studios
  4/23/2012

All you need is the CAOS Categorical Guide, the commented version of the C3 Bootstrap, and a bunch of time.

ENDM is one of those commands that's so ubiquitous in programming they probably forgot to put it in. It is important, but it doesn't DO anything apart from end a script.


- Liam / K'aeloree

Spellhold Studios, a Baldur's Gate II, Neverwinter Nights and Oblivion Modding Community

 
Geek2Nurse

Geek2Nurse


 visit Geek2Nurse's website: Adventures in Nornia
  4/23/2012

Oh, boy, Liam, now you've gone and done it. I'm going to be glued to my computer all day! The categorical listing is awesome, having related commands together is SO helpful. Thanks!

Horstj, yeah, I found Aquashee's tutorial, it's helping me understand a lot of things!


---
Optimist: the glass is half full.
Pessimist: the glass is half empty.
Engineer: the glass is twice as big as it needs to be.

 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki