creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Injection Script   
Papriko
Peppery One

Papriko
Germany  


  6/6/2009

I asked that already in one of my previous posts, but it got kind of lost...
How to let an agent check what game you are playing to let it adjust the position? (e.g. in C3 alone it injects to the Norn Terrarium, else it appears in the Hub)

inst
new: simp 2 21 9 "spacetoy" 18 0 4998
attr 199
bhvr 35
clac 0
elas 0
fric 100
perm 60
mvto 1500 700
setv ov61 100

This is the injection script of the C3 Spacetoy. Would someone please show me a changed version of that which does that what I described some lines before?


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Amaikokonut

Amaikokonut
United States  

 visit Amaikokonut's website: Naturing :: Nurturing
  6/6/2009

I'm no expert in CAOS, but I think the command you're looking for is
doif gnam eq "Docking Station"
which essentially means, "do if game name equals Docking Station" and follow it with your commands, IE:

doif gnam eq "Docking Station"
mvto [cords you would use in Docking Station]
else
mvto [cords you would use in C3]
endi


So the game will will check to see if you're playing DS, and if so, do one thing, and if not (else), do the other.

If I remember right this is more ideal than doing it the other way around (doif gnam eq "Creatures 3" ) because there are many different versions of C3 floating around (Exodus, etc) and the name may not match up. So it's easier to assume if the game isn't DS, it's some version of C3.

At least, that's the way I understand it. I'm speaking purely from a vague memory so someone please correct me if I'm wrong.


[Naturing :: Nurturing]
 
Ghosthande
Prodigal Sock

Ghosthande
United States  

 visit Ghosthande's website: Breeders Beware
  6/6/2009

I haven't been able to find a source that uses that kind of command, but it looks right to me.


 
Malkin

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/6/2009

Sarako's tutorial recommends using

mvsf game "CreatorX" game "CreatorY"


This will make it appear at the creators for whichever game you're playing.


My TCR Norns
 
Papriko
Peppery One

Papriko
Germany  


  6/7/2009

Thank you very much, I will try that.

It has a not much to do with the first question, but prevents new threads:
How to get (get, not modify) the current thought of a Norn, e.g. as the Healthbar does?

And is there a way to unPRAY agents, so that I get the scripts, sounds, sprites and all the other files?


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

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/7/2009

You can unPRAY agents using Monk, and I imagine you can also do so using one of the official tools from CL.

My TCR Norns
 
Ghosthande
Prodigal Sock

Ghosthande
United States  

 visit Ghosthande's website: Breeders Beware
  6/7/2009

REVELATION works too. That's what I use. Pretty simple, as long as you know how to use a DOS command prompt.


 
Amaikokonut

Amaikokonut
United States  

 visit Amaikokonut's website: Naturing :: Nurturing
  6/8/2009

Revelation is certainly my best friend when it comes to looking at other code to learn how things work. And you can rig up a batch file for it if you're lazy like me and don't want to use the dos prompt every time. XD

[Naturing :: Nurturing]
 
Malkin

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/8/2009

Does Revelation work for the situation when an agent file has multiple scripts named Script_1.cos in it? (e.g. Aquatilis Caverna)

My TCR Norns
 
Papriko
Peppery One

Papriko
Germany  


  6/8/2009

Ok, I downloaded Jagent and the other scripts. I looked that I get the Linux version, but when I try to start it with "java Jagent.jar", then it says just:
Exception in thread "main" java.lang.NoClassDefFoundError: Jagent/jar
Caused by: java.lang.ClassNotFoundException: Jagent.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

So, what am I doing wrong?


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

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/8/2009

This confused me too at first - Jagent is the backbone, you don't touch it. You use Monk for agents and Edos for sprites.

My TCR Norns
 
Wiimeiser

Wiimeiser
Australia  


  6/9/2009

Um, why are all the agent-related programs religious terms?

Hashikin ko Tyni Kong Taria Haju'Rumia'an Klodz'Proddi. Terdish oxen saur yessi atai Kongo Dolpik!
 
Ghosthande
Prodigal Sock

Ghosthande
United States  

 visit Ghosthande's website: Breeders Beware
  6/9/2009

Hm. I never noticed. Probably as a joke in reference to the acronym PRAY?


 
xan

xan
United States  


  6/9/2009

^ Yes.
 
Papriko
Peppery One

Papriko
Germany  


  6/9/2009

Malkin wrote:
You use Monk for agents and Edos for sprites.


That's what confuses me... It says the same, not important if I try to start Jagent Monk or Edos...


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

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/9/2009

Well, do you have the right edition of Java?

My TCR Norns
 
Papriko
Peppery One

Papriko
Germany  


  6/10/2009

Hmm, my Terminal says the command "java" is know.
In the Synaptic-Package-Manager (an all-in-one tool to get programs of any kind on Ubuntu, very important for updates) I looked up java and I found this:

Synaptic wrote:
The Java(TM) Plug-in, Java SE 6
Java Plug-in enables applets written to the Java Platform 6 specification to be run in Mozilla and other web browsers.
Java Plug-in comes with the Java Runtime Environment (JRE).

This is a metapackage containing dependencies for running Java in various browsers.


Oh yes, some librarys were there, too. My dad said that is what I need for Java scripts, even when the description says "webbrowsers".

Maybe I should move my question to UbuntuUsers.de.


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

Malkin
Australia  
Manager


 visit Malkin's website: Malkin's page at CWiki
  6/10/2009

Surely version six would be about the same as version five, as far as Jagent goes... if UbuntuUsers say it should work, you could try emailing RProgrammer?

My TCR Norns
 
Papriko
Peppery One

Papriko
Germany  


  6/11/2009

Not important, UbuntuUsers already helped me! I typed for example "java Monk.jar", but I had to type "java -jar Monk.jar"

Pretty simple fault, but I did it. XD


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


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