Jump to content

A3EAI - Roaming/Vehicle AI Patrols - Discontinued


Face

Recommended Posts

  On 1/1/2017 at 2:40 PM, XTamiiX said:

Anyway to increase the active missions from 1 to 2 or 3 ? Thanks in Advance ^-^

Expand  

most sure what you mean by active missions , but you can depdo the "a3eai_config.pbo"  then in the addon folder, open file named "config.cpp"  with notepad ++. (set language to C++, a must)

Read thought the options, change to suit your needs. Take your time there is a lot of options.

Link to comment
Share on other sites

Any suggestions how to use it with A3launcher?

Does the startup parameter have to be set to -servermod=@a3eai instead of -mod=@a3eai?

I got a rented server and can only choose the mods i want to use but i cant set them to be servermod or clientmod.

Thx for ur help

Link to comment
Share on other sites

  On 1/8/2017 at 10:48 PM, Drokz said:

Any suggestions how to use it with A3launcher?

Does the startup parameter have to be set to -servermod=@a3eai instead of -mod=@a3eai?

I got a rented server and can only choose the mods i want to use but i cant set them to be servermod or clientmod.

Thx for ur help

Expand  

I use mine like this 

-Servermod=@epochhive;@A3EAI;

Link to comment
Share on other sites

  • 3 weeks later...

Hello @ All,

i use this version ( https://github.com/Cavadus/A3EAI-Continued  ) but i cant use the Cars from the AI.

And i have no option in the config.cpp to enable it?

Have i an old version or whats wrong, can anybody please help me?

Here is my config.cpp

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 1 month later...

hello All :)

i use A3EAI on my server and all works like it should.

but as soon as i get into a vehicle of the AI Patrol it despawns, is there a way to change that so the players can sell the vehicles?

dont find anything in the config files but maybe anybody know the answer :)

Just thining anything should be possible or not?^^

Link to comment
Share on other sites

This is not possible, because the Vehicles have no database "slot".

To sell a Vehicle it must have a slot (means it must be in the Database).

 

There are two ways to handle it:

1. Give the Vehicle a pseudo slot while spawning (e.g. 5000), but then the Vehicle will be written into the DB automatically after a bit of using. But if you don't have a slot limit over 5000, it will never be reloaded after a restart.

2. The Trader Script must be changed, so that also Vehicles without a slot can be sold.

But both are not really Epoch-like.

The Idea in Epoch is, that there are  xxx Vehicles that only can change the Owner, but no bypassed Vehicles.

Link to comment
Share on other sites

To stop the vehicles being deleted then you need to edit the file scripts/A3EAI_serverMonitor.sqf and change line 112 from:

_x call _fnc_purgeAndDelete;

to

//_x call _fnc_purgeAndDelete;

The vehicles can then be taken to traders (at least Black Market ones) and sold...

 

Link to comment
Share on other sites

  On 3/3/2017 at 7:04 PM, Grahame said:

To stop the vehicles being deleted then you need to edit the file scripts/A3EAI_serverMonitor.sqf and change line 112 from:

_x call _fnc_purgeAndDelete;

to

//_x call _fnc_purgeAndDelete;

The vehicles can then be taken to traders (at least Black Market ones) and sold...

 

Expand  

That all changes you made?

Link to comment
Share on other sites

  On 3/5/2017 at 9:35 AM, Drokz said:

That all changes you made?

Expand  

For this yes. The commented line checks on the time since the AI were killed and whether a player is near. If the timeout has expired and a player not near that line would have been called. When commented the vehicle will not be deleted.

However, note that the vehicle is not saved to the DB so will not persist through a restart so should be sold before that happens. 

Link to comment
Share on other sites

  • 1 month later...

Some Questions if someone has the answers that would be great (not much hair left btw)

1) How do I make the A3EAI vehicles usable by the player, saving to database or selling at traders is not required.

2) Who's or what version of A3EAI are people using!

https://github.com/82ndab-Bravo17/A3EAI

or

