dakkjaniels / devilutionx-middleearthmod Goto Github PK
View Code? Open in Web Editor NEWRecreation of V&K's Middle Earth Mod for Diablo 1.07, utilizing Devilution X
License: The Unlicense
Recreation of V&K's Middle Earth Mod for Diablo 1.07, utilizing Devilution X
License: The Unlicense
The following problem is found when executing the mod on linux:
Couldn't open /home/csix/diablo/DevilutionX-MiddleEarthMod/build/assets/Objects/Urn.CEL
This is because the actual file is called OBJECTS/URN.CEL
In Linux, the casing of file names matter; so this results in an error.
I think the solution is to either turn to lowercase all the files of the assets archive, or write all paths as uppercase in the program
Important information
Ubuntu 22.04 LTS / master (d112fc9) / built from source in Debug mode
Describe
SDL initialized with sample format: S16LSB
AddressSanitizer:DEADLYSIGNAL
=================================================================
==27655==ERROR: AddressSanitizer: SEGV on unknown address 0x7f45c96d03f9 (pc 0x556931cfb86f bp 0x7ffc399025a0 sp 0x7ffc39902560 T0)
==27655==The signal is caused by a READ memory access.
#0 0x556931cfb86f in unsigned short devilution::LoadLE16<std::byte>(std::byte const*) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/utils/endian.hpp:12:10
#1 0x556931cfb0d7 in devilution::CelGetFrameClipped(std::byte const*, int, int*) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/engine/cel_header.hpp:62:30
#2 0x556931c974ad in devilution::CelClippedDrawTo(devilution::Surface const&, devilution::Point, devilution::CelSprite, int) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/engine/render/cel_render.cpp:608:26
#3 0x556931c9c735 in devilution::CelDrawItem(devilution::Item const&, devilution::Surface const&, devilution::Point, devilution::CelSprite, int) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/engine/render/cel_render.cpp:648:3
#4 0x5569313a66a6 in devilution::DrawInv(devilution::Surface const&) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/inv.cpp:1259:4
#5 0x556931ad7297 in devilution::(anonymous namespace)::DrawView(devilution::Surface const&, devilution::Point) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/scrollrt.cpp:1274:3
#6 0x556931ad347f in devilution::DrawAndBlit() /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/scrollrt.cpp:1719:2
#7 0x5569311b815c in devilution::(anonymous namespace)::RunGameLoop(devilution::interface_mode) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/diablo.cpp:793:4
#8 0x5569311b75fa in devilution::StartGame(bool, bool) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/diablo.cpp:1734:3
#9 0x55693154e927 in devilution::(anonymous namespace)::InitMenu(devilution::_selhero_selections) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/menu.cpp:50:12
#10 0x55693154e7f6 in devilution::(anonymous namespace)::InitMultiPlayerMenu() /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/menu.cpp:66:9
#11 0x55693154e280 in devilution::mainmenu_loop() /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/menu.cpp:159:9
#12 0x5569311b85c0 in devilution::DiabloMain(int, char**) /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/diablo.cpp:1796:2
#13 0x55693232c489 in main /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/main.cpp:46:21
#14 0x7f450474cd8f in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x7f450474ce3f in __libc_start_main csu/../csu/libc-start.c:392:3
#16 0x556930fc9684 in _start (/home/csix/diablo/DevilutionX-MiddleEarthMod/build/devilutionx+0xb48684) (BuildId: f8ffef22fe69e3da2661a11b329763d64867ce5d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /home/csix/diablo/DevilutionX-MiddleEarthMod/Source/utils/endian.hpp:12:10 in unsigned short devilution::LoadLE16<std::byte>(std::byte const*)
==27655==ABORTING
To Reproduce
Steps to reproduce the behavior:
Additional context
Could someone try to reproduce on Windows to see if this is an issue specific to Linux?
currently the newly created spells for Middle Earth mod do not show up in the spell book
also pulling in kphoenix's spellbook QoL updates would be nice too
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.