Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

doesn't start with a recent version of lua #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Katana-Steel
Copy link

from lua documentation to read all data from file the option is "*a"
please see io.read() https://www.lua.org/pil/21.1.html

from lua documentation to read all data from file the option is "*a"
https://www.lua.org/pil/21.1.html
@Katana-Steel
Copy link
Author

before applying the fix:

OpenDiablo2 $ ../AbyssEngine/build/apps/abyssengine/abyssengine --help
[2023-06-29 15:17:07.715] [info] [abyssengine.cpp:54] AbyssEngine Engine v0.3 - Debug build - Linux/x86_64
[2023-06-29 15:17:07.715] [info] [abyssengine.cpp:61] LuaJIT Version Lua 5.1 / LuaJIT 2.0.5
[2023-06-29 15:17:07.715] [info] [abyssengine.cpp:65] SOL version 3.2.3
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:66] FFMPEG Library:
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:67]    AVFormat Version    - 58.76.100
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:68]    AVResample Version  - LIBAVRESAMPLE_VERSION
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:69]    AVUtil Version      - 56.70.100
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:70]    AVCodec Version     - 58.134.100
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:71]    AVFilter Version    - 7.110.100
[2023-06-29 15:17:07.716] [info] [abyssengine.cpp:72]    SwResample Version  - 3.9.100
[2023-06-29 15:17:08.109] [info] [sdl2systemio.cpp:72] Using opengl graphics rendering API
[2023-06-29 15:17:08.109] [info] [sdl2systemio.cpp:73] Max texture size: 32768x32768
[2023-06-29 15:17:08.109] [info] [sdl2systemio.cpp:78] SDL Version: 2.26.5
[2023-06-29 15:17:08.111] [info] [sdl2systemio.cpp:224] Using audio device Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo via pulseaudio
[2023-06-29 15:17:08.147] [info] [ttfmanager.cpp:110] Loaded font /abyss-embedded/Hack-Regular.ttf (face 0) as 'Hack'
[2023-06-29 15:17:08.168] [Logger] [info] [scripthost.cpp:342] Loading CASC ./DATA/CASC-D2R...
[2023-06-29 15:17:08.169] [Logger] [error] [scripthost.cpp:347] Possible corrupt or missing CASC: ./DATA/CASC-D2R
[sol2] An error occurred and panic has been invoked: bootstrap.lua:71: bad argument #1 to 'read' (invalid option)
[2023-06-29 15:17:08.228] [Exit] [critical] [abyssengine.cpp:89] Caught exception N3sol5errorE: lua: error: bootstrap.lua:71: bad argument #1 to 'read' (invalid option)

after applying the fix:

OpenDiablo2 $ ../AbyssEngine/build/apps/abyssengine/abyssengine
[2023-06-29 15:48:38.914] [info] [abyssengine.cpp:54] AbyssEngine Engine v0.3 - Debug build - Linux/x86_64
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:61] LuaJIT Version Lua 5.1 / LuaJIT 2.0.5
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:65] SOL version 3.2.3
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:66] FFMPEG Library:
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:67]    AVFormat Version    - 58.76.100
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:68]    AVResample Version  - LIBAVRESAMPLE_VERSION
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:69]    AVUtil Version      - 56.70.100
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:70]    AVCodec Version     - 58.134.100
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:71]    AVFilter Version    - 7.110.100
[2023-06-29 15:48:38.916] [info] [abyssengine.cpp:72]    SwResample Version  - 3.9.100
[2023-06-29 15:48:39.271] [info] [sdl2systemio.cpp:72] Using opengl graphics rendering API
[2023-06-29 15:48:39.271] [info] [sdl2systemio.cpp:73] Max texture size: 32768x32768
[2023-06-29 15:48:39.271] [info] [sdl2systemio.cpp:78] SDL Version: 2.26.5
[2023-06-29 15:48:39.272] [info] [sdl2systemio.cpp:224] Using audio device Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo via pulseaudio
[2023-06-29 15:48:39.337] [info] [ttfmanager.cpp:111] Loaded font /abyss-embedded/Hack-Regular.ttf (face 0) as 'Hack'
[2023-06-29 15:48:39.363] [Logger] [info] [scripthost.cpp:342] Loading CASC ./DATA/CASC-D2R...
[2023-06-29 15:48:39.375] [Logger] [error] [scripthost.cpp:347] Possible corrupt or missing CASC: ./DATA/CASC-D2R
[2023-06-29 15:48:39.378] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/patch_d2.mpq...
[2023-06-29 15:48:39.381] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2exp.mpq...
[2023-06-29 15:48:39.403] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2xmusic.mpq...
[2023-06-29 15:48:39.404] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2xtalk.mpq...
[2023-06-29 15:48:39.405] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2xvideo.mpq...
[2023-06-29 15:48:39.406] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2data.mpq...
[2023-06-29 15:48:39.426] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2char.mpq...
[2023-06-29 15:48:39.442] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2music.mpq...
[2023-06-29 15:48:39.443] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2sfx.mpq...
[2023-06-29 15:48:39.444] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2video.mpq...
[2023-06-29 15:48:39.445] [Logger] [info] [scripthost.cpp:342] Loading MPQ ./DATA/MPQ-D2/d2speech.mpq...
[2023-06-29 15:48:39.450] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteAct1...
[2023-06-29 15:48:39.460] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteAct2...
[2023-06-29 15:48:39.470] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteAct3...
[2023-06-29 15:48:39.480] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteAct4...
[2023-06-29 15:48:39.491] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteAct5...
[2023-06-29 15:48:39.501] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteEndGame...
[2023-06-29 15:48:39.510] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteEndGame2...
[2023-06-29 15:48:39.520] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteFechar...
[2023-06-29 15:48:39.530] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteLoading...
[2023-06-29 15:48:39.539] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteMenu0...
[2023-06-29 15:48:39.547] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteMenu1...
[2023-06-29 15:48:39.557] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteMenu2...
[2023-06-29 15:48:39.561] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteMenu3...
[2023-06-29 15:48:39.570] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteMenu4...
[2023-06-29 15:48:39.580] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteSky...
[2023-06-29 15:48:39.590] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteStatic...
[2023-06-29 15:48:39.590] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteTrademark...
[2023-06-29 15:48:39.599] [Logger] [info] [scripthost.cpp:342] Loading Palette: PaletteUnits...
[2023-06-29 15:48:39.695] [Logger] [info] [scripthost.cpp:342] System language has been set to English
[2023-06-29 15:48:39.832] [Logger] [info] [scripthost.cpp:342] Loading Sound Effects
[2023-06-29 15:48:39.908] [Logger] [info] [scripthost.cpp:342] Loading Level Types
[2023-06-29 15:48:39.917] [Logger] [info] [scripthost.cpp:342] Loading Level Presets
[2023-06-29 15:48:40.003] [Logger] [info] [scripthost.cpp:342] Finished loading definitions.
[2023-06-29 15:48:52.747] [Logger] [info] [scripthost.cpp:330] Shutting down engine

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant