Jump to content
  • 0

Need help with zombies


BetterDeadThanZed

Question

I am attempting to add some zombie spawns on my test server using this thread: 

I created the spawner unit for the zombies in one place just to test it. The instructions say to add the spawners to "class Groups" but that no longer exists in Epoch's mission.sqm. There is a "class Entities" which appears to be the same thing. I added the spawners I created in the editor to the "class Entities" section. This is the code I added:

Spoiler

		class Item1
		{
			side="LOGIC";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={8527.8506,18.214584,5497.4365};
					class args
					{
						items=9;
						class Item0
						{
							value="2";
							parentCls="RyanZM_ModuleSettings";
							typeName="CivilianAttacks";
						};
						class Item1
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="DeleteBodies";
						};
						class Item2
						{
							value="75";
							parentCls="RyanZM_ModuleSettings";
							typeName="DetectionDistance";
						};
						class Item3
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="Bleeding";
						};
						class Item4
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="Invincibility";
						};
						class Item5
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="Sounds";
						};
						class Item6
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="JumpingSounds";
						};
						class Item7
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="StartingAnim";
						};
						class Item8
						{
							value="1";
							parentCls="RyanZM_ModuleSettings";
							typeName="ZombieScript";
						};
					};
					id=1;
					side="LOGIC";
					vehicle="RyanZM_ModuleSettings";
					leader=1;
					lock="UNLOCKED";
					skill=0.60000002;
					text="Zombie_settings";
				};
			};
		};
		class Item2
		{
			side="LOGIC";
			class Vehicles
			{
				items=1;
				class Item0
				{
					position[]={8718.1416,15.864338,5459.6704};
					class args
					{
						items=16;
						class Item0
						{
							value="1";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Side";
						};
						class Item1
						{
							value="10";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Type";
						};
						class Item2
						{
							value="7";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Type2";
						};
						class Item3
						{
							value="4";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Type3";
						};
						class Item4
						{
							value="[]";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Type4";
						};
						class Item5
						{
							value="2";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Activation";
						};
						class Item6
						{
							value="3";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Activation2";
						};
						class Item7
						{
							value="1";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Activation3";
						};
						class Item8
						{
							value="100";
							parentCls="RyanZM_ModuleSpawn";
							typeName="ActivationRadius";
						};
						class Item9
						{
							value="25";
							parentCls="RyanZM_ModuleSpawn";
							typeName="AliveAmount";
						};
						class Item10
						{
							value="100";
							parentCls="RyanZM_ModuleSpawn";
							typeName="TotalAmount";
						};
						class Item11
						{
							value="5";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Start";
						};
						class Item12
						{
							value="90";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Frequency";
						};
						class Item13
						{
							value="0.5";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Delay";
						};
						class Item14
						{
							value="0";
							parentCls="RyanZM_ModuleSpawn";
							typeName="Density";
						};
						class Item15
						{
							value="14";
							parentCls="RyanZM_ModuleSpawn";
							typeName="HordeSize";
						};
					};
					id=2;
					side="LOGIC";
					vehicle="RyanZM_ModuleSpawn";
					leader=1;
					lock="UNLOCKED";
					skill=0.60000002;
					text="old_esseker_spawner";
				};
			};
		};

 

This is what my mission.sqm looks like after adding this: http://pastebin.com/Rx3Rv5Kj

When I run the server, I get "Mission Epoch Mod read from bank" and the server doesn't start properly. That message just appears over and over again. Maybe another set of eyes looking over this can spot something I can't...

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

I'm afraid that you now have to regenerate all the spawns from Eden. The syntax has changed. For example, here's a spawner from my mission.sqm:

