HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Fade Filter for 1 player

06-17-2004, 10:32 AM#1
R3N3G4D3
I've been using fade filters for quite a few things on my multiplayer map, funny how it took me so long to realize that the fade filter applies to every player, not just 1. So my question is, is there any way at all to get the fade filter to only apply to one player? Perhaps through non-gui JASS or using Advanced functions in WEU? Because if not, I will have to remove all those fade filters and that would really hurt my map. Thanks.
06-17-2004, 06:08 PM#2
Panto
Having not really ever worked with fade filters, I can't tell you authoritatively, but if you suspect that a problem might be solved with Jass, you should ask in the Trigger Haven.
06-17-2004, 06:21 PM#3
LegolasArcher
Quote:
Originally Posted by Panto
Having not really ever worked with fade filters, I can't tell you authoritatively, but if you suspect that a problem might be solved with Jass, you should ask in the Trigger Haven.

Code:
if(GetLocalPlayer() == Player([0-11])) then
  //Place GUI fade filter action here
endif

This shouldn't cause a desynch, but I'm not 100%.
06-17-2004, 10:11 PM#4
R3N3G4D3
Just tried it, desync happens every time. It drops the player to whom that filter applies to.
06-18-2004, 04:17 AM#5
R3N3G4D3
Awesome, just went through WE Unlimited Advanced functions again, and found advanced filter that is 1-player only. Didn't test if it desyncs yet, but my guess is that it doesn't otherwise thye wouldn't have put it in. The only problem is that using advanced setting will increase my map size dramatically and add a lot of stuff I don't need to it.
06-18-2004, 04:34 AM#6
The Gearhead
Create a dummy map using WEU Advanced Triggers. Make ONE trigger action in an otherwise empty trigger (no other actions, events, or conditions) and fight out what it uses. It should say something like Call Functionname(stuff here)

Then, go up to your header file and look for Function Functionname. Write down the function name and ALL functions it uses. So whenever it uses Otherfunction() or Call OtherFunction() write down that function's name. Do this over and over until you've found EVERY function that the custom fade filter requires. Use Notepad for easy use of Ctrl-F (find).
06-18-2004, 06:16 AM#7
R3N3G4D3
I already tried looking at advanced function of WE Unlimited through JASS, what they do is call function from WE Unlimited that are unavailable in normal Editor, and I assume those functions get attached to your map so it becomes playable with them later. I tried searching for a file that has those advanced functions but it seems to be hidden. Also I ran the map online and tested that indeed there are no desyncs and the filter only fades for 1 player.
06-18-2004, 12:19 PM#8
Cubasis
Renegade,

It's as simple as a Local If statement as legolasarcher showed. It works without a de-sync, you just have to do it correctly. Not all FadeFilter related functions can be run locally, and not all "need" to be run locally, I think there is only one that needs to be run locally.

I think this function was submitted to the JassVault, so you can try looking it up on wc3sear.ch's JASS database.

~Cubasis
06-18-2004, 06:43 PM#9
The Gearhead
Renegade, when you activate Advanced Triggers, it fills your map's header with all sorts of stuff that doesnt exist normally.

Those are the 'advanced functions'.
06-19-2004, 07:12 AM#10
R3N3G4D3
Awesome, thanks for the help guys. I dunno why I never thought of looking at map header, I found the function that does the fitlering in WE Unlimited after painful copy/pasting of tons of code into notepad just to be able to use the Search function, don't see why Blizzard didn't think of adding one. Anyway, I looked through the function and I see what Cubasis was talking about. This one calls several filtering functions while the normal filter just calls 1 completely different function (which I assume calls the rest automatically and probably calls something unneeded that causes desync, but that's just my theory). Anyway thanks, and I'll still mention WE Unlimited in the credits since its his function.
07-05-2004, 10:27 AM#11
dudave
Can you please post this funktion?

I need it, too and it would be greatful if you post it :D