Newbie Spellweaver
- Joined
- Dec 26, 2019
- Messages
- 82
- Reaction score
- 60
First, Thank you so much for Advanced guide, its cover everything i need to edit Banners.Hi, first i would suggest when exporting the table to use json format, in that case if you're using vscode to view the file, vscode can format json file, the file will be much more easier to read and modify
I've successfully changed the 'The Moongrass' Enlightenment' (nahida's banner) into 'Leaves In The Wind' (Kazuha Banner)
Here's how I've done it:
Note: All interactions with MySQL DB are performed through MySQLWorkBench software on windows host machine
1. Export mysql's table 't_gacha_schedule_config' as json file format
2. Change the fowllowing lines:
- Optional: open that file in vscode and right-click → format document (alt+shift+F)
Note: in Banners.tsj you can get the banner's info by looking up which version that banner is released under, with the help of online sites that has a list of banners with their corresponding images and release date such asCode:"gacha_type": 301, // [URL="http://github.com/Grasscutters/Grasscutter/blob/100d08ec5d44892d8fea7140bdc6aee72de4ace6/src/main/java/emu/grasscutter/game/gacha/GachaBanner.java#L234-L239"]more info[/URL] "gacha_pool_id": 201 // ID value are from GachaPoolData.txt // using [URL="http://github.com/Grasscutters/Grasscutter/blob/development/src/main/resources/defaults/data/Banners.tsj"]Banners.tsj[/URL] should be straight forward as to determine what's the parent item and the child item_list "gacha_up_config": "{"gacha_up_list":[{"item_parent_type":1,"prob":500,"item_list":[1047]},{"item_parent_type":2,"prob":500,"item_list":[1027,1059,1050]}]}", // Both fields below should match the type id i.e(A***) "gacha_prefab_path": "GachaShowPanel_A086", "gacha_preview_prefab_path": "UI_Tab_GachaShowPanel_A086", "enabled": 1, // can be determine from Banners.tsj "title_textmap": "UI_GACHA_SHOW_PANEL_A045_TITLE",
You must be registered to see links
- for example in our case that banner is listed on the site under update `2.8`
- then you can determine which half it has been released under either a or b
- looking inside 'Banners.tsj' you can see the parent character id [1047] and it's chiled characters IDs [1027,1059,1050]
- 'UI_GACHA_SHOW_PANEL_A045_TITLE' can be determined from 'Banners.tsj' (linked above)
Import that file into the database
Importatnt: check the option 'Truncate table' before importing in case you've formatted that `json` file, else your changes won't take effect, it will import successfully, but that data won't change
After successfully importing the file, you can verify by Right-click that table → select rows, and ensure that changes has been made
You must be registered to see linksmy edited table in json file format working perfectly
sorry i post the wrong *.sql file that's not modified and i forgot to mention that i want edit Standard banner and make looks like official:
1003,1016,1035,1041,1042,1069 those are 5 stars exist in standard banner alongside with weapons 15502,11501,12502,14502,13505,11502,12501,13502,14501,15501
So i tried modify like this (without 50% 4 stars):
and also tried do this (with 4 stars Amber, Kaeya and Lisa) :{"gacha_up_list":[{"item_parent_type":1,"prob":500,"item_list":[1003,1016,1035,1041,1042,1069,15502,11501,12502,14502,13505,11502,12501,13502,14501,15501]}]}
{"gacha_up_list":[1002,1003,1016,1022,1026,1029,1030,1033,1035,1037,1038,1041,1042,1046,1047,1049,1051,1052,1054,1057,1058,1063,1066]},{"item_parent_type":2,"prob":500,"item_list":[1006,1015,1021]}]}'
i notice that the weapon banner when you lose there's chance to get character instead of weapon and i assume that we can modified that too right?
Attachments
You must be registered for see attachments list