Encounters RunTumeError

GeometricGames

Novice
Member
Joined
Jul 20, 2017
Posts
25
This is the second time I have posted something today, but I am pretty stuck (I have been working on this for a good hour maybe more) when I was setting the encounters for my game in the .txt file and when I was done this error popped up

This comes up right when I boot up my game.
I don't know why it would expect a Pokemon name in the place of 48, at one point I ended up deleting the whole thing and redoing it, but I still got the same message.
#########################
022 # Pallet Town
25,10,10
Water
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACRUEL,2
#########################
043 # Route 1
25,10,10
Land
PIDGEY,2
RATTATA,2
PIDGEOTTO,2
SENTRET,2
RATICATE,2
FURRET,2
HOOTHOOT,2
PIDGEOT,2
NOCTOWL,2
#########################
048 # Viridian City
25,10,10
Water
POLIWAG,2
POLIWAG,2
POLIWAG,2
POLIWHIRL,2
#########################
075 # Route 4
25,10,10
Land
SPEAROW,2
RATTATA,2
RATICATE,2
FEAROW,2
EKANS,2
ZUBAT,2
JIGGLYPUFF,2
ARBOK,2
GOLBAT,2
#########################
076 # Route 2
25,10,10
Land
PIDGEY,2
WEEDLE,2
KAKUNA,2
BEEDRILL,2
CATERPIE,2
METAPOD,2
BUTTERFREE,2
HOOTHOOT,2
PIDEOTTTO,2
SPINARAK,2
PIDGEOT,2
LEDYBA,2
NOCTOWL,2
ARIADOS,2
LEDIAN,2
#########################
082 # Route 3
25,10,10
Land
SPEAROW,2
RATTATA,2
RATICATE,2
FEAROW,2
EKANS,2
ZUBAT,2
JIGGLYPUFF,2
ARBOK,2
GOLBAT,2
#########################
087 # Route 21
25,10,10
Land
TANGELA,2
TANGELA,2
TANGELA,2
TANGELA,2
MRMIME,2
Water
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACRUEL,2
#########################
090 # The Void
25,10,10
Land
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
ZUBAT,2
METAGROSS,2
DRAGONITE,2
HYDREIGON,2
GARCHOMP,2
SALAMENCE,2
TYRANITAR,2
ZAPDOS,2
MOLTRES,2
ARTICUNO,2
MEWTWO,2
MEW,2
#########################
091 # Cinnabar Island
25,10,10
Land
TANGELA,2
TANGELA,2
TANGELA,2
TANGELA,2
MRMIME,2
Water
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACOOL,2
TENTACRUEL,2
That is what my .txt file looks like.

Thanks for any help. And watch out for the Demo of my game Pokemon Prime coming hopefully tonight (PS can my Game Jam entry be a Demo of a game).
 
This happens on startup? I'd try deleting the problem section (The encounters for Route 1), and hopefully then the game will start and you can add that section back in using the in-game editor.

About the jam question, yes it's okay if the game you enter is technically a demo, so long as it's following all the other rules (Posting up a resource pack with everything made, the game wasn't started before the jam started, all that jazz)
 

Kaleidophoenix

Novice
Member
Joined
Jul 14, 2017
Posts
17
Just looking at your .txt file, and I noticed that you have a different amount of Pokémon than default in basically all of the maps. The way encounters work is that each encounter type has a defined amount of Pokémon encounters possible, with different percentages on each line. The 'Land' encounter type has twelve lines, which means you can stick a maximum of twelve different Pokémon in land encounters. If you have more or less than twelve, you get that kind of error. (I got a few of those myself when I didn't check my lines carefully enough.)

The Pokémon Essential's Wiki has a page on this that should be helpful to you. There's also a link there to a tutorial on creating new encounter methods, if that interests you.
 
Top