Jump to content

Recommended Posts

Introduction

 

I was wondering why the map name didn't show on the first map you start playing on, then I discovered that it only shows the window if you're transferring/teleporting to a new, or the same map.

This script allows you to display the map name on the map you load onto.

 

#===============================================================================
# * Map name on load fix
# * By Crazyninjaguy
# * http://www.stormxstudios.co.uk
#  ---------------------------------------------------------------------------
# * I was wondering why the map name didn't show on the first map you start
#   playing on, then I discovered that it only shows the window if you're
#   transferring/teleporting to a new, or the same map.
#   This script allows you to display the map name on the map you load onto.
#===============================================================================

class Window_MapName < Window_Base
 alias cng_mapnamefix_windowmapname_init initialize
 def initialize
   cng_mapnamefix_windowmapname_init
   if $game_map.display_name
  self.contents_opacity = 255
  @show_count = 150
   end
 end
end

 

Credits

 

Credits not needed, but appreciated!

 

Available for use in commercial projects.

Share this post


Link to post
Share on other sites

Why does the script look like this when I click on the link? I don't think it will work in "gibersh"

 

 

 

#==============================================================================

#  ƒ}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’EÅ g’£ (for VX Ace)

#------------------------------------------------------------------------------

# Version : 1_20120105

# by Æ’TÆ’Å Æ’TÂEÆ’^Æ’CÆ’NÂ[ƒ“

# http://www.tycoon812.com/rgss/

#==============================================================================

 

#==============================================================================

#  ‘fÂÞƒXÆ’CÆ’bÆ’`

#==============================================================================

$rgsslab = {} if $rgsslab == nil

$rgsslab["Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’EÅ g’£"] = true

 

if $rgsslab["Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’EÅ g’£"]

 

#==============================================================================

#  ƒJƒXƒ^ƒ}ƒCƒYƒ|ƒCƒ“ƒg

#==============================================================================

module RGSSLAB end

module RGSSLAB::Map_Name_Window

#----------------------------------------------------------------------------

# › •\Ž¦ˆÊ’u

# Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’E‚Ì•\Ž¦ˆÊ’u‚ÌÂÃ’è‚Å‚·ÂB

#

# 0 : ¶ÂãÂi•W€Âj

# 1 : ‰EÂã

# 2 : ¶‰º

# 3 : ‰E‰º

# 4 : ’†‰›

#

# Âã‹LˆèŠO‚Ìâ€Ã”†‚ÃÂA0‚Æ“¯‚¶‚Å‚·ÂB

#

# ÂEÆ’CÆ’xƒ“ƒgÆ’RÆ’}ƒ“ƒh‚̃XÆ’NÆ’Å Æ’vÆ’g‚Å‚Ì•ÃÂX•û–@

# $game_system.rgsslab024.posture = ’l

#----------------------------------------------------------------------------

POSTURE = 4

#----------------------------------------------------------------------------

# › Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’E‚̃tÆ’Hƒ“ƒg

#

# Æ’tÆ’Hƒ“ƒg‚ðŽw’è‚·‚鎖‚ª‚Å‚«‚Ü‚·ÂB

# Æ’tÆ’Hƒ“ƒg–¼â€šÃ°Â³Å m‚é‹LÂq‚µ‚ĉº‚³â€šÂ¢ÂB

# Âi•\Ž¦‚Å‚«‚è‚¢‚à‚Ì‚é‚‚¢‚Ä‚ÃÂA³Šm‚é•\Ž¦‚Å‚«‚Ü‚¹â€šÃ±Âj

#

# ‘ŠŽè‘¤‚Ì‚o‚b‚é‚àƒtÆ’Hƒ“ƒg‚ª‚肯‚Ê‚ÎÂA•\Ž¦‚³â€š¹â€šÃ©Å½â€“‚ª‚Å‚«‚Ü‚¹â€šÃ±â€šÃŒâ€šÃ…

# ‚²â€™ÂˆÓ‰º‚³â€šÂ¢ÂB

#

# ÂEÆ’CÆ’xƒ“ƒgÆ’RÆ’}ƒ“ƒh‚̃XÆ’NÆ’Å Æ’vÆ’g‚Å‚Ì•ÃÂX•û–@

# $game_system.rgsslab024.name = "Æ’tÆ’Hƒ“ƒg–¼"

#----------------------------------------------------------------------------

FONT_NAME = "‚l‚r ‚oƒSƒVƒbƒN"

#----------------------------------------------------------------------------

# › Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’E‚Ì•¶ŽŠ—ñ‚ÌÂF

#

# •¶ŽŠ—ñ‚ÌÂF‚ðÂÃ’è‚·‚鎖‚ª‚Å‚«‚Ü‚·ÂB

#

# ColorÆ’Nƒ‰ƒX‚ð—p‚¢‚Ä‚ÌŽw’è‚Æ‚è‚è‚Ü‚·ÂB

# Âi•W€‚Å‚ÃÂAColor.new(255, 255, 255)‚Å‚·Âj

#

# ÂEÆ’CÆ’xƒ“ƒgÆ’RÆ’}ƒ“ƒh‚̃XÆ’NÆ’Å Æ’vÆ’g‚Å‚Ì•ÃÂX•û–@

# $game_system.rgsslab024.font_color = "Æ’tÆ’Hƒ“ƒg‚ÌÂF"

#----------------------------------------------------------------------------

FONT_COLOR = Color.new(255, 255, 255)

end

 

# Æ’JÆ’XÆ’^Æ’}Æ’CÆ’YÆ’|Æ’Cƒ“ƒg‚ÃÂA‚±‚±‚Ü‚Å

 

#==============================================================================