Spoiler

        class Item107
        {
            dataType="Logic";
            class PositionInfo
            {
                position[]={20883.047,10.834064,19223.346};
            };
            id=212;
            type="RyanZM_ModuleSpawn";
            class CustomAttributes
            {
                class Attribute0
                {
                    property="RyanZM_ModuleSpawn_Start";
                    expression="_this setVariable ['Start',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=5;
                        };
                    };
                };
                class Attribute1
                {
                    property="RyanZM_ModuleSpawn_Type";
                    expression="_this setVariable ['Type',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=5;
                        };
                    };
                };
                class Attribute2
                {
                    property="RyanZM_ModuleSpawn_HordeSize";
                    expression="_this setVariable ['HordeSize',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=14;
                        };
                    };
                };
                class Attribute3
                {
                    property="RyanZM_ModuleSpawn_Frequency";
                    expression="_this setVariable ['Frequency',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=60;
                        };
                    };
                };
                class Attribute4
                {
                    property="RyanZM_ModuleSpawn_ActivationRadius";
                    expression="_this setVariable ['ActivationRadius',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=100;
                        };
                    };
                };
                class Attribute5
                {
                    property="RyanZM_ModuleSpawn_Delay";
                    expression="_this setVariable ['Delay',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0.5;
                        };
                    };
                };
                class Attribute6
                {
                    property="RyanZM_ModuleSpawn_AliveAmount";
                    expression="_this setVariable ['AliveAmount',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=50;
                        };
                    };
                };
                class Attribute7
                {
                    property="RyanZM_ModuleSpawn_Activation";
                    expression="_this setVariable ['Activation',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=2;
                        };
                    };
                };
                class Attribute8
                {
                    property="RyanZM_ModuleSpawn_Density";
                    expression="_this setVariable ['Density',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute9
                {
                    property="RyanZM_ModuleSpawn_Type2";
                    expression="_this setVariable ['Type2',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute10
                {
                    property="RyanZM_ModuleSpawn_Type3";
                    expression="_this setVariable ['Type3',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute11
                {
                    property="RyanZM_ModuleSpawn_Type4";
                    expression="_this setVariable ['Type4',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "STRING"
                                };
                            };
                            value="[]";
                        };
                    };
                };
                class Attribute12
                {
                    property="RyanZM_ModuleSpawn_Activation2";
                    expression="_this setVariable ['Activation2',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=3;
                        };
                    };
                };
                class Attribute13
                {
                    property="RyanZM_ModuleSpawn_Side";
                    expression="_this setVariable ['Side',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=1;
                        };
                    };
                };
                class Attribute14
                {
                    property="RyanZM_ModuleSpawn_TotalAmount";
                    expression="_this setVariable ['TotalAmount',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=100;
                        };
                    };
                };
                class Attribute15
                {
                    property="RyanZM_ModuleSpawn_Activation3";
                    expression="_this setVariable ['Activation3',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=1;
                        };
                    };
                };
                nAttributes=16;
            };
        };

As you can see it is substantially different from the previous definition. I will be updating the Tutorial - had a load of deadlines at work (and work to do on my server) that has delayed that. COS is also performing sub-optimally for me so I'm going through replacing it with native Ryan's spawners. I'll add the data for Altis to the Tutorial and look at other maps in the future.

Link to comment
Share on other sites

  • 0
6 minutes ago, Grahame said:

I'm afraid that you now have to regenerate all the spawns from Eden. The syntax has changed. For example, here's a spawner from my mission.sqm:

  Reveal hidden contents

        class Item107
        {
            dataType="Logic";
            class PositionInfo
            {
                position[]={20883.047,10.834064,19223.346};
            };
            id=212;
            type="RyanZM_ModuleSpawn";
            class CustomAttributes
            {
                class Attribute0
                {
                    property="RyanZM_ModuleSpawn_Start";
                    expression="_this setVariable ['Start',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=5;
                        };
                    };
                };
                class Attribute1
                {
                    property="RyanZM_ModuleSpawn_Type";
                    expression="_this setVariable ['Type',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=5;
                        };
                    };
                };
                class Attribute2
                {
                    property="RyanZM_ModuleSpawn_HordeSize";
                    expression="_this setVariable ['HordeSize',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=14;
                        };
                    };
                };
                class Attribute3
                {
                    property="RyanZM_ModuleSpawn_Frequency";
                    expression="_this setVariable ['Frequency',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=60;
                        };
                    };
                };
                class Attribute4
                {
                    property="RyanZM_ModuleSpawn_ActivationRadius";
                    expression="_this setVariable ['ActivationRadius',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=100;
                        };
                    };
                };
                class Attribute5
                {
                    property="RyanZM_ModuleSpawn_Delay";
                    expression="_this setVariable ['Delay',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0.5;
                        };
                    };
                };
                class Attribute6
                {
                    property="RyanZM_ModuleSpawn_AliveAmount";
                    expression="_this setVariable ['AliveAmount',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=50;
                        };
                    };
                };
                class Attribute7
                {
                    property="RyanZM_ModuleSpawn_Activation";
                    expression="_this setVariable ['Activation',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=2;
                        };
                    };
                };
                class Attribute8
                {
                    property="RyanZM_ModuleSpawn_Density";
                    expression="_this setVariable ['Density',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute9
                {
                    property="RyanZM_ModuleSpawn_Type2";
                    expression="_this setVariable ['Type2',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute10
                {
                    property="RyanZM_ModuleSpawn_Type3";
                    expression="_this setVariable ['Type3',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=0;
                        };
                    };
                };
                class Attribute11
                {
                    property="RyanZM_ModuleSpawn_Type4";
                    expression="_this setVariable ['Type4',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "STRING"
                                };
                            };
                            value="[]";
                        };
                    };
                };
                class Attribute12
                {
                    property="RyanZM_ModuleSpawn_Activation2";
                    expression="_this setVariable ['Activation2',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=3;
                        };
                    };
                };
                class Attribute13
                {
                    property="RyanZM_ModuleSpawn_Side";
                    expression="_this setVariable ['Side',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=1;
                        };
                    };
                };
                class Attribute14
                {
                    property="RyanZM_ModuleSpawn_TotalAmount";
                    expression="_this setVariable ['TotalAmount',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=100;
                        };
                    };
                };
                class Attribute15
                {
                    property="RyanZM_ModuleSpawn_Activation3";
                    expression="_this setVariable ['Activation3',_value,true];";
                    class Value
                    {
                        class data
                        {
                            class type
                            {
                                type[]=
                                {
                                    "SCALAR"
                                };
                            };
                            value=1;
                        };
                    };
                };
                nAttributes=16;
            };
        };

