December 2003
- DGN - Method of controling NPC's. Tony Hoyt
- DGN - Method of controling NPC's. J C Lawrence
- DGN - Method of controling NPC's. Sean Middleditch
On Thu, 2003-12-04 at 17:21, J C Lawrence wrote:
> On Tue, 2 Dec 2003 08:15:09 -0800 (PST)
> Tony Hoyt <gmtonyhoyt@yahoo.com> wrote:
>> The jobs where cron-ed due to allow for a random selected time to
>> occure before the NPC to spawn.
> Cron won't/can't do this. If you do use first class processes for
> NPC scheduling you can have them reschedule as `at` jobs, which is
> realted to but not quite the same as cron.
> More simply you need to examine what the benefits are, if any, of
> moving into a discrete process. It becomes a smaller piece of
> work to be sure, but you also lose all the ready access to state
> information and non-user-level interfaces.
Not to mention the resource implications - tons of information needs
to be duplicated in the server and the client, the overhead of the
processing of messages sent between the two, latency in sending
commands, etc.
If you really need a separate process style design, using threads
might work better - much less duplicated information, faster
communication methods are available, etc.
Plus, instead of spawning and killing a process (or a thread), you
should pool them, so you don't need to incur the overhead of
creating a new one every time an NPC spawns - just look in the pool
and reinitialize and reuse an existing process. Many
multi-threaded/multi-process server architectures do this for the
obvious efficiency gains.
In the end, tho, what does the separate thread even really give you?
You can use a lite-weight scripting language (should be all you'd
need for even moderately complex AI) with lite-weight threading
features, and simplify things even further. Plus, the AI might even
become easier to code, since you can write/modify the script
language to have the exact features/syntax/etc you need for easy and
efficient AI.
--
Sean Middleditch <elanthis@awesomeplay.com>
AwesomePlay Productions, Inc. - DGN - Method of controling NPC's. Vincent Archer
- DGN - Method of controling NPC's. Sean Middleditch
- DGN - Method of controling NPC's. Sheela Caur'Lir
- First Everquest Server Closure? Daniel.Harman@barclayscapital.com
- First Everquest Server Closure? Daniel.Harman@barclayscapital.com
- First Everquest Server Closure? Vincent Archer
- Game Designer and Senior Engineer Positions Adam Carpenter
- Spike TV"s Video Game Awards Michael Tresca
- Spike TV"s Video Game Awards Zach Collins {Siege}
- Spike TV"s Video Game Awards Rayzam
- Spike TV"s Video Game Awards Otis Viles
- Spike TV"s Video Game Awards Michael Tresca
- Spike TV"s Video Game Awards Daniel Anderson
- R: DGN - Method of controling NPC's. Ghilardi Filippo
- MDC 2004 - Call for Speakers mdc-proposals@kanga.nu
- MDC 2004 - Call for Papers mdc-proposals@kanga.nu
- Current State of MMOG's? Chris
- Current State of MMOG's? Jason Murdick
- Current State of MMOG's? Chris
- Current State of MMOG's? Jason Murdick
- Current State of MMOG's? Jeff Crane
- Current State of MMOG's? Sheela Caur'Lir
- Current State of MMOG's? Brian 'Psychochild' Green
- Current State of MMOG's? Scott Jennings
- MUD-Dev Digest, Vol 7, Issue 7 Chanur Silvarian
- Thought Experiment: Permanent Monster Death Brent P. Newhall
- Thought Experiment: Permanent Monster Death Ammon Lauritzen
- Thought Experiment: Permanent Monster Death Nicolai Hansen
- Thought Experiment: Permanent Monster Death John Buehler
- Thought Experiment: Permanent Monster Death Paul Schwanz
- Thought Experiment: Permanent Monster Death ghovs
- Thought Experiment: Permanent Monster Death Chanur Silvarian
- Thought Experiment: Permanent Monster Death J C Lawrence
- Thought Experiment: Permanent Monster Death J C Lawrence
- Thought Experiment: Permanent Monster Death Sheela Caur'Lir
- Thought Experiment: Permanent Monster Death Ben Kirman
- Thought Experiment: Permanent Monster Death Sean Middleditch
- Thought Experiment: Permanent Monster Death Sheela Caur'Lir
- Thought Experiment: Permanent Monster Death Jason Murdick
- Thought Experiment: Permanent Monster Death Scott Jennings
- Thought Experiment: Permanent Monster Death games@anthemion.org
- Thought Experiment: Permanent Monster Death John Buehler
- Thought Experiment: Permanent Monster Death Paul Schwanz
- Thought Experiment: Permanent Monster Death games@anthemion.org
- Thought Experiment: Permanent Monster Death John Arras
- Thought Experiment: Permanent Monster Death Corpheous Andrakin
- Thought Experiment: Permanent Monster Death Edward Glowacki
- Thought Experiment: Permanent Monster Death Sean Kelly
- Thought Experiment: Permanent Monster Death Scion Altera
- Thought Experiment: Permanent MonsterDeath John Buehler
- Utopian World (Removing access to entertainment) Sheela Caur'Lir
- MUD-Dev Digest, Vol 7, Issue 8 Chanur Silvarian
- The Skaff Effect Michael Tresca
- The Skaff Effect Sheela Caur'Lir
- The Skaff Effect Ryan S. Dancey
- MUD-Dev Digest, Vol 7, Issue 9 Chanur Silvarian
- MUD-Dev Digest, Vol 7, Issue 9 Paul Schwanz
- MUD-Dev Digest, Vol 7, Issue 9 Rayzam
- MUD-Dev Digest, Vol 7, Issue 9 Tom "cro" Gordon
- MUD-Dev Digest, Vol 7, Issue 9 Freeman, Jeff
- MUD-Dev Digest, Vol 7, Issue 9 Paul Schwanz
- MUD-Dev Digest, Vol 7, Issue 9 Sheela Caur'Lir
- MUD-Dev Digest, Vol 7, Issue 9 Sheela Caur'Lir
- [ANNC] new list for technical discussion Bruce Mitchener
- The Mind's Eye Matt Mihaly
- [BUS] Browser-based games ceo
- Online gamer in China wins virtual theft suit David Durant
- Alternate Level Mechanics (was: ghost mode) Eli Stevens
- FW: Socialization in Online Games Christopher Allen
- Whimsy Patricia Pizer
- TECH Looking for light graphical clients Ian McDonald
- TECH Looking for light graphical clients Mats Lidstrom
- Simulated societies (Thought Experiment: Permanent Monster Death) Ola Fosheim Grøstad
- [BIZ] The Web's New Currency Michael Tresca
- [BIZ] The Web's New Currency Ola Fosheim Grøstad
- [BIZ] The Web's New Currency Chris Duesing