# Â RGSSLAB::Map_Name_Window [module]

#==============================================================================

module RGSSLAB::Map_Name_Window

#--------------------------------------------------------------------------

# › ‘fÂÞÂÃ’è—p‚Ì’èÂâ€â€™Ã¨â€¹`

#--------------------------------------------------------------------------

MATERIAL_NAME = "Æ’}Æ’bÆ’vÆ’lÂ[ƒ€ƒEÆ’Bƒ“ƒhÆ’E"

VERSION = 1

RELEASE = 20120105

end

 

#==============================================================================

# ¡ Game_System [class]

#==============================================================================

class Game_System

#--------------------------------------------------------------------------

# ÂÅ“ œöŠJÆ’Cƒ“ƒXÆ’^ƒ“ƒX•ÃÂâ€

#--------------------------------------------------------------------------

attr_accessor :rgsslab024

#--------------------------------------------------------------------------

# ÂÅ“ Æ’IÆ’uÆ’WÆ’FÆ’NÆ’g‰Šú‰» [Æ’GÆ’CÆ’Å Æ’AÆ’X]

#--------------------------------------------------------------------------

alias map_name_window_initialize initialize

def initialize

map_name_window_initialize

@rgsslab024 = RgssLab_024.new

end

end

 

#==============================================================================

# Â RgssLab_024 [class]

#==============================================================================

class RgssLab_024

#--------------------------------------------------------------------------

# › ƒ‚ƒWƒ…Â[ƒ‹‚ÌÂÃ’è

#--------------------------------------------------------------------------

RGSSLAB_024 = RGSSLAB::Map_Name_Window

#--------------------------------------------------------------------------

# ÂÅ“ œöŠJÆ’Cƒ“ƒXÆ’^ƒ“ƒX•ÃÂâ€

#--------------------------------------------------------------------------

attr_accessor :posture

attr_accessor :name

attr_accessor :font_color

#--------------------------------------------------------------------------

# › Æ’IÆ’uÆ’WÆ’FÆ’NÆ’g‰Šú‰»

#--------------------------------------------------------------------------

def initialize

@posture = RGSSLAB_024::POSTURE

@name = RGSSLAB_024::FONT_NAME

@font_color = RGSSLAB_024::FONT_COLOR

end

end

 

#==============================================================================

# ¡ Window_MapName [class]

#==============================================================================

class Window_MapName < Window_Base

#--------------------------------------------------------------------------

# ÂÅ“ Æ’IÆ’uÆ’WÆ’FÆ’NÆ’g‰Šú‰» [ÂÄ’è‹`]

#--------------------------------------------------------------------------

def initialize

super(get_pos_x, get_pos_y, window_width, fitting_height(1))

contents.font.name = $game_system.rgsslab024.name

contents.font.color = $game_system.rgsslab024.font_color

self.opacity = 0

self.contents_opacity = 0

@show_count = 0

refresh

end

#--------------------------------------------------------------------------

# › ‰¡‚̈ʒu‚ðŽÆ“¾

#--------------------------------------------------------------------------

def get_pos_x

case $game_system.rgsslab024.posture

when 0 ; return 0

when 1 ; return Graphics.width - window_width

when 2 ; return 0

when 3 ; return Graphics.width - window_width

when 4 ; return (Graphics.width - window_width) / 2

else ; return 0

end

end

#--------------------------------------------------------------------------

# › Âc‚̈ʒu‚ðŽÆ“¾

#--------------------------------------------------------------------------

def get_pos_y

case $game_system.rgsslab024.posture

when 0 ; return 0

when 1 ; return 0

when 2 ; return Graphics.height - fitting_height(1)

when 3 ; return Graphics.height - fitting_height(1)

when 4 ; return (Graphics.height - fitting_height(1)) / 2

else ; return 0

end

end

end

 

end

 

 

Share this post


Link to post
Share on other sites

You need to change the encoding for that page on your web browser to view it in japanese. In firefox it would be view =>character encoding =>then select a japanese encoding like SHIFT_JIS. That should clear up the gibberish.

Share this post


Link to post
Share on other sites

Do you know how to do that with Chrome?

 

I got it. Thanks

Here it is for anyone else who needs how to do it too

 

 

 

Text not displaying properly (In Google Chrome)

 

 

If you notice squares showing up in the webpages you visit instead of text, try manually substituting the webpage's encoding. Follow these steps:

  1. Click the wrench icon chrome_toolsmenu.gif on the browser toolbar.
  2. Select Tools.
  3. Select Encoding.
  4. Pick one of the encodings listed or choose Auto detect. If you choose to auto detect, Google Chrome analyzes the content on the page to recommend the most suitable encoding. For the fastest browsing experience, we recommend turning off the auto detect mode after you leave the webpage.

 

 

Edited by ShinGamix

Share this post


Link to post
Share on other sites

Thanks but this script has a wrong variable.

 

On line 16:

if $game_map.display_name should be if $game_map.name_display

 

Here is the corrected code:

#===============================================================================
# * Map name on load fix
# * By Crazyninjaguy
# * http://www.stormxstudios.co.uk
#  ---------------------------------------------------------------------------
# * I was wondering why the map name didn't show on the first map you start
#   playing on, then I discovered that it only shows the window if you're
#   transferring/teleporting to a new, or the same map.
#   This script allows you to display the map name on the map you load onto.
#===============================================================================

class Window_MapName < Window_Base
  alias cng_mapnamefix_windowmapname_init initialize
  def initialize
    cng_mapnamefix_windowmapname_init
    if $game_map.name_display
	  self.contents_opacity = 255
	  @show_count = 150
    end
  end
end

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×