MAX_PATCH_PLANES reached

Added by palota about 4 years ago

I can’t start map Helicopter Assault M3 (heli_m3_b3_fixed.pk3).
Error message: CM_FindPlane: MAX_PATCH_PLANES reached
It worked in ETL version 2.71rc3, but it’s broken since 2.71rc4.


Replies (6)

RE: MAX_PATCH_PLANES reached - Added by IR4T4 about 4 years ago

I’ve just downloaded the map from http://fearless-assassins.com/files/file/756-helicopter-assault-mission-3-heli-m3-b3-fixedpk3/

Map starts fine with linux 2.74 and current master of ETL.

RE: MAX_PATCH_PLANES reached - Added by Jacker about 4 years ago

Update your ETL installation, 2.71rc4 is really old and like any other software we won’t support old versions since people should just update.

RE: MAX_PATCH_PLANES reached - Added by palota about 4 years ago

Map starts fine only on Linux 32-bit. The error happens on Linux 64-bit, Windows 32-bit and Windows 64-bit.
I use version 2.74. I have written that problem is between versions 2.71rc3 and 2.71rc4, in order to be easier to find in change logs or git history.

RE: MAX_PATCH_PLANES reached - Added by Spyhawk about 4 years ago

Confirmed. Linux 32bit runs fine, 64bit errors out.

RE: MAX_PATCH_PLANES reached - Added by IR4T4 about 4 years ago

32-bit linux uses max 1748 planes on heli map. (simple print of numPlanes before the Com_Error drop).

CM_FindPlane2 -> 1746
CM_FindPlane -> 1747

CM_SignbitsForNormal() seems suspicious. Shifting bits on int explain why we have different behavior on 32 and 64 bit ...

Edit: CM_SignbitsForNormal uses left shifting which should be ok

RE: MAX_PATCH_PLANES reached - Added by IR4T4 almost 4 years ago

This should be fixed: https://github.com/etlegacy/etlegacy/commit/da2e0fd4312aa8a79f99bb2f0c8f594faf638eaa (at least heli map is starting again now)

Actually ETL creates some more planes than vanilla see #516

(1-6/6)