HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Game caches on BNet?

01-09-2007, 11:41 PM#1
ixmike88
I tried to make/use a game cache, it worked on single player perfectly, but on BNet it doesn't work at all, I was searching through the forum about this, it was touched on a little bit but I didn't understand it =(.
01-09-2007, 11:44 PM#2
wyrmlord
It's not working multiplayer because in each trigger you're creating a new gamecahce. Just use 1 variable for the gamecache and don't modify it and you should be fine.
01-10-2007, 12:01 AM#3
ixmike88
I changed it to:

Loading:

Trigger:
Actions
Game Cache - Create a game cache from WALK.w3v
Set CamCache = (Last created game cache)
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Set ZoomStringCache[(Integer A)] = (Load (Name of (Player((Integer A)))) of settings from CamCache)
Set NameCaches[(Integer A)] = (Load ((Name of (Player((Integer A)))) + -) of settings from CamCache)
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Collapse For each (Integer B) from 1 to 12, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
NameCaches[(Integer A)] Equal to ###
Collapse Then - Actions
Do nothing
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
NameCaches[(Integer A)] Equal to (Name of (Player((Integer B))))
Collapse Then - Actions
Camera - Set (Triggering player)'s camera Distance to target to (Real(ZoomStringCache[(Integer A)])) over 0.00 seconds
Set Cameras[(Player number of (Player((Integer A))))] = (Real(ZoomStringCache[(Integer A)]))
Set AoA[(Player number of (Player((Integer B))))] = (Angle of attack of Camera 002 <gen>)
Set FZ[(Player number of (Player((Integer B))))] = (Far Z of Camera 002 <gen>)
Set FoV[(Player number of (Player((Integer B))))] = (Field of view of Camera 002 <gen>)
Set HO[(Player number of (Player((Integer B))))] = (Height Offset of Camera 002 <gen>)
Set Roll[(Player number of (Player((Integer B))))] = (Roll of Camera 002 <gen>)
Set Rotation[(Player number of (Player((Integer B))))] = (Rotation of Camera 002 <gen>)
Set HasLockedCam[(Player number of (Player((Integer A))))] = True
Collapse Else - Actions
Do nothing

and Save:

Trigger:
Set ZoomView = (Integer((Substring((Entered chat string), 12, 15))))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Length of (Entered chat string)) Not equal to 15
Collapse Then - Actions
Game - Display to (Player group((Triggering player))) the text: |CFFFF0303Invalid Z...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
ZoomView Less than 1000
Collapse Then - Actions
Game - Display to (Player group((Triggering player))) the text: |CFFFF0303Invalid Z...
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
ZoomView Greater than 9999
Collapse Then - Actions
Game - Display to (Player group((Triggering player))) the text: |CFFFF0303Invalid Z...
Collapse Else - Actions
Game Cache - Store (Substring((Entered chat string), 12, 15)) as (Name of (Triggering player)) of settings in CamCache
Game Cache - Store (Name of (Triggering player)) as ((Name of (Triggering player)) + -) of settings in CamCache
Game Cache - Save CamCache
Camera - Set (Triggering player)'s camera Distance to target to (Real(ZoomView)) over 0.00 seconds
Set Cameras[(Player number of (Triggering player))] = (Real(ZoomView))
Set AoA[(Player number of (Triggering player))] = (Angle of attack of Camera 002 <gen>)
Set FZ[(Player number of (Triggering player))] = (Far Z of Camera 002 <gen>)
Set FoV[(Player number of (Triggering player))] = (Field of view of Camera 002 <gen>)
Set HO[(Player number of (Triggering player))] = (Height Offset of Camera 002 <gen>)
Set Roll[(Player number of (Triggering player))] = (Roll of Camera 002 <gen>)
Set Rotation[(Player number of (Triggering player))] = (Rotation of Camera 002 <gen>)
Game - Display to (Player group((Triggering player))) the text: (Zoom information has been successfully saved under the player name + (Name of (Triggering player)))

and still no luck =|
01-10-2007, 12:38 AM#4
wyrmlord
Just to clarify things, you cannot save a gamecache in a multiplayer game, you can however save things to a gamecache, but once the game ends that data is lost from what I know.
01-10-2007, 01:04 AM#5
ixmike88
So the idea of trying to save integers from one game to another a lost cause?
01-10-2007, 01:10 AM#6
wyrmlord
Pretty much.