Comments (7)
This is a known issue. I simply ran out of time last night. Hopefully I’ll have this screen finished tonight!
from opendiablo2.
I fixed this by simply
diff --git a/d2core/d2scene/character_select.go b/d2core/d2scene/character_select.go
index f3437a2..0374783 100644
--- a/d2core/d2scene/character_select.go
+++ b/d2core/d2scene/character_select.go
@@ -282,6 +282,8 @@ func (v *CharacterSelect) refreshGameStates() {
}
v.deleteCharButton.SetEnabled(v.selectedCharacter > -1)
v.okButton.SetEnabled(v.selectedCharacter > -1)
- v.moveSelectionBox()
+ if v.selectedCharacter > -1 {
+ v.moveSelectionBox()
+ }
But I think this bug doesn't need pull request :)
from opendiablo2.
Aye the crashes should be fixed tonight when I hopefully finish the screen. It was midnight, I couldn't keep my eyes open 😆
from opendiablo2.
I fixed this bug, but someone has managed to crash on save file loads so I'm keeping this open until I have more safety nets.
from opendiablo2.
Yes is crash when you close and reopen the game after create player :
./OpenDiablo2
2019/11/13 18:25:16.703137 /home/pc/D2-GO/OpenDiablo2-master/main.go:35: OpenDiablo2 - Open source Diablo 2 engine
2019/11/13 18:25:16.706006 /home/pc/D2-GO/OpenDiablo2-master/d2core/engine.go:92: Loading configuration file
2019/11/13 18:25:16.722898 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/palette.go:49: Loaded 18 palettes
2019/11/13 18:25:16.741841 /home/pc/D2-GO/OpenDiablo2-master/d2common/text_dictionary.go:36: Loaded 9086 entries from the string table
2019/11/13 18:25:16.742004 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/level_types.go:54: Loaded 38 LevelType records
2019/11/13 18:25:16.745229 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/level_presets.go:92: Loaded 1091 level presets
2019/11/13 18:25:16.745492 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/level_warp.go:52: Loaded 83 level warps
2019/11/13 18:25:16.746323 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/object_types.go:34: Loaded 573 object types
2019/11/13 18:25:16.756083 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/objects.go:356: Loaded 571 objects
2019/11/13 18:25:16.759120 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/weapons.go:288: Loaded 307 weapons
2019/11/13 18:25:16.761036 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/armor.go:281: Loaded 203 armors
2019/11/13 18:25:16.763849 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/unique_items.go:136: Loaded 352 unique items
2019/11/13 18:25:16.769258 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/missiles.go:308: Loaded 684 missiles
2019/11/13 18:25:16.786800 /home/pc/D2-GO/OpenDiablo2-master/d2data/d2datadict/sounds.go:106: Loaded 4699 sound definitions
2019/11/13 18:25:16.793541 /home/pc/D2-GO/OpenDiablo2-master/d2data/animation_data.go:51: Loaded 3529 animation data records
2019/11/13 18:25:22.415783 /home/pc/D2-GO/OpenDiablo2-master/d2common/text_dictionary.go:26: Could not find a string for the key 'expansionchar2x'
panic: Could not find a string for the key 'expansionchar2x'
goroutine 8 [running]:
log.Panicf(0x85b55d, 0x28, 0xc0000cd500, 0x1, 0x1)
/usr/lib/go/src/log/log.go:345 +0xc0
github.com/OpenDiablo2/OpenDiablo2/d2common.TranslateString(...)
/home/pc/D2-GO/OpenDiablo2-master/d2common/text_dictionary.go:26
github.com/OpenDiablo2/OpenDiablo2/d2core/d2scene.(*CharacterSelect).updateCharacterBoxes(0xc0058dec00)
/home/pc/D2-GO/OpenDiablo2-master/d2core/d2scene/character_select.go:170 +0x89a
github.com/OpenDiablo2/OpenDiablo2/d2core/d2scene.(*CharacterSelect).refreshGameStates(0xc0058dec00)
/home/pc/D2-GO/OpenDiablo2-master/d2core/d2scene/character_select.go:294 +0x66
github.com/OpenDiablo2/OpenDiablo2/d2core/d2scene.(*CharacterSelect).Load.func14()
/home/pc/D2-GO/OpenDiablo2-master/d2core/d2scene/character_select.go:159 +0x66f
github.com/OpenDiablo2/OpenDiablo2/d2core.(*Engine).updateScene(0xe6f080)
/home/pc/D2-GO/OpenDiablo2-master/d2core/engine.go:154 +0x20e
github.com/OpenDiablo2/OpenDiablo2/d2core.(*Engine).Update(0xe6f080)
/home/pc/D2-GO/OpenDiablo2-master/d2core/engine.go:199 +0xc7
main.update(0xc000375940, 0x0, 0x0)
/home/pc/D2-GO/OpenDiablo2-master/main.go:54 +0x42
github.com/hajimehoshi/ebiten.(*imageDumper).update(0xc000375840, 0xc000375940, 0xe8c560, 0xc00000f220)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/imagedumper_desktop.go:105 +0x4e
github.com/hajimehoshi/ebiten.(*uiContext).Update(0xc000375880, 0xc0081cb080, 0x0, 0x0)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/uicontext.go:93 +0x14b
github.com/hajimehoshi/ebiten/internal/uidriver/glfw.(*UserInterface).update(0xb20780, 0x8dd180, 0xc000375880, 0x0, 0x0)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/internal/uidriver/glfw/ui.go:793 +0x1d6
github.com/hajimehoshi/ebiten/internal/uidriver/glfw.(*UserInterface).loop(0xb20780, 0x8dd180, 0xc000375880, 0x0, 0x0)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/internal/uidriver/glfw/ui.go:821 +0x9f
github.com/hajimehoshi/ebiten/internal/uidriver/glfw.(*UserInterface).run(0xb20780, 0x320, 0x258, 0x3ff0000000000000, 0xc0005d4000, 0x1a, 0x8dd180, 0xc000375880, 0xc00049e060, 0xffffffffffffffff)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/internal/uidriver/glfw/ui.go:693 +0x165
github.com/hajimehoshi/ebiten/internal/uidriver/glfw.(*UserInterface).Run.func1(0xc000012fe0, 0xc0000627e0, 0xb20780, 0x320, 0x258, 0x3ff0000000000000, 0xc0005d4000, 0x1a, 0x8dd180, 0xc000375880)
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/internal/uidriver/glfw/ui.go:573 +0x10b
created by github.com/hajimehoshi/ebiten/internal/uidriver/glfw.(*UserInterface).Run
/home/pc/go/pkg/mod/github.com/hajimehoshi/[email protected]/internal/uidriver/glfw/ui.go:570 +0x1c8
from opendiablo2.
expansionchar2x can't be found in your copy. Can you dump langdict.txt (it's commented in the source for loading the dictionary files) and find the french version of "EXPANSION CHARACTER" and tell me what that code is?
from opendiablo2.
Closing due to inactivity.
from opendiablo2.
Related Issues (20)
- remove panics from `d2mpq.decompressMulti` HOT 2
- checksum calculating in .tbl text dictionaries
- Refactor `d2common/d2fileformats/d2ds1` HOT 3
- Write unit tests for all methods of `StreamReader` and `StreamWriter` HOT 1
- Windows - Detect Diablo 2 install directory if not installed in default directory HOT 2
- editing string tables
- add methods `GetFPS`, `GetFrameDuration`, and `GetDuration` to `d2cof.COF`
- Joystick Input HOT 4
- build errors / go version HOT 16
- fire on ground stops animating HOT 2
- index out of range [1024] with length 1024 HOT 2
- config.MpqLoadOrder is different for MacOS
- ConfigPath is not initialized if MPQ error occurs
- Running on Pi4/Retropie HOT 14
- Segmentation fault on Arch Linux HOT 2
- Usage of not yet loaded resources or some skills in general causes lag
- Copying by value instead of iterating (d2dcc)
- can only walk in game - no mobs - no interactions HOT 2
- Reddit github link is wrong HOT 1
- Windows 10 PC run this game, extremely slow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opendiablo2.