creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
EasyPRAY Issues   
the1whoscreams

the1whoscreams
United States  


  7/27/2014

So,I've been making the elixir from creatchi as an agent for C3DS,and I put all the files in a folder,but there's some complications.Here's the coding for it.

inst
new: simp 2 25 14893 "elixir" 1 0 500
attr 195
bhvr 48
elas 10
accg 2
perm 100
seta va00 targ
enum 1 2 11
spas targ va00
doif ov00 = 0 and clac = 0
mesg writ targ 0
endi
next

scrp 2 25 14893 12
snde "drnk"
chem 92 100
chem 93 100
chem 94 100
chem 95 100
chem 96 100
chem 97 100
chem 98 100
chem 99 100
chem 102 100
chem 103 100
chem 104 100
chem 105 100
chem 106 100
chem 107 100
chem 108 100
chem 109 100
kill ownr

Now,here's the PRAY template.

"en-GB"
group AGNT "Elixir"
"Agent Type" 0
"Dependency Count" 2
"Dependency" "elixir"
"Dependency Category" Images
"Dependency" "drnk"
"Dependency Category" Sounds
"Script Count" 1
"Script" @ "Elixir"
"Agent Animation File" "elixir"
"Agent Animation Gallery" "elixir"
"Agent Animation String" 0
"Agent Bioenergy Value" 200
inline FILE "elixir" "Images"
inline FILE "drnk" "Sounds"

The thing is,when I try to compile it with EasyPRAY,it claims that the COS file isn't in there,when it should be very clear that it's there.Is there anything I can do to get it to detect the file?I'm going to stop talking now,because I'm getting more enraged by this the more I think about it.

 
Papriko
Peppery One

Papriko



  7/27/2014

kill ownr
endm
All SCRPs need to be ENDM'd, even when you kill OWNR. That is the first thing I could come up with.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/27/2014

Have you checked out my annotated PRAY template tutorial, or the Beginner's Guide to easyPRAY?

Have you made the sprite file for the elixir? Is it a c16 or a s16?


My TCR Norns
 
the1whoscreams

the1whoscreams



  7/27/2014

I've tested the agent itself,and it works perfectly.I'm going to try that,Papriko.

EDIT:The endm is there,I just accidentally left it out of the code posted here.

 
kezune
Air Guitarist

kezune


 visit kezune's website: Designer Genes
  7/27/2014

Oh, I could be mistaken but the last number after chem only needs to be 1 since the game bases chemical amounts on a decimal system.

Updated Rehosting Policy[/title]
 
the1whoscreams

the1whoscreams



  7/27/2014

Time to try that.*pokes around in the code some more*

EDIT:After adding some .c16 and .wav extensions into the PRAY template,it finally compiled the agent succesfully after five million years of messing with it.

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/27/2014

Do you want it to be a C3-only agent, or a C3 and DS agent? At present, it's solely a C3 agent.

For the "Agent Animation File", make sure you add in the file extension at this point - like

"Agent Animation File" "elixir.c16"

Make sure you add in a remove script line, like the following:

"Remove script" "enum 2 25 14893 kill targ next scrx 2 25 14893 12"

When you're telling the game where to find the cos file, you need to say that it's 'script 1' and you need to add in the file extension, like:

"Script Count" 1
"Script 1" @ "Elixir.cos"

for the dependencies, I think you may need to use numbers rather than words, like the following: (you can find a list in my annotated PRAY template tutorial)

"Dependency Count" 2
"Dependency 1" "elixir.c16"
"Dependency Category 1" 2
"Dependency 2" "drnk.wav"
"Dependency Category 2" 1

for the attached files, you need to write out their names with attachments twice (once for their origin and once for their destination), like this:


inline FILE "elixir.c16" "elixir.c16"
inline FILE "drnk.wav" "drnk.wav"


My TCR Norns
 
the1whoscreams

the1whoscreams



  7/28/2014

Well,I'd like someone to post a PRAY template for an agent that works with both games,because this agent was a flop.It throws errors when you select it,and it throws errors when you inject it.
 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/28/2014

To make a working agent, you need to design the sprite file, CAOS code and PRAY template to work together. Have you tried adding in the PRAY code to make it a DS agent?

My TCR Norns
 
Laura
Tea Queen

Laura


 visit Laura's website: CC Chat
  7/28/2014

What sort of errors? If you post them here, we'll be able to help you find out what's causing them. :)

Make sure Autokill is turned off in-game, by pressing Ctrl+Shift+W, Ctrl+Shift+A and Ctrl+Shift+W in order, then try selecting/injecting your agent again and tell us what error messages it throws up.

 
the1whoscreams

the1whoscreams



  7/28/2014

Here's what happens when I select it:

Runtime error in agent 1 2 210 (Comms) script 1 2 210 1046 unique id 1523
Invalid string for ANMS - not a number
" "
... tion_mark" 0 va16 0 {@}anms va15 wait 1 inst setv va1 ...

Windows NT/2000 5.2 build 3790 (Service Pack 2)
OriginalDisplay DirectX (netbabel 148)
Mon Jul 28 13:00:08 2014 - Administrator - 2.296 b195

If I click brutal ignore and inject it,it'll inject fine,so it must be the animation that's causing this,judging by what i could understand from the error with my faint knowledge of the CAOS language.I don't want it to have an animation,so what do I do?The sprite only has one image of the elixir bottle,by the way.

 
Malkin

Malkin

Manager


 visit Malkin's website: Malkin's page at CWiki
  7/28/2014

It looks like the injector agent is erroring when it tries to view your agent. I'd suggest double-checking the agent animation string line in your PRAY code - it should look something like this:

"Agent Animation String" "0"


My TCR Norns
 
the1whoscreams

the1whoscreams



  7/28/2014

Well,all I've did with that template is compile it,and half of the text has been burned off.Time to re-type the whole thing again.*gets out PRAY tutorial*
 


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