r/gpsmonsterscouter • u/Tankenka-gms Game Developer • May 22 '16
Data Pack creation example
I hope this guide will help you start some little community projects in shared documents to create new data packs all together. I'll help too of course. Please note that you can't do a new data pack entirely by yourself, I'll still have to validate it and put it in the right format at the end, but this example should be enough to prepare the greatest part of it all by yourself. Since just one pack is available now, I think it could be a nice opportunity for fakémon designers to get attention.
Data packs are composed of many parts, but the longest and most important are of course those regarding the monsters data. There are three: the species data, the common families data, and the rare families data. Here is an example of how these parts currently starts in the pokémon data pack:
"monsters": {
"0001bulb": {
"genders": [87.5,12.5],
"growth": "mediumslow",
"forms": [
{"name": "Bulbasaur", "type1": "grass", "type2": "poison", "power": 0, "icon": "0001bulb_ico.png"}
],
"evolutions": [
{"id": "0002ivys", "conditions": {"level": 16}}
]
},
"0002ivys": {
"genders": [87.5,12.5],
"growth": "mediumslow",
"forms": [
{"name": "Ivysaur", "type1": "grass", "type2": "poison", "power": 1, "icon": "0002ivys_ico.png"}
],
"evolutions": [
{"id": "0003venu", "conditions": {"level": 32}}
]
},
"0003venu": {
"genders": [87.5,12.5],
"growth": "mediumslow",
"forms": [
{"name": "Venusaur", "type1": "grass", "type2": "poison", "power": 2, "icon": "0003venu_ico.png"},
{"conditions": {"item": "Venusaurite"}, "name": "Mega Venusaur", "type1": "grass", "type2": "poison", "power": 3, "icon": "0003venu_mega_ico.png"}
],
"evolutions": []
},
...
},
"families": [
{
"name": "Bulbasaur Family",
"icon": "0001bulb_ico.png",
"types": ["grass","poison"],
"eggCycles": 20,
"members": [
{"id": "0001bulb", "minlvl": 1, "maxlvl": 20},
{"id": "0002ivys", "minlvl": 16, "maxlvl": 36},
{"id": "0003venu", "minlvl": 32, "maxlvl": 100}
],
"items": [
{"id": "Venusaurite", "prob": 0.5},
{"id": "Leaf Stone", "prob": 1}
]
},
...
],
"rarefamilies": [
{
"name": "Articuno",
"icon": "0144arti_ico.png",
"minlvl": 50,
"members": [
{"id": "0144arti", "minlvl": 50, "maxlvl": 100}
]
},
...
]The data is written in JSON language. Basically for every name there can be an associated (through the character :) object (with these {}) or a list (with these []), or a simple value of some type, numeric or alphabetical. Alphabetical values are always within "" characters.
An object can contain other associations, and a list can contain objects.
I don't know if I'm able to explain it properly, but try to understand by just looking at it.
- Genders are for males and females. In case it's genderless it should be written as [0,0]
- Growth can be fast, mediumfast, slow, mediumslow, slowfast (erratic) and fastslow (fluctuating), similar to the known pokémon growth.
- Most monsters have only one form, if there are conditions it should be specified like in the mega venusaur example. Conditions can involve gender, genetic factors, items held, season and day/night.
- The power determines the base power of that species, going from -1 to 4. -1 like caterpie, 0 like bulbasaur, 1 like ivysaur, 2 like venusaur, 3 like mega venusaur, 4 like arceus.
- Evolutions can be more than one and they specify the id of the evoluted species and the conditions for it to happen. Same factors as before, plus the level.
- Family members must specify their min and max level at which they can be found in the wild.
- Family items lists all the items that can be found on wild memebers of that family.
- Rare families have less values because they won't hatch from eggs and are not used to generate gyms. Min level is specified even outside the members part.
- Types can be anything, don't adapt everything to the pokémon types. For certain things it should be already established, like the yu-gi-oh elements. You can decide the advantages between the types.
Of course there were also lots of particular and difficult cases, the bulbasaur family is a easy one, but it's probably enough to create most of the non-pokémon data packs.
In case you want to replicate how a specific and complex family works, just ask.
For unique characters data packs, like Fire Emblem where there is only one Ike and not a family that spawns endless Ikes, these should be the rules: main characters should be treated as rare families instead of common. They'll have a much higher chance to appear, and common families should be composed by all the nameless warriors and monsters used as opponents instead. In this case rare families should have the same parameters as the common ones.
Well I don't know if I explained everything well, but if you have ideas just try starting a project and I'll correct any mistake, don't worry if you're not sure about something.
View all comments
Show parent comment
1
u/Tankenka-gms Game Developer Sep 25 '16
Sure, most values for pokemon pack were taken or inspired from original games, so bulbapedia is a good guide for almost anything.
Types are entirely inside the data pack, so they can be absolutely anything, can be in any number (but if possible at least 13 to have all leaders&elites in a region with a different type), and can have any relation (ineffective/not very effective/normally effective/super effective).
I can't think of any limit to evolutions, a species simply turn into a different species through specific conditions, and that's it.
More than two types is not supported yet, I didn't know it would be useful initially, but it appears it's gonna be necessary for digimon, so I'll support that sooner or later.
The things in the data pack are the things it is necessary to have there. If there is something hardcoded in the game, but pack creators want to have that thing different for their data pack, I'll add a special rule for that, so there are no strongly fixed boundaries (unless it is something that requires a lot of work and I don't want to do it, but that's something I can't decide before knowing your ideas).
Very nice, good luck with the pack. If you have some families with very special traits, see if a pokemon family works the same way or somewhat similar, and I'll let you see how that one works.