Development Forum |
|
|
Merboy
|
1/31/2019 | |
You guys! I am *delighted* with my new laptop. If you haven't played DS in a while I strongly recommend it if you have a decent computer with the RAM to sustain it. For some reason on my old computer (both old and new are Windows 10 but the new one has a lot better RAM and processing power) threw bugs and crashed ALL the time plus it lagged so much than an "hour" in the game was really about ten hours or so. Yeah it was terrible. But my goodness the game runs like a DREAM now!!!
Ok that said I want to get back into creating COBs but not until I finished my new book (one creative project at a time). But I do have two animations that I made for Ainarda (I'm playing in Ainarda for DS right now) that I want to inject and I was just wondering if there was an example of the caos for a simple moving animation for DS that existed? Or maybe a brief tutorial? The animation need not do anything. There's only two of them, one is a perpetual animation and one comes on every so often (doesn't matter if it's random or spontaneous).
Just curious! Thanks so much!
The Lantern Light.com |
Malkin
Manager
|
2/1/2019 | |
Hi Merboy!
For an example of caos for a simple moving animation, lung.cos in the Creatures 3 bootstrap is where to look.
inst
new: simp 1 1 22 "lung" 11 0 100
mvto 6147 3739
tick 12
|
Instantaneously make a new simple object, using the C3 classifier number 1 1 22. Use 11 pictures from lung.c16, starting at position 0 in the c16 file, and install it at plane 100 (far forward) in the world. Move the object to the x-y location 6147 3739, and give it a tick of 12 (the timer script will try to activate every half-second or so).
scrp 1 1 22 9
anim [0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10]
snde "lung"
over
endm
|
In the timer script for this object:
play the animation in the sequence given
make a noise
stop the animation
end the script
rscr
enum 1 1 22
kill targ
next
scrx 1 1 22 9 |
remove the lung and its script.
To alter this to make a more sporadic animation,
you could change 'tick 12' to be something like
tick rand 6000 18000
for a random time between 5 and 15 minutes.
Hope this helps, and good luck with your coding!
My TCR Norns |
Merboy
|
2/1/2019 | |
Thank you, Malkin. So my (before I try to inject this and potentially destroy my game if it doesn't work lol) my coding would look like this:
- the image is fireflies3.c16
- the animation is perpetual and non-interrupted, always moving
- there are 33 frames
- I'm starting with frame 0 as the first frame instead of 1 as the first frame, thus the final frame is 32, not 33
- I'm going to experiment with the x,y coordinates because I don't know them offhand
inst
new: simp 1 1 22 "fireflies" 33 0 100
mvto 6147 3739
tick 12
scrp 1 1 22 9
anim [0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32]
snde "fireflies3"
over
endm
rscr
enum 1 1 22
kill targ
next
scrx 1 1 22 9
|
http://thelanternlight.com/fireflies3.gif
The Lantern Light.com |
Merboy
|
2/1/2019 | |
So I made the cos file as it appears above (with the correct coordinates) and put it into my Bootstrap 010 Docking Station and added the c16 file to the Images folders (both in Program Files and in My Documents if it matters). Then I started the game.
Am I missing something? The image is not there.. o.O
The Lantern Light.com |
Malkin
Manager
|
2/2/2019 | |
I think there are a couple of typos in your installation code, try the following (in a non-docked world, with the xy coordinates changed to Ainarda's). I've taken out the noise because I don't think you have one for the fireflies.
inst
new: simp 1 1 22 "fireflies3" 33 0 100
mvto 6147 3739
tick 12
scrp 1 1 22 9
anim [0 0 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32]
over
endm
rscr
enum 1 1 22
kill targ
next
scrx 1 1 22 9
|
You might also want to make a folder in Bootstrap called 300 Merboys Patches and put your attempts in there so it loads after everything and is easy to find your cos files. (As discussed in Distributing COS files). For installing a cos file into a world that already exists, you need to use the JECT command in the CAOS command line:
Good luck! You're almost there.
My TCR Norns |
Merboy
|
2/2/2019 | 1 |
Alrighty, I've got fireflies3.cos with the correct coding now. I've created a folder "300 Merboy" in the "Bootstrap" folder. Everything looks good, but I'm not sure about the JECT command. I've tried typing exactly what you've written in a speech bubble but still no dice.
*** Edit: Found it in google! CTRL+SHIFT+C opens the coas menu at the bottom left of the screen where you can insert the command for those who find this thread in the future.
The fireflies are running beautifully now! Thank you so much Malkin!
The Lantern Light.com |
Malkin
Manager
|
2/2/2019 | 1 |
Awesome! Glad you've got it working.
A couple of caveats, your mileage may vary:
Because you're using the same classifier number as the lungs (1 1 22), the fireflies will very likely break the C3 lungs in some way if you run a docked world with Ainarda.
If you have any problems making a new world (it could try to install the fireflies before the Ainarda agent itself), you can take the cos file out of 300 Merboy and keep it with Ainarda's other .cos files to be injected as you would inject the rest.
My TCR Norns |
Lurhstaap
|
2/3/2019 | |
What are the "lungs" anyway? I'm curious.
Incidentally, if you make the fireflies into more than just an animation, don't forget to make them edible! ;p
Conclude with killer catchphrase.
(Lurhstaap)
"This is not knowledge -
this is information!"
New Model Army, "Courage" |
Sanely Insane
RisenAngel
Manager
|
2/3/2019 | |
The Lung is a background object in Engineering (see the picture on that page; it's the object on the lower right).
~ The Realm ~
Risen Angel's Creatures Blog
|