In the source code all object loading and creation functions call the function ConfirmNewObject in CommonC.cpp. MAXIMUMVALUE is defined as 22000000 in CRuntimeErrors.h.
DARKSDK_DLL bool ConfirmNewObject( int iID )
{
if ( iID < 1 || iID > MAXIMUMVALUE )
{
RunTimeError ( RUNTIMEERROR_B3DMODELNUMBERILLEGAL );
return false;
}
if ( iID < g_iObjectListCount )
{
if ( g_ObjectList [ iID ] )
{
if ( g_ObjectList [ iID ]->pFrame )
{
RunTimeError ( RUNTIMEERROR_B3DMODELALREADYEXISTS );
return false;
}
}
}
return true;
}
Too confirm this run this snippet, then change the constant to 22000001 to see what happens.
#constant objID 22000000
sync on
sync rate 60
backdrop on
color backdrop 0
autocam off
position camera 0, 0, -50
make object cube objID, 20
do
yrotate object objID, wrapvalue(object angle y(objID)+1)
sync
loop
Quote: "I don't know if there's an official limit, but in most cases your PC will probably max out before you reach it."