Jump to content


ebergner

Member Since 19 Mar 2016
Offline Last Active Dec 13 2016 09:17 PM

Topics I've Started

How to create horde with more than 50 units? (game crash)

07 May 2016 - 09:13 AM

Hi,

 

Me and my brother plus several people from russian modding community are working on a very big mod idea. It is massive and interesting project. I will leave the links at the end of this text. Without further ado, I want to ask for some help - if anyone - as I stumbled upon one problem.

 

At the moment I am working on very large combo hordes. The player would be able to combine his army and would get some advantage as a consequence. Armies would be moving in formation as opposed to default formation. The large horde of the same units would be able to change to different formations: square, tight-square, triangle, tight triangle, line, tight-line, column, tight-column, box, small box. Historically all these formations were used for different purposes. For example column formation was used for travelling armies as soldiers could move faster in this formation. Anyway, I have almost completed doing everything (I have even done a beautiful menu on the right side of the screen where player could choose formation and army would toggle straight into that formation).

 

But there is one trouble I come upon. When I try to do horde larger than 50 units, when that horde tries to attack anything - the game crashes unexpectadly. If it is 49 units it is still ok, if it is 50 or more the game crashes when that horde tries to attack.

 

Accidentally I notice that if I surround the building with that horde before pressing attack it, then horde does attack building and the game doesn't crash. More importantly, if the horde consists of ranged units, for example archers, then I can make horde of more than 50 units and the game doesn't crash when I attack. I narrowed down this problem to MeleeWeapon. Tested it with Noldor Warriors in ROTWK, or Galadrims in Edain. When those warriors use they range weapon everything works fine, when I switch to swords - game crashes when I try to attack.

 

Hmmm... One more thing. I found a really interesting line in gamedata.ini:

 

MaxCellsFindMeleeEngagementLocation = 50

 

It seemed exactly what I needed to change. As the problem I am guessing is range finder, path finder. I tried changing 50 to a larger number, but it didn't help solve the problem.

 

 

 

I would really appreciate anyones help on this matter.

 

 

Lord Varaha, NightMerry

 

----------------------------------------------------------------------------------------

 

Here is more info about our mod: 

 

https://www.dropbox....lmaril.pdf?dl=0

 

Here is some videos from before:

 

https://www.youtube....9sW6Eg3wtm1zskg