RageO's Forum Posts

  • 4 posts
  • Hello ALL. I have a bit of a problem and I need some ideas for a solution.

    I have created a digital message board that works on a lan. Im using the socket IO/web chat for it. I have a client on a shared drive. Now everyone can run the client and connect to the socket. I am passing messages back and fourth fine. I have put in the ability to delete Items and update status. When this happens the client will send to the socket IO and it then updates all clients with the messages.

    The problem... Saving and syncing. This works perfectly if all clients start at the same time. But if a new client starts it is not displaying the same items as the rest. So deleting and updating cannot happen if it does it will delete and update the wrong thing as the index numbers of the objects is different.

    I have tried to have one special client send its contents to a newly launched client to update when it starts but the results have been poor and inconsistent.

    Save and load is not an option as each client saves locally so I cant be sure the same contents are saved and loaded.

    If I could have all of the clients load or save to the same file or place then it would be very easy.

    Is there a way to save and load to a central location ?

    Bear in mind I have exported clients as desktop node web kit.

    I would like all clients on a lan to load the same content when they start up..

    This way all deletion and appending will happen to the same indexed objects.

    Any ideas would be appreciated Im at wits end with this one. The loader I was trying to make is not really an option as this program is getting way to complex already and I just cant get it to work.

    My solution at the moment is to restart all clients when a new client starts. It makes sure everything is in sync but all old messages are lost.

    <img src="smileys/smiley18.gif" border="0" align="middle" />

  • I am working on a chat program of sorts. I am storing entries in an array. Then I will load them when the client starts.

    I have a few computers mapped to a common drive. I want to be able to save the array to a specific path such as. "h://mydata.json"

    This will be the common drive that everything is mapped to.

    When I use the download feature it downloads the file to the default browser location. I do not want to change the default browser download location to all of the computers..

    Is there a way I can specify the absolute path that the array downloads too ?

    I just want to be able to do this through the program not the browser.

  • Thanks for the replies. I solved it with touch.x and touch.y . Those are getting the layer coordinates but the mouse format you posted is very useful! I was unaware that I could specify layer number to the command!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi all,

       Im new to construct and love it so far. Ive done quite a bit of game dev in the past and C2 is just great! Ive hardly hit a snag except for this one :)

    I have a layer 5000,5000 pixels. I have enabled my window to scroll on my level around this layer. I have a 3rd layer with anchored sprites for my gui. All is working scrolling gui is in place etc.. however. I am trying to spawn an object after I drag from an element in my gui.

    It spawns fine if I dont move the window but once I move my window on the layer the object is spawning back at the original 0,0 of the layer and not within my window.

    So I am trying to spawn an Item from my gui(im dragging from and icon) to a different layer. This works but it will not spawn where once I start moving the window around. Well I had it working until I anchored the sprites and started scrolling ;)

    How do I get the object to spawn on the window coordinates instead of on the layer cords?

    Thanks and I hope that makes sense.

  • 4 posts