|
1 | 1 | # Visualizing Your World Logic |
2 | 2 |
|
3 | 3 | ## Visualizing Regions as a UML Diagram |
4 | | -There's a wonderful tool in Archipelago (written by el_) that allows viewing all of your region connections visually as a diagram! Manual doesn't officially have a way to use this tool yet, but we hope to one day! |
5 | | - |
6 | | -(To make use of this feature, you'll want to get a UML viewer like PlantUML.) |
| 4 | +When troubleshooting region connections while building a world, it can be helpful to see that you've connected those regions (and their locations) properly. By setting the `generate_region_diagram: true` in your yaml, a UML file will be added to your Archipelago install folder when you generate this world. Open that UML file in a UML viewer (such as PlantUML), and it will lay out region connections with boxes and lines interconnecting them. |
7 | 5 |
|
8 | 6 |  |
9 | 7 |
|
10 | | -Until Manual officially supports using it, there's a workaround to use it if you don't mind looking at a tiny amount of code: |
| 8 | +To generate a region diagram: |
11 | 9 |
|
12 | | -1. Extract/unzip your apworld into a folder in your worlds folder, as if you were going to make changes to it. |
13 | | -2. Open the `__init__.py` file that's in the main folder (not the `hooks` folder). |
14 | | -3. Search for the text `visualize_regions`. |
15 | | -4. Remove the `#` from the front of the two lines that match to uncomment them. |
16 | | -5. Save the `__init__.py` and generate your world! |
17 | | -6. Open the .puml file that gets generated in your Archipelago folder. It will have the same name as your apworld. |
| 10 | +1. Install your apworld as if you were going to play it |
| 11 | +2. Generate a template yaml, and set any options that might change the logic |
| 12 | +3. Add `generate_region_diagram: true` to your yaml |
| 13 | +4. Generate a seed |
| 14 | +5. Find the .puml file that gets generated in your Archipelago folder. It will have the same name as your apworld. |
| 15 | +6. Put the contents of that file into a viewer like [PlantUML](https://www.planttext.com/) |
18 | 16 |
|
19 | 17 | ## Organizing Connected Ideas on a Graph |
20 | 18 | Some tools can help with visualizing your game's structure. |
|
0 commit comments