| 04-04-2005, 02:59 AM | #1 |
Hey, well I'm having problems with large variable arrays (nothing works). Anyways I was wondering if theres any way around this. Like using game cache instead of variables. Also I read a bit on something called vector that will fix the problem but I don't really understand it. Right now I'm using 6 variable arrays at 8000, 4 at 2000, and some other stuff. |
| 04-04-2005, 04:29 AM | #2 | |
Quote:
large arrays shouldn't cause problems, are you sure its the fact taht you use large arrays? are you certain there are no logical errors the prevent things from working correctly? and i'm not sure why vectors would help you... and what sense of vector? like a vector is an array... or a vector is a scalar with direction |
| 04-04-2005, 05:18 AM | #3 |
1. I've tested it and for some reason large variable arrays mess the game up and dont get any triggers work. Don't ask me why it just does. 2. I don't really know anything about vectors. I was just asking if it would help me with my problem. BTW Vector is not a direction its a JASS script to help with some variable array problem. 3. Have any ideas how to fix this? Maybe use game cache or something. Edit: Oh and I'll test using game cache tomorrow. It's to late tonight. |
| 04-04-2005, 05:33 AM | #4 |
Guest | Why would you need array of huge numbers like 8000??! Game cache is just used for storing information that is loaded into the next mission map, so i doubt that would help. I beleive that Game Cache can only be used is SP too... |
| 04-04-2005, 05:33 AM | #5 |
Guest | Strings can go up to 255 characters. But arrays are almost unlimited (I think) |
| 04-04-2005, 05:40 AM | #6 |
arrays might use 16 bits which is still 65536 slots never heard of this 'vector' script, can't see why its named vector either and raichu, gamecaches can be used online, just not saved, and they can help act as variable storage such as saving "var_somethingarray" + I2S(number) in the game cache, then u can load it the same way, along with anything else not only arrays |
