RBuster's Recent Forum Activity

  • Are you using any arrays or dictionaries, do you have files imported to your project?

    If not, just think of something that is important in your game. For example, player position on start of the level. Or the number of enemies, or their LOS distance etc.

    Let's say your player position should be (200, 420). Create two variables PlayerStartX=9999 and PlayerStartY=9999. Set player position to (PlayerStartX, PlayerStartY) on start of layout.

    Put the correct values 200 and 420 into the file on your server. Request this file on start of the game, read values into PlayerStartX and PlayerStartY variables. If the file is genuine, your game will work correctly. If the file is not available, or if it contains wrong data, the player will spawn at (9999,9999) and your game will not work. It will look like a bug, and any potential hackers will have a hard time figuring out what's wrong.

    This solution is really good, but the cross-domain problem makes this possibility unfeasible since the game files will be on another server and not on mine.

  • I wouldn't actually go for the approach of AJAX requesting a file - if you want it to work in preview, you have to configure the AJAX response to work cross-domain, and if it works for any domain, the protection is no longer effective.

    As in my case I have to send the files to the company to do tests on their server, the AJAX solution will not do because of the cross-domain problem. It would be great if there was a trial mode option, that I could configure, for example, that the game could be accessed for 10 days

  • So the most robust method is to read some actual data from the file, without which your game will not function properly. Like the inventory array, or some config values, or tilemap JSON etc. So even if hackers substitute or disable the file check, they will not be able to play the game without that data.

    Do you have any example of this solution?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I plan on using AJAX and requesting a text file, and when it is complete, read this file, and compare the text. Do you think that would not be enough? Is it possible for someone to know that the game is looking for this file and even identify it? I would like to use an undetectable process.

    EDITED: This is the code I intend to use:

    + System: On start of layout -> AJAX: Request "http://mydomain.com/file.txt" (tag "file") + AJAX: On "file" completed ----+ System: AJAX.LastData = "PASS" -----> System: Go to Layout1

    One more question: Can't security defense systems (their server firewall / cross-domain browser preventing / etc) prevent this access? If so, how to solve it?

  • I have to send some game files to be tested on a server and I would like to know if there is a way to stop the opening of this game's page, using some system created on C3 that allows me to control this from my server, for example, something that checks if a file is located at a URL (on my server in this case), and if there is no such file the game will not start. It may be that or another possibility that is suggested. Thanks.

  • I am willing... but have limited time today. Will see how tomorrow goes.

    Sure. Thank you.

  • Hi AllanR

    Just checking if you’ll continue to help me complete this demo.

  • Thanks a lot for your help.

    In fact, these data change continuously, mainly because new components will be included later, besides that it is possible to measure various types of voltages (voltage/resistance/etc). I thought about setting these values directly on the multimeter when the test probes overlapped the ends of the components or the nodes that are over these ends.

    Here are the values for this demonstration circuit:

    - battery = 12 volts (I don't know if there will be more than one battery in future circuits)

    - fuse = 5 amps

    - resistor 1 = 100 ohms

    - resistor 2 = 200 ohms

    I would need to check that the circuit is complete, that the components are in order and that some of the wires or components have been disconnected, which can alter the measurement of any component or circuit.

  • Thank you so much for this.

    Regarding the wires, I will need to show in this demonstration how to test the circuit or measure the voltage of some components without one or more wires connected to them. Should this be another way of checking what you just did, or is it possible to include the wires in that check?

  • I still need to understand how to check if the circuit is correct or not. Could someone help me with this?

  • Hi AllanR

    The linked list of components will be created in the log as the components are connected by wires, right? I think this is the way to check if the connections are correct or not. Would you know how the connections will be included in this list?

    Maybe checking if the nodes with the same UIDs of the components are overlapping the nodes of the wires and then comparing the IDs to be at the ends of the wires there are two components that are part of the sequence? Wow, this is really hard for my brain 'o'

  • R0J0hound

    I will take a look at the file. Thanks so much for all the explanations.

RBuster's avatar

RBuster

Early Adopter

Member since 29 Oct, 2012

Twitter
RBuster has 2 followers

Connect with RBuster

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

21/44
How to earn trophies