10-04-2020, 08:58 AM
Anyone had success trying OpenDiablo2?
I get a SIGSEGV error when trying to launch the game:
Any help appreciated.
I get a SIGSEGV error when trying to launch the game:
Code:
main.go:26: OpenDiablo2 - Open source Diablo 2 engine
d2config.go:42: loading configuration file from /home/nightranger/.config/OpenDiablo2/config.json...
level_types_loader.go:63: Loaded 36 LevelType records
level_presets_loader.go:47: Loaded 1090 level presets
level_warp_loader.go:35: Loaded 83 level warps
object_types_loader.go:32: Loaded 573 object types
object_details_loader.go:230: Loaded 573 objects
item_weapons_loader.go:18: Loaded 306 weapons
item_armor_loader.go:21: Loaded 202 armors
item_misc_loader.go:18: Loaded 139 misc items
books_loader.go:33: Loaded 3 book items
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xaaaac6c2b540]
goroutine 1 [running, locked to thread]:
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records.updateEquivalencies(0x4000b0d350, 0x4000b13b30, 0x400020ad80, 0x0, 0x0, 0x0, 0x0)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records/item_types_loader.go:130 +0x20
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records.LoadItemEquivalencies(0x4000b0cff0, 0x4000b0d350, 0x4000a57c25)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records/item_types_loader.go:116 +0x33c
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records.itemTypesLoader(0x40000a0380, 0x40002f65c0, 0xaaaac6e96b13, 0x20)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records/item_types_loader.go:71 +0xfb8
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records.(*RecordManager).Load(0x40000a0380, 0xaaaac6e96b13, 0x20, 0x40002f65c0, 0x0, 0x0)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2records/record_manager.go:247 +0xac
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset.(*AssetManager).LoadRecords(0x40000b42a0, 0xaaaac6e96b13, 0x20, 0x0, 0x0)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset/asset_manager.go:385 +0x64
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset.(*AssetManager).initDataDictionaries(0x40000b42a0, 0x0, 0x0)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset/asset_manager.go:141 +0x88
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset.(*AssetManager).init(0x40000b42a0, 0x40000a0000, 0xaaaac73ef140)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset/asset_manager.go:59 +0x54
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset.NewAssetManager(0x400025fb90, 0x0, 0x0, 0xaaaac6a0a6ac)
github.com/OpenDiablo2/OpenDiablo2/d2core/d2asset/d2asset.go:22 +0x254
main.main()
github.com/OpenDiablo2/OpenDiablo2/main.go:38 +0xf8
Any help appreciated.