I am making a game where I want items to be bought in an online store and added to account. I do not want my players to be able to hack my game and give themselves free items all in the client. (I think this is how hacking works and if I am wrong please let me know!)
Some ideas I thought about:
- Making a html page and have it hosted on a website and have my game steal the text from the webpage and convert it into items
PROS: I already know where to get started on programming this.
CONS: If I want to make a new account I need to manually update the website, this is a major con and I do not know how to go around this one.
- Make my collection scene become a server and host the server on my computer.
PROS: I dont think that this can be hacked.
CONS: I would have to redo my collection scene(not a really big deal) and I would have to have the server run on my computer until I make enough money to buy a dedicated server. Also I think I need a server for each player's collection open on my computer and that can become really cumbersome for my internet and computer.
- Make a command prompt with account name's and items run as a server on my computer to reduce lag on my computer and the server. It would only hold strings of the player names and items.
PROS: reduce lag compared to idea number 2.
CONS: server running on my computer and I have no idea where to start with this idea. I dont want to have to do port forwarding for the players to connect to the command prompt when it sends data. I dont want logmeinhamachi required for the players.
- I just thought about maybe having a file on the computer and have it encrypted? How would I cipher and decipher it? Also wont players be able to hack the client and find out how to decipher the text?
**I know Blizzard's Hearthstone game does something like this but I dont know how they do it.**
I do not know how to go about this and any help is greatly appreciated!
↧