|
2 registered members (TipmyPip, madpower2000),
1,532
guests, and 18
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Array size limited to 500?! This cant be true.
[Re: ventilator]
#88881
09/05/06 20:22
09/05/06 20:22
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
omg this is really ugly
the real problem is that everything is pre-defined... [censored] and when this is a workaround, why shouldnt work it during "normal" initalization.
C'mon, why can't the compiler handle this?
Last edited by HeelX; 09/05/06 20:24.
|
|
|
Re: Array size limited to 500?! This cant be true.
[Re: ventilator]
#88883
09/05/06 20:51
09/05/06 20:51
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
I discovered the possibility to extract textfiles from WRS, maybe I will solve that with this method..
We use a lot of fast cutted, speedy cutscenes and it would be very ugly to load for each cutscene or cutscene chunk a seperate file out of the WRS, plus it would be slow and it would be bad for the HD. The other reason is dataprotection and security in this case, so I dont want to expect that anyone comes and destroys or corrupts my data file if it is saved externally.
So you say I can have an array like var array[2048]; and in a starter function I just have to initialize it with each item being =0 and later on I can fill and access it (read/write) without any restriction? Uhm.... where I have been, my dear... ... omg
Last edited by HeelX; 09/05/06 20:52.
|
|
|
Re: Array size limited to 500?! This cant be true.
[Re: HeelX]
#88884
09/05/06 21:21
09/05/06 21:21
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
I'm using arrays for the exactly same purpose, and I have made good experiences in loading them at runtime from an external file. If you have some free time, you could even write an editor, that is able to display and manipulate the data. I did it and it runs fine. Its a very comfortable way of having cutscenes. Besides: A good old programming rule says, that you should divide data from code. 
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Array size limited to 500?! This cant be true.
[Re: Uhrwerk]
#88887
09/06/06 07:00
09/06/06 07:00
|
Joined: Sep 2003
Posts: 9,859
FBL
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 9,859
|
I don't know why they have this limit. In any case I'd store it to a seperate file and unpack it from the resource, then read it into the array, and then delete the file. It's a bit annoying because reading directly from the resource was possible with A5 (by using the abandoned database feature in a way which was not intended  ) and isn't anymore with A6, but in your case it's probably the best way to solve this.
|
|
|
|