Comments (3)
This is what needs to be done to rename a map in a group. I chose to rename everything but the individual script names and I believe that is what most people will do as well. I will use renaming Littleroot Town as an example and renaming it to Test Town:
- Rename the LittlerootTown folder in data\maps to TestTown.
- In the data\maps\TestTown folder, open connections.inc and rename the three labels there to TestTown_
- In the data\maps\TestTown folder, open events.inc and rename the five labels there to TestTown_. Don't forget to rename the labels in the TestTown_MapEvents section.
- In the data\maps\TestTown folder, open header.inc and rename the first label there to TestTown and the next four to TestTown_
- In the data\maps\TestTown folder, open scripts.inc and rename the LittlerootTown_MapScripts:: label to TestTown_MapScripts::.
- In the data\maps folder, open connections.inc find the line that says ".include "data/maps/LittlerootTown/connections.inc"" and rename LittlerootTown to TestTown.
- In the data\maps folder, open groups.inc and rename LittlerootTown to TestTown.
- In the data\maps folder, open headers.inc and find the line that says ".include "data/maps/LittlerootTown/header.inc"" and rename LittlerootTown to TestTown.
- In the data folder, open layouts.inc and find the line that says ".include "data/layouts/LittlerootTown/layout.inc"" and rename LittlerootTown to TestTown.
- In the data folder, open layouts_table.inc and rename LittlerootTown_Layout to TestTown_Layout.
- In the data folder, open map_events.s and find the line that says ".include "data/maps/LittlerootTown/events.inc"" and rename LittlerootTown to TestTown.
- Rename the LittlerootTown folder in data\layouts to TestTown.
- In the data\layouts\TestTown folder, open layouts.inc and rename the three labels there to TestTown_. Don't forget to rename the labels within the TestTown_Layout section.
- In the data folder, open event_scripts.s and find the line that says ".include "data/maps/LittlerootTown/scripts.inc"" and rename LittlerootTown to TestTown.
- Now, change all references to MAP_LITTLEROOT_TOWN in your pokeemerald or pokeruby directory to MAP_TEST_TOWN. These will be in \include\constants\maps.h, the events of any map that warps to the Littleroot Town map, the connections of any map connected to Littleroot Town, and referenced in scripts if events are hidden in or a script warps the player to Littleroot Town. I had 25 hits when running a find in files search (whole word only) on my pokeemerald directory. If you don't search whole word only, your search will include other maps that have MAP_LITTLEROOT_TOWN in their names, like MAP_LITTLEROOT_TOWN_MAYS_HOUSE_1F. Be sure not to replace those.
- In the src folder, open region_map.c, navigate down to the declaration of sMapHealLocations and change "{MAP_GROUP(LITTLEROOT_TOWN), MAP_NUM(LITTLEROOT_TOWN), HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F}," to "{MAP_GROUP(TEST_TOWN), MAP_NUM(TEST_TOWN), HEAL_LOCATION_LITTLEROOT_TOWN_BRENDANS_HOUSE_2F},".
- In the data\src\data folder, open heal_loactions.h and replace LITTLEROOT_TOWN with TEST_TOWN on lines 14 and 15. This only needs to be done if the map you're renaming is in this list.
Hopefully this will make adding functionality to do this easier, as this sucks to do manually.
from porymap.
Seems that all that needs to be done to reorder map groups is to edit groups.inc in data\maps but you have to make clean after doing so because the compiler won't redo the affected labels if the files they're in weren't touched.
EDIT: I lied. Seems in addition to what I said above, you need to update the connections to the map you moved in porymap and then save. Dragging one tile and then back is enough. For some reason, that updates everything and makes warps redirect to the (new) correct ordering. Not sure what porymap does to allow that to work, but it does.
from porymap.
Closing, in favor of #181
from porymap.
Related Issues (20)
- Porymap can crash if File -> Reload Project fails
- Shortcuts Editor can't initialize new actions HOT 1
- Make a list of recent projects
- Encounter rate defaults to 0
- Script dropdown doesn't include local scripts
- Support vertical spritesheets for overworld sprites
- Setting metatile attributes with the API doesn't update the Tileset Editor HOT 1
- Issues with themes
- Config files to JSON
- Map list isn't filtered on project open
- Border view doesn't scroll HOT 1
- Zoom sliders can jump the images around
- Excessive error logging for parsing issues
- Selection display images can scroll incorrectly
- Alternate Layouts No editable HOT 1
- Allow for easy switching to dive and emerge maps
- No warning shown when user attempts to create a map with an invalid name HOT 3
- "Check for Updates" returns an https error on Windows
- error trying to open project HOT 1
- Add warning for opening invalid project directories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from porymap.