-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|454|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
Afr0
Created : 27 January 2009
 
System : Mac

Code from Will Wright!

The Soul Of The Sims

A while ago I stumbled upon some code written by Will Wright as a prototype for generating AI-motives for The Sims.
Yesterday and today I spent a couple hours converting it to C# (had to type it all by hand since it was a picture of a printout).

Original source can be found here.

Here's my port as of right now:

Motive.cs




If anyone can think of a better way to actually run the SimJob() and SimulateMotives() functions, feel free to comment!
Also, I might make this into some kind of windows program when I feel like it... it seems there are a couple of function definitions in the original source for graphing functions, but they haven't been fleshed out as of yet.
That said, this is an interesting example of advanced AI... it seems you can run the simulation for up to several months without the sims becoming too dirty or loosing their temper. That might be because of the very dense timespan, though.

 

Comments