Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Prevent Deactivation
#4
*ACK! I keep forgetting you go by that name in here!!!

And nope, that is not a double-post. There is a subtle difference between the two. Ruby 1.8 does not include the getbyte statement for the String class, so the 1.8 version contains the line:
Code:
update_if_game_in_focus if MessageIntercept::Flag_Deactivate[0] == 1
However, since the later versions of Ruby does have the getbyte statement, the newer version of the script instead contains the line:
Code:
update_if_game_in_focus if MessageIntercept::Flag_Deactivate.getbyte(0) == 1

This minor change was pointed out by KK20 as below:
KK20 at RPGMakerWeb Wrote:Oh right, forgot about that. You just use String#[] to get the byte. So it should be
Code:
update_if_game_in_focus if MessageIntercept::Flag_Deactivate[0] == 1
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
[Image: QrnbKlx.jpg]
[Image: sGz1ErF.png] [Image: liM4ikn.png] [Image: fdzKgZA.png] [Image: sj0H81z.png]
[Image: QL7oRau.png] [Image: uSqjY09.png] [Image: GAA3qE9.png] [Image: 2Hmnx1G.png] [Image: BwtNdKw.png%5B]
Above are clickable links

Reply }


Messages In This Thread
Prevent Deactivation - by DerVVulfman - 03-24-2019, 03:33 AM
RE: Prevent Deactivation - by kyonides - 03-24-2019, 11:34 AM
RE: Prevent Deactivation - by DerVVulfman - 03-24-2019, 06:32 PM
RE: Prevent Deactivation - by DerVVulfman - 03-24-2019, 08:21 PM
RE: Prevent Deactivation - by kyonides - 03-25-2019, 04:40 PM
RE: Prevent Deactivation - by DerVVulfman - 03-25-2019, 07:26 PM
RE: Prevent Deactivation - by Rangnarok - 12-25-2020, 12:42 PM



Users browsing this thread: