[Cache] Any Particular Reason?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

X3n0nX
Member
Posts: 63
Joined: December 22nd, 2010, 7:37 am
Title: Administrator
Location: Middle East

Re: [Cache] Any Particular Reason?

Post by X3n0nX »

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? >_>,
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: [Cache] Any Particular Reason?

Post by naturesfury »

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 >.>
X3n0nX
Member
Posts: 63
Joined: December 22nd, 2010, 7:37 am
Title: Administrator
Location: Middle East

Re: [Cache] Any Particular Reason?

Post by X3n0nX »

If you put another number on the bracket, it's creating another variable.
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: [Cache] Any Particular Reason?

Post by naturesfury »

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?
X3n0nX
Member
Posts: 63
Joined: December 22nd, 2010, 7:37 am
Title: Administrator
Location: Middle East

Re: [Cache] Any Particular Reason?

Post by X3n0nX »

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).
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: [Cache] Any Particular Reason?

Post by naturesfury »

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)
X3n0nX
Member
Posts: 63
Joined: December 22nd, 2010, 7:37 am
Title: Administrator
Location: Middle East

Re: [Cache] Any Particular Reason?

Post by X3n0nX »

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.
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: [Cache] Any Particular Reason?

Post by naturesfury »

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
X3n0nX
Member
Posts: 63
Joined: December 22nd, 2010, 7:37 am
Title: Administrator
Location: Middle East

Re: [Cache] Any Particular Reason?

Post by X3n0nX »

I'm not that sure about Undead's code, but you don't get the gamecaches part.
Image
naturesfury
Forum Spammer
Posts: 610
Joined: March 30th, 2009, 9:02 pm

Re: [Cache] Any Particular Reason?

Post by naturesfury »

pretty sure i do xP
btw...... category/label was from gui
if u want the jass names its missionkey and key >.>