hello, every moth i use rb.populate all command, to generate those json files with the new game items. like flowers in last month, but this new json files ther are sorted in another way! , so i can not longer compare whats new! and i don want to re do all over again, so can you revert back the sorting or add a feature to "sorting by" to rb populate, or someone has any suggestion on which text editor can compare unsorted text files, thanks
Help request!
heya, sort exists in the free version. I don't know why it's not in the premium version, but i'll add it back next update
free version line 15290 in the .cs exists already:
items.Sort((x, y) => x.shortname.CompareTo(y.shortname));
paid version line 18434 in the .cs you can add:
currentLootList.Sort((x, y) => x.shortname.CompareTo(y.shortname));
o thanks so much, i am not a aprogrammer, buy i think a can handle that, PS i love you!
no problem, if you're just adding it to the paid version then you can use notepad++ and goto that line number by
- pressing ctrl+G in notepad++
- type 18434
- click Go
- CTRL+V the code I gave you
- save .cs
- make sure plugin reloads.
this will sort it alphabetically as intended.
hello, me again, actually happens en normal bases too-
may be translation its not right, this is my issue, this is normal free march json file, its sorted
| MARCH EDITABLE LIST |
| "shortname": "abovegroundpool", |
| "shortname": "aiming.module.mlrs", |
| "shortname": "ammo.grenadelauncher.buckshot", |
| "shortname": "ammo.grenadelauncher.he", |
| "shortname": "ammo.grenadelauncher.smoke", |
| "shortname": "ammo.handmade.shell", |
| "shortname": "ammo.rocket.mlrs", |
| "shortname": "ammo.rocket.sam", |
| "shortname": "ammo.rocket.seeker", |
| "shortname": "ammo.rocket.smoke", |
| "shortname": "ammo.shotgun", |
| "shortname": "ammo.shotgun.fire", |
| "shortname": "ammo.shotgun.slug", |
| "shortname": "antiradpills", |
| "shortname": "apple", |
| ,,,, |
| "shortname": "xmasdoorwreath", |
| "shortname": "xylophone", |
| "shortname": "yellow.berry", |
| "shortname": "yellowidtag", |
it ends with "yellowtags"
this is Aprils
| APRIL EDITABLE LIST |
| "shortname": "abovegroundpool", |
| "shortname": "ammo.grenadelauncher.buckshot", |
| "shortname": "ammo.grenadelauncher.he", |
| "shortname": "ammo.handmade.shell", |
| "shortname": "ammo.nailgun.nails", |
| "shortname": "ammo.pistol", |
| "shortname": "ammo.shotgun", |
| "shortname": "ammo.shotgun.fire", |
| "shortname": "ammo.shotgun.slug", |
| "shortname": "antiradpills", |
| "shortname": "apple", |
| ,,,, |
| "shortname": "wooden.shield", |
| "shortname": "woodtea.pure", |
| "shortname": "workbench3", |
| "shortname": "xylophone", |
| "shortname": "aiming.module.mlrs", |
| "shortname": "ammo.grenadelauncher.smoke", |
| "shortname": "ammo.rocket.sam", |
| "shortname": "ammo.rocket.smoke", |
| "shortname": "apple.spoiled", |
| "shortname": "arrow.bone", |
| "shortname": "arrow.fire", |
| "shortname": "arrow.hv", |
| "shortname": "arrow.wooden", |
| "shortname": "attire.banditguard", |
| "shortname": "attire.bunny.onesie", |
| "shortname": "xmas.window.garland", |
| "shortname": "xmasdoorwreath", |
| "shortname": "yellow.berry", |
| "shortname": "yellowidtag", |
it goes from "abovegroundpool" to "xylophone" and starts again with "aiming.module.mlrs" to "yellowidtag"
its like two blocks of sorted shortnames
any ideas?
ah yes, the sort is on the wrong line in the free version.
this needs to be added to line 15300 in the RaidableBases.cs file:lootList.Sort((x, y) => x.shortname.CompareTo(y.shortname));
wow, Excellent!, it's perfect now, thank you so much!
no problem, enjoy