Goober Posted July 23, 2014 Report Share Posted July 23, 2014 All, I am making progress on a rewrite of this for vanilla 1.8.1 (which hopefully will translate to epoch just fine). It is premature to share the code yet, partly because I am having a lot of trouble with Steam's stupid operations getting in the way of running multiple clients from one account ... and also because ... well ... it just doesn't do anything yet. I have gotten to the point that I have reviewed the zed generation chain and decided that because of the complicated mess that wild zombies + server-side loot + spawn rules (line of sight etc...) has created, the entry point for patching into the spawn chain will be moved to zombie_generate.sqf. The decision to choose where to spawn a zed or loot and spawning loot will happen on the player clients (or server ... for loot). The actual zed creation and control will stay with the HC with fallback to player client if HC disconnects or burps. I am also "de-spaghetti-ing" the code as I go along. (Try reviewing zombie_generate.sqf. It is a redundant mess. I could have put some sauce on it and had dinner). Goober cen and stonXer 2 Link to comment Share on other sites More sharing options...
f3cuk Posted July 28, 2014 Report Share Posted July 28, 2014 Pinned it down to player_zombieAttack.sqf. I just used dayz 1.8.1's file and it fixed it. It even includs the cool fall over animations that happen to you sometimes from dayzmod lol As you can see Huge improvement :) [youtube_video] Just a quick question about this. Did you actually replace the @DayzEpoch1051 player_zombieAttack.sqf.with the @Dayz181 player_zombieAttack.sqf to make those cool animation work? Looking into both of those files they are pretty different and i cant believe i'll get away with simply replacing them :P Link to comment Share on other sites More sharing options...
TayTayTheKiller Posted July 28, 2014 Report Share Posted July 28, 2014 Just a quick question about this. Did you actually replace the @DayzEpoch1051 player_zombieAttack.sqf.with the @Dayz181 player_zombieAttack.sqf to make those cool animation work? Looking into both of those files they are pretty different and i cant believe i'll get away with simply replacing them :P Just a straight swap adding to my mission file and to my compiles.sqf in my mission. Link to comment Share on other sites More sharing options...
f3cuk Posted July 28, 2014 Report Share Posted July 28, 2014 Okay very interesting, will try that now. Love to have some extra animations, been searching for them cause the custom (non-default) jumping, proning, powersliding animations i've seen on other servers are awesome. Never actually played 181 but will definitely now to see if i can find some other ones which we can port :P Link to comment Share on other sites More sharing options...
Royal Posted July 30, 2014 Report Share Posted July 30, 2014 So me and Ebay are trying to get this to work on 1.8.1. We got pretty far already I think since it seems like the zombies are being spawned and controlled by the HC. But the zombies that are spawned and controlled seem to act a bit weird. Video: http://youtu.be/pt5AYxN_P04?t=46s As you can see in the video the zombies like "ignore" me. They run towards me but sometimes just run away from me and group up a couple of meters further up. Does anyone have any idea what could be the reason they do this. Or where I should check i.e what files? PS. We used Goobers base files for this. Link to comment Share on other sites More sharing options...
justchil Posted July 30, 2014 Report Share Posted July 30, 2014 Hopefully I can get on board soon now that updates and such have cooled down. I had zeds/loot and even WAI running on a HC but I couldn't get any performance gains out of it. For example my WAI lag when i have 35+ or so... even running on a HC they still rubberband. I spawned like 300-600 patrols on my test server before they started to lag for a single player lol Link to comment Share on other sites More sharing options...
linkinpunk Posted August 27, 2014 Report Share Posted August 27, 2014 Hello. Please sorry my english. My starting script: d: cd d:\arma2sv Arma2OA_BE.exe 0 0 -client -connect 127.0.0.1 -port:2302 -nosound "-mod=@dayz_epoch" -name=server -profile=HeadlessClient I have next trouble (in screenshot) Link to comment Share on other sites More sharing options...
linkinpunk Posted August 27, 2014 Report Share Posted August 27, 2014 Problem solved. Need correct steam account. But i have next problem. When my headless client connect to my (localhost) server, is reconnecting after 90 seconds (lobby starting timer...). Can't recieve mission file? Link to comment Share on other sites More sharing options...
linkinpunk Posted August 28, 2014 Report Share Posted August 28, 2014 my english is too bad? :-C Link to comment Share on other sites More sharing options...
McPimpin Posted September 12, 2014 Report Share Posted September 12, 2014 I am having issues with my HC disconnecting every couple of minutes. I saw a post on it but the links are dead. Does anyone have any suggestions? Link to comment Share on other sites More sharing options...
poweredbypot Posted September 16, 2014 Report Share Posted September 16, 2014 I am having issues with my HC disconnecting every couple of minutes. I saw a post on it but the links are dead. Does anyone have any suggestions? I am new to this topic, but I just ran across these posts, and they may help you: Link to comment Share on other sites More sharing options...
Donnovan Posted September 22, 2014 Report Share Posted September 22, 2014 The correct is -profiles, and not -profile. You can check looking the original Epoch bat files.I tried to run 3 instances on my PC:- Server- HC Client- Normal ClientI can't connect HC Client and Normal Client at the same time, the second one to connect receive a message "Session lost". Link to comment Share on other sites More sharing options...
Tricks Posted September 22, 2014 Report Share Posted September 22, 2014 So I am assuming this only works on dedicated? Link to comment Share on other sites More sharing options...
Donnovan Posted September 22, 2014 Report Share Posted September 22, 2014 Tricks,If you want to test it, you will need two machines:Machine 1:- Server.- HC Client.Machine 2:- Normal Client.You play on machine 2. Link to comment Share on other sites More sharing options...
macdog Posted September 22, 2014 Report Share Posted September 22, 2014 So I am assuming this only works on dedicated? I assume you are asking from the perspective of this working with a managed server provider such as dayz.st/hfb/etc... Technically you don't need a dedicated server to at least try this out, but that would mean running your HC on a different computer to the server which may cause you other issues. Probably good enough for testing code, but not sure how it would pan out as a live server. Link to comment Share on other sites More sharing options...
Tricks Posted September 22, 2014 Report Share Posted September 22, 2014 Thanks macdog. Link to comment Share on other sites More sharing options...
Donnovan Posted September 22, 2014 Report Share Posted September 22, 2014 I'm using it! It's incredable awesome!177.148.219.249:2302 Link to comment Share on other sites More sharing options...
Donnovan Posted September 23, 2014 Report Share Posted September 23, 2014 Most of the client scripts should not run in the headless clients.So, its possible to have an isHeadless boolean, like the isServer or isDedicated booleans, so i can bypass unnecessary scripts for the headless client?I can use isServer to accomplish that?Thankyou! Link to comment Share on other sites More sharing options...
macdog Posted September 23, 2014 Report Share Posted September 23, 2014 Most of the client scripts should not run in the headless clients.So, it possible to have an isHeadless boolean, like the isServer or isDedicated booleans, so i can bypass unnecessary scripts for the headless client?I can use isServer to accomplish that?Thankyou! hasInterface Donnovan 1 Link to comment Share on other sites More sharing options...
Donnovan Posted September 27, 2014 Report Share Posted September 27, 2014 Hi._agent = createAgent [_type, _position, [], _radius, _method]; _agent removeAllEventHandlers "local"; // attach our own later _agent addEventHandler ["local", { diag_log "Locality Event"; if(_this select 1) then {[(position (_this select 0)),(_this select 0),true] execFSM "hc\compiles\zombie_agentHC.fsm" };}];This code is from HCE, from the file zombie_generateHC.sqf.Can you tell me what the third line do (_agent addEventHandler...)?Thanks in advance! Link to comment Share on other sites More sharing options...
Sandbird Posted November 2, 2014 Report Share Posted November 2, 2014 The HC is getting kicked for script restriction #0 although i have 5 "I_AM_A_BAD_HC_IN_WRONG_SLOT" in scripts.txt It seems that although the HC joins the civilian slot and enters the game...for some reason if !( playerside == civilian ) then {... server doesnt recognize it as a civilian and kicks it ?! (of course, i've added the item2 in mission.sqm and incremented the class at top) EDIT: Nevermind..i am an idiot...I have an entry with the HC's UID in my character_data table..cause i am testing it from my pc...and it was loading my character. Its not getting kicked anymore once i deleted the entry. Link to comment Share on other sites More sharing options...
Sandbird Posted November 3, 2014 Report Share Posted November 3, 2014 I dont get it how the bot handles zombies. Dont i have to tweak the server first ? I mean the client logs in, i can even tp to it and i added it in infistar config, so no more kicks from BE......but.....the zombies are still handled by the server. I have like 20 zombies around me...i close the HC client, and the zombies are still there. How is it handling the zombies, without me disabling stuff on the server 1st ? How could i know if its working or not? -Thanks Link to comment Share on other sites More sharing options...
cen Posted November 3, 2014 Report Share Posted November 3, 2014 If the HC logs out, the zombies would disappear. Link to comment Share on other sites More sharing options...
Sandbird Posted November 3, 2014 Report Share Posted November 3, 2014 If the HC logs out, the zombies would disappear. Thats what i figured, so the zombies spawning are not done by the HC. I followed the instructions to the letter....and zombies spawn....but not from the HC then. Shouldnt i disable something in the files so the HC spawns his ? Link to comment Share on other sites More sharing options...
cen Posted November 3, 2014 Report Share Posted November 3, 2014 you need to change all the files that generate zombies Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now