Originally Posted by
Ni3ls
Do I need to precache every menu? And I read somewhere about Loadmenu() but I cant find that anymore. This limit really sucks
It appears they increased this limit after 1.0.
Edit: 1.3 is also limited to 32.
Originally Posted by
RobsoN
Selbie told me there is 32 limit of newHudElem and 32 of newClientHudElem.
And why 64 menus? On 1.0:
******* script runtime error *******
Too many menus precached. Max allowed menus is 32
Also use functions in menus. It will save you a lot of time when you want to reuse menus.
http://killtube.org/showthread.php?1...in-menu-files!
Edit 2: I could try to increase the limit by changing hex values in the binary (this might cause problems)
PHP Code:
int __cdecl sub_8110EC2()
{
int v1; // eax@13
char dest; // [sp+10h] [bp-418h]@4
char s[4]; // [sp+418h] [bp-10h]@1
int i; // [sp+41Ch] [bp-Ch]@1
*(_DWORD *)s = sub_808456A(0);
for ( i = 0; i <= 31; ++i )
{
sub_809107E(i - 34, &dest, 1024);
if ( !sub_80B5620(&dest, *(_DWORD *)s) )
return sub_8060B7C("Script tried to precache the menu '%s' more than once\n", s[0]);
}
for ( i = 0; ; ++i )
{
if ( i <= 31 )
{
sub_809107E(i - 34, &dest, 1024);
if ( dest )
continue;
}
break;
}
if ( i == 32 )
{
v1 = sub_80B59CE("Too many menus precached. Max allowed menus is %i", 32);
sub_8084DB4(v1);
}
return sub_8090E6C(i - 34, *(char **)s);
}
I uploaded a hexed version to 64. (untested)
(changed 32 to 64, 31 to 63)