| 07-11-2007, 11:47 PM | #1 |
I though that a moderator might want to sticky this (or copy it in one of the already stickied threads). The following native JASS:ReloadGameCachesFromDisk() Will ONLY return true if the game is actually being played. If your viewing a replay of the game then it will return false. Can be very handy for some systems |
| 07-12-2007, 12:49 AM | #2 |
Cool, so, have you actually testing this, and what is the point of knowing if a map is being replayed or not... it doesnt really do much whatsoever. And maybe go into a little more detail about why we would want to use this... just posting a native and saying, "Hey moderaters, you might want to sticky this," is pointless. They won't sticky soemthing unless it is truly useful. Try adding some more detail on this native you have here. And plz, use LJASS tags; eg: native ReloadGameCachesFromDisk takes nothing returns boolean |
| 07-12-2007, 03:51 AM | #3 |
Go to here http://www.wc3campaigns.net/showthread.php?t=95310 My system needed it badly, but your right that it is very limited in the amount of uses it has. You can however do shit in replays that u cant when ur playing the game (hell you can make a system out of it) and vice versa You can test it yourself if you want As for what the native is supposed to do, your guess is as good as mine |
| 07-12-2007, 10:15 AM | #4 |
well it's not the best solution =\ but maybe the only... cause you might get A LOT of troubles with it. if you are using caches. |
| 07-12-2007, 11:18 AM | #5 |
It works fine with caches, as long as you use the normal cache initiator function which flushes it |
| 07-12-2007, 03:20 PM | #6 |
If this works you're my hero for the week. *gives cookies* |
| 07-12-2007, 04:18 PM | #7 |
Out of curiosity, what uses does this have? Provided it works of course. |
| 07-12-2007, 04:36 PM | #8 | |
Quote:
Agreed. It would be awesome to be able to detect if its a replay or not, you could have loads of special features. |
| 07-12-2007, 05:13 PM | #9 | |
Quote:
Having loads of data for replay only to display, and also in having anti-map hacking systems that don't break replays. |
| 07-12-2007, 05:46 PM | #10 |
This doesn't work online. It returns false always when used online. Back to square one... |
| 07-13-2007, 06:04 AM | #11 | |
Quote:
hmm, going to have to come up with something else when I get to my old place, only one freaking computer here ..... BTW is there any way to figure out if a game is being played online as a pose to lan/singleplayer, cos if there is we can combine that with ReloadGameCacheFromDisk to properly figure out if the game is being played or viewed as a replay |
