false-spring / gbfr-logs

GBFR Logs lets you track damage statistics with a nice overlay DPS meter for Granblue Fantasy: Relink.
MIT License
214 stars 25 forks source link

Add clipboard feature to export character data #92

Closed shimonami closed 8 months ago

shimonami commented 8 months ago

Fixes #90

Add clipboard button to export character data over clipboard Reorganize "Level" to the player stats columns (to save characters on the cell)

image

exported data comes as a JSON

// Character Data example
{"actorIndex":403,"displayName":"Shimo","characterName":"Io","characterType":"Pl0400","sigils":[{"firstTraitId":3029266248,"firstTraitLevel":15,"secondTraitId":296412661,"secondTraitLevel":15,"sigilId":3803414757,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":9398,"notificationEnum":2},{"firstTraitId":1280871463,"firstTraitLevel":15,"secondTraitId":2289754288,"secondTraitLevel":15,"sigilId":3666949793,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":2374,"notificationEnum":2},{"firstTraitId":3689011061,"firstTraitLevel":15,"secondTraitId":3696775008,"secondTraitLevel":15,"sigilId":2451411160,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":221254,"notificationEnum":2},{"firstTraitId":2368396142,"firstTraitLevel":15,"secondTraitId":3696775008,"secondTraitLevel":15,"sigilId":3996352483,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":221249,"notificationEnum":2},{"firstTraitId":1552297491,"firstTraitLevel":15,"secondTraitId":3696775008,"secondTraitLevel":15,"sigilId":1144547182,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":221245,"notificationEnum":2},{"firstTraitId":1552297491,"firstTraitLevel":15,"secondTraitId":3696775008,"secondTraitLevel":15,"sigilId":1144547182,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":221246,"notificationEnum":2},{"firstTraitId":1470847760,"firstTraitLevel":15,"secondTraitId":612907763,"secondTraitLevel":15,"sigilId":56249821,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":30383,"notificationEnum":2},{"firstTraitId":1470847760,"firstTraitLevel":15,"secondTraitId":2335962636,"secondTraitLevel":15,"sigilId":56249821,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":245581,"notificationEnum":2},{"firstTraitId":1470847760,"firstTraitLevel":15,"secondTraitId":99806428,"secondTraitLevel":15,"sigilId":56249821,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":242218,"notificationEnum":2},{"firstTraitId":2373493147,"firstTraitLevel":15,"secondTraitId":2404396813,"secondTraitLevel":15,"sigilId":196723080,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":230650,"notificationEnum":2},{"firstTraitId":801700863,"firstTraitLevel":15,"secondTraitId":3536380170,"secondTraitLevel":15,"sigilId":3896853593,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":258976,"notificationEnum":2},{"firstTraitId":2215087280,"firstTraitLevel":15,"secondTraitId":831329001,"secondTraitLevel":15,"sigilId":2442488633,"equippedCharacter":1292525763,"sigilLevel":15,"acquisitionCount":74761,"notificationEnum":2}],"isOnline":false,"weaponInfo":{"weaponId":393858400,"starLevel":6,"plusMarks":99,"awakeningLevel":10,"trait1Id":2373493147,"trait1Level":10,"trait2Id":2215087280,"trait2Level":7,"trait3Id":5462430,"trait3Level":5,"wrightstoneId":1756474947,"weaponLevel":150,"weaponHp":99,"weaponAttack":2285},"overmasteryInfo":{"overmasteries":[{"id":1170626407,"flags":512,"value":20},{"id":1136089117,"flags":512,"value":20},{"id":3297926103,"flags":512,"value":1000},{"id":2622837811,"flags":512,"value":20}]},"playerStats":{"level":100,"totalHp":37685,"totalAttack":20094,"stunPower":13,"criticalRate":100,"totalPower":21525}}
shimonami commented 8 months ago

Needs some help to update the languages JSON, on README it says to update ui.json but most languages doesnt have an ui.json file

false-spring commented 8 months ago

Thanks @shimonami, this works! Don't worry about adding the actual language data for other languages, as long as things use the translation functions then that's good enough.