As you can see it is substantially different from the previous definition. I will be updating the Tutorial - had a load of deadlines at work (and work to do on my server) that has delayed that. COS is also performing sub-optimally for me so I'm going through replacing it with native Ryan's spawners. I'll add the data for Altis to the Tutorial and look at other maps in the future.

Thanks for the reply. I will look at doing that with Eden. I wish someone would come up with a zombie script for Epoch like they have for Exile. Those are so much easier. All you do is edit some configs, putting in coordinates for zombies, put it in a pbo and that's it. There's no messing with the mission.sqm.

Link to comment
Share on other sites

  • 0

After I've finished on the Tutorial and finished the last couple of major to-dos on my server, I'll contact the ExileZ folks. Was going to do that anyway to see whether I could take their code for the anti-virus pills and injectors. I'll probably need some help with the porting if they accept - though the hard work's already been done by them.

Link to comment
Share on other sites

  • 0
5 minutes ago, Grahame said:

After I've finished on the Tutorial and finished the last couple of major to-dos on my server, I'll contact the ExileZ folks. Was going to do that anyway to see whether I could take their code for the anti-virus pills and injectors. I'll probably need some help with the porting if they accept - though the hard work's already been done by them.

I personally prefer this one: http://www.exilemod.com/topic/11939-deathspawn-dynamic-zombie-spawn-system/

The spawning of the zombies and their behavior seems so much better, plus they only spawn when players are within radius of the trigger, which saves considerable load on the server.

Link to comment
Share on other sites

  • 0

I'll check it out. I had been using COS but it's misbehaving since the last ARMA update. Infected just stand and stare at you... Which may be atmospheric, but not much of a challenge...

I'll probably just be using Ryan's native spawns though, replacing COS with low density spawns with one horde spawn of the same amount as COS did. I already tested in Eden and the infected did patrol around so it'll probably be more effective.

Back that up with fast spawns in refugee camps, some military bases, hospitals, etc and add a couple of wilderness hordes and I'll be good to go.:cool:

Link to comment
Share on other sites

  • 0

Using Eden, I got the zombies to spawn, but they aren't patroling. They are staying in one place until they notice the player.

*Edit* After I spread them out a bit, they are patroling for the most part.

*Edit 2* Some of the spawners I put down don't seem to be spawning anything. I'm guessing there's no debug mode to see if there's an error when the server is trying to spawn the zombies.

Link to comment
Share on other sites

  • 0

If u use Cos with 1.58 and the roaming/wandering  it might conflict with the roaming setting in the module from ryanzombies

We only use cos as means to spawn in the zeds , so no problem with standingstill unless the setting in the module

Link to comment
Share on other sites

  • 0
1 minute ago, umfufu said:

If u use Cos with 1.58 and the roaming/wandering  it might conflict with the roaming setting in the module from ryanzombies

We only use cos as means to spawn in the zeds , so no problem with standingstill unless the setting in the module

I'm not using COS. The zombies seem to wander a little better when they are spawned over a wider area. Still trying to work out issues with some of the spawners not spawning any zombies.

Link to comment
Share on other sites

  • 0

That spawning problem was for me the reason to stick with Cos , also ive had problems with the deletion module

Either no spawning else when u shot a few zombies the deletion module kicked in and in 10 seconds all the zombies gone

Or u just was out of range but no deletion ,but must say that those problems started after 1.56 even in the editor (2d and 3d)

 

 

Link to comment
Share on other sites

  • 0

Just a quick note for those using COS to spawn the infected. I don't know whether anyone else has seen the same problem that I've had on my server but, if you have, I worked out a change that works now. Basically if you encountered the infected and didn't fire (either you ran past them or drove past, or over) and they targeted you there was not a problem. However, if you fired at them before they had locked on you they would just stand there and stare at you, even if you subsequently went up and stared them down yourself.

This seems to be a problem with the COS "FiredNear" event handler and it's call to a function that deleted the infected's waypoints. So what I did is change the following lines in cospatrol.sqf:

_group setBehaviour "SAFE";
_group setSpeedMode "LIMITED";	

	_EHkilledIdx = (leader _group) addEventHandler ["FiredNear", {_this call breakPatrol_FNC;}];

to

//_group setBehaviour "SAFE";
//_group setSpeedMode "LIMITED";	
_group setBehaviour "CARELESS";
_group setSpeedMode "LIMITED";	
_group allowfleeing 0;
_group setcombatmode "RED";

//	_EHkilledIdx = (leader _group) addEventHandler ["FiredNear", {_this call breakPatrol_FNC;}];

This change means that they continue patrolling until they "lock" onto you and their behaviour is much improved. Hope this helps someone.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...