Pages: 1
Author Topic: error: array index >= 32000  (33,514 Views)
Offline (Unknown gender) time-killer-games
Guest


Email
Posted on: September 13, 2013, 04:49:50 PM
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.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #1 Posted on: September 13, 2013, 06: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).
Offline (Unknown gender) ssss

Member
Joined: Jun 2013
Posts: 24
View profile
Reply #2 Posted on: September 14, 2013, 07:29:28 AM
Whats the limit of ds_list in GMS?
Offline (Unknown gender) Goombert

Developer
Joined: Jan 2013
Posts: 2,991
View profile
Reply #3 Posted on: September 14, 2013, 09:24:25 AM
There are binary buffers...

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

Which I am not finished with.
Offline (Unknown gender) TheExDeus

Developer
Joined: Apr 2008
Posts: 1,860
View profile
Reply #4 Posted on: September 14, 2013, 05: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).
Pages: 1