Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,767 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Wath is the maximum size of an array? #359675
02/19/11 00:06
02/19/11 00:06
Joined: Oct 2010
Posts: 11
Netherlands Antilles
A
aaronde Offline OP
Newbie
aaronde  Offline OP
Newbie
A

Joined: Oct 2010
Posts: 11
Netherlands Antilles
I have an array that has 309 numbers. After I created the array. the engine crashes when loading. I tried a smaller array (6 items) and it loads perfectly. Therefore the problem is with the big array.

I would like to ask then. What is the maximum size?

Re: Wath is the maximum size of an array? [Re: aaronde] #359677
02/19/11 00:13
02/19/11 00:13
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you have only!! 309 entries in your array?
maybe you acces an index which does not exist, because i had arrays with nearly 8000 entries and i got no crash
i stored a full picture in an array to recalculate it
it's much faster then read and write every time...
so you shouldn't have problems with 309 entries


Visit my site: www.masterq32.de
Re: Wath is the maximum size of an array? [Re: MasterQ32] #359678
02/19/11 00:18
02/19/11 00:18
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
array size is limited by system memory and probably with the maximum array index you can indicate.


3333333333
Re: Wath is the maximum size of an array? [Re: MasterQ32] #359679
02/19/11 00:24
02/19/11 00:24
Joined: Oct 2010
Posts: 11
Netherlands Antilles
A
aaronde Offline OP
Newbie
aaronde  Offline OP
Newbie
A

Joined: Oct 2010
Posts: 11
Netherlands Antilles
Yes you are right. I made the array smaller. (two small arrays) and it still chashes. I think the problem is with the data. The data are coordinates that are generated in sketchup and i thing the problem is with this.

1.15506440454583e-012

some of the number are like this. (should be 0)

Now i need to look for a way to correct this. There are a lot of items (the 309 where only to test it). Any one know of a way to correct it.

Skecthup (a plugin) exports a csv file.

EDIT:
After some experimenting, it results that those numbers where causing the error's. Shouldn't the engine give a syntax error for that instead of crashing?

I found an easy way to convert the number easly. I just importet the csv file to excel. Did some things there and saved it. The new csv file had all the numbers correctly written.

Last edited by aaronde; 02/19/11 01:29.
Re: Wath is the maximum size of an array? [Re: aaronde] #359734
02/19/11 08:12
02/19/11 08:12
Joined: Jun 2006
Posts: 2,640
Earth
Germanunkol Offline
Expert
Germanunkol  Offline
Expert

Joined: Jun 2006
Posts: 2,640
Earth
I often think that the engine should give an error message instead of crashing, but if the engine looked for an overflow (or in this case, alphabetical numbers in what you're trying to assign as a variable) every time you assign something, I think it would slow down the engine by a huge amount. So I think it makes sense that it doesn't check here.

Just out of interest: your taking google sketchup data and importing it into 3dgs?


~"I never let school interfere with my education"~
-Mark Twain
Re: Wath is the maximum size of an array? [Re: Germanunkol] #359805
02/19/11 17:43
02/19/11 17:43
Joined: Oct 2010
Posts: 11
Netherlands Antilles
A
aaronde Offline OP
Newbie
aaronde  Offline OP
Newbie
A

Joined: Oct 2010
Posts: 11
Netherlands Antilles
The buildings in my game are created in sketchup. And I'm using a plugin (Cloud v8) to export coordinates of points to a cvs file.
I have scaled the models so that 1cm in sketchup is 1 quant in game studio. Without scaling its 1m skechup = 1 quant


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1