BF2 Editor Crash when clicking on "generatePathFinding"

Making or wanting help making your own asset? Check in here
Post Reply
THE_PR_FAN
Posts: 55
Joined: 2015-09-14 11:37

BF2 Editor Crash when clicking on "generatePathFinding"

Post by THE_PR_FAN »

Hello PR community,

It feels great to be posting again after almost 8 years. I recently got back to modding bf2 and making SP maps for it. I am making a beach assault styled map where I have everything that bf2 editor would need to generate GTS data. All the strategic areas are placed and neighboured (A few only have oneway neighbouring, especially the beach zones), All infantry and vehicle orders are placed, A combat area going anti clock-wise around the map, Vehicle and object spawners, LMG's, and a few static ambient effects "borrowed" from another mod for personal use with no collision etc. However, when I navigate to the SinglePlayer editor -> ShowAllLayers -> generatePathFinding to create GTS data, the editor crashes without an exception or a Dump file. What could be the possible reasons for the crash?

Many thanks
THE_PR_FAN
Posts: 55
Joined: 2015-09-14 11:37

Re: BF2 Editor Crash when clicking on "generatePathFinding"

Post by THE_PR_FAN »

Update: Marking this as solved, but posting the solution here in case someone stumbles upon the same crash in the future.

TLDR; The issue was spawnpoints. I had multiple spawnpoints in the water, inside bunkers, on boats, and beside LMGs. I removed all of them and tried exporting GTS Meshes, and it worked.

Long answer:

Fed up with searching on the web, I thought to strip everything on my map and start debugging. I started by cutting out StaticObjects.con, AmbientObjects.con, Triggerables.con, TriggerableTemplates.con, StrategicAreas.con, and GameplayObjects.con from the map and editor folders since the editor only gave a collision mesh warning got LMGs before crashing, so I basically suspected that anything and everything could be an issue. But the main suspect was the corrupt terrain files.

Started the editor again, put in two CP's, strategic areas, neighboured them and generated GTS data, and boom it worked. So I slowly started putting back the original files, starting from staticobjects.con, to basically putting everything back. And it only crashed when I put the original GPO file.

So the next idea was to play around with the GPOs and delete stuff. I deleted all LMGs, suspecting they might be an issue since it was also highlighted by the editor before crashing, but they weren't, since it still crashed. The next thing I tried was to delete all the spawn points on the water, but that didn't help either. So ended up deleting all the spawn points from the map, and for some reason that did work. Happy days! :D
Post Reply

Return to “PR:BF2 Community Modding”