goblynn93's Recent Forum Activity

  • Ok this works for me as well...

    But there are some major differences in the way the app works as well. Using the full link in my app doesn't work.

    Do the images have to be loaded On Start Of Load Up? I may possibly have 1000s of images... trying to load that many images is insane. I need to call images as-needed on the fly...

    Does this work with local images as well? I am not sure where the default 'Files' location is... there is no 'Files' folder in my Node-Webkit export folder, nor am I aware of any 'Files' folder in the C2 installation.

    Thanks for the help so far!

  • I am confused... I have to import the Test.png file into the project? At that point I'm not calling a URL I'm calling a Project File...

    I can't call images from the web and display them without knowing exactly what they are ahead of time (all cross-domain issues being considered...) ?

    URL images have to be pre-loaded into the Project File?

    I guess don't understand the purpose of "load image from URL" then...

    Or I am missing some concept...

    I placed the Test.png in the root folder of my project Win32 export folder...

    F12 does not get me a debug because I am using Node-Webkit export. Again I may be missing something but I can't seem to get F12 to do anything...

  • How do I add an image to my app after it has already been exported as a Node-Webkit? I cannot add these images as Project Files but I still need to load and show them.

    I need to deliver an app to my client and they want to be able to add more images to the app in the future.

    This leaves me stuck, forced to update their app for them anytime they want to add more pictures unless I can figure out a way to do this.

    I have a CSV with all the image names and I can manage the data with an array. After that I need to be able to call the images from the stored names in the array.

    I have no idea how many pictures will be added or what they will be called.

    Where should l look to try and build a solution for this?

    Below is my original post

    ****************************

    I can load an image from a URL/URI but how do I display it?

    I have followed this tutorial: https://www.scirra.com/tutorials/541/ho ... from-files

    And made this tiny app:

    https://drive.google.com/file/d/0B1xzGDQ6NDI-TElEcTZWRHVmMlk/edit?usp=sharing

    But I can't figure out how to show the image after its been loaded.

    The Manual says that:

    Load an image from a given URL. The current animation frame will be replaced with the image. It is not shown until the image has finished downloading, and On image URL loaded triggers.

    and:

    On image URL loaded

    Triggered when Load image from URL finishes downloading the image and is ready to display it.

    My Sprite has only 1 animation frame... so when its complete and ready to display how do I tell the Sprite to show the image? Or what do I tell to show the image?

    Does anything change then using Node-Webkit?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I wanted to avoid using anything that specifically wrote files because of how long this app is going to be running. I don't know if the clipboard uses a drive based cache or not. This app will potentially run 24/7 for ... years? Not sure what they will do with it once I hand it off. If I can keep these messages from stressing the hard drive more than just normal operation that would be ideal. I am still working on the websocket solution as this would give me incredible flexibility to do all kinds of interfacing and communication with lots of stuff outside of C2 and my apps. The use of the clipboard is a great temporary fix for this, and will likely get me through my demo with flying colors, but getting the websocket working is really the ideal situation.

  • Thank you for the response! This is exactly the info I needed. I actually have a node.js expert working on the communication side of the app now and I am focused on the interface. I am good at the interface... not so much the more complex behind the scenes stuff! I didn't even know node.js existed until a few days ago and I don't know JavaScript at all so bringing in another brain who knows this stuff is a good thing I think.

    I did get this working through the Node-Webkit Clipboard and as this app is running on a very controlled situation with no real user I can get away with it. For this app its ok but I plan to make more that have multiple interfaces running at the same time so I need to learn better ways to do this. So I am hoping to learn a bit from my friend the node.js coder and see what he comes up with.

  • Interesting... good to know for the future! For the project I am on I am only trying to send a trigger message which can delay even up to a full 1 second and the user experience won't suffer. Thanks for giving me something new to look into after this project is complete! (if it ever completes... ugh)

  • I am running two NW.exe one called ColorPage.exe and one called ButtonPage.exe

    Using a suggestion from R0J0hound I have managed to get this to work using the Clipboard.

    You may be correct in that the websocket/socket.io/node.js issues I am having are because I am running two NW apps at the same time but I have a node.js programmer working with me now to figure that all out.

  • R0J0hound you're a lifesaver... thank you so much for giving me a totally different view and solution to this issue! Clipboard never even crossed my mind. And its so simple!

    When I am done with my project I am going to have to write something about using Construct 2 for creating non-game applications (I am building an interactive Kiosk and (semi?)permanent display installation) and I will be sure to credit you with showing me this for quick/easy passing of data.

  • I have avoided writing/reading files because this system will be running 24 hours a day/7 days a week for possibly years... I would like to not put that kind of read/write on the hard drive.

    Using the clipboard is a very interesting idea that I had not thought of... The clipboard is not going to be in use on this machine at all. The final build is a highly restricted use Kiosk so monopolizing the clipboard is not an issue.

    Thanks for the great idea I am going to look into this immediately.

  • I have two apps both running on the same Windows computer, both Node-Webkkit exports.

    How do I send a simple message from one to the other? A text string "1234" for example...

    Press a button in App1 and it sends "1234" to App2. App2 reads that and sets its MessageVariable to the incoming message...

    Not hard right?

    Yet I can't seem to do it...

    Help! I have less than a week left to get this working!

  • Set

    visibility to int(WebSocket.MessageText)

    Let me know how it goes.

    Still not working.

    If I knew anything at all about JavaScript and/or node.js this would be a lot easier... Maybe I am just missing something and this whole thing is a lot simpler than I've made it but it seems like passing a couple numbers between two apps is really really complicated.

  • I updated the links. Sorry about that...

    I will try your suggestion and see how it goes.

goblynn93's avatar

goblynn93

Member since 8 Apr, 2013

None one is following goblynn93 yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies