These are chat archives for highfidelity/hifi

13th
Apr 2017
Clément Brisset
@Atlante45
Apr 13 2017 00:45
For normal scripts: http://doc.qt.io/qt-5/qtscriptdebugger-manual.html
Add // #debug somewhere in the script to trigger that UI.
Don Hopkins
@SimHacker
Apr 13 2017 01:02
I got a chrome debugger on my tablet web browser! Happy happy joy joy joy!
Clément Brisset
@Atlante45
Apr 13 2017 01:02
Nice!
Don Hopkins
@SimHacker
Apr 13 2017 01:02
Started client with --remote-debugging-port=7777 and opened localhost:7777 in chrome!
Steve Manuel
@nilslice
Apr 13 2017 01:37
can the tablet in HiFi use the browser to make POST requests? can it use files / blob data captured from the world?
Steve Manuel
@nilslice
Apr 13 2017 01:42
@whyroc I would definitely be interested in working with you on this... I recently released a open source CMS that would be much better suited for this: https://ponzu-cms.org -- in fact, I just asked this room if the tablet browser can make POSTs and upload file / blob data.. if so we could make some seriously cool apps for HiFi users
Don Hopkins
@SimHacker
Apr 13 2017 06:21
Hi ho! I'm handing "mousePressOnEntity" ok in my entity script in desktop mode, but what is the handler I should use for touching it with the controller laser beam (or is there a better way for activating an object I should be handling)?
Flame Soulis
@FlameSoulis
Apr 13 2017 11:47
Regarding that #10195, I wonder why the cxx flag isn't being passed over and why it only seems to do it with Qt5.7 and up. I'll have to setup and build 5.6.1 and see if it still happens there as well
EDIT: Looks like 5.7 now requires C++11, so that may be related to the issue. http://blog.qt.io/blog/2016/06/16/qt-5-7-released/
Rob Kayson
@MrRoboman
Apr 13 2017 17:54
Can anyone tell me how to keep an entity attached when traversing domains? When I go to a new domain the object equipped in my hand is left behind and broken when I get back.
@Atlante45 ? @sethalves ? You guys are smart and know things.
Melissa Brown
@themelissabrown
Apr 13 2017 17:56
@huffman and @thoys might have info for you too
Rob Kayson
@MrRoboman
Apr 13 2017 17:57
Thanks!
Seth Alves
@sethalves
Apr 13 2017 18:35
@MrRoboman -- you can use an "avatar entity". when you call addEntity, throw an extra "true" argument on the end
this type of entity goes through the avatar-mixer (in identity packets) rather than through the entity-server
they can be used in places where you don't have the rights to rez things
but they wont act correctly if they are physical, and other people can't edit them
usually these entities would be children of your avatar, but they don't have to be (think: pets)
Rob Kayson
@MrRoboman
Apr 13 2017 18:36
hmm. it is physical its. a stick and ball toy
Seth Alves
@sethalves
Apr 13 2017 18:37
that may not work well.
Rob Kayson
@MrRoboman
Apr 13 2017 18:38
Not sure if it's necessary to maintain it when going to a new domain, but it breaks when I leave if its in my hand. is there a call back i can use to destroy it?
Seth Alves
@sethalves
Apr 13 2017 18:43
how is it broken? is it just confused about what state it's in? (thinks it's still equipped?)
Rob Kayson
@MrRoboman
Apr 13 2017 18:44
That's probably part of it. The stick also positions itself at the origin leaving the ball and string where they were frozen.
Seth Alves
@sethalves
Apr 13 2017 18:48
it's rough, because we don't really get any sort of reliable signal when we leave. in the worse case, you could just reach down and unplug your ethernet cable.
Rob Kayson
@MrRoboman
Apr 13 2017 18:57
I guess I could check in an update function if it hasn't moved for a certain amount of time and then delete it...
Thijs Wenker
@thoys
Apr 13 2017 20:44
yes, you can use TTL for the physics actions, and lifetime to delete any entity spawned from your held entity, keep them up to date while being worn for entities just set lifetime: entityProperties.age + AMOUNT_OF_SECONDS_TO_LIVE;, then re-create those when someone else wears the paddle.
@MrRoboman ^