| 04-30-2008, 06:47 PM | #1 |
Is this possible? JASS:MyArray['A001'] = blahblahblah |
| 04-30-2008, 07:03 PM | #2 |
not really due the numbers you get through converting are too high for normal arrays. However you can make something like: MyArray['Xxxx'-'X000'] = ... |
| 04-30-2008, 07:16 PM | #3 |
You would need to downsize the unit id integer to an array indexing level; it has been played with in the past. Though as a resource it's very limited, it may find a niche in highly specific applications. |
| 04-30-2008, 07:59 PM | #4 |
I guess it's not a very good idea. (After looking through the pages of the link dusk linked me) |
| 04-30-2008, 10:16 PM | #5 |
You would have to use hashing if you want to store them inside an array, the index's are too large. Although you can copy what HSAS does and just reduce the index's by 'aaaa' and use the new extended array limits in JassNewGen |
| 04-30-2008, 10:25 PM | #6 | |
Quote:
Something tells me that, even if vex allowed extended arrays with a billion elements, people might not appreciate using a gig of ram to play the map. A hash table is the way to go, because the range is very large. Go copy ABC or HAIL, replace the handles arguments with integer arguments, and cut out the H2I calls. Alternatively, use game cache and I2S. |
