ENIGMA Forums

Outsourcing saves money => Programming Help => Topic started by: time-killer-games on September 13, 2013, 11:49:50 AM

Title: error: array index >= 32000
Post by: time-killer-games on September 13, 2013, 11:49:50 AM
Is there an easy alternative to using arrays, ie. a gml function, extension or anything that would work just like arrays but isn't limited to a maximum index? This to me is a huge problem because I can't have precise 3d collisions without using arrays or at least something of an equivalent to replace arrays with, because the model I'm loading has more than 32000 vertices (each stored in the array index), which throws the error.

Thanks.
Title: Re: error: array index >= 32000
Post by: TheExDeus on September 13, 2013, 01:30:38 PM
You mean GM or ENIGMA? Because I don't think we have this array limit in ENIGMA. If you need more then datastructures should do. I don't think there is hard limit for ds in both GM or ENIGMA. So for a simple array a grid should do and you should be able to load until ram is full (for 32bit app this means until you use up 2gb).
Title: Re: error: array index >= 32000
Post by: ssss on September 14, 2013, 02:29:28 AM
Whats the limit of ds_list in GMS?
Title: Re: error: array index >= 32000
Post by: Goombert on September 14, 2013, 04:24:25 AM
There are binary buffers...

http://enigma-dev.org/docs/Wiki/Buffer_Functions

Which I am not finished with.
Title: Re: error: array index >= 32000
Post by: TheExDeus on September 14, 2013, 12:54:51 PM
I think none of the data structures have hard limits in GM. It can be as big as your ram allows (see my previous post).