| 06-30-2014, 10:09 PM | #1 |
Hi, i want to extract game cache files, and after i used cache converter on campaigs.w3v i get a slk file but the only what i contains in text is: ID;PWXL;N;E B;Y0;X8;D0 0 -1 7 E Is there anything else to do, to decode or decrypt the gamecache and savefiles?? |
| 07-01-2014, 06:12 AM | #2 |
i could reproduce the error by using War3 Cache Converter 1.0.0.1 from PitzerMike. it seems to me, like you didnt setup game cache (correctly) in your maps triggers. how did you trigger game cache, can you provide some code? EDIT: here's an example of how i initialize & use gamecache for later conversion of "...\Warcraft III\save\Profile1\Campaigns.w3v" with Mike's tool: Trigger: Initialization![]() ConditionsTrigger: Usage![]() Conditions![]() Actions![]() ![]() Set _i_gc = (_i_gc + 1)![]() ![]() -------- NFO: "_i_gc" = global integer variable "_i_gc" --------![]() ![]() Game Cache - Store (String((Y of (Position of (Entering unit))))) as (String(_i_gc)) of Category:PositionY in _GC![]() ![]() Game Cache - Save _GC![]() ![]() Game - Display to (All players) for 3.00 seconds the text: updated game cache |
| 07-01-2014, 07:26 PM | #3 |
Dont know what you mean, i used the triggers for me map: -Create cache for file Map.w3v -Save cache: last created cache Also im using the default campaings.w3v file... |
| 07-02-2014, 05:50 AM | #4 | |||||||||||||||
i dont have to ask whether you even stored data into the game cache, do i? heres another - even smaller - example which works flawlessly for me: Trigger: Melee Initialization
![]() Conditions
![]() Actions
![]() ![]() Wait 1.00 seconds
![]() ![]() Visibility - Disable fog of war
![]() ![]() Visibility - Disable black mask
![]() ![]() Game Cache - Create a game cache from MapName.w3v
![]() ![]() Game Cache - Store "value: this is a the actual value (here: value type = string)" as label: this is the value's description (always string) of category: this is the value's group (always string) in (Last created game cache)
![]() ![]() Game Cache - Save (Last created game cache)output.slk:
Campaigns.w3v (binary file!):
Warcraft III recorded game D å Ý PX3W « Ë/vJ ï^-xìM! tç¸qãÄ#è*6@2n/Wº¸54í¢?y}ù&!ÄTëáO:mçµ÷m¦IûX$lbC+ºL¤£ÏaF·aI£]ô±ïGux'÷¥ø*¤¢ lýò¡Û_Jh*f5¨8£¾ÙP$ùn¸üâißõ¸A`þÀ ÿÿ |
| 07-02-2014, 08:27 PM | #5 |
Now when i addd data to the game caches and save it again, it become unreadable by the cache converted: "This is not a valid input file"... |
| 07-03-2014, 09:41 PM | #6 | |
so, my examples above from post #4 & #2 dont work for you? Quote:
please show code where you experience described behaviour. also note, that game cache only works for single player as far as i know, but perhaps im confusing game cache with sth else right now... |
| 07-03-2014, 10:13 PM | #7 |
Ok, i have uploaded the picture about how looks my triggers for the game cache, tell me if anything is wrong... |
| 07-05-2014, 02:23 PM | #8 |
finally something we can contribute to! however, keep in mind, that you dont need a screenshot for showing code, you can just right click your triggers in the trigger editor in world editor & "Copy As Text". then in your post, you can click the TRIGGER icon & paste your code. it is somewhat hidden, but heres a link to an example from the wc3c FAQ for usage of TRIGGER tags. you provided 2 triggers: "win" & "start". comparing the code of those triggers i assume that trigger "win" from map A runs first. this trigger will then load the map where trigger "start" runs at map init. my advice for trigger "win": - use a normal game cache name without backslash (perhaps it also works with it, but i never tested) - dont store an empty unit to the game cache like it seems from your provided code, instead use the actual entered unit Trigger: win![]() Conditionsmy advice for trigger "start": to be honest, i never worked with this function: Trigger: Game Cache - Reload all game cache data from disk JASS:// Creates a new or reads in an existing game cache file stored // in the current campaign profile dir // native ReloadGameCachesFromDisk takes nothing returns boolean also ap0calypse just uses this function as a boolean: http://www.hiveworkshop.com/forums/w...system-232530/ so, unless you have some reasons for using this function, i would remove it. it seems to me, that you want to use this function to init a new game cache so that you can restore a unit from it through the next function: Trigger: Game Cache - Restore Unit of Units from (Last created game cache) for Player 1 (Red) at (Center of Region 001 <gen>) facing 0.00so, assuming that the reload func does nothing else than returning true or false, your unit restore func will never work. also, after you created your game cache, you clear it. that way you also can't receive anything from it. Trigger: start![]() Conditions![]() Actions![]() ![]() Wait 1.00 seconds![]() ![]() Game Cache - Create a game cache from win.w3v![]() ![]() Set GameCache = (Last created game cache)![]() ![]() Game Cache - Restore Unit of Units from GameCache for Player 1 (Red) at (Center of Region 001 <gen>) facing 0.00![]() ![]() Game - Display to (All players) the text: Hi you welcome!!!![]() ![]() Set Unit = (Last restored unit)i didnt tested this, but it should work. otherwise please report. if i find enough time, i will test it on my notebook later. edit: and to be save, delete your "Campaigns.w3v" if it already got corrupted. |
| 07-11-2014, 07:37 PM | #9 |
Yes, very weird, that you need to create game cache file always to be able to reload values from it, but going back to question, can you tell me how to proper extract the game cache files and able to edit slk, also can you show me how a slk looks, becuase as i said you only get that weird: ID;PWXL;N;E B;Y0;X8;D0 0 -1 7 E |
| 07-15-2014, 11:12 AM | #10 | ||
Quote:
Quote:
updated post #4 by adding a link to the W3V file specifications, adding binary content of appropriate W3V & changing the visual appearance of the content from the SLK from CODE tags to TABLE tags. edit: oh, and because i dont know what you still are doing wrong: SLK files apparently are opened with Microsoft Excel (or for example with the freeware OpenOffice if you dont have Excel). |
