Author Topic: Rogue Survivor Alpha 2  (Read 36836 times)

kulik

  • Newcomer
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Rogue Survivor Alpha 2
« Reply #15 on: June 04, 2010, 03:50:46 PM »
Just one thing to the AI planing. (i have no idea how coding works so this will be probably rubbish) Wouldn't it be possible to do the whole planing not every turn but only once per day? Like try to move to this house or baricade this room and then leave the rest to your directive AI that would gravitate to this objective (more move directives or more baricade directives) but no more AI calculation would be needed?

You dont have to reply its most likely nonsense.  :-X

It ain't nonsense at all.  :)
Some sort of high level planning (do this today) then leave the details to low level AI (orders etc...).
The kind of planning you describe works well in a static environement (eg: if the map wouldn't change much during a day) but doesn't work well in a dynamic environement (eg: the map changes a lot during the day, because of broken doors, new enemies, people dying etc...).
The risk is the AI persisting in what would appear dumb behaviors during a whole day (eg: keep trying to barricade this zombie infested house).
I could add AI triggers to re-check the plan during the day, but then that would defeat the whole purpose of the pre-planning optimization.

I see. I understand that control of so much AIs is a big CPU killer so the objective is probably not "make them smart" but "make them look like they are smart".
Well, there could be a trigger that would negate the objective and switch AI to theirs basic "improvise" mood. Like if direction "run away from zombie" is triggered too often it could asses the environment as too dangerous and go back to normal mode or too little "break furniture" directions could cancel barricading and go to normal (no additional calculations needed). Maybe after plan is negated a new one could be created instead if CPU can handle it. Actually it could be build upon like too many negated plans of "move to" could lead to barricade plan and backwards.
For CPU sakes, not every civilian could have plan for every day, but it would help to raise immersion if you meet a survivor from time to time and he would tell you, that he has a plan to move in this building and barricade it and he would actually do something similar to what he described.  

Not so long ago i read a dev. diary about AI of Subversion (game from Introversion creators of Defcon and Darwinia). And the guy has solved some AI issues (too many unimportant AI plans that shuttered the cpu) by letting the unused CPU output work on the background on those not so important AIs. And since RS works in turns and sometimes you have to stop and think what to do now, couldnt the time be used to calculate some advanced AI actions? ...again, i have no idea what im talking about.  :-\
« Last Edit: June 04, 2010, 03:53:56 PM by kulik »

roguedjack

  • Rogueliker
  • ***
  • Posts: 70
  • Karma: +0/-0
    • View Profile
    • Rogue Survivor blog
    • Email
Re: Rogue Survivor Alpha 2
« Reply #16 on: June 04, 2010, 05:10:23 PM »
But could you make it for district simulation? I.e. when you're in a district, it shouldn't load your CPU too much because of that, but when you enter districts and already wait for a significant amount of time, why not to simulate some safehouses being built and survivors gathered inside with stuff and guns?
Full simulation is already too slow and that is with doing the AIs as it is now. Alpha 2.1 has partial simulation (skip AI frames) to speed up simulation.
I guess I could do these things you describe when simulating, but I don't like the idea of making special stuff happen out of the player reach.
Scripted events like this are possible, I can find a way to make them happen in the same map as the player with no additional AI, but with some sort of "cheating".

Quote
Actually I once I saw a guy barricaded in a gun shop with a bunch of food, but it could be random.
Yes random. Its like the monkeys writing hamlet on typewriters thing  ;D

roguedjack

  • Rogueliker
  • ***
  • Posts: 70
  • Karma: +0/-0
    • View Profile
    • Rogue Survivor blog
    • Email
Re: Rogue Survivor Alpha 2
« Reply #17 on: June 04, 2010, 06:18:05 PM »
Quote from: kulik
For CPU sakes, not every civilian could have plan for every day, but it would help to raise immersion if you meet a survivor from time to time and he would tell you, that he has a plan to move in this building and barricade it and he would actually do something similar to what he described. 
I have plans to have uniques NPCs (eg: special survivors or zombies). I could write special AI for them to do things like that.

Quote
Not so long ago i read a dev. diary about AI of Subversion (game from Introversion creators of Defcon and Darwinia). And the guy has solved some AI issues (too many unimportant AI plans that shuttered the cpu) by letting the unused CPU output work on the background on those not so important AIs. And since RS works in turns and sometimes you have to stop and think what to do now, couldnt the time be used to calculate some advanced AI actions? ...again, i have no idea what im talking about.  :-\
I don't know about the article but for my game I see the same problem as with pre-planning. Those actions would be calculated from a specific game situation, and by the time it is the AI turn to act the situation has probably changed and the thinking done is probably useless.

BTW I wrote a blog entry about the AI in RS, you can find it here it you are interested : blog link.
« Last Edit: June 04, 2010, 06:21:42 PM by roguedjack »

roguedjack

  • Rogueliker
  • ***
  • Posts: 70
  • Karma: +0/-0
    • View Profile
    • Rogue Survivor blog
    • Email
Re: Rogue Survivor Alpha 2
« Reply #18 on: June 05, 2010, 06:50:17 PM »
Alpha 3 out, check new thread.

kulik

  • Newcomer
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: Rogue Survivor Alpha 2
« Reply #19 on: June 06, 2010, 04:33:48 PM »
The new version is awesome.

Actually THE zombie game that many people were waiting for and its so good, that people started to be really enthusiastic and are suggesting things like crafting, farming on city outskirts, persistent world (like dwarf fortress) and similar stuff. It would be great if you would somehow describe some kind of plan or vision for this project. How far are planing to go with this? And last but not least, is there a way to support you? (Other than to say that you're doing great.)  :)

edit
moved to new tread
« Last Edit: June 06, 2010, 04:36:04 PM by kulik »