SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF2 Modding => Topic started by: Willkilla on March 08, 2025, 08:27:35 AM

Title: AI doesnt use ground vehicles in MP
Post by: Willkilla on March 08, 2025, 08:27:35 AM
I'm having an issue with AI not entering ground vehicles in either Lan or Internet games. They still enter the flyers, but none of the hovers, speeders, or the MTT. I wanted my map to be primarily for coop MP, so this feature is critical to me. I noticed on Geonosis and Hoth LAN/Internet the AI still enter all vehicles, it just takes a little longer than in Instant action. I went through the Geo and Hot Lua, but couldn't find anything obvious that would prevent the ai. I am really unsure what to look for, has anyone ever seen this issue? Seems like a pretty niche problem
Title: Re: AI doesnt use ground vehicles in MP
Post by: Led on March 08, 2025, 09:49:38 AM
Hard to remember the details...but I think they have to be assigned 'ownership' in either the world setting if not the LUA.
Title: Re: AI doesnt use ground vehicles in MP
Post by: Willkilla on March 08, 2025, 01:35:09 PM
Hmm I cant seem to locate any ownership assignments in the world files, it only references Teams. Could this be all in the setup_teams.lua for the level? I never mess with that because I never thought I'd need to, and sadly there doesn't seem to be examples for the stock worlds
Title: Re: AI doesnt use ground vehicles in MP
Post by: Led on March 08, 2025, 05:35:50 PM
yeah, something like the vehicle spawn needs to be assigned to the team
Title: Re: AI doesnt use ground vehicles in MP
Post by: Willkilla on March 08, 2025, 10:39:39 PM
Found the fix, had to host with a dedicated server. AI seems to have trouble with vehicles on many maps without a dedicated server
Title: Re: AI doesnt use ground vehicles in MP
Post by: Led on March 09, 2025, 08:39:34 AM
Ah, not sure why that would make a difference--are you on PC ?  Have you modded your game otherwise?

In any event, thanks for following it up with your solution.
Title: Re: AI doesnt use ground vehicles in MP
Post by: Dark_Phantom on March 11, 2025, 07:45:02 AM
Also, are your vehicles sitting too close to barriers? The AI think if any part of a vehicle exists in a barrier that it's inaccessible.  This is a common problem even in the stock game that isn't well noted.
EhPortal 1.34 © 2025, WebDev