H-Mode7 / UMS Patch
#1
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.
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 }
#2
"Until now."
Made me giggle. Heheh

Way to go DerVVulfman \m/
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   ATOA CBS Equipment Set Variables Patch kyonides 0 201 10-14-2024, 12:47 AM
Last Post: kyonides
   The Charlie Mini-Map / Dynamic Maps Patch DerVVulfman 2 4,900 03-29-2022, 11:55 PM
Last Post: DerVVulfman
   ACBS FIX SCRIPT #1: Victory Cries Patch DerVVulfman 1 4,710 08-08-2019, 02:53 PM
Last Post: aeliath
   H-Mode7 MGC 395 734,643 09-19-2017, 03:39 AM
Last Post: DerVVulfman
   H-Mode7 Visual Equipment Chaotech Games 8 36,761 03-30-2017, 01:58 AM
Last Post: wrathx
   H-Mode7 Caterpillar Chaotech Games 8 18,945 03-10-2017, 12:19 AM
Last Post: Lizzbutt
   Moonpearl Patch for Multi-Slots! DerVVulfman 0 5,560 05-23-2016, 04:30 AM
Last Post: DerVVulfman
   Lycan ABS / MGC Mode7 Edit Patch DerVVulfman 2 9,454 10-18-2015, 07:12 PM
Last Post: DerVVulfman
   Isometric Maps: MiniMap DVV Patch DerVVulfman 0 5,269 06-26-2014, 03:27 AM
Last Post: DerVVulfman
   The Lycan ABS Isometric Maps Patch DerVVulfman 1 6,711 06-25-2014, 03:54 AM
Last Post: DerVVulfman



Users browsing this thread: 1 Guest(s)