# The Month of the NPC - Roadplan in OP, creature-rewrite branch in repo

**URL:** <https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188>\
**Category:** The Lab\
**Created:** [September 23, 2013, 9:57pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188 "2013-09-23T21:57:00Z")\
**Posts on this page:** 20\
**Page:** 4

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [November 30, 2013, 5:48pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/61 "2013-11-30T17:48:48Z")

</div>

I’ll work on getting this on a main-repo branch so contributors only have to point at the one. I think swwu already has repo access there - anyone else who is interested, let me know so I can give you access.

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [November 30, 2013, 6:07pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/62 "2013-11-30T18:07:17Z")

</div>

And done.

[https://github.com/CleverRaven/Cataclysm-DDA/tree/creature-rework](https://github.com/CleverRaven/Cataclysm-DDA/tree/creature-rework)

Note that I’m still not back home, so my fiddling around with it has been limited. But I like what I see so far.

---

<div class="post-metadata">

**Author:** ![swwu](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@swwu](https://discourse.cataclysmdda.org/u/swwu)\
**Post date:** [November 30, 2013, 7:02pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/63 "2013-11-30T19:02:47Z")

</div>

GlyphGryph, I don’t actually have push access yet, if that’s what you meant by repo access.

---

<div class="post-metadata">

**Author:** ![TheGrifter](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TheGrifter](https://discourse.cataclysmdda.org/u/TheGrifter)\
**Post date:** [November 30, 2013, 7:42pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/64 "2013-11-30T19:42:34Z")

</div>

NPCs are coming back? Awesome. Are the factions going to work this time? Two way radio might have a use!

Ought to throw in some Walking Dead references. A walled off prison filled with survivors, things like that.

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [November 30, 2013, 10:59pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/65 "2013-11-30T22:59:57Z")

</div>

swwu, you should have access now. I am now home, and will be spending tonight helping. If you’re online and interested, we should probably coordinate.

---

<div class="post-metadata">

**Author:** ![swwu](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@swwu](https://discourse.cataclysmdda.org/u/swwu)\
**Post date:** [December 1, 2013, 12:33am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/66 "2013-12-01T00:33:47Z")

</div>

Sounds good, I will be on IRC for another hour or two at least, and probably all day tomorrow.

FWIW I am just moving the remaining combat-debuff diseases over to the new effects system today and sorting out whatever minor bugs I find.

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [December 1, 2013, 12:43am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/67 "2013-12-01T00:43:21Z")

</div>

I’ll be on in about half an hour.

---

<div class="post-metadata">

**Author:** ![Heruedhel](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@Heruedhel](https://discourse.cataclysmdda.org/u/Heruedhel)\
**Post date:** [December 2, 2013, 1:58pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/68 "2013-12-02T13:58:38Z")

</div>

@Swwu: Hi. I am sorry I did not reply to your post earlier on, but I got distracted by RL for a few days there. Sure, it would be much better if we both worked on the same branch rather than try to merge our efforts later on. I’ll discard my changes and look at what you guys have done, and work from there.

@GlyphGryph: When I played with the code I came across a few architectural problems that I would like to address. These changes do not add anything to game play or solve any bugs, but they make the code a bit messy. Should I try doing something about them (which will touch many files, and potentially introduce bugs) or are these the domain of the “core” development team? Examples of this include circular dependencies, unnecessary parameters being passed to functions (e.g. game object being passed into many functions that don’t need it), and certain functionality being handled inconsistently in code (e.g. different parts of code use player::IsNPC() and a comparison to ‘u’ global for the purpose of deciding whether the actor is the player or an NPC)

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [December 2, 2013, 2:51pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/69 "2013-12-02T14:51:46Z")

</div>

Architectural fixes are definitely appreciated moving forward here, but note that architectural fixes in the NPC class won’t do much since we are replacing it. Instead, help us work on the new architecture on the creature-rewrite branch.

---

<div class="post-metadata">

**Author:** ![Heruedhel](https://avatars.discourse-cdn.com/v4/letter/h/dec6dc/32.png) [@Heruedhel](https://discourse.cataclysmdda.org/u/Heruedhel)\
**Post date:** [December 2, 2013, 3:19pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/70 "2013-12-02T15:19:20Z")

</div>

The issues I am talking about aren’t restricted to the creature classes (So this might not be the place to discuss them really) so I imagine these going into mainline.  
For example, the game class seems to be a lot of things at once. It is:  
A- The driver: it initializes, loads, saves and quits the game.  
B- Game World: It keeps track of where zombies and players are, light, fungus …etc  
C- Player and monster actions: throwing, firing, using computers …etc are for some reason game methods that some times take a player object as input.  
D- UI: display messages, draw explosions and bullets …etc, handle mouse.

This means that a class which needs any subset of this functionality, has to be exposed to the whole thing. and since game is the super class that knows about all other classes, we end up with lots of unnecessary loops.

This is just one example of the kind of thing I would like to address. Maybe I should start a new thread so as not to pollute the current thread?

---

<div class="post-metadata">

**Author:** ![swwu](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@swwu](https://discourse.cataclysmdda.org/u/swwu)\
**Post date:** [December 2, 2013, 7:25pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/71 "2013-12-02T19:25:56Z")

</div>

Heruedhel: a lot of the player/monster actions you mention in item C will probably get redone in the npc rewrite we’re doing. It may be easier if you did those rewrites on the creature-rework branch just because I imagine the merge between two extensive architectural changes would be a pain.

Also, no need to discard your changes. You can just git rebase it to the rework branch.

Glyphgryph: thoughts on adding a “rework roadmap” google doc to this thread? Just a list of all the things that still need to be fixed, might make it easier for new people to jump in.

---

<div class="post-metadata">

**Author:** ![ClaytonRISING](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/claytonrising/32/75_2.png) [@ClaytonRISING](https://discourse.cataclysmdda.org/u/ClaytonRISING)\
**Post date:** [December 2, 2013, 7:38pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/72 "2013-12-02T19:38:52Z")

</div>

I’d like to help.

Also, I want to push forth the suggestion of making NPCs as modular as the enemies currently are. Meaning that if someone wanted to make a total conversion mod and have NPCs/humanoids that use their own inventory and are inherently agressive, it’s possible.

Uh…wink wink

---

<div class="post-metadata">

**Author:** ![GlyphGryph](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/glyphgryph/32/847_2.png) [@GlyphGryph](https://discourse.cataclysmdda.org/u/GlyphGryph)\
**Post date:** [December 2, 2013, 10:38pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/73 "2013-12-02T22:38:29Z")

</div>

> [@swwu](#):
>
> Glyphgryph: thoughts on adding a “rework roadmap” google doc to this thread? Just a list of all the things that still need to be fixed, might make it easier for new people to jump in.

If you write it, I’ll link it.

---

<div class="post-metadata">

**Author:** ![swwu](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@swwu](https://discourse.cataclysmdda.org/u/swwu)\
**Post date:** [December 3, 2013, 6:21am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/74 "2013-12-03T06:21:24Z")

</div>

Okay, here is a task outline/roadmap, should be publicly editable: [https://docs.google.com/document/d/1pWQ1FG5GAO7lZ9uo2FSxQ9MRzISwKXloA2LVQ6Af2A4/edit](https://docs.google.com/document/d/1pWQ1FG5GAO7lZ9uo2FSxQ9MRzISwKXloA2LVQ6Af2A4/edit)

If you want to help with a specific task, just stick your name next to it and go for it. Make sure all PRs you make are against the creature-rework branch and not master. If you’re not sure what a specific task means or how to start it, feel free to ask either here (in this thread or via PM) or on IRC.

Glyphgryph: I’m less familiar with the totality of stuff that needs to be done at the Player/Nonplayer/Character levels so those parts are a little bit sparse, you may need to list (and claim) some of them yourself.

---

<div class="post-metadata">

**Author:** ![milliams](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/milliams/32/983_2.png) [@milliams](https://discourse.cataclysmdda.org/u/milliams)\
**Post date:** [December 3, 2013, 10:57am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/75 "2013-12-03T10:57:03Z")

</div>

That document might make more sense to be on the wiki so that everyone can access and edit it easily.

---

<div class="post-metadata">

**Author:** ![swwu](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@swwu](https://discourse.cataclysmdda.org/u/swwu)\
**Post date:** [December 3, 2013, 11:06am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/76 "2013-12-03T11:06:32Z")

</div>

It should be publicly editable? I can stick it on the wiki if that’s easier for people though.

---

<div class="post-metadata">

**Author:** ![phaethon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/phaethon/32/981_2.png) [@phaethon](https://discourse.cataclysmdda.org/u/phaethon)\
**Post date:** [December 4, 2013, 6:17am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/77 "2013-12-04T06:17:44Z")

</div>

Wow, I necro’ed this thread with low expectations, check back a week later, and there is a ton of activity!

I’m going to mostly sit by cheering while you guys sort out classes, since that is not my forte (yet). The google doc is a big help. I’ll look back for ways to contribute on those goals. Just wanted to say that the CataDDA community is awesome.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [February 1, 2014, 2:58pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/78 "2014-02-01T14:58:14Z")

</div>

whatever happened to all of this, haven’t really seen a update anywhere in awile, not even that dev log

---

<div class="post-metadata">

**Author:** ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)\
**Post date:** [February 1, 2014, 4:07pm UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/79 "2014-02-01T16:07:26Z")

</div>

Probably the guy doing it ran out of time. Good for you to keep the topic floating.

---

<div class="post-metadata">

**Author:** ![SilverDragon](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SilverDragon](https://discourse.cataclysmdda.org/u/SilverDragon)\
**Post date:** [February 2, 2014, 1:13am UTC](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188/80 "2014-02-02T01:13:29Z")

</div>

Ya he had run out of time from the kickstarter, but he also said they were still working on all the tiers we met on it regardless, obviously hes probably working now and i know glyphgryph said he was going to be away for most of febuary but its been awile since the dev blog the backers had access to had been updated with any news, so really thats all i was looking for 😛  
Gotta say though the experimental build is crazy, gets updated so often with such sweet things, it fuels my CDDA addiction 😛

[Previous page](https://discourse.cataclysmdda.org/t/the-month-of-the-npc-roadplan-in-op-creature-rewrite-branch-in-repo/3188.md?page=3)
