Page 1 of 1

How can I create an Ai only class working online?

Posted: Sat Feb 23, 2019 7:18 am
by Donhomerj
Hi,
as mentioned in the topic I am looking for a way to create an AI only class. I want it to work in mp, without crashing clients. Is this possible?

Re: How can I create an Ai only class working online?

Posted: Sat Feb 23, 2019 5:18 pm
by AQT
You could put this unit class on an allied team, or you could set its PointsToUnlock to an incredibly high value.

Re: How can I create an Ai only class working online?

Posted: Sat Feb 23, 2019 10:19 pm
by MileHighGuy
Create a local side that is allied to your team. they will spawn on the map and you wont be able to spawn as them. The How to is in the FAQ

Re: How can I create an Ai only class working online?

Posted: Sun Feb 24, 2019 7:48 am
by Donhomerj
Cool thank you! When I put these changes into the mission.lvl of a server only. Will clients be able to play on it without this mission.lvl file?

E.G. could I spawn ewoks on coruscant, fighting for the republic? I think it would fail, since the files for the ewoks are not loaded by the client.

Re: How can I create an Ai only class working online?

Posted: Mon Feb 25, 2019 12:55 am
by Kingpin
Try running it on a dedicated server. We've loaded changed LUAs for Mos Eisley to have instant-heal droids and what not, and if you're using stock sides, it should work online. No promises though

Re: How can I create an Ai only class working online?

Posted: Mon Feb 25, 2019 2:32 am
by AnthonyBF2
Nope. Not to toot my own horn here, but I think I have the most server-side modding experience. I can absolutely guarantee that loading new classes into a mission will definitely crash the clients - as the data isn't being loaded onto their clients.

The best thing you can do is switch around classes that are already loaded within a mission.

An example of this would be changing SetHeroClass in Jabba's Palace to gam_inf_gamorreanguard. This would allow anyone who joins, who unlocks the hero, to play as Gamorreans - because Gamorreans already exist in the host & client.

Making sense?