Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zeus frequencies #982

Closed
NemesisRE opened this issue Jul 29, 2015 · 10 comments
Closed

Zeus frequencies #982

NemesisRE opened this issue Jul 29, 2015 · 10 comments
Assignees
Labels
Milestone

Comments

@NemesisRE
Copy link

We have set our frequencies by defining the tf_freq_* variables

tf_freq_west = [0,7,["310","320","330","340","350","360","370","380","30.6"],0,"WEST",8,0,nil,false];
tf_freq_west_lr = [0,7,["84.4","31","32","33","34","35","36","37","38","30,6"],0,"WEST",9,0,false];
tf_freq_east = [0,7,["410","420","430","440","450","460","470","480","40.6"],0,"EAST",8,0,nil,false];
tf_freq_east_lr = [0,7,["74.4","41","42","43","44","45","46","47","48,""40.6"],0,"EAST",9,0,false];
tf_freq_guer = [0,7,["510","520","530","540","550","560","570","580","50.6"],0,"GUER",8,0,nil,false];
tf_freq_guer_lr = [0,7,["64.4","51","52","53","54","55","56","57","58","50.6"],0,"GUER",9,0,false];

and want that they are set for our forced curator too, is this possible?
If it is possible then how?

regards
NemesisRE

@NemesisRE
Copy link
Author

another problem is when we have defined the encryptionkey in this array and the curator unit doesn't use this settings, zeus is not able to communitcate with anyone via radio.

@michail-nikolaev
Copy link
Owner

Hm... Looks like Zeus not supports such logic currently....

@michail-nikolaev michail-nikolaev added this to the 0.9.9 milestone Jul 30, 2015
@michail-nikolaev
Copy link
Owner

I'll check later in more details - please ping me if no result for 1-2 days

@NemesisRE
Copy link
Author

friendly ping

@michail-nikolaev
Copy link
Owner

Oh, looks like not easy thing.... Currenty Zeus just uses frequencies settings from radios... So, you could try yo do a trick.
Use API to set freqs and code for next radios:

[TF_curator_backpack_1, "TF_curatorBackPack"]
[TF_curator_backpack_2, "TF_curatorBackPack"]
[TF_curator_backpack_3, "TF_curatorBackPack"]

@NemesisRE
Copy link
Author

I'm sure you will find a way in the future :)
Could you make a more extensive example I'm not sure if I understood the workaround correctly.

Thanks for your great work on this Mod!

regards
NemesisRE

@NemesisRE
Copy link
Author

@dedmen I saw that you pushed the development a lot, maybe you could have another look at this issue

Our Problem is that frequencies set for the factions are not set for the curator(s). Also if we don't use our frequencyset and instead using the tf_same_sw_frequencies_for_side setting the curator has it's very own.

Currently I solved it by this bullshit https://github.com/quies-in-proelium/qipTPL/blob/master/Functions/zeus/fn_tfrZeus.sqf

@dedmen dedmen modified the milestones: 1.0, 0.9.9 Nov 8, 2016
@dedmen dedmen self-assigned this Nov 8, 2016
@dedmen
Copy link
Collaborator

dedmen commented Nov 8, 2016

That really shouldn't happen :x
#Devnotes
could be that allGroups doesn't include virtual curators.
fnc_processGroupFrequencySettings add allCurators to allGroups.

@dedmen
Copy link
Collaborator

dedmen commented Nov 9, 2016

Confirmed
https://community.bistudio.com/wiki/allGroups "Does not contain groups of sideLogic" which are curator's.
Second issue... When TFAR_fnc_processGroupFrequencySettings is first called BIS_fnc_listCuratorPlayers doesn't return the curators.. for some whatever reason.. And at second call of processGroupFrequencySettings the Curators LR Radios already Initialized with his frequencies.
SW Radios are initialized later so they are solved... Lets write some crap code That checks whether curators are initialized.
Solved... Curators now get assigned Frequencies.

Now to the Real problem.. Frequencies are assigned by Side. There are West,East and Default.. Default the Frequencies of Independent side.
Curator Logics are of side "logic" which is not west nor east.. So it gets handles by the Default clause.. Meaning all Curator Logics get Independent's frequencies which is (pre 1.0) tf_freq_guer and tf_freq_guer_lr.
So All 3 Curators Radios (West,east,independent) will have only the independent frequency.

@NemesisRE your script is crappy and actually causes performance problems.. Here is an improved version https://gist.github.com/dedmen/3a9f7a23ce21d971c1a60555af04d8ec

dedmen added a commit that referenced this issue Nov 9, 2016
@dedmen
Copy link
Collaborator

