The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: clakes707 on June 25, 2007, 07:08:15 PM

Title: RESOLVED:Text doesn't show in game!
Post by: clakes707 on June 25, 2007, 07:08:15 PM
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!
Title: Re: Text doesn't show in game!
Post by: Esmeralda on June 25, 2007, 07:19:23 PM
It sounds more like you don't have the font the game uses. Did you use the game's original font?
Title: Re: Text doesn't show in game!
Post by: clakes707 on June 25, 2007, 07:39:41 PM
It could be that, so how would i fix it?
Title: Re: Text doesn't show in game!
Post by: Esmeralda on June 25, 2007, 07:41:40 PM
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.
Title: Re: Text doesn't show in game!
Post by: clakes707 on June 25, 2007, 07:54:34 PM
It won't let me copy the files from there.

EDIT: The font that the other script used was called maiandra GD.
Title: Re: Text doesn't show in game!
Post by: Esmeralda on June 25, 2007, 08:18:38 PM
Then, try using google to find your font and copy it into the folder... maybe it'll work?
Title: Re: Text doesn't show in game!
Post by: clakes707 on June 25, 2007, 08:22:38 PM
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
Title: Re: Text doesn't show in game!
Post by: Leventhan on June 26, 2007, 03:55:16 PM
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.
Title: Re: Text doesn't show in game!
Post by: okartee on June 26, 2007, 05:47:27 PM
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
Title: Re: Text doesn't show in game!
Post by: Leventhan on June 27, 2007, 03:10:33 AM
The difference between $defaultfonttype and$fontface is the $deafult changes the deafult font to All the game, supposedly.
Title: Re: Text doesn't show in game!
Post by: clakes707 on July 08, 2007, 04:49:50 AM
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!