Crazyninjaguy 8 Posted January 3, 2012 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. 2 oriceles and ShinGamix reacted to this Share this post Link to post Share on other sites
amon vangrell 0 Posted February 25, 2012 thx alot!!!! XD Share this post Link to post Share on other sites
ShinGamix 101 Posted February 25, 2012 Is there any way to move where the map name is displayed on screen. It is in the way of my HUD. Share this post Link to post Share on other sites
Shadow 6 Posted February 25, 2012 http://www.tycoon812.com/rgss/material/ace/024.html take look here, is in japanese, but works, and have a lot of scripts! Share this post Link to post Share on other sites
ShinGamix 101 Posted February 25, 2012 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
Gwydian 4 Posted February 25, 2012 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. 1 ShinGamix reacted to this Share this post Link to post Share on other sites
ShinGamix 101 Posted February 25, 2012 (edited) 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: Click the wrench icon on the browser toolbar. Select Tools. Select Encoding. 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 February 25, 2012 by ShinGamix Share this post Link to post Share on other sites
Urchreon 9 Posted February 29, 2012 When I exit shop processing It will display the map name again. Share this post Link to post Share on other sites
Shadow 6 Posted February 29, 2012 Make an event and turn the map name show off. Share this post Link to post Share on other sites
CT Bolt 23 Posted February 7, 2013 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