dedmen commented Nov 9, 2016

It's a bit ugly but it works. Fixed in 1.0. Remember Changed API in 1.0 for default Frequencies.
Your

tf_freq_west = [0,7,["310","320","330","340","350","360","370","380","30.6"],0,"WEST",8,0,nil,false];
tf_freq_west_lr = [0,7,["84.4","31","32","33","34","35","36","37","38","30,6"],0,"WEST",9,0,false];
tf_freq_east = [0,7,["410","420","430","440","450","460","470","480","40.6"],0,"EAST",8,0,nil,false];
tf_freq_east_lr = [0,7,["74.4","41","42","43","44","45","46","47","48,""40.6"],0,"EAST",9,0,false];
tf_freq_guer = [0,7,["510","520","530","540","550","560","570","580","50.6"],0,"GUER",8,0,nil,false];
tf_freq_guer_lr = [0,7,["64.4","51","52","53","54","55","56","57","58","50.6"],0,"GUER",9,0,false];

turns into

TFAR_defaultFrequencies_sr_west = ["310","320","330","340","350","360","370","380","30.6"];
TFAR_defaultFrequencies_lr_west = ["84.4","31","32","33","34","35","36","37","38","30,6"];
TFAR_defaultFrequencies_sr_east = ["410","420","430","440","450","460","470","480","40.6"];
TFAR_defaultFrequencies_lr_east = ["74.4","41","42","43","44","45","46","47","48,""40.6"];
TFAR_defaultFrequencies_sr_independent = ["510","520","530","540","550","560","570","580","50.6"];
TFAR_defaultFrequencies_lr_independent = ["64.4","51","52","53","54","55","56","57","58","50.6"];

If you want to use these changes earlier feel free to help test us Pre-releases. 1.0-dev.139 should have the fix. For better contact to Devs see #1116

@dedmen dedmen closed this as completed Nov 9, 2016
dedmen added a commit that referenced this issue Jun 17, 2019
Former-commit-id: acf555d94af002f910e03913b7255e8eb8c25c4d [formerly 894ef3972f44ab92a463f9e87c27c7801019d6c3] [formerly d3242e01dfef282310bd6b9dc153299957760db2 [formerly 69277397ebbff1efbe91773078d7c7c2e52c6fd5]] [formerly 69214660409aee4c948d2ec7e390ad2f9dbed825 [formerly 5d671b88a8aa3abb907ead0b8ff117eb9b1fb34a] [formerly d9dfcb19cbd1acda22fa93ff2f1dfd5b4580e24f [formerly 2b6ce51f1622fd46adf254bb2f8f7e1c2a0b19e2]]]
Former-commit-id: f3c56331a20f2ffb0d8b053f1d136c0b43c1e425 [formerly a03324497092595720d1ab77b38a22c403071674] [formerly cfc947761ace1da68baea5af7e7ac6b443d9b0db [formerly b837fff35ce71db3615ca162c961833dda2fae39]]
Former-commit-id: 19efbced191341bae6cd886aed687d24bd82d001 [formerly 8aa9ea577d8c5c33abb7ed05b5fd497eaf58dbf9]
Former-commit-id: cdb960c249daaf4600f1d62ef40fb89f4748f59c
dedmen added a commit that referenced this issue Jun 17, 2019
Former-commit-id: acf555d94af002f910e03913b7255e8eb8c25c4d [formerly 894ef3972f44ab92a463f9e87c27c7801019d6c3] [formerly d3242e01dfef282310bd6b9dc153299957760db2 [formerly 69277397ebbff1efbe91773078d7c7c2e52c6fd5]] [formerly 69214660409aee4c948d2ec7e390ad2f9dbed825 [formerly 5d671b88a8aa3abb907ead0b8ff117eb9b1fb34a] [formerly d9dfcb19cbd1acda22fa93ff2f1dfd5b4580e24f [formerly 2b6ce51f1622fd46adf254bb2f8f7e1c2a0b19e2]]]
Former-commit-id: f3c56331a20f2ffb0d8b053f1d136c0b43c1e425 [formerly a03324497092595720d1ab77b38a22c403071674] [formerly cfc947761ace1da68baea5af7e7ac6b443d9b0db [formerly b837fff35ce71db3615ca162c961833dda2fae39]]
Former-commit-id: 19efbced191341bae6cd886aed687d24bd82d001 [formerly 8aa9ea577d8c5c33abb7ed05b5fd497eaf58dbf9]
Former-commit-id: cdb960c249daaf4600f1d62ef40fb89f4748f59c
Former-commit-id: c888155
dedmen added a commit that referenced this issue Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants