jhjconstruct's Forum Posts

  • How do you directly email or pm a contributor on the forums? It appears the pm option was disconnected sometime ago, but what about the email option?

  • I appreciate the information and suggestion, oosyrag. Using my computer from home is not an option. The preferable option will be to ID a low cost provider, deploy the beta, and then scale up as necessary.

    Again, thank you. Your earlier insight bridged an information gap I wasn't even aware existed.

  • I appreciate the clarification. What gamer server would you recommend, oosyrag? Couple of other thoughts:

    1. Our app does not use a lot of bandwidth, in fact it's quite minimal.

    2. It would be good to keep initial costs down for the initial roll-out and then scale up as needed.

    3. I've heard about the use of virtual browsers - your thoughts?

    Is there anything I should ask you, that I am not?

  • I'm running through the multiplayer discussions and I keep reading the following statement:

    "open a tab on your server"

    How does one do that?

    Currently, I use Hostgator. I have my C2 app loaded to it and folks can access it through a website - it's not an app that folks download (for security purposes). I want the server to be the host and the players as the peer-client (obviously!). So using this "open a tab on your server" business is appealing - I would run the game's lobby from it. So I get that part...I think.

    But, how do you open the server "tab" and then how do I run my C2 lobby app from it? Or, is the game already running if I have the game app exported and loaded to the server?

  • Does anyone have a sample .capx which would demonstrate the following:

    1. Players would log in (via email and password or an email link) to the game which is running on a server.

    2. The player's emails serve as their Peer IDs and their avatar name (selected by them) serve as their Alias IDs.

    3. The server side game would assign the players to a game room where the two (2) players would be peers and the game server would serve as the host. This is important, most importantly for security/anti-cheating purposes. I'm moderately proficient in using the multiplayer object. Keep in mind that within the "game" itself there is not any movement issues, more like an advanced tic-tac-toe game than anything else.

    FYI - I am able to follow simple php script for POST/GETS/Emails. If any other scripting is required, I can learn a sample script, if necessary.

    If you have any questions or require additional insight/information, just let me know.

    Thanks much in advance for your help!

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I just figured it out from your earlier .capx...just save the array using a JSON "extension" to a text object. SMH why this didn't connect the first time I saw it. So frickin' simple.

    BTW the capx you just sent was what helped me earlier understand the use of php files for accessing server files, so thanks for that.

    I owe you a cup of coffee...need that link, man.

  • First, thanks for the response, Dop. Your capx just pierced the forest, now I can see the trees. Thanks for that. Maybe I'm overthinking this or missing the forest for the trees, but a follow-up context and questions.

    FYI, I will be making adjustments to the data in the array which will migrated to a JSON file. But I'm comfortable with editing strings within an array, so no problem there. Check.

    I'm also familiar with POST/GET processes for loading/downloading txt files to a server. Check.

    So, how do I get the json file to the server? When I download the array to the JSON file it goes to my downloads folder on my computer. I'm presuming that when this app is running on the server it will save to a folder on my server, is that correct? Again, I'm familiar with the php POST/GET processes, but it seems the JSON download event automatically downloads the JSON file to a folder of its choice. How do I instruct it to download a folder of my choice?

    In the alternative can I just save the JSON folder and POST it (via php) to the server file/folder of my choice? If so, how would I do this?

    Thanks.

    PS. Send me that buy a cup of coffee link.

  • Can a JSON file of a 3D array be stored/retrieved on a dedicated server? If so, does anyone have a sample .capx which would show this process? If you also had the php script that would be cool, but not necessary. Thanks ahead of time!

    Tagged:

  • Figured it out. Just had to play with it and study up on php. Just my personal impatience with my learning curve.

  • I think I'm gonna owe you a couple of cups of coffee, eh?

    I'm almost there...

    I was able to save the dictionary file to the external server via php (See code below)

    Now I'm having a problem retrieving the file and loading it into a dictionary. IS it because the php language above is only for saving and not retrieving? Or am I using the improper load-in language in the event sheet - see below

    AJAX>Request URL>"http://www.myserver URL address/text.txt"

    On completed>Dictionary>Load from JSON string AJAX.LastData

    Is this making sense?

  • Actually this has gotten a bit more complicated. Instead of a string I'm using a dictionary (it's easier to modify during the game itself). I also found this tutorial using the AJAX POST process, again my results were not positive. I really don't care which process I use - I'm ranting a bit here - just need to get a file "saved" to my server and not the player's local machine.

  • I was using "Invoke download of string".

  • Dop,

    I found a previous post (https://www.construct.net/en/forum/construct-3/how-do-i-8/save-everything-butunique-146447?kws=save%2bjson%2bto%2bserver) to saving a file. I incorporated the code, but instead of the file saving to the server (where the HTML export of the game is located) it is downloading to my local computer.

    What am I doing wrong?

    Jefferson

  • Thanks Dop, I'll try those solutions.

  • I have a bunch of textboxes on a sheet and as the player completes one textbox, it will move to the next one in order. However, two problems have surfaced:

    First, if I use the "on text changed" command, the cursor will move before the player has finished typing.

    Second, the cursor jumps from the textbox to another textbox further down the page, skipping the textboxes before it, even if I use the "Set Focused" command for the next textbox.

    Any help would be appreciated. Thanks.

    Tagged: