phocian 0 Posted March 24, 2013 I hope that someone can help with this as I have googled for two nights and have not found a solution.I have been adding AI to the dayz_mission.pbo for a friend, his is a standard version of days but he wants to mod it.When I try to add any Russian aircraft (or American) and preview the mission the following error type appear " Invalid crew RU_Soldier_Pilot in Su34 " and the plane (any aircraft ) is spawned in the preview without a crew.I have managed to add AI soldiers which can be ordered to get into the plane and take off in the preview.But when the days_mission.pbo is loaded into the server the same error appears and refuses to allow anyone to log in or the craft simply do not appear and only the extra soldier troop pilots are spawned in.If I try to spawn in an unoccupied plane the same error happens.I'm at a loss what to do, my friend would like AI air patrols ( none firing) and I don't understand why it wont work.Thanks,Phocian Share this post Link to post Share on other sites
dayz247 59 Posted March 24, 2013 (edited) I am pretty sure that RU_Soldier_Pilot is a banned skin in dayz_anim.pbo. If you try to add an AI with a banned skin, it will throw an error and will not create the unit. SU34 may also be banned.Try using BAF_Soldier_DDPM ..... don't think that one is banned. Edited March 24, 2013 by dayz247 Share this post Link to post Share on other sites
phocian 0 Posted March 24, 2013 Thanks for getting back Dayz247.How would I go about changing this.The mod seems to be limited in what air units are available in the editor and all the East and West aircraft that I try keep giving the error "Invalid Crew."Is there a away to allow this banned skin and vehicle ? Share this post Link to post Share on other sites
dayz247 59 Posted March 24, 2013 (edited) A lot of this depends on how you are going about adding the AI units into the game.If you are doing it via the mission.pbo, you should have somewhere where you have something that looks like the following:"BAF_Soldier_DDPM" createUnit [_unitpos, _aiGroup, "_aiunit=this;",0.6,"Private"];If you are trying to add the units through the Arma map editor, I'm not completely sure that you can do that. instead look at creating a sqf script in your mission pbo to create and control the AI units.Also, try spawning in the su34 through your database. I was able to spawn in (and fly, quite the joy btw) a Su34 while no one was on my server, so it doesn't seem to be banned (at least on my version).Vehicles and skins are banned in the dayz_anim.pbo.... while you can edit this, if you do so you will need to distribute it to anyone that plays on your server. Unless you whitelist on your server, I wouldn't particularly recommend this (players with your dayz_anim can't play on other servers, players without your dayz_anim cannot play on yours). Is best to stay within the confines of the original dayz_anim, or install Rmod.You should be able to attach any AI unit to any vehicle, will require some work, the skin is irrelevant. I just said use BAF_Soldier_DDPM because I know that skin works (US_Soldier_EP1 also works BTW). Edited March 24, 2013 by dayz247 Share this post Link to post Share on other sites
phocian 0 Posted March 24, 2013 Ah, ok I have only been adding AI via the editor, rolling back the dayz version, editing the map and ai saving the pbo then returning via dayz commander to the latest version and play testing on the server.I will look into scripting units to appear via a sqf script.I have random troop patrols atm via Ups.Thank you for your help, I'm new to this and it's a case of three steps forward, two steps back but fun anyway.Your right in that I shouldn't touch the dayz_anim.I will update this thread if I can get it to work, as I'm sure I won't be the only newbie dayz editor to encounter this.Cheers,Phocian Share this post Link to post Share on other sites
dayz247 59 Posted March 24, 2013 There is a thread on opendayz about AI troops that might be helpful. 1 Share this post Link to post Share on other sites
phocian 0 Posted March 25, 2013 I found the thread you recommended.http://opendayz.net/index.php?threads/sarge-ai-framework-public-release.8391/page-13Jackpot !Thanks. Share this post Link to post Share on other sites
phocian 0 Posted April 1, 2013 (edited) Ok so now I have got around the issue of the RU_Soldier_Pilot by placing an empty Su34 via the arma 2 editor.Dayz allowed soldiers can get in the plane and take off. (In the editor preview)The problem now is that the aircraft explode as soon as the server restarts.From reading it seems this is to do with the cleanup.fsm file and the Kill hacker series of code.So using this :Replace this:Quote"//Check for hackers" \n" {" \n" if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n" diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n" (vehicle _x) setDamage 0.2;" \n" _x setDamage 0.2;" \n" };" \n" } forEach allUnits;" \n"" \nWith this:Quote"//Check for hackers" \n" //{" \n" //if(vehicle _x != _x && !(vehicle _x in _safety) && (typeOf vehicle _x) != ""ParachuteWest"") then {" \n" //diag_log (""CLEANUP: KILLING A HACKER "" + (name _x) + "" "" + str(_x) + "" IN "" + (typeOf vehicle _x));" \n" //(vehicle _x) setDamage 0.2;" \n" //_x setDamage 0.2;" \n" //};" \n" //} forEach allUnits;" \n"" \nNow the server gets stuck on requesting authentication and then after 40 or so seconds presents the "something went wrong message".Any ideas please ?Thanks in advance. Edited April 1, 2013 by Phocian Share this post Link to post Share on other sites
cashaber 1 Posted June 10, 2013 Wow I get this same problem... no mater what code I use the server will not allow peeps to log inplease let me know how this went Share this post Link to post Share on other sites