- Joined
- Aug 18, 2022
- Posts
- 230
Glad to hear that :DThank you! Works like a charm!
Keep an eye on this thread for future small improvements, bug fixes and new features
Glad to hear that :DThank you! Works like a charm!
New Setting:
Suggested by @REALMUGEN: you can now have the name of a Location be replaced with "???" or whatever text you want as long as this Game Map hasn't been visited yet.
IMPORTANT: It is very important that the Game Map and the Point name is named exactly the same or it'll not work, it won't crash your game but instead it'll still show the point's name.
You can...
Glad to hear that :)Works very well @Arcky ! Thank you very much!
One particular note. When using the editor townmapgen v21.1 by default appends "" to the location names. That will immediately generate differences in the names in map_metadata (which usually go without quotes). Just remove the quotes in the content of the town_map.txt and it will works perfectly :)
New stuff:
- Added a new Feature to change between modes in style.
- The "Button: Change Mode" text is displayed in a mode preview window. It will dissapear when previewing a quest.
- 2 or less modes will change mode directly.
- 3 or 4 modes (4 is max for now) will give you a choice menu to change mode. You can go from mode 0 (normal map) to mode 3 (berry map) instead of having to...
Improvements:
New Setting:
- When there's only 1 mode available, it won't show the button preview window and also won't play the sound when pressing the button to change mode.
- When using Fly, the text and button to activate quick fly will be shown on the top right
You can now choose when you have 3 or more modes to either have the choice menu or have the mode change by pressing the set button each time
Improvements:
- The Quest Preview Box size will change depending on the length of the Task and Location text. (According to the UI of the Modern Quest System, you're limited in text length for the Task and Location either way. This means that both should never exceed the limit for this plugin as well.
- Minimum of 2 lines.
- Maximum of 4 lines.
- The Text and Button Preview Box will not be hidden when the Quest Preview is active if the Position set for...
New (Small) Feature:
Bug fixes:
- When the cursor is moved behind the Button Preview Box, it'll now go transparent so you can see the Cursor again.
- Fixed an issue with the script not using the Unvisited Map exception Image names.
- Fixed an issue with Locations that have "Small" included in their name.
- Fixed an issue with the game crashing when using Quick Fly.
- Fixed an issue with the setting to change the...
def draw_roaming_position_compat(mapindex)
icon_index = 0
for roam_pos in $PokemonGlobal.roamPosition
active = $game_switches[Settings::ROAMING_SPECIES[roam_pos[0]][2]] && (
$PokemonGlobal.roamPokemon.size <= roam_pos[0] ||
$PokemonGlobal.roamPokemon[roam_pos[0]]!=true
)
next if !active
roam_town_map_pos = GameData::MapMetadata.try_get(roam_pos[1])&.town_map_position
next if mapindex!=roam_town_map_pos[0]
x = roam_town_map_pos[1]
y = roam_town_map_pos[2]
addRoaming(icon_index)
pbDrawImagePositions(
@spritesMap["roaming#{icon_index}"].bitmap,
[[get_roaming_icon(Settings::ROAMING_SPECIES[roam_pos[0]][0]), (x * SQUARE_WIDTH) - 8 , (y * SQUARE_HEIGHT) - 8]]
)
@spritesMap["roaming#{icon_index}"].visible = @mode == 4
@spritesMap["roaming#{icon_index}"].bitmap.clear if @spritesMap["roaming#{icon_index}"] && @mode != 4
icon_index+=1
end
end
def addRoaming(icon_index)
return if @spritesMap["roaming#{icon_index}"]
@spritesMap["roaming#{icon_index}"] = BitmapSprite.new(@mapWidth, @mapHeigth, @viewportMap)
@spritesMap["roaming#{icon_index}"].x = @spritesMap["map"].x
@spritesMap["roaming#{icon_index}"].y = @spritesMap["map"].y
@spritesMap["roaming#{icon_index}"].visible = @mode == 4
@spritesMap["roaming#{icon_index}"].z = 20
end
[Pokémon Essentials version 21.1]
[v21.1 Hotfixes 1.0.5]
Exception: NoMethodError
Message: undefined method `[]' for nil:NilClass
Backtrace:
[Arcky's Region Map] 003_RegionMap_Pokedex.rb:31:in `pbStartScene'
[Pokedex Data Page] [001] Page Setup.rb:72:in `pbStartScene'
296:UI_Pokedex_Entry:583:in `pbStartScreen'
295:UI_Pokedex_Main:879:in `pbDexEntry'
295:UI_Pokedex_Main:1281:in `block (2 levels) in pbPokedex'
295:UI_Pokedex_Main:1257:in `loop'
295:UI_Pokedex_Main:1257:in `block in pbPokedex'
079:MessageConfig:721:in `pbActivateWindow'
295:UI_Pokedex_Main:1256:in `pbPokedex'
295:UI_Pokedex_Main:1299:in `pbStartScreen'
Are you opening the pokedex from a map that has no location defined on the region map?Was checking out the pokemon in the pokedex. Any reason for this error or any help?
Ruby:[Pokémon Essentials version 21.1] [v21.1 Hotfixes 1.0.5] Exception: NoMethodError Message: undefined method `[]' for nil:NilClass Backtrace: [Arcky's Region Map] 003_RegionMap_Pokedex.rb:31:in `pbStartScene' [Pokedex Data Page] [001] Page Setup.rb:72:in `pbStartScene' 296:UI_Pokedex_Entry:583:in `pbStartScreen' 295:UI_Pokedex_Main:879:in `pbDexEntry' 295:UI_Pokedex_Main:1281:in `block (2 levels) in pbPokedex' 295:UI_Pokedex_Main:1257:in `loop' 295:UI_Pokedex_Main:1257:in `block in pbPokedex' 079:MessageConfig:721:in `pbActivateWindow' 295:UI_Pokedex_Main:1256:in `pbPokedex' 295:UI_Pokedex_Main:1299:in `pbStartScreen'
that's really strange, the line the error referse to is the one that gets the player's position on the region map and in your case it seems to be not defined.Honestly unsure. I have the default maps from essentials at the moment and it seems to appear only when the modular pokedex switch is on and works fine when it is off.
playerpos = (map_metadata) ? map_metadata.town_map_position : nil
playerpos = map_metadata && map_metadata.town_map_position ? map_metadata.town_map_position : [0, 0, 0]
Works like a charm now! Thank you very much! Much love! Thanks for the amazing plugin. Always wanted the ability to have bigger maps with more functions.let's try this fix: open the 003_RegionMap_Pokedex.rb file and search for the line where it says
and replace it with this line:Original Line:playerpos = (map_metadata) ? map_metadata.town_map_position : nil
Let me know if this fixed it for youNewLine:playerpos = map_metadata && map_metadata.town_map_position ? map_metadata.town_map_position : [0, 0, 0]
Really happy to hear that and no problem at all. Glad you like this plugin :DWorks like a charm now! Thank you very much! Much love! Thanks for the amazing plugin. Always wanted the ability to have bigger maps with more functions.
Appreciate your work!Really happy to hear that and no problem at all. Glad you like this plugin :D
Improvements:
Bug fixes:
- When changing Quests on a same location, the boxes will now changes more smoothly.
New...
- Fixed an issue when opening the Region Map from a Game Map that has no Town Map Location defined in the town_map.txt PBS. This is fixed for the quest map as well.
- Fixed an issue when viewing the Area of a Species from a Game Map that has no Town Map Location defined in the town_map.txt PBS.
check the settings file, maybe you removed something by accidentRecently updated. Any idea what might be the cause of this? Thanks for the assist.
View attachment 22844