Pyxe Posted August 22, 2018 Share Posted August 22, 2018 1.) How To Get IMEI Or Device ID 2.) How To Make A Changelog (With Like Pastebin and Script) Examples of these would be nice _______________________________________________ added 2 minutes later @Lenn1 @ForbiddenSaga @Enyby @CmP Link to comment Share on other sites More sharing options...
Pyxe Posted August 23, 2018 Author Share Posted August 23, 2018 Bump (i still havent figured out) _______________________________________________ added 0 minutes later For changelog, i want one like gameguardian, when you start up gameguardian it pops up 'new version available' Link to comment Share on other sites More sharing options...
Pyxe Posted August 23, 2018 Author Share Posted August 23, 2018 Like How Script API has gg.VERSION I would like that in my script, but like lol.VERSION, and the gameguardian detects the version and then if an update is available it says 'update available' @Enyby @Lenn1 @ForbiddenSaga @CmP Link to comment Share on other sites More sharing options...
ForbiddenSaga Posted August 23, 2018 Share Posted August 23, 2018 You need webserver to do this. Without a web server it's impossible to check for a new version. For Device ID/IMEI it's impossible to get with LUA, you need to develop your own methods to recognize the device. Link to comment Share on other sites More sharing options...
Pyxe Posted August 23, 2018 Author Share Posted August 23, 2018 1 minute ago, ForbiddenSaga said: You need webserver to do this. Without a web server it's impossible to check for a new version. For Device ID/IMEI it's impossible to get with LUA, you need to develop your own methods to recognize the device. I do have my own webserver and what about linux version? _______________________________________________ added 1 minute later And how would i do the new version? Like is there an example or what? Sorry im so terrible at lua scripting. Link to comment Share on other sites More sharing options...
ForbiddenSaga Posted August 23, 2018 Share Posted August 23, 2018 Then just use gg.makeRequest to withdraw information from webserver and pass it to your lua, for example local current_version = "1.0.0" local server_version = gg.makeRequest(http://localhost/version.txt).content if (current_version ~= server_version) then gg.alert("New version is found, please re-download from http://localhost") end It's impossible to get any sort of info if it's not on a file on the user device. I don't know how android works so i never explored it. But if it's on a file, you might try doin io.open and then read the file. Link to comment Share on other sites More sharing options...
Pyxe Posted August 23, 2018 Author Share Posted August 23, 2018 Just now, ForbiddenSaga said: Then just use gg.makeRequest to withdraw information from webserver and pass it to your lua, for example local current_version = "1.0.0" local server_version = gg.makeRequest(http://localhost/version.txt).content if (current_version ~= server_version) then gg.alert("New version is found, please re-download from http://localhost") end It's impossible to get any sort of info if it's not on a file on the user device. I don't know how android works so i never explored it. But if it's on a file, you might try doin io.open and then read the file. Thank you! Where would i be without you. Link to comment Share on other sites More sharing options...
Vuroz Posted August 23, 2018 Share Posted August 23, 2018 All this is possible with pastebin, no need to use your webserver just do version_client = "1.0.0" version_latest = gg.makeRequest("http://pastebin.com/raw/PUT_ID_HERE").content if (version_client ~= version_latest) then -- Tell user he/she is not on latest version end Also credits to ForbiddenSaga for basic structure Link to comment Share on other sites More sharing options...
Question
Pyxe
1.) How To Get IMEI Or Device ID
2.) How To Make A Changelog (With Like Pastebin and Script)
Examples of these would be nice
@Lenn1 @ForbiddenSaga @Enyby @CmP
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.