An array is the same like creating another variable, so 4 arrays means 4 variables, and that would waste memory. While you can use gamecache for it, it's more efficient & saves memory.
Do you actually know what arrays are? >_>,
[Cache] Any Particular Reason?
Moderator: Cheaters
-
- Member
- Posts: 63
- Joined: December 22nd, 2010, 7:37 am
- Title: Administrator
- Location: Middle East
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: [Cache] Any Particular Reason?
yep ik what arrays are.....but ur confusing me >.> theres only one array.........why would u make 4...u just need to put other numbers in the brackets
and i know nothing about leaks and memory and stuff so i have no idea what ur saying when u say its more efficient >.>
and i know nothing about leaks and memory and stuff so i have no idea what ur saying when u say its more efficient >.>
-
- Member
- Posts: 63
- Joined: December 22nd, 2010, 7:37 am
- Title: Administrator
- Location: Middle East
Re: [Cache] Any Particular Reason?
If you put another number on the bracket, it's creating another variable.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: [Cache] Any Particular Reason?
oh xP nice to know :DDD
neway......about undead's activation method....assuming it works (didnt test or anything), doesnt that mean the keybindings shold carry over from game to game too?
dont see a line that clears the cache so why doesnt it work?
neway......about undead's activation method....assuming it works (didnt test or anything), doesnt that mean the keybindings shold carry over from game to game too?
dont see a line that clears the cache so why doesnt it work?
-
- Member
- Posts: 63
- Joined: December 22nd, 2010, 7:37 am
- Title: Administrator
- Location: Middle East
Re: [Cache] Any Particular Reason?
It could but I think it wont because you only declare a global variable gamecache, not so sure about that. But I think it will when you actually make a gamecache in the game (World Editor).
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: [Cache] Any Particular Reason?
erm...undead doesnt
and his thing works
w.o world editor
(and shouldnt world editor trigger editing be the same as .j editing? O.o...well except GUI to JASS)
and his thing works
w.o world editor
(and shouldnt world editor trigger editing be the same as .j editing? O.o...well except GUI to JASS)
-
- Member
- Posts: 63
- Joined: December 22nd, 2010, 7:37 am
- Title: Administrator
- Location: Middle East
Re: [Cache] Any Particular Reason?
Game caches don't work in multiplayer, but you can store and retrieve values from gamecaches in multiplayer without problems or issues. However, they aren't saved to the computer in multiplayer. So you can't transfer data from one map to another (Or from one game to another). If Blizzard made them saveable to the computer in multiplayer, that would open the doors for some simple load/save systems. And, about Undead's code, I don't completely understand it because she only showed a part of her code. It's the same for a name activator thou (i think), It might be checking "CACHE" if there's a string "hurr" in it, and then proceed to the functions in the if-statement.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: [Cache] Any Particular Reason?
huh o.o that cant be right....
i tested if the keybindings cross over games in single player (i was only one, i hacked booty bay) but i played on lan....so eh idk
and i dl'd the entire map and looked at the .j file
theres no other mention of "hurr", which was the category
label being the username and true being the necessary stored value to activate
so it looks in gamecache CACHE in category hurr with label ign and value true
i tested if the keybindings cross over games in single player (i was only one, i hacked booty bay) but i played on lan....so eh idk
and i dl'd the entire map and looked at the .j file
theres no other mention of "hurr", which was the category
label being the username and true being the necessary stored value to activate
so it looks in gamecache CACHE in category hurr with label ign and value true
-
- Member
- Posts: 63
- Joined: December 22nd, 2010, 7:37 am
- Title: Administrator
- Location: Middle East
Re: [Cache] Any Particular Reason?
I'm not that sure about Undead's code, but you don't get the gamecaches part.
-
- Forum Spammer
- Posts: 610
- Joined: March 30th, 2009, 9:02 pm
Re: [Cache] Any Particular Reason?
pretty sure i do xP
btw...... category/label was from gui
if u want the jass names its missionkey and key >.>
btw...... category/label was from gui
if u want the jass names its missionkey and key >.>