How can I create an Ai only class working online?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Donhomerj
Recruit Womprat Killer
Posts: 12
Joined: Sun Feb 17, 2019 5:55 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

How can I create an Ai only class working online?

Post 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?
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

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

Post by AQT »

You could put this unit class on an allied team, or you could set its PointsToUnlock to an incredibly high value.
MileHighGuy
Jedi
Jedi
Posts: 1194
Joined: Fri Dec 19, 2008 7:58 pm

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

Post 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
Donhomerj
Recruit Womprat Killer
Posts: 12
Joined: Sun Feb 17, 2019 5:55 am
Projects :: No Mod project currently.
Games I'm Playing :: SWBF2
xbox live or psn: No gamertag set

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

Post 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.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

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

Post 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
User avatar
AnthonyBF2
Sith
Sith
Posts: 1254
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

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

Post 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?
Post Reply