H-Mode7 / UMS Patch - DerVVulfman - 07-29-2012
H-Mode7 / UMS Patch
Version: 1.0
Introduction
The UMS by Ccoa is a message system that encompasses most any feature you may wish to have. And MGC's HMode7 system allows you to craft fieldmaps in ways to give a full 3D effect. Separately, they work fine... but together, they conflicted.
Until now.
This script changes a minor value MGC's code within Game_System, a change that I would invite him to perform in upcoming releases if he wishes.
Script
Code: #==============================================================================
# H-Mode7 / UMS Patch
#------------------------------------------------------------------------------
# Add-on for H-Mode7 Engine
# V.1.0 - 07/28/2012 (MM/DD/YYYY)
# Author : DerVVulfman
# Based on work by MGC
#
# This add-on is a minor rewrite of the hm7 reset module to merely change
# the 'CENTER' value used in the system into a 'CENTERED' value. This is
# done to prevent a conflict with Ccoa's UMS (Ultimate Message System)
# which uses the same value as a constant for message window alignment
# purposes.
#
# I freely invite MGC to use this code in later versions of the H-Mode7
# system so this patch will not be necessary in the future.
#------------------------------------------------------------------------------
#
# Paste below both the UMS and H-Mode7 systems for it to work.
#
#==============================================================================
#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
# This class handles data surrounding the system. Backround music, etc.
# is managed here as well. Refer to "$game_system" for the instance of
# this class.
#==============================================================================
class Game_System
#--------------------------------------------------------------------------
# * Reset zoom and pivot
#--------------------------------------------------------------------------
def hm7_reset
self.hm7_pivot = 240
self.hm7_zoom = 100
self.hm7_alpha = 0
self.hm7_theta = 0
self.hm7_loop_x = false
self.hm7_loop_y = false
self.hm7_animated = true
self.hm7_lighting = true
self.hm7_resolution = 1
self.hm7_filter = true
self.hm7_two_frames_refresh = false
self.hm7_camera_mode = 0
self.hm7_anim_freq = 20
self.hm7_heightmap = ""
self.hm7_fading_color = Color.new(150, 150, 150, 0)
self.hm7_less_cut = false # V.1.2.1
self.hm7_no_black_cut = false # V.1.2.1
# V.1.3
self.hm7_ov = false
if defined? Game_Player::CENTERED != nil # Formerly Game_Player::CENTER
self.hm7_center_y = Game_Player::CENTERED # Formerly Game_Player::CENTER
else
self.hm7_center_y = 240 - 16 << 2
end
end
end
Yeah... me posting a script in raw form like this isn't the way I normally post. But again, if MGC wants to use it, he can.
Instructions
Just paste this patch below both systems.
Credits and Thanks
DaVoice for pointing out about this conflict and to MGC for giving it an initial look into the problem.
Terms and Conditions
Free for use in games both commercial and free. Just give due credit. For Ccoa's UMS and MGC's HMode7, see their respective terms.
RE: H-Mode7 / UMS Patch - MetalRenard - 07-29-2012
"Until now."
Made me giggle. Heheh
Way to go DerVVulfman \m/
|