angelrangel1 Posted June 27, 2017 Author Share Posted June 27, 2017 Hello peopleI came back after a while, I was absent, very busy with the university and the problems of my country.My question is this:- How do I configure or edit in the code so that the server asks users for a new version of the client, and when they download the new version of the client, they no longer ask them to update?.I hope you understand my question, since I use google translator. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted June 27, 2017 Share Posted June 27, 2017 A bit of programming is all that's needed. If you're using ER then you can save the version on the server and the only coding is client side.In the client side, you need to code a version into it and if the version is the same as the server's (this can be found in the sub that sends the version and server online status, just looks for the label on the menu) then it lets the player log in, otherwise have the code say enable = false for the buttons and the message displayed just has to say "Please update to the latest version of the game"If you're not using ER then you have to have to program the version into the server as well and send it to the client. Link to comment Share on other sites More sharing options...
angelrangel1 Posted June 27, 2017 Author Share Posted June 27, 2017 In that part of the client code, do I have to modify for the version to be the same as the server? Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted June 27, 2017 Share Posted June 27, 2017 Yes, whenever you modify the version on the server, you have to modify the version in the client, recompile it, and upload it for your users to download. Link to comment Share on other sites More sharing options...
angelrangel1 Posted June 27, 2017 Author Share Posted June 27, 2017 My question is this:-In which module and line of client code do I have to modify?What do I have to modify ?, in the client I do not get what I have to modify. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted June 27, 2017 Share Posted June 27, 2017 Open the menu form and click the version label, then search for it's name in the code. You should find a sub somewhere that sets the version text if the server is online, in that sub add an if statement similar to "if not clientVersion = version then" and disable the buttons on the menu and display the text saying the player needs to update their game.You can either have a global for the version (I recommend for easier changing) or you can dim it in that sub. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now