Custom Heroes Crash only in MP

Started by vonfrank, May 09, 2024, 09:37:43 PM

Previous topic - Next topic
Creating a separate topic for a secondary issue I brought up in this thread a few months ago:

https://www.swbfgamers.com/index.php?topic=14888.0

I've created new heroes by copying assets from BF2 and modifying the stock SIDES and MISSION.lvl to load them in each level.

LEVEL CIS REP IMP ALL

Bespin Platforms Dooku Windu Boba Han
Bespin Cloud City Griev Obiwan Vader Luke
Endor - - Palp Luke
Geonosis Dooku Windu - -
Hoth - - Vader Luke
Kamino Griev Obiwan - -
Kashyyyk Islands Dooku Obiwan Vader Han
Kashyyyk Docks Griev Windu Vader Yoda
Naboo Plains Maul Obiwan Palp Yoda
Naboo Theed Maul Obiwan Palp Yoda
Rhen Var Harbor Griev Windu Boba Yoda
Rhen Var Citadel Maul Anakin Boba Yoda
Tatooine Dune Sea Dooku Anakin Palp Luke
Tatooine Mos Eisley Maul Anakin Boba Han
Tatooine Jabbas Palace Dooku Anakin Boba Luke
Yavin 4 Temple Griev Anakin Vader Han
Yavin 4 Arena Maul Windu Palp Han

It works perfectly fine in SP, but an MP game crashes as soon as one of the new heroes spawn in. The MP maps work fine if Heroes are turned off, and maps with only the stock game heroes also work fine in MP. So the issue lies somewhere with the new custom heroes and only specifically in an MP game.

Does anyone have any idea why MP would crash but SP doesn't? Is there any way for me to get a useful error log to post here?

Any help would be appreciated.

Thanks! :)

Sounds like a client/host mismatch. If you have heroes in your script that aren't present in the scripts of other players in the match, it'll crash.
In Progress:

--SWBFEA Demakes
--Star Wars: Battlefront - Anniversary Edition Update 1.3

Completed:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Phantom Menace Celebration Maps

Quote from: Giftheck on May 10, 2024, 01:36:04 AMSounds like a client/host mismatch. If you have heroes in your script that aren't present in the scripts of other players in the match, it'll crash.

Unfortunately, it's not that simple. For 2 reasons.

1: The person I've tested this with has a literal copy-pasted mod install to my own. It is 100% identical.

2: It crashes my own client even when hosting an MP match with no one else but myself present. So it can't be due to a mismatch since I'm the only player in those tests.

Sounds like a memory issue with the specific hero you're using.

MP has much more stringent limits than SP to better facilitate online play.  It leaves a lot of maps by someone like Sereja without an immediate solution for online play.

You'll have to either swap out or rebuild the hero so that it is compatible.  It looks to me that it is probably a mesh or animation issue because it waits until they spawn into the game to crash.  What exactly that would entail to fix, I'm not sure.  There are minute differences in the BF2 skins that do cause issues in BF1 I believe but in SP the game usually compensates for them.
The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

Also, there are some BF2 units like the ones with animated dreads that are not supported in SWBF1.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Dark_Phantom on May 11, 2024, 08:27:16 AMSounds like a memory issue with the specific hero you're using.

MP has much more stringent limits than SP to better facilitate online play.  It leaves a lot of maps by someone like Sereja without an immediate solution for online play.

You'll have to either swap out or rebuild the hero so that it is compatible.  It looks to me that it is probably a mesh or animation issue because it waits until they spawn into the game to crash.  What exactly that would entail to fix, I'm not sure.  There are minute differences in the BF2 skins that do cause issues in BF1 I believe but in SP the game usually compensates for them.

I figured it was something like this...

Any ya, that sounds difficult to specifically narrow down and fix. It would likely require somehow determining the specific file causing the crash. I guess there's no console or error logger to figure this out?

Quote from: vonfrank on May 11, 2024, 03:36:07 PMI figured it was something like this...

Any ya, that sounds difficult to specifically narrow down and fix. It would likely require somehow determining the specific file causing the crash. I guess there's no console or error logger to figure this out?


Unfortuntately not for multiplayer.
In Progress:

--SWBFEA Demakes
--Star Wars: Battlefront - Anniversary Edition Update 1.3

Completed:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Phantom Menace Celebration Maps

The standard approach is to make only one change at a time to isolate the issue.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet