cfi2017 / bl3-save

CLI and Web-Based Save Editor for Borderlands 3
https://bl3.swiss.dev
MIT License
70 stars 13 forks source link

Failure to save profiles containing specific anointment and weapon combinations #19

Open Alicemetic opened 3 years ago

Alicemetic commented 3 years ago

Hi,

When I created a number of items and pressed the save button, I noticed that a dialog box appeared saying that the save failed. After some experimentation, I found out that the GPart_Siren_PhaseflareDamage anointment on some of the weapons was causing this error. However, this anointment does not cause problems with all weapons, only some (e.g. S3RV-80S-EXECUTE and Psycho Stabber) cause save failures.

Sorry the information is not complete, but I hope it can be fixed.

[31m2021/09/07 22:34:52 [Recovery] 2021/09/07 - 22:34:52 panic recovered:
runtime error: index out of range [150] with length 2
/opt/hostedtoolcache/go/1.14.15/x64/src/runtime/panic.go:88 (0x4343f9)
/home/runner/go/pkg/mod/github.com/cfi2017/bl3-save-core@v1.2.4/pkg/item/item.go:178 (0x634acd)
/home/runner/work/bl3-save/bl3-save/internal/server/character.go:242 (0x9d5ab4)
/home/runner/work/bl3-save/bl3-save/internal/server/profile.go:122 (0x9d847a)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/context.go:156 (0x9b9fb1)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/recovery.go:83 (0x9cdb66)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/context.go:156 (0x9b9fb1)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/logger.go:241 (0x9ccc57)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/context.go:156 (0x9b9fb1)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/gin.go:409 (0x9c400c)
/home/runner/go/pkg/mod/github.com/gin-gonic/gin@v1.6.2/gin.go:367 (0x9c36d4)
/opt/hostedtoolcache/go/1.14.15/x64/src/net/http/server.go:2836 (0x874439)
/opt/hostedtoolcache/go/1.14.15/x64/src/net/http/server.go:1924 (0x86fce2)
/opt/hostedtoolcache/go/1.14.15/x64/src/runtime/asm_amd64.s:1373 (0x464430)

[GIN] 2021/09/07 - 22:34:52 | 500 |       1.995ms |             ::1 | POST     "/profile/bank"
cfi2017 commented 3 years ago

This might be an out-of-date item database, is this a new anointment?