- 10,673
- Posts
- 16
- Years
- Seen Sep 29, 2024
Hello, can someone help me with this error, please?
It occurs when I manually modify the encounters.txt file, and then I try to open Editor.exe. Thanks.
Code:Compiler:1067:in `pbCompileEncounters' Compiler:3926:in `pbCompileAllData' Compiler:4034 Exception: RuntimeError Message: Undefined encounter type , expected one of the following: ["Land", "Cave", "Water", "RockSmash", "OldRod", "GoodRod", "SuperRod", "HeadbuttLow", "HeadbuttHigh", "LandMorning", "LandDay", "LandNight", "BugContest"] File PBS/encounters.txt, line 1
Alright, right off I'm assuming you've forgotten to define where the pokemon are being encountered. Or you have spelled the area encounter type incorrectly. For example, this would be a code which would be correct, though I'm not sure if this will help you or not as you may have tried this already. The bold are the areas you should take a look at.
Code:
############
[B]002 # Cave[/B]
25,10,10
[B]Cave[/B]
ZUBAT,8
GEODUDE,9
ZUBAT,10
GEODUDE,8
ZUBAT,9
GEODUDE,10
ONIX,9
NOSEPASS,6
ONIX,10
NOSEPASS,8
NOSEPASS,10
NOSEPASS,10
In fact, the error says the issue is in line one, so take a look at that line.