Jaliborc / PetTracker

Tracks pets, alerts for upgrades and helps you in pet battles.
47 stars 25 forks source link

Database for DF #332

Closed Mike160770 closed 1 year ago

Mike160770 commented 1 year ago

Any ETA for implementing the pets from Dragonflight?

gouges2 commented 1 year ago

I second this.

fiote commented 1 year ago

The author isnt much active on github those days (not judging, just noting). If they can let us know how you make the database (I took a look and it's compacted somehow), we could try to create it ourselves and make a PR with it.

mluks commented 1 year ago

The strings in the database file work like this it looks like:
Azure Span for example [2024]={[3357]="JGGO"} is map id 2024, species 3357 => Azure Crystal Spine, JG is a base 36 number and GO is a base 36 number. For each you convert to decimal, divide by 1000 to get a percentage of the width or height of the map to place the pin. That's a lot of data to input though. Having said all that, is under GNU licensing so no permission for modifications.

mluks commented 1 year ago

Oh well, if you want to add this to your copy....I didn't add specific locations but did add maps. It will at least work for the tracker at the bottom of quest list and give you one stack point at the upper left corner of the map that you can hover over. Copy and paste it right after the Addon.Species={ in pettracker/addons/main/api/data.lua [2025]={[3272]="0U0U",[3276]="0U0U",[3282]="0U0U",[3295]="0U0U",[3296]="0U0U",[3336]="0U0U",[3351]="0U0U",[3366]="0U0U",[3301]="0U0U",[3313]="0U0U",[3352]="0U0U",[3353]="0U0U",[3358]="0U0U",[3384]="0U0U",[3403]="0U0U",[3404]="0U0U",},[2024]={[3260]="0U0U",[3272]="0U0U",[3276]="0U0U",[3281]="0U0U",[3282]="0U0U",[3283]="0U0U",[3288]="0U0U",[3295]="0U0U",[3296]="0U0U",[3320]="0U0U",[3322]="0U0U",[3328]="0U0U",[3335]="0U0U",[3336]="0U0U",[3351]="0U0U",[3354]="0U0U",[3356]="0U0U",[3357]="0U0U",[3366]="0U0U"},[2023]={[3266]="0U0U",[3276]="0U0U",[3281]="0U0U",[3288]="0U0U",[3296]="0U0U",[3322]="0U0U",[3327]="0U0U",[3328]="0U0U",[3329]="0U0U",[3353]="0U0U",[3389]="0U0U",[3300]="0U0U",[3301]="0U0U",[3307]="0U0U",[3313]="0U0U",[3282]="0U0U",[3272]="0U0U"},[2022]={[3272]="0U0U",[3273]="0U0U",[3280]="0U0U",[3281]="0U0U",[3282]="0U0U",[3283]="0U0U",[3295]="0U0U",[3296]="0U0U",[3300]="0U0U",[3301]="0U0U",[3307]="0U0U",[3313]="0U0U",[3318]="0U0U",[3336]="0U0U",[3366]="0U0U",[3367]="0U0U",[3385]="0U0U"},

GurliGebis commented 1 year ago

The strings in the database file work like this it looks like: Azure Span for example [2024]={[3357]="JGGO"} is map id 2024, species 3357 => Azure Crystal Spine, JG is a base 36 number and GO is a base 36 number. For each you convert to decimal, divide by 1000 to get a percentage of the width or height of the map to place the pin. That's a lot of data to input though. Having said all that, is under GNU licensing so no permission for modifications.

GNU permits changes and forks, that's the whole idea behind it 🙂

mluks commented 1 year ago

The strings in the database file work like this it looks like: Azure Span for example [2024]={[3357]="JGGO"} is map id 2024, species 3357 => Azure Crystal Spine, JG is a base 36 number and GO is a base 36 number. For each you convert to decimal, divide by 1000 to get a percentage of the width or height of the map to place the pin. That's a lot of data to input though. Having said all that, is under GNU licensing so no permission for modifications.

GNU permits changes and forks, that's the whole idea behind it 🙂

I thought I read that it was GNU with a special licensing restriction added on but now I can't find it so thanks for pointing that out!