Jump to content

mr.devolver

Members
  • Posts

    2,040
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mr.devolver

  1. Sounds like fun :-) The bandits and wandering traders have the "ApproachSpot" vanilla AI task so they will investigate "heat" caused by noise. The NPCs do not have that task, but it could be added to their xml if you wanted.

     

    Well, I don't know how that could be done, but on the other hand, wouldn't it distract our hired NPCs from the task we give them? I mean, it would be cool if wandering (non-hired) NPCs were able to go investigate the sounds of shooting, but in the same time, I wouldn't like hired NPCs go to do the same thing if I wanted them to stay with me or guard some specific spot.

  2. Xyth,

     

    I just had a perfect situation in which I went into Pass-N-Gas, I attacked a zombie, but I only had a stone axe and suddenly a nurse NPC came from behind and finished that zombie for me. Soon after that, I looted the room, found a shotgun, went to the second room / garage, door was open and even before I reached it, a zombie that was inside went straight to me. I shot him and suddenly I had two bandits on my back, BanditEve and BanditArcher who both attacked me. That was probably a random rare coincidence, but it was pretty intense and very cool and it made me think that maybe it would be cool if wandering traders, bandits and npcs had a chance to be attracted to the sounds like shooting and follow the source. That could create some interesting situations like this one.

  3. Friendly fire will be looked at to see whats practical codewise. Thanks for the suggestion!

     

    Thanks for reassurance that it might be added eventually. This mod is already awesome and it will be even better with that option. With bandits, wandering traders and NPCs you can hire, you get long hours of solo roleplay without getting bored. Companions give you that "we're in this together" feeling, wandering traders give you that "I'm not alone in this apocalypse" feeling and bandits give you that restless feeling that you can get shot at any time and you have to act fast if you want to stay alive - "Oh sh** who's shooting at me?" or "Damn, I have to try a different way, because this one is still too powerful for me to deal with!". Basically this set of mods gives me what I always wanted to have in the base game and it was never added.

  4. No, at this point friendly fire in NPCs mean if you are their leader you and anyone in your party cant hurt them, and they can't hurt another NPC in your hire (and maybe in a party members hire, I forget if that made it in). But they can hit you with friendly fire. Not sure is Sphereii wants to add that aspect of friendly fire prevention in out not.

     

    It would be cool if that was an option, it would allow more flexibility for mod creators too. I mean, there are pros and cons and one of the cons is definitely that they can hurt you by accident, close quarter situations may be lethal and sometimes it doesn't really depend on your own skills. Don't get me wrong, NPC companions are very useful, for example when you are facing a horde somewhere outside, they can really take care of some of them for you, but once inside, they can actually do more harm than good depending on the situation. I would love to confidently take them into any POI without worrying that they will kill me. :D

     

    Here's an example in which this option would be useful:

    Maybe some mod creator would like to create a mod in which you have a quest during which you must meet an NPC and the NPC would join you. You wouldn't be able to kill him, he wouldn't be able to kill you, but let's say that as the story unfolds, your NPC friend turns against you and you have to kill him. Friendly fire would switch to ON, so that he could kill you, but also you could kill him to proceed in the quest.

     

    I guess in this example, it would require more than just friendly fire switch, but the flexibility would already be in place.

  5. The damage done by the traders, NPC, and Bandit weapons are adjustable in items.xml so dont feel you have to use my default values. Also, the bandits and traders do not yet use the NPC faction code so have no friendly fire restrictions yet. Once the NPC code is stable I will convert the traders and bandits to also use some of the NPC code.

     

    I'm confused. Does this mean that NPCs that can be hired already have the option to turn off friendly fire? If so, how do we use it?

     

    As for the traders and bandits, I can't recall the last time I got hit by wandering traders, if at all. I'm actually happy when bandits find me and attack me, because it's a nice change to the game and zombies are no longer the only threat.

     

    I was hit by my own follower though and that can be lethal sometimes, so if there is an option that would simply prevent our followers from killing us and maybe prevent us from killing them by accident, that would be awesome.

  6. I tried three. Two guarding the back area and one at the front door. Once this whole wandering off issue gets fixed it will pay off. They're a good alternative to turrets until you can get turrets.

     

    Still, the wandering traders can kill you WAY faster than any zombies. If they're in your area, and you're working on dealing with zombies, you could get hit by one of their "missile" rounds and their friendly fire will kill you in a second unless you're either heavily armored or have a ton of health.

     

    I think it would be better to give them standard rounds rather than these missile rounds that blow up and take you down with the zombie. Even a mini-gun would be better than those exploding rounds they have now. In all honesty, i've been killed (more) by the traders than zombies lately. lol.

     

    Their weapons are fine, we just need to be able to turn off friendly fire, so that your own NPCs will not kill you if you get between them and their real target.

     

    Perhaps it should check the server option which controls friendly fire, if you turn it off, your friendly NPCs should never hurt you and you should never hurt them.

  7. Well, fellas, if there's one thing that can be said about you is that you ARE dedicated. No arguments possible. You're writing code, for us, on a Sunday and that's much appreciated.

     

    I can't even keep up updating to the latest versions, I just finished updating one version, testing right now and now I see two new updates lol. Of course I'm NOT complaining, in fact I love this mod so much that it's hard to force myself to go to sleep in real life.

  8. I'm theory if you flatten the dtm in areas it should create towns there.

     

    I'm working on a Fallout 4 map and in the huge flat place where you would expect a city, Nitrogen didn't place anything except road. When I tried to generate again, it placed a city there but it was small one so the huge free space around it was still unused, but it's still pretty cool. It looks much more realistic than what we get in standard RWG.

  9. Xyth,

     

    that red NRE showed up again, a while after hiring Bill the NPCAmmo and I hate to say that, but he seems to be stuck again, he's unable to follow me. :( Do you think it might have something to do with that red error message in the console? :(

     

    Also, I didn't spawn him this time, I just wanted to play and meet him randomly in the world. It's interesting because previously, when I spawned him two times using F6, this problem didn't happen. Also, I was on my way to the trader (initial quest) when I hired him, I hope this can help to isolate the bug.

     

    Here is the log. NRE should be a little bit before closing the game.

  10. Did you update all the code files and spawned a new NPC? There were lots of big changes today and you might have some older files. I just ran a series of tests on a new spawned AmmoNPC, both before and after hiring, and during patrol, wander and guard, killed zeds without error.

     

    I recommend you delete all the NPC files and dependencies and reload them.

     

    That's why this is strange, because I deleted everything and started all over again, so this is a new game, but I will look into Mod launcher to see if I have some missing files or files that need to be updated.

     

    EDIT:

    Ok, this is weird. I looked in Mod launcher, clicked "Pre-Sync Mod" button, started the game again and I started a new world and "follow me" seems to work again. So far no errors.

  11. Doubtful on the traveling in vehicles. In this game, players kind of "wear" the vehicle, so i probably would be quite a bit of code to get an NPC to enter the vehicles. The follow command should do most of what you are looking for. The NPC should run to keep up with the player, but will not keep up with a very fast vehicle. I don't think we will be doing much more with the AI until A18, mostly just focusing on bug fixes to the existing AI. Sphereii and I have other projects we are spending time on, and are waiting to see what modders do with this NPC and Domesticated Animal framework.

     

    Speaking of bugs, I think I found another one. I hired NPCAmmo again, he attacked a zombie and console showed up with red message.

     

    Here's a snippet from log:

    NPCAmmo: Mickey D The NPCAmmo - ID: 360 Health: 789.6 Stamina: 371.5503 Thirst: 75.09011 Food: 372 Water: 75 Sanitation: Disabled.

    Food Items: foodCornBread,foodCornOnTheCob

    Water Items: All Water Items

    Food Bins: cntSecureStorageChest,cntStorageChest

    Water Bins: water,waterMoving,waterStaticBucket,waterMovingBucket,terrWaterPOI

    Current Order: Follow

    Current Leader: 171

    Active Buffs:

    buffnpcstatuscheck ( Seconds: 1752.85 Ticks: 35057 )

    buffstatuscheck ( Seconds: 1752.85 Ticks: 35057 )

    buffnpcsanitationstatuscheck ( Seconds: 1752.85 Ticks: 35057 )

    buffnewbiecoat ( Seconds: 1752.8 Ticks: 35056 )

    buffperkabilityupdate ( Seconds: 527.4 Ticks: 10548 )

    Active Quests:

    Patrol Points:

     

    Currency: item=549 m=0 ut=0 Faction: 6

     

    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

     

    NullReferenceException: Object reference not set to an instance of an object

    at EAIMaslowLevel1SDX.PerformAction () [0x00000] in <filename unknown>:0

    at EAIMaslowLevel1SDX.CheckForWaterBlock () [0x00000] in <filename unknown>:0

    at EAIMaslowLevel1SDX.CanExecute () [0x00000] in <filename unknown>:0

    at EAITaskList.OnUpdateTasks () [0x00000] in <filename unknown>:0

    at EAIManager.Update () [0x00000] in <filename unknown>:0

    at EntityAlive.updateTasks () [0x00000] in <filename unknown>:0

    at EntityAlive.OnUpdateLive () [0x00000] in <filename unknown>:0

    at EntityNPC.OnUpdateLive () [0x00000] in <filename unknown>:0

    at EntityAliveSDX.OnUpdateLive () [0x00000] in <filename unknown>:0

    at EntityAlive.OnUpdateEntity () [0x00000] in <filename unknown>:0

    at World.TickEntities (Single _partialTicks) [0x00000] in <filename unknown>:0

    at GameManager.gmUpdate () [0x00000] in <filename unknown>:0

    at GameManager.Update () [0x00000] in <filename unknown>:0

     

    (Filename: Line: -1)

     

    NPCAmmo: Attack():

     

    (Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

     

    EDIT:

    I just noticed that the "follow me" command is not working. It worked before but it doesn't work now. When I hired him, he didn't really follow me even when I clicked "follow me" command. When I clicked "guard here" and then "follow me" again, he started following me, but his animation looked strange, like if something wasn't right, it looked better previously. We broke into the garage of Hotel Ostrich in Navezgane, that's where I received that red error message in console. After that I killed couple of zombies inside the garage, but I noticed he didn't really follow me. I tried to go outside and he stayed inside the garage. I tried to give him different commands and then "follow me" again, but he doesn't move.

  12. He updated it but might have forgotten to change the version number. Not sure what repo is current besides the production one listed in his SDX post and linked to the Launcher. Sphereii just updated the version number so it should say update in the launcher.

     

    Thank you for letting me know. I will try.

  13. Checking SDX_EntityAliveSDX for update, there is version 1.0.0.0, unfortunately I can't remember what was the previous version and I can't compare the files because I decided to wipe the modded game completely and do a new one from scratch. Is this version 1.0.0.0 the updated one? If it's not, I wouldn't mind to download the updated one from repository, I'm just not sure which one should I get. Is it the one in

    https://github.com/7D2DMods/SDXModsDevelopment/tree/master/Targets/7DaysToDie/Mods

    ?

  14. That path looks wrong. Shouldnt have 2 references to the mod folder.. should be: D:/Hry/7D2D/Alpha17/My_Mods/My7d2d_2/7DaysToDie_Data/../Mods/Xyth NPCs/Resources/HarleySounds.unity3d

     

    Well it is weird indeed, because the actual path where this file is located is this: D:\Hry\7D2D\Alpha17\My_Mods\My7d2d_2\Mods\Xyth NPCs\Resources\HarleySounds.unity3d

    I have no idea why the game couldn't find the file. Did I mess up the settings of Mod launcher?

     

    I was trying to follow the tutorial video, but the truth is that I had to change the base path, because the default was on C, I wanted it to be on D. Unfortunately I had to edit the settings file manually to do that, because when I clicked on Settings in Mod launcher itself, it didn't show up anything.

  15. That AI task change is intended as he is ranged and needed to help him hold his position. all could use guard instead of look though as they are similar tasks. I found the dying issue, they are failing to eat and drink while patroling. Sphereii is away and working on code changes. Adding some other edits to help them heal by themselves if hurt. They could not restore thier max HP once damage, just healed to the new lower amount.

     

    I'm testing another update that separates the NPCs from Blooms Animal stuff and its dependencies. Seems to be working as expected. Once thats complete and Sphereii updates the code to fix the NPC issues to date, I will look to convert the bandits and Wandering traders to use the NPC base class, and that will enable factions across all entities.

     

    I was just about to inform you that the change didn't seem to have any effect and another NPCAmmo that I hired is also losing his health.

     

    I'm glad to hear that you already found the problem. In the meantime, I was standing inside the strip club POI with hired NPCAmmo and there was also HarleyQuinn NPC (not hired) and she was fighting some enemies. As I was watching the console messages to see if the health of NPCAmmo is still getting lower, I received some red error message that I didn't catch before. I think it's related to HarleyQuinn NPC that was near by. I opened the log and I think the following lines are related to that error message:

     

    2019-04-27T18:57:27 5468.127 INF Entity 1327 killed by 1176.

    Unable to open archive file: D:/Hry/7D2D/Alpha17/My_Mods/My7d2d_2/7DaysToDie_Data/../Mods/Xyth NPCs/Resources/@modfolder(Xyth NPCs):Resources/HarleySounds.unity3d

     

    (Filename: Line: 586)

     

    2019-04-27T18:57:33 5474.537 ERR Loading AssetBundle "D:/Hry/7D2D/Alpha17/My_Mods/My7d2d_2/7DaysToDie_Data/../Mods\Xyth NPCs/Resources/@modfolder(Xyth NPCs):Resources/HarleySounds.unity3d" failed!

    2019-04-27T18:57:33 5474.537 WRN [AudioLog] AudioManager::AudioData::Play() - failed to load audio clip #@modfolder(Xyth NPCs):Resources/@modfolder(Xyth NPCs):Resources/HarleySounds.unity3d?Iseeyou.

  16. Sounds like there is a buff running that causes them to lose health...assuming he had food and water....was he injured at all? If you want to help test... Comment out the Maslow task and remember the subsequent tasks so there are no number gaps.

     

    I don't know if he was injured. Is there any indicator that would let me know? And if he loses health, is there any way we can heal him?

     

    I would like to help, but I'm not sure what exactly should I do?

    So, should I just comment out this line for all NPCs?

     

    <property name="AITask-6" value="MaslowLevel1SDX, Mods"/>

     

    like so?

    <!-- <property name="AITask-6" value="MaslowLevel1SDX, Mods"/> -->

     

    and rewrite the order of AITasks so that there will be no number gap?

     

    EDIT:

    In the meantime, I made a backup file and started editing the original xml file according to these changes (I hope they are correct). While doing these changes, I noticed that there is a difference between NPCAmmo (the NPC I hired) and the rest of the NPCs:

     

    Before this task:

    <property name="AITask-9" value="WanderSDX, Mods"/>

    , other NPCs usually have this task:

    <property name="AITask-6" value="Look"/>

    , but NPCAmmo has this task instead:

    <property name="AITask-8" value="GuardSDX, Mods"/>

    . Is this ok? I just wanted to make sure. For now I will leave that part and just proceed according to the original plan.

  17. Are the NPCs supposed to lose health when they patrol a set rout? I gave them food, and they eat it, but their healths don't recover. Is there a way that I can recover them?

     

    This is something I would love to know too, I just lost my new friend Bill the NPCAmmo :(

  18. Xyth, Bill the NPCAmmo just died. I don't know what happened, he had food and water. I lost the things I stored in his inventory. Are their lives time limited?

     

    EDIT:

    Here is the log. The time of death of Bill the NPCAmmo should be at the end of the log, because I closed the game soon after his death.

     

    I just checked the log and if I was to guess, it looks like he was actually losing health, but I have no idea why. How can we keep them alive besides giving them food and water?

  19. Xyth, Bill the NPCAmmo just died. I don't know what happened, he had food and water. I lost the things I stored in his inventory. Are their lives time limited?

     

    EDIT:

    Here is the log. The time of death of Bill the NPCAmmo should be at the end of the log, because I closed the game soon after his death.

  20. Xyth,

     

    couple of things:

    - When I talk to an NPC and ask them if they have any jobs, I get a red sea of error messages in console.

     

    - I hired Bill the NPCAmmo before finishing the initial quest chain and I was supposed to go to trader Joel and he wasn't in his usual standing place and the cash register next to him was missing as well. Is it because I hired Bill the NPCAmmo?

     

    - Is there any chance for me to turn off friendly fire between me and my hired companion? Bill the NPCAmmo has pretty strong weapon (which was kinda why I wanted to hire him), but when we were fighting zombies, his projectiles hit me and I almost died. I know this can happen in multiplayer too, but when I play online, I usually play PVE in coop mode and we disable the damage caused by friends.

     

    - I just noticed that there is no option in the dialogue to ask Bill the NPCAmmo to help me loot the place. Is it still something that should be there?

     

    - Also, just a suggestion, it would be nice if we could use shift + left mouse button in the inventory of NPCs.

     

    - Before I forget, I was thinking that maybe NPC companions could share XP when they kill the enemy like real human friends? Would that be possible?

     

    Other than that, this is an awesome mod for sure! I love it!

  21. i plan to at some point, whether its to throw them at xyth to add in or to make an add on pack i dunno, still learning and want to add things to them

     

    Try this set:

    Security guard with riot shield and baton

    Soldier with rifle

    Cop with a shotgun

    Cop with a small gun

     

    Last but not least...

    Crazy John wearing a dirty white tank top with blood stains on it (which of course isn't his blood), he's a badass ex-cop who always happens to be in the wrong place at the wrong time, always saving unfortunate innocent people from whole armies of terrorists with just his smg that seems to never run out of ammo, but this time since he'd be late to spend time with family on Christmas eve anyway, he must save whoever is still alive in the zombie apocalypse.

  22. This mod inspired me to make my own npcs(with prodigious help from xyth of course):

     

     

    thats how brilliant it is!

     

    It would be awesome if you could share with others, you know? Just saying! :p

  23. I just refreshed modlets in Mod launcher to find that new Patch_Entity, but unfortunately I can't see it anywhere (checked both default and SDX). I'm trying to refresh the list again.

     

    EDIT:

    This time it was there, downloading the update right now!

×
×
  • Create New...