The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: Rathalos888 on May 10, 2007, 09:30:14 PM

Title: [RESOLVED] Certain texts not showing up...
Post by: Rathalos888 on May 10, 2007, 09:30:14 PM
Alright, so, in certain points in my game, text won't show up. Like, the name of equipment, or the Buy, Sell, or Exit commands. Someone please help >_<
Title: Re: Certain texts not showing up...
Post by: modern algebra on May 10, 2007, 09:34:23 PM
Sounds like a font problem, so I'm going to refer you to Blizzard's Ultimate Font Override. It's in the Script Database, I'll take a quick look and then link it for you.

EDIT:

Okay, it's part of his Tons of Add-Ons, which I have yet to use and so I suggest you read the instructions to figure out what features you want to turn on or off.

Blizzard's Tons of Add-Ons (http://rmrk.net/index.php/topic,8907.0.html)
Title: Re: Certain texts not showing up...
Post by: Kokowam on May 10, 2007, 09:40:28 PM
What about his tricks? :D

Quote from: Blizzard on September 18, 2006, 01:13:40 PM
b) Ultimate Font Override

This little script will do the job:

#==============================================================================
# Game_System
#==============================================================================

class Game_System
 
  attr_reader   :fontname
  attr_reader   :fontsize
 
  alias init_ultimate_font_override_later initialize
  def initialize
    init_ultimate_font_override_later
    self.fontname = "Arial"
    self.fontsize = 24
  end
 
  def fontname=(name)
    $defaultfonttype = $fontface = @fontname = name
  end
   
  def fontsize=(size)
    $defaultfontsize = $fontsize = @fontsize = size
  end
 
end

#==============================================================================
# Bitmap
#==============================================================================

class Bitmap

  alias init_font_override_later initialize
  def initialize(w, h = nil)
    if w.is_a?(Numeric) and h.is_a?(Numeric)
      init_font_override_later(w, h)
    else
      init_font_override_later(w)
    end
    if $game_system.fontname != nil and not $scene.is_a?(Scene_Title)
      self.font.name = $game_system.fontname
      self.font.size = $game_system.fontsize
    else
      self.font.name = "Arial"
      self.font.size = 24
    end
  end
 
end


You can change the font/fontsize with

$game_system.fontname = "FONTNAME"
$game_system.fontsize = FONTSIZE


It will override the font from any RMXP version.
Title: Re: Certain texts not showing up...
Post by: Rathalos888 on May 10, 2007, 10:55:41 PM
I wove blizzard


Seriously >_>

Thanks guys, works fine now ^_^
Title: Re: Certain texts not showing up...
Post by: :) on May 10, 2007, 10:56:26 PM
solved? add [RESOLVED] to topic title