creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
can someone help me in caos   
ketafatboy3000

ketafatboy3000



  9/25/2010

can someone help me with this piece of CAOS it just disapers when i click on it

inst
new: simp 2 21 9000 "remotebomb" 18 0 500
attr 199
bhvr 33
elas 10
accg 4
perm 100
frat 3
anim [0 1 2 255]
seta va00 targ
enum 1 2 11
spas targ va00
doif ov00 = 0 and clac = 0
mesg writ targ 0
endi
next

inst
scrp 2 21 9000 0
bhvr 1
anim [3 4 5 6 7 8 9 10 11 12 13 14 15 16 17]
endm

rscr
enum 2 21 9000
kill targ
next


if anyone knows what is wrong please tell me.

 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  9/25/2010

I assume you're referring to this error:

Runtime error in agent 2 21 9000 script 2 21 9000 1 unique id 9497
Anim change failed - on part 0 which has base 0
[frat 2 {@}anim [3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ...




The problem is that your animation string tells it to go all the way to frame 18. But you only have 18 frames, and just like in SpriteBuilder, the game always counts the first frame as 0, the second as 1, and so on.

Essentially, you are telling it to use 19 frames, but it only has 18 to work with. Remove the offending 18 at the end and it will work perfectly.



 
ketafatboy3000

ketafatboy3000



  9/25/2010

thanks ghosthande i will try that.


nope the main problem is whenever i try to activete script
"2 21 9000 0" my agent just disapers

also it says this script "2 21 9000 0" caused a error or exception. start transaction failed.

YES i finally fixed it all i had to do was change perm 100 to perm 10

 
Papriko
Peppery One

Papriko



  9/25/2010

Perm actually hasn't to do with invalid scripts. And script number 0 is DEactivate. Push script (that the hand also activates) has number 1.

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
ketafatboy3000

ketafatboy3000



  9/25/2010

all right but it just keeps disapering whenever i click on it.
here is the new code

inst
new: simp 2 21 9000 "remotebomb" 18 0 5000
attr 199
bhvr 33
clac 0
elas 10
fric 100
accg 4
anim [0 1 2 255]
perm 100
frat 3
seta va00 targ
enum 1 2 11
spas targ va00
doif ov00 = 0 and clac = 0
mesg writ targ 0
endi
next

scrp 2 21 9000 1
stim writ from 97 1
frat 4
anim [3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
wait 130
kill targ
endm

rscr
enum 2 21 9000
kill targ
next

 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  9/25/2010

That's because it's being autokilled. Hit Ctrl-Shift-W in-game to bring up the Wolfing control, then Ctrl-Shift-A to turn autokill off. Then next time that happens it will give you an actual error instead of just vanishing.


 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  9/26/2010

you may need to set ov00's value before the this part:

doif ov00 = 0 and clac = 0
mesg writ targ 0
endi


My TCR Norns
 
Papriko
Peppery One

Papriko



  9/26/2010

scrp 2 21 9000 1
stim writ from 97 1
frat 4
anim [3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
wait 130
kill targ
endm
This looks not fine. I'd suggest to replace the WAIT command with an OVER and instead of TARG you should KILL OWNR. Then it looks like this:
scrp 2 21 9000 1
stim writ from 97 1
frat 4
anim [3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18]
over
kill ownr
endm
OWNR is the script owner and you might guessed and OVER waits till the previously played animation ends before the following commands are executed. This probably won't fix the actual error, but you still should use this.

@ Malkin: actually OV00 does not need to be set in this piece of code. It is the Move-To-Inventory code that AS used for Charles. I also used it a few times. Actually it looks as when it got used right.
Whatever, lets wait what the error looks like.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
ketafatboy3000

ketafatboy3000



  9/26/2010

it all works fine untill i click on it i have change to what Papriko put but it still disapers i will try to turn autokill off.

i did turn autokill off and this is what it said "Runtime error in agent 2 21 9000 script 2 21 9000 1 unique id 8520
Anim change failed - on part 0 which has base 0
... stim writ from 97 1 {@}anim [3 4 5 6 7 8 9 10 11 12 1 ..."

I just did that but it still disapers when it click on it so it is probably not the problem

well it was a while but i finally fixed it.

 
Ghosthande
Prodigal Sock

Ghosthande


 visit Ghosthande's website: Breeders Beware
  9/26/2010

Judging by your last post you still didn't take the number 18 out of the animation. That is the line it is throwing a fit over so I'd be surprised if that isn't the problem.


 
Liam

Liam


 visit Liam's website: Spellhold Studios
  9/26/2010

Keep in mind that when putting in the number of frames in an animation, you have to count the "0" animation. So if a sprite file has 0-18, there are actually 19 frames, not 18.

- Liam / K'aeloree

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

 


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
1 online
Urskecs
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