pokemonmasteraaron

The blind Pokémon Master!

Age 24
Male
In the forest of an undiscovered region
Seen 1 Hour Ago
Posted 1 Hour Ago
323 posts
10 Years
Hello!

Trying to get all of this done without asking questions, and I've really gotten very far on extensive research and trial and error, but nobody's really writing about wild encounter modifications.
I'm using Emerald with Dizzy's upgrades from the rh-hideout.

I'm trying to replace route 101 encounters with Sw/SH and S/M Pokemon.
I found the json file and modified it, but this alone is not enough. I try recompiling and everything's untouched re: wild encounters.

I find the wild encounters header file and note that all the original encounters are still there with none of my changes.
Also, deleting this file does not cause the make process to fail, and a new file is not generated, so this file looks 100% irrelevant... Though maybe that has to do with object file caching.
In an attempt to figure out how to generate the C / assembly code for wild encounters, I did run across mapjson in the tools dir, but there appears to be no documentation on its usage. E.G. what goes in the mode field.

Hoping this is a super easy problem that someone wouldn't mind clarifying for me.

If you happen to know this question has in fact already been answered, fill free to link to it as that might be a location where I can find answers to other problems I expect to encounter.

Thanks for your help!
Game developer.
Not nearly as active on here as I used to be.
Still like meeting and talking to pokemon fanatics like myself.

pokemonmasteraaron

The blind Pokémon Master!

Age 24
Male
In the forest of an undiscovered region
Seen 1 Hour Ago
Posted 1 Hour Ago
323 posts
10 Years
If you use PoryMap, for each route/cave/etc, there's a wild encounter section that allows you to edit the species, and level of the wild Pokemon in the area, as well as many other helpful tools.


Thanks, I actually already know about Porymap, it has come up all over my research, but certain aspects aren't working with the screen reader software I'm using to access my computer, so manually editing is really the only option here.
Game developer.
Not nearly as active on here as I used to be.
Still like meeting and talking to pokemon fanatics like myself.

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 6 Hours Ago
Posted 1 Day Ago
2,697 posts
12.3 Years
Hello!

Trying to get all of this done without asking questions, and I've really gotten very far on extensive research and trial and error, but nobody's really writing about wild encounter modifications.
I'm using Emerald with Dizzy's upgrades from the rh-hideout.

I'm trying to replace route 101 encounters with Sw/SH and S/M Pokemon.
I found the json file and modified it, but this alone is not enough. I try recompiling and everything's untouched re: wild encounters.

I find the wild encounters header file and note that all the original encounters are still there with none of my changes.
Also, deleting this file does not cause the make process to fail, and a new file is not generated, so this file looks 100% irrelevant... Though maybe that has to do with object file caching.
In an attempt to figure out how to generate the C / assembly code for wild encounters, I did run across mapjson in the tools dir, but there appears to be no documentation on its usage. E.G. what goes in the mode field.

Hoping this is a super easy problem that someone wouldn't mind clarifying for me.

If you happen to know this question has in fact already been answered, fill free to link to it as that might be a location where I can find answers to other problems I expect to encounter.

Thanks for your help!
Which file are you modifying?
src/data/wild_encounters.json
is the one you should be editing specifically.

pokemonmasteraaron

The blind Pokémon Master!

Age 24
Male
In the forest of an undiscovered region
Seen 1 Hour Ago
Posted 1 Hour Ago
323 posts
10 Years
Hi! Yes, I am modifying src/data/wild_encounters.json. Though I got nowhere with that, I was finally able to get a change to go through by modifying the header directly. Now, as you know with C, headers aren't recompiled if nothing which includes them needs recompiled, so I had to touch src/wild_encounter.c to get those changes to propagate. Anyway, so I guess we've at least narrowed this down to one simple question. How do I get the changes in wild_encounters.json to propagate to wild_encounters.h.

Edit: Got it! If I touch a file that includes the header, and I delete the header, the make command does build the header from the json and it does propagate. So my last question is, is there any way to make this easier? I'd rather not be deleting and touching every time I change a wild encounter! I could just write a shell script...but ewwww!
Game developer.
Not nearly as active on here as I used to be.
Still like meeting and talking to pokemon fanatics like myself.