Showing posts with label howto. Show all posts
Showing posts with label howto. Show all posts

Saturday, February 15, 2014

Connecting to the Creatures DDE interface from python

We've recently seen how easy it is to connect to the C1 and C2 DDE interfaces using VB.

This time we will show how easy it is to connect to those interfaces using python, which will prove useful in upcoming articles.



Connecting to a DDE server from inside python is can be a quick and easy process.
The hardest part is in acquiring the correct modules to do so, (which can be a real pain if you take it from the wrong side), there are also a couple specifics that make debugging the first DDE connections unreliable.
Fortunately I've sorted those perks out for you,and will show you the single quickest and easy way to connect to the Creatures 1 and 2 DDE interface from python.


Monday, February 3, 2014

Connecting to the Game: accessing the DDE interface with 3 lines of code. (Tutorial)




We've been studying a lot of stuff lately, most of it involving running CAOS commands against C1 and C2 games.
C3 has a convenient built-in CAOS console, and various third party tools also propose that feature for C1 and C2.

But how would you go about implementing this kind of connectivity inside your own programs?
The simplest way to connect to a running C1 or C2 game is through the DDE interface (Dynamic Data Exchange). Also it REALLY is simple even if you barely know anything about programming, so this might be worth checking out.If you never programmed anything and don't have any development tools handy, you could initiate a DDE connection even from inside an Excel macro using VBA.Also the C1 and C2 DDE interfaces being strictly identical, you'll be writing code only once, and be able to use it in both games right now, without any change.

By sending the game some basic CAOS commands and reading their results you can reproduce all of the game functionalities and then some more: reading a Norn's needs and chemicals levels in realtime, selecting Norns and Grendels, carrying them, monitoring their brains,etc...

This time I show you a very quick overview to get you started in pumping CAOS in and out the C1 and C2 games.More advanced use cases or details will come in futher posts.
 

Sunday, January 26, 2014

Finally, a Creatures 2 Norn autopsy tool


So, we've just learnt how to extract various information from C2 History files, among which a list of concentrations for a Norn's bloodstream chemicals at time of death.

We've also learnt how to map a chemical's number to a readable chemical name.

We can finally get to perform autopsies of dead C2 Norns!

Wednesday, January 22, 2014

Parsing C2 histfiles

Once again, a quick filler post about parsing a random creatures file format.

This time we will be investigating the Creatures 2 "History file" format.

 This one is also already documented online, but being able to parse it can allow us to extract some interesting data.


I guess this post needed at least one picture

Monday, January 20, 2014

Designing farting norns (Tutorial)


Many colored alternative breeds exist for all of the creatures games.

In this tutorial I will show you how to design a new breed for C1.
But not one that involves making new sprites for new colored or punk Norns, but rather one that implements new Norn behaviours and possibilities.
Using those techniques one could add loads of interesting behaviours to Norns such as :
  • Adding a kicking stance and associated behaviours to fight off Grendel more efficiently
  • Making Norns that can reinvigorate and heal by resorting to meditation
  • Enabling actual telekinesis in Norns ( yes, this IS possible with some work )
  • Making jumping Norns
  • Mimicking more realistic life behaviour ( digestion, elimination ... )
  • ...
But this time we will be:

Making Farting Norns:

Friday, January 17, 2014

Norns caesarean (saving the egg from a dead pregnant Norn)

I read a post today on (the awesome) Discover Albia blog and got slightly depressed by a random statement about the grief of loosing a pregnant Norn along with her egg.

Not that it happened that much to me, maybe once at worst.Yet this was the wake up call I needed to be ready should this ever happen.
So here's some CAOS black magic that will help you saving the egg from a pregnant Norn that passed away before getting to term.