https://github.com/Cavadus

 

3) @Grahame

I have make the changes below, the vehicles don't delete but are unusable by the player as they delete when a player enters the vehicle

  On 3/3/2017 at 7:04 PM, Grahame said:

To stop the vehicles being deleted then you need to edit the file scripts/A3EAI_serverMonitor.sqf and change line 112 from:

_x call _fnc_purgeAndDelete;

to

//_x call _fnc_purgeAndDelete;

The vehicles can then be taken to traders (at least Black Market ones) and sold...

 

Expand  

any help would be great.

 

cheers

natoed

Link to comment
Share on other sites

  On 4/19/2017 at 9:43 PM, natoed said:

1) How do I make the A3EAI vehicles usable by the player, saving to database or selling at traders is not required.

Expand  

To make the technique available for use by players (only before restart), I commented out all the code in file @A3EAI\addons\a3eai\compile\A3EAI_utilities\A3EAI_secureVehicle.sqf.

I'm using this version.

Link to comment
Share on other sites

  On 4/19/2017 at 10:41 PM, zxbutchxz said:

To make the technique available for use by players (only before restart), I commented out all the code in file @A3EAI\addons\a3eai\compile\A3EAI_utilities\A3EAI_secureVehicle.sqf.

I'm using this version.

Expand  

Yes, I had forgotten that I had done that a while ago. Change A3EAI_secureVehicle.sqf to:

#include "\A3EAI\globaldefines.hpp"

//private ["_object"];

//_object = _this;

//_object addEventHandler ["GetIn",{
//	if (isPlayer (_this select 2)) then {
//		(_this select 2) action ["GetOut",(_this select 0)];
//		if ((_this select 0) getVariable ["vehicle_disabled",false]) then {deleteVehicle (_this select 0);};
//		diag_log "Debug: Forced player out of an AI vehicle.";
//	};
//}];

//_object setVehicleLock "LOCKEDPLAYER";
//_object enableCopilot false;
//_object enableRopeAttach false;

true

I use version 1.0.1a btw

Link to comment
Share on other sites

  • 2 months later...
  On 3/3/2017 at 7:04 PM, Grahame said:

To stop the vehicles being deleted then you need to edit the file scripts/A3EAI_serverMonitor.sqf and change line 112 from:

_x call _fnc_purgeAndDelete;

to

//_x call _fnc_purgeAndDelete;

The vehicles can then be taken to traders (at least Black Market ones) and sold...

 

Expand  

I'll try to sell the roaming ai vehicles at the Black Market traders, just throws "ERROR Attempt to sell vehiclename twice" at me.

Is there something else edit....

 

cheers

natoed

Link to comment
Share on other sites

  On 7/14/2017 at 1:19 AM, natoed said:

I'll try to sell the roaming ai vehicles at the Black Market traders, just throws "ERROR Attempt to sell vehiclename twice" at me.

Is there something else edit....

 

cheers

natoed

Expand  

I have not looked at the code, and Grahame may have more information on this. My guess is that the way the script is coded, only persistnat vehicles can be sold as this is written

 

Link to comment
Share on other sites

  • 3 weeks later...

If anyone is interested (who has not done this themselves) then here are the changed files to store crypto on the roaming AI's bodies rather than in dropped cellphones.

Replace compile/A3EAI_group_functions/A3EAI_generateLootOnDeath.sqf with:

  Reveal hidden contents

Comment lines 126-169 in scripts/A3EAI_serverMonitor.sqf:

  Reveal hidden contents

Comment line 87 in init/loadSettings.sqf:

  Reveal hidden contents

And you're done.

Link to comment
Share on other sites

  On 8/12/2017 at 12:00 AM, natoed said:

thx @Grahame

I must have another version lol my line 87 in @A3EAI\addons\a3eai\init\loadSettings.sqf

	["playerCountThreshold",10],

 

Expand  

That one's not important, more house cleaning. As long as the first file is replaced and the code indicated in the second is commented then this will work. 

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
×
×
  • Create New...