RBuster's Recent Forum Activity

  • tarek2

    It's really awesome! It's very similar (practically the same) to that simulator I posted at the beginning. Thank you so much for sharing it with me!

    I have four questions:

    - Is it possible to check what component was disconnected when someone cut the connection of both sides of this component? If so, how?

    - I will need to use other components besides those. Is it possible for me to implement it?

    - I need to implement the multimeter (as you may have seen in the simulator) to measure the components when they are connected or not. This happens at the ends of the component. What do you suggest for that?

    - I thought to use tile background as the wires, but I need those wires to show the energy inside them, as happens in the simulator and I cannot use tileBG for this. I also used sprites, but when I stretch the wires, the animation also stretches. Do you know another solution for this?

  • I don't know if you're referring to the link I included in the first post, but if it is, I thought it was going to be very complex, so I tried to ask for the minimum resources. The problem is that in the end I will not be able to do the demo version and it was all in vain, but thanks anyway.

  • In the circuit, all components must be connected by wires. There is no way to connect a component directly to another component. In addition, after assembling the circuit, you can disconnect the wires (using pliers) to measure separate components.

    In this simulator I would need:

    1_ Know if the order of components is correct, regardless of the variety of components that I circuit may have

    2_ Know if all of them are connected to at least 1 wire, that is, the circuit is closed.

    3_If any component is disconnected from the circuit, I need to know if it is disconnected at one end or at both ends, because then I need to measure these components using a multimeter and when connected they will show an X value and disconnected, a Y value

    I am not sure if you checked the example of AllanR, which has the solution practically ready. It would only be necessary to check the wires (items 2 and 3)

  • Hey guys

    I'm still stuck here. I just need to know how to create a verification system that checks wires and components to see if they are in the correct order and if the wires are all connected to them and how to know if a wire is disconnected from any component or not. Could someone help me, please?

  • Hi R0J0hound

    Perhaps that was the most realistic solution, but I think that something so complex will not be necessary for this demonstration. I am very grateful for your suggestion, but I am unable to produce this. The solution that AllanR created is practically ready, we just need to include the system for checking the connections with the wires, but although I understood the logic he proposed, I don't know how to finish it. I'm just afraid of not being able to show this demonstration anymore because of the deadline.

  • Are you sure that cross-domain request are disallowed on their server? This will make other solutions (like checking online time) unusable too.

    I don't know if it's disallowed, but I think it probably is. My domain, for example, which is at Hostgator, did not have this option enabled. Anyway, I won't be able to count on it.

  • I'd advise just to use the domain lock approach described in the tutorial I linked to previously.

    The problem is that the files will be sent to the client to test on their server.

  • You could request the date from a server. It would require the user to be online though.

    But I think that then I would have the same problem accessing this information as I would have to access the file on another server because of the problem with cross-domain, isn't it?

    EDITED: This would work if I checked the date on the server where the files are hosted. It is possible? If so, would I have to use a plugin for that?

  • You could create a version with a variable of the date on which you are going to export and deliver the test game.

    On your initial layout before the game loads, you could have a test that compares the current date with the date in the variable. If it is greater than 10 days have the browser object close the game.

    Not super advanced, and can be worked around but might do for your purpose.

    But in this case, users would only need to change the date on their computer to access the game again, right?

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

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