- Joined
- Jul 9, 2013
- Messages
- 576
- Reaction score
- 147
- First Language
- Engilsh
- Primarily Uses
- RMMV
I have set up a simple web system were the game pulls a version number from the server,
How it works:
Game retrieves the version number from the servers rb file version.rb which contains the following code:
$server_version = 0.1
Then it evals the version.rb file to inster the global variable into the game,
The game compares the $server_version to the $client_version using this code:
if $client_version != $web_version then
$game_temp.reserve_common_event(2)
end
# This is run inside of an in-game event.
this should simply run the common event if the two numbers are different,
so I changed the $client_version to 0.0,
if my math is correct 0.0 does not equal 0.1,
so why isn't the common event starting?
How it works:
Game retrieves the version number from the servers rb file version.rb which contains the following code:
$server_version = 0.1
Then it evals the version.rb file to inster the global variable into the game,
The game compares the $server_version to the $client_version using this code:
if $client_version != $web_version then
$game_temp.reserve_common_event(2)
end
# This is run inside of an in-game event.
this should simply run the common event if the two numbers are different,
so I changed the $client_version to 0.0,
if my math is correct 0.0 does not equal 0.1,
so why isn't the common event starting?
Last edited by a moderator: