How to make civilian armies involved in the game?

Interesting mapping tools and mapping help.

Moderator: Morax

How to make civilian armies involved in the game?

Postby Ghoustaq » 06 Jan 2018, 16:08

I added many units to the extra army named NEUTRAL_CIVILIAN including a commander,several engineers and a bunch of tanks, but they just stood there and did nothing. How to make a civilian army work as an AI player?
User avatar
Ghoustaq
Avatar-of-War
 
Posts: 65
Joined: 25 Dec 2017, 13:54
Has liked: 10 times
Been liked: 0 time
FAF User Name: Ghoustaq

Re: How to make civilian armies involved in the game?

Postby Ghoustaq » 08 Jan 2018, 18:06

does anybody care about this question? or is it impossible to realize it? :?
User avatar
Ghoustaq
Avatar-of-War
 
Posts: 65
Joined: 25 Dec 2017, 13:54
Has liked: 10 times
Been liked: 0 time
FAF User Name: Ghoustaq

Re: How to make civilian armies involved in the game?

Postby speed2 » 08 Jan 2018, 18:27

Its not impossible, just not so easy, also the that army will be neutral to all players. So depends what you want to achieve with this.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: How to make civilian armies involved in the game?

Postby Ghoustaq » 08 Jan 2018, 19:12

speed2 wrote:Its not impossible, just not so easy, also the that army will be neutral to all players. So depends what you want to achieve with this.

thank you for reply.I know that there're 8 palyers at most in a skirmish, but I want more players to take part in the game.If the civlian army could command its units to build ,to produce ,to defense and attack like an AI opponent, I think it will be funny. ;)
User avatar
Ghoustaq
Avatar-of-War
 
Posts: 65
Joined: 25 Dec 2017, 13:54
Has liked: 10 times
Been liked: 0 time
FAF User Name: Ghoustaq

Re: How to make civilian armies involved in the game?

Postby speed2 » 08 Jan 2018, 19:21

its 16 players max, + civs and stuff

But anyway putting the untis into civilian army would not help much even if it did something, since that army would still be neutral. You want to use some different army, so like ARMY_9 for 8 player map.

Another thing is how the AI works. It doesn't like prebuild bases and it won't probably work well with anything it didnt build itself.

Best solution would be to script it like the missions are.
https://wiki.faforever.com/index.php?title=Mission_Scripting
With that you can script some basic attacks or anything, the BaseManager can maintain any base you create in the editor.

I've never tried this outside of campaign missions, so I dont know what exactly it will require to get it working in the skirmish, but you can play with that and see what you can do.
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: How to make civilian armies involved in the game?

Postby Ghoustaq » 08 Jan 2018, 20:13

speed2 wrote:its 16 players max, + civs and stuff

But anyway putting the untis into civilian army would not help much even if it did something, since that army would still be neutral. You want to use some different army, so like ARMY_9 for 8 player map.

Another thing is how the AI works. It doesn't like prebuild bases and it won't probably work well with anything it didnt build itself.

Best solution would be to script it like the missions are.
https://wiki.faforever.com/index.php?title=Mission_Scripting
With that you can script some basic attacks or anything, the BaseManager can maintain any base you create in the editor.

I've never tried this outside of campaign missions, so I dont know what exactly it will require to get it working in the skirmish, but you can play with that and see what you can do.

Appreciate it! I will test it :)
User avatar
Ghoustaq
Avatar-of-War
 
Posts: 65
Joined: 25 Dec 2017, 13:54
Has liked: 10 times
Been liked: 0 time
FAF User Name: Ghoustaq


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest