Seen 1 Day Ago
Posted 6 Days Ago
9 posts
17 Days
I was looking at different areas of FireRed using Porymap, and I noticed a few encounters aren't listed. Parasect, Chansey, and Scyther/Pinsir aren't showing up in Porymap. Does anyone know the reason for that? Do I have to manually edit a different file? If so, what file? Please help.

EDIT: I figured out what was wrong, but now I need to know how to work with or around it. Is it possible to give separate encounter rates for each area instead of the encounter type (grass/Surf/Rock Smash/fishing)? Also, what happens when the game tries to load an encounter and the RNG lands on "SPECIES_NONE"?
Seen 1 Week Ago
Posted 1 Week Ago
327 posts
5.5 Years
I was looking at different areas of FireRed using Porymap, and I noticed a few encounters aren't listed. Parasect, Chansey, and Scyther/Pinsir aren't showing up in Porymap. Does anyone know the reason for that? Do I have to manually edit a different file? If so, what file? Please help.
I don't know why porymap doesn't show all the encounters, but you can always manually edit src/data/wild_encounters.json with a text editor. All of the encounters are there.

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 10 Hours Ago
Posted 1 Day Ago
3,006 posts
14.7 Years
I just checked it, and those encounters aren't listed there, either. I swear I haven't messed with the files at all before now.
Well, something must have happened on your end, because the table is complete on Pret's end.
https://github.com/pret/pokefirered/blob/master/src/data/wild_encounters.json#L1479-L1546

Perhaps you deleted entries by accident and didn't realize it?
You can use
git log src/data/wild_encounters.json
or alternatively
git diff
depending on how often you make commits in order to find out.
Seen 1 Day Ago
Posted 6 Days Ago
9 posts
17 Days
Perhaps you deleted entries by accident and didn't realize it?
That's exactly what happened. I was editing encounters on Route 1. I didn't realize that the encounter table was universal for all tall grass encounters.

That, of course, now begs the question, is it possible to add individual encounter rates to specific locations? Another question, what happens during the game when the RNG tries to load an encounter with "SPECIES_NONE"?

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 10 Hours Ago
Posted 1 Day Ago
3,006 posts
14.7 Years
That, of course, now begs the question, is it possible to add individual encounter rates to specific locations?
By default? No. You'll have to make code changes of your own to the functions inside
src/wild_encounter.c
and also the Inja template that generates the
src/data/wild_encounters.json
file, which is handled by
src/data/wild_encounters.json.txt
.

Another question, what happens during the game when the RNG tries to load an encounter with "SPECIES_NONE"?
The slot would spawn a somewhat functional MissingNo. aka the Species No. 0 when encountered In Game.
Seen 1 Day Ago
Posted 6 Days Ago
9 posts
17 Days
By default? No. You'll have to make code changes of your own to the functions inside
src/wild_encounter.c
and also the Inja template that generates the
src/data/wild_encounters.json
file, which is handled by
src/data/wild_encounters.json.txt
.
I see. So it's either figure that out, or determine where I want the largest number of different encounter ratios and just redundantly fill in the slots for all other areas.

Sorry, but what's an Inja template? Also, is there a guide that would even kind of help how to edit those files?

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 10 Hours Ago
Posted 1 Day Ago
3,006 posts
14.7 Years
Sorry, but what's an Inja template? Also, is there a guide that would even kind of help how to edit those files?
A template file whose contents let you to build text-based files in an automatized manner.
As I said, the contents of the Inja template within
src/data/wild_encounters.json.txt
are what allows these projects to generate a
src/data/wild_encounters.json
file.

As for guides, refer to the documentation in the GitHub repository of the Inja template engine.
https://github.com/pantor/inja#tutorial