Jump to content


Photo

Get game version


  • Please log in to reply
3 replies to this topic

#1 95jonpet

95jonpet

    GMC Member

  • GMC Member
  • 76 posts
  • Version:GM:Studio

Posted 20 May 2012 - 01:49 PM

Hello!

Is there a way to load the version number under "Global Game Settings" > "Other" into a game using code?
This would be really useful when comparing versions in for example multiplayer games etc.

Other smart and easy ways to do this are also appreciated.
  • 0

#2 fluidic ice

fluidic ice

    GMC Member

  • GMC Member
  • 804 posts
  • Version:GM:Studio

Posted 20 May 2012 - 01:54 PM

Don't think so, I just create a global variable that holds my game versionso:
Game_Version = "1.5.3";

But to check if theres a newer version you may have to store all the numbers as separate variables or bundled together such as:
Game_Version = 153;
If the next version is 167, you can just compare the numbers that way to check if its a newer version.

Edited by fluidic ice, 20 May 2012 - 01:56 PM.

  • 0

#3 95jonpet

95jonpet

    GMC Member

  • GMC Member
  • 76 posts
  • Version:GM:Studio

Posted 20 May 2012 - 01:55 PM

Don't think so, I just create a global variable that holds my game versionso:
Game_Version = "1.5.3";


But then I have to edit it twice everytime I update my game :(
  • 0

#4 fluidic ice

fluidic ice

    GMC Member

  • GMC Member
  • 804 posts
  • Version:GM:Studio

Posted 20 May 2012 - 01:58 PM

Yeah, there's also another game version located in: Resources > Global Game Settings > Info
Which i'm manually editing as well, so i've got a total of 3 to change every version.

Also edited above.

Edited by fluidic ice, 20 May 2012 - 01:58 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users