Main Menu
  • Welcome to The RPG Maker Resource Kit.

RESOLVED:Text doesn't show in game!

Started by clakes707, June 25, 2007, 07:08:15 PM

0 Members and 1 Guest are viewing this topic.

clakes707

In the main menu, in-game menu, and text boxes, there is no text! it is there, I just can't see it. I used to have a script that fixed this, but I lost it. Can someone help me? The script made RPGXP use a font that started with an M, I can't spell it. I am using the Pk version. I knmow it can be done, i just have to find the script. Thanks!

Esmeralda

It sounds more like you don't have the font the game uses. Did you use the game's original font?
:taco: :taco: :taco:

clakes707

It could be that, so how would i fix it?

Esmeralda

Uh... to be on the safe side I'd say copy all fonts from your /Windows/Fonts folder into your project folder... dunno if it works, but try it.
:taco: :taco: :taco:

clakes707

It won't let me copy the files from there.

EDIT: The font that the other script used was called maiandra GD.

Esmeralda

Then, try using google to find your font and copy it into the folder... maybe it'll work?
:taco: :taco: :taco:

clakes707

But what font? I do not know what font I need, so i can't. This is what the main_script says in my game:#==============================================================================
# ** Main
#------------------------------------------------------------------------------
#  After defining each class, actual processing begins here.
#==============================================================================

begin
  # Prepare for transition
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new
  # Call main method as long as $scene is effective
  while $scene != nil
    $scene.main
  end
  # Fade out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Supplement Errno::ENOENT exception
  # If unable to open file, display message and end
  filename = $!.message.sub("No such file or directory - ", "")
  print("Unable to find file #{filename}.")
end

Leventhan

Did you add some new scripts?
I've experienced these often, so here...compare your with this.

#==============================================================================
# ? Main
#------------------------------------------------------------------------------
#
#==============================================================================

begin

  # This variable determines the default font type
  $defaultfonttype = "Font blabla MS"
  # This variable determines the default font size
  $defaultfontsize = 28

  Graphics.freeze
 
  $scene = Scene_Title.new
 
  while $scene != nil
    $scene.main
  end
 
  Graphics.transition(20)
rescue Errno::ENOENT
 
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} not found.")
end




It has an added font script.

Be kind, everyone you meet is fighting a hard battle.

okartee

Okay, I had this too and figured it out by my lonesome :D

#==============================================================================
# * Main
#------------------------------------------------------------------------------
# After definition of each class ends, actual processing starts from here.
#==============================================================================

begin
  # Change the $fontface variable to change the font style
  $fontface = [u]"Tahoma"[/u]
  # Change the $fontsize variable to change the font size
  $fontsize = 28
  # Transition preparation
  Graphics.freeze
  # Scene object (the title picture) it draws up
  $scene = Scene_Title.new
  # The limit main method whose $scene is effective is called
  while $scene != nil
    $scene.main
  end
  # Fading out
  Graphics.transition(20)
rescue Errno::ENOENT
  # Exception Errno: : Supplementing ENOENT
  # When it cannot open the file, indicating message, it ends
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} was not found.")
end


The font is underlined, just change that in your script to a font you like that you have in your Windows\Fonts folder.
It worked for me, I hope it works for you.

P.S. You may have to change the size of the font, its underneath the font selection

Leventhan

The difference between $defaultfonttype and$fontface is the $deafult changes the deafult font to All the game, supposedly.

Be kind, everyone you meet is fighting a hard battle.

clakes707

When I do what  Okartee says, it says ????Main'? 1 ??? Syntax Error ??????. I am not sure about the spaces and number of question marks. Please help me with this! Thanks!