vila4480's Forum Posts

  • > I'm afraid this is not currently supported.

    Would it be possible via Javascript maybe? Thank you!

    I tried following my previous link's example, but I'm missing the bootstrap libraries required to run certain RTC functions, available at getbootstrap.com

    In other words, I don't think this would be possible at all. Thanks anyway.

  • I'm afraid this is not currently supported.

    Would it be possible via Javascript maybe? Thank you!

  • I'm not sure this helps, but it seems it is possible...

    tutorialspoint.com/webrtc/webrtc_voice_demo.htm

    Just no idea how to do it in-engine.

  • Hey guys, I'm having a hard time figuring out how to send microphone input via the multiplayer object.

    My intention is to create a rudimentary in-game voice chat.

    Is this possible at all?

    I wouldn't know where to start!

    Thanks,

    -ViLa4480

  • Thank you Ashley, it took me a while to find this option - it was hiding under the collapsed "EDITOR" section in project view. I didn't notice it was collapsed (was using the dark theme) and thus was having a hard time finding it.

    Thanks!

    -ViLa

  • Until someone comes up with an answer, I decided to go ahead and just move each and every item to the appropriate layer once the game starts.

  • Hey guys,

    Is there a way to disable WebGL in the editor?

    I'm working with lighting and I'm using the Multiply effect on a layer, which hides everything in my project while in the editor. It makes it impossible to see what I'm doing in the editor.

    Unfortunately we're not able to disable the effect while in the editor and enable it in real time when the game starts.

    I could move every asset to a new layer that has the Multiply effect when the game starts, but I was trying to keep it simple...-is there a way to disable webgl preview in the editor (like we had in C2)?

    Thanks in advance!

    -ViLa

    Tagged:

  • It looks like you are running Construct in Chrome browser. You need to use the Desktop App:

    https://www.construct.net/en/forum/construct-3/general-discussion-7/construct-nw-js-desktop-app-131317

    NWJS actions will not work in a browser.

    SOLVED!

    Thank you so much dop2000 - I honestly thought I had Construct's desktop app installed on my computer (it shows up as an app), but I didn't know that there was a specific NWjs version for this sort of thing.

    Thanks guys! :)

  • I doubt it has anything to do with CORS. Maybe NWJS has no access to the folder you are using. Try "My Documents" or something similar. Also, have you checked error messages in the console log?

    This very simple code works fine for me:

    This is what I'm getting... I have no idea what it means though...

    Thank you Ashley, I will try to learn a bit more on how to run a local webserver + C3.

    Unfortunately I'll be away from keyboard for this week, but I'll pick this up again once I come back.

    -Thanks guys I really appreciate your help!

  • I doubt it has anything to do with CORS. Maybe NWJS has no access to the folder you are using. Try "My Documents" or something similar. Also, have you checked error messages in the console log?

    This very simple code works fine for me:

    Thank you dop200 That's very useful!

    I made a very similar example code and it doesn't work for me at all. I've tried using paths with no particular user access rights and no spaces in the path. I wonder if there's something wrong with my desktop app permissions then...

    I'll have to look into this in a few hours and I'll report back.

    Thank you dop2000 and Ashley!

  • vila4480 You can access files from a fixed location on your hard drive with NWJS.ReadFile() expression. You'll have to use the Desktop app to preview your project if you need to use NWJS features.

    Thank you for your reply dop2000 - I am indeed using the desktop app and NWjs.Readfile(), but I'm getting a non-disclosed access error while in preview. I've tried exporting (which takes a long time between versions) as NWjs and it does work - but the preview mode just doesn't seem to be able to access local files at all.

    Agreeing with Ashley, I'm thinking that would likely be a CORS issue, since the preview runs under "https://preview.construct.net" instead of localhost (like construct 2 used to run).

    So my question is how should I set it up so that I can access my local files in preview mode without having to run a private server with special CORS policies set.

    I'm sorry if it feels like I'm insisting on this topic, but so far I haven't seen any answers that solve the issue of working with local files in preview - and since this wasn't an issue in Construct 2, I'm having a hard time accepting that it isn't possible in Construct 3. There's got to be a way ..right?

  • Thank you for your reply - I understand what you're saying, but what about files on my hard disk? What would be the best way to access them without using embedded project files?

    How could I build an offline standalone NWjs game with savefiles on my local hard drive, that I can edit or share with my friends?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I fear that you're both talking of different things - and to be honest, I don't think you've solved Xeeko's problem. I also think it is basically the same as my own, so let me try and clarify my issue:

    I need to use local .txt files in my projects that keep changing by other apps accessing them.

    Simply put, I need to access local .txt files that are not embedded in the project whilst in preview mode. How would you do that?

    -Would real-time importing a file to the project be a solution? How do you do that?

    I had a couple of projects in Construct 2 where I was able to load the contents of a TXT file in preview, using NWjs or AJAX.

    This was easy and functional in Construct 2 - you had several ways of importing a file and read its contents. Now because of the way Construct 3 works (especially on preview that runs on "https://preview.construct.net", instead of localhost), it seems to fire up CORS policies - and it obviously won't access any files on the "construct.net" "folder".

    I also tried exporting the project but the embedded project txt files don't show up in the export folder at all. How would I edit them with an external editor?

    Please disregard security concerns or efficiency - this is for local usage in my own computer where no one else has access to - and my disks are fast enough for what I need.

    Please help!

    Thank you for your support!

  • Wow thank you so much for your reply!

    Such a trove of information. I will look into it and see if I manage to figure it out.

    I'll look into it!

    Thank you so much YoyoEleanor - you've been helping me out a lot lately! :)

  • why not only send health information when it changes

    Hey thank you for your reply!

    Well, it is supposed to be a set of stats that change all the time... and I read Ashley say somewhere that for that kind of thing its more reasonable to sync object variables - which I can't figure out how it works.