These are chat archives for highfidelity/hifi

18th
Aug 2017
Eduardo Guzman Lau Len
@egll-tech
Aug 18 2017 01:24
@Atlante45 does this work for entities scripts or is it only for server scripts?
Clément Brisset
@Atlante45
Aug 18 2017 01:26
Works with all scripts.
Eduardo Guzman Lau Len
@egll-tech
Aug 18 2017 01:26
How can I see server scripts logs?
Clément Brisset
@Atlante45
Aug 18 2017 01:28
One of the flaws of the current system is that if you connect to update in an entity/server script but never disconnect it, that update callback will keep being called even if the entity gets deleted until the client leaves the domain/server restarts.
That's why I said that if you plan on doing that you should disconnect to avoid that issue.
In the developer menu, there's something called Entity Script Server Log or something like that.
Eduardo Guzman Lau Len
@egll-tech
Aug 18 2017 01:31
@Atlante45 thanks I can see the log now
Sachin Mahapure
@sachinmahapure
Aug 18 2017 08:20
How can I access the domain server settings field value in avatar mixer and interface client?
Clément Brisset
@Atlante45
Aug 18 2017 17:34
@sachinmahapure can you elaborate?
What specific setting? is it from C++ or from JS?
Melissa Brown
@themelissabrown
Aug 18 2017 18:02
@sachinmahapure which worklist task is this for?
Sachin Mahapure
@sachinmahapure
Aug 18 2017 18:10
@Atlante45 I added a new field for limiting avatar speed in domain server settings. Now I want to access the value set for this field in AvatarMixer and interface-client so as to ensure that the avatar’s reported position can’t be changed more than the distance specified by the speed limit.
@themelissabrown 21492
Melissa Brown
@themelissabrown
Aug 18 2017 18:11
Thanks. That one is still in the bid process though, just FYI
Sachin Mahapure
@sachinmahapure
Aug 18 2017 18:12
Yes
Melissa Brown
@themelissabrown
Aug 18 2017 18:13
thanks!
Clément Brisset
@Atlante45
Aug 18 2017 18:17
@sachinmahapure if the settings is in the right category, the DS will send it to the Avatar Mixer automatically.
You can read it from here for the Avatar Mixer:
https://github.com/highfidelity/hifi/blob/959499eab8c8da6c01aa25bbf8d46e15b5b42e24/assignment-client/src/avatars/AvatarMixer.cpp#L908
The interface should not pull that info from the DS, the Avatar mixer should send it to the connected Interfaces.
Sachin Mahapure
@sachinmahapure
Aug 18 2017 18:21
@Atlante45 Thanks!
Clément Brisset
@Atlante45
Aug 18 2017 18:21
Looking at the job though, I feel like this should be implemented like the flying restrictions.
Meaning it would be a zone property that would limit the speed only within that zone.
Sachin Mahapure
@sachinmahapure
Aug 18 2017 18:23
Should it be handled in JS?
Clément Brisset
@Atlante45
Aug 18 2017 18:24
No still in C++.
See ZoneEntityItem:
    bool getFlyingAllowed() const { return _flyingAllowed; }
    void setFlyingAllowed(bool value) { _flyingAllowed = value; }
    bool getGhostingAllowed() const { return _ghostingAllowed; }
    void setGhostingAllowed(bool value) { _ghostingAllowed = value; }
Would be interesting to get @PhilipRosedale's opinion on it.
Sachin Mahapure
@sachinmahapure
Aug 18 2017 18:29
hmm, okay
Melissa Brown
@themelissabrown
Aug 18 2017 20:11
@RoboMantis did you get the help you need to get interface running?