Jump to content
  • 0

Ubuntu Server 23.04 ARM - Error after ExtractResources ('vmaps' directory is empty or does not exist)


Meepgos

Question

 

Hi, i need help at the extracting part. After execute the script 'sh ExtractResources.sh' i got an error:

 

 'vmaps' directory is empty or does not exist

Wed  9 Aug 15:32:56 UTC 2023: (Re)created map 29

Wed  9 Aug 15:32:56 UTC 2023: Finished creating MoveMaps

 

 

But i can see that all folders got created:

dbc (154 items)
maps (2429 items)
mmaps (0 items)
vmaps (0 items)

 

is this correct with 0 items or i am missing items in the 2 folders?

 

i use (MaNGOS Zero)

Edited by Meepgos
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

Good evening!

The vmaps/mmaps folders most definitely should have contents. it looks like the script didn't populate the vmaps correctly - and that causes the mmaps not to populate since it's dependent on the former.

Have you taken a look at this tutorial: 

The guide above should walk you through the manual commands for extracting the maps, vmaps, and mmaps. You shouldn't need to restart the whole process, just re-do the maps, vmaps, mmaps portion using the commands in there.

I have not tried installing on Ubuntu 23.04 ARM either - so your mileage may vary on this.

 

Other possibly helpful guides:

 

Link to comment
Share on other sites

  • 0

Hi, i started from a new fresh server and it worked better then last time.

vmaps extracting worked, but the script stopped before mmaps with an error:

 

 

 VMAP building complete. No errors.

Thu 10 Aug 07:31:39 UTC 2023: Extracting of vmaps finished

 

 

./MoveMapGen.sh: 32: [: unexpected operator

ERROR! Bad arguments!

You can (re)extract mmaps with this helper script,

or recreate only the tiles from the offmash file

 

Call with number of processes (1 - 4) to create mmaps

Call with 'offmesh' to reextract the tiles from offmash file

 

For further fine-tuning edit this helper script

 

 

__________

i looked at line 32 in the MoveMapGen.sh script. Should i change some things in the script? the guide did not mention this.

 

if [ "$EXCLUDE_MAPS" == "" ]
then
  ## Exclude file provided?
  if [ -f "$EXCLUDE_MAPS_FILE" ]
  then ## Yes, read the file
    read -d -r EXCLUDE_MAPS < $EXCLUDE_MAPS_FILE
    echo "Excluded maps: $EXCLUDE_MAPS"
  else ## No, remind the user that they can create the file
    echo "Excluded maps: NONE (no file called '$EXCLUDE_MAPS_FILE' was found.)"
  fi
fi

 

 

 

 

 

Link to comment
Share on other sites

  • 0
18 minutes ago, Meepgos said:

my server ist running and i can see my realm name, but when i try to connect i can't get to the character creation. It disconnects.

in which log can i look for the error?

CharactersCreatingDisabled is 0

server firewall is off

Which version is your OpenSSL since you are running Ubuntu 23.04?

Link to comment
Share on other sites

  • 0
6 minutes ago, Meepgos said:

ty, for your fast answer.

OpenSSL 3.0.8 7 Feb 2023 (Library: OpenSSL 3.0.8 7 Feb 2023)

Follow this post here and install OpenSSL 1.1.x, since Mangos doesn't support OpenSSL 3.x yet. We are working it but not 100% ready yet.
The packages listed should work on Ubuntu 23.04, even though it's mentioning Ubuntu 22.04. If you are able, backup your system before attempting this.

 

Link to comment
Share on other sites

  • 0

@Meepgos I ran a small test on one of my Ubuntu 23.04 containers and it works as intended. That post was a bit out-dated but here's the method you should follow.

Remove OpenSSL 3.x

sudo apt remove openssl libssl-dev

Install OpenSSL 1.1.x

# download binary openssl packages
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb

# install downloaded binary packages
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb

Run openssl command, then version to display the version installed. If you need any other help, feel free to reach out to me on Discord or here.

  • Like 1
Link to comment
Share on other sites

  • 0

ty, i could install OpenSSL 1.1.1

 

now i startet from a fresh server to write my own documentation, and got an error after 65% of the make step:

 

cd ~/mangos/zero/

git clone https://github.com/mangoszero/server.git --recursive

cmake -S ~/mangos/zero/server/ -B ~/mangos/zero/build/ -DBUILD_MANGOSD=1 -DBUILD_REALMD=1 -DBUILD_TOOLS=1 -DUSE_STORMLIB=1 -DSCRIPT_LIB_ELUNA=1 -DSCRIPT_LIB_SD3=1 -DPLAYERBOTS=1 -DPCH=1

cd ~/mangos/zero/build

make -j4
make -j4 install

 

[ 65%] Building CXX object src/modules/SD3/CMakeFiles/mangosscript.dir/base/escort_ai.cpp.o
during GIMPLE pass: vrp
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp: In member function ‘void VMAP::TileAssembler::exportGameobjectModels(const char*)’:
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp:390:10: internal compiler error: in compute_live_loop_exits, at tree-ssa-loop-manip.c:247
  390 |     void TileAssembler::exportGameobjectModels(const char *RAW_VMAP_MAGIC)
      |          ^~~~~~~~~~~~~
0x7f44f7728d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f44f7728e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/game/CMakeFiles/vmap2.dir/build.make:118: src/game/CMakeFiles/vmap2.dir/vmap/TileAssembler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:800: src/game/CMakeFiles/vmap2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 65%] Building CXX object src/modules/SD3/CMakeFiles/mangosscript.dir/base/follower_ai.cpp.o

 

 

 

[ 74%] Building CXX object src/modules/SD3/CMakeFiles/mangosscript.dir/scripts/kalimdor/temple_of_ahnqiraj/instance_temple_of_ahnqiraj.cpp.o
[ 74%] Building CXX object src/modules/SD3/CMakeFiles/mangosscript.dir/scripts/kalimdor/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp.o
[ 74%] Linking CXX static library libmangosscript.a
[ 74%] Built target mangosscript
make: *** [Makefile:156: all] Error 2
Consolidate compiler generated dependencies of target Detour
Consolidate compiler generated dependencies of target Recast
Consolidate compiler generated dependencies of target lualib
[  0%] Built target ace_gch
[  0%] Built target Detour
[  1%] Built target Recast
[  3%] Built target lualib
Consolidate compiler generated dependencies of target g3dlite
Consolidate compiler generated dependencies of target tommath
Consolidate compiler generated dependencies of target stormlib
Consolidate compiler generated dependencies of target tomcrypt
[  5%] Built target g3dlite
[ 13%] Built target tommath
[ 13%] Built target mangosscript_gch
[ 13%] Built target game_gch
[ 13%] Built target revision_data.h
[ 25%] Built target stormlib
Consolidate compiler generated dependencies of target loadlib
Consolidate compiler generated dependencies of target ace
[ 25%] Built target loadlib
Consolidate compiler generated dependencies of target map-extractor
[ 25%] Built target map-extractor
[ 48%] Built target tomcrypt
[ 63%] Built target ace
Consolidate compiler generated dependencies of target shared
[ 64%] Built target shared
Consolidate compiler generated dependencies of target vmap2
Consolidate compiler generated dependencies of target realmd
Consolidate compiler generated dependencies of target mangosscript
[ 64%] Building CXX object src/game/CMakeFiles/vmap2.dir/vmap/WorldModel.cpp.o
[ 64%] Building CXX object src/game/CMakeFiles/vmap2.dir/vmap/TileAssembler.cpp.o
[ 74%] Built target mangosscript
[ 74%] Built target realmd
[ 74%] Building CXX object src/game/CMakeFiles/vmap2.dir/vmap/ModelInstance.cpp.o
[ 74%] Building CXX object src/game/CMakeFiles/game.dir/AuctionHouseBot/AuctionHouseBot.cpp.o
[ 75%] Building CXX object src/game/CMakeFiles/game.dir/BattleGround/BattleGround.cpp.o
[ 75%] Building CXX object src/game/CMakeFiles/game.dir/BattleGround/BattleGroundAB.cpp.o
during GIMPLE pass: vrp
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp: In member function ‘void VMAP::TileAssembler::exportGameobjectModels(const char*)’:
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp:390:10: internal compiler error: in compute_live_loop_exits, at tree-ssa-loop-manip.c:247
  390 |     void TileAssembler::exportGameobjectModels(const char *RAW_VMAP_MAGIC)
      |          ^~~~~~~~~~~~~
0x7f094209ad8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f094209ae3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/game/CMakeFiles/vmap2.dir/build.make:118: src/game/CMakeFiles/vmap2.dir/vmap/TileAssembler.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:800: src/game/CMakeFiles/vmap2.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 75%] Building CXX object src/game/CMakeFiles/game.dir/BattleGround/BattleGroundAV.cpp.o
[ 81%] Building CXX object src/game/CMakeFiles/game.dir/Warden/Warden.cpp.o
during GIMPLE pass: vrp
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp: In member function ‘void VMAP::TileAssembler::exportGameobjectModels(const char*)’:
/home/mangos/mangos/zero/server/src/game/vmap/TileAssembler.cpp:390:10: internal compiler error: in compute_live_loop_exits, at tree-ssa-loop-manip.c:247
  390 |     void TileAssembler::exportGameobjectModels(const char *RAW_VMAP_MAGIC)
      |          ^~~~~~~~~~~~~
0x7f8a65a26d8f __libc_start_call_main
	../sysdeps/nptl/libc_start_call_main.h:58
0x7f8a65a26e3f __libc_start_main_impl
	../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
make[2]: *** [src/game/CMakeFiles/game.dir/build.make:1742: src/game/CMakeFiles/game.dir/vmap/TileAssembler.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:826: src/game/CMakeFiles/game.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

 

 

this make step was not a problem last times

Edited by Meepgos
Link to comment
Share on other sites

  • 0

Looks like you're getting an internal compiler error by the looks of it. Try deleting your build folder and attempt to set it up again.
I am testing the source with ARM on my workstation virtually and see if I get the same results. Far as I know, the sources should build without an issue to my knowledge.

Link to comment
Share on other sites

  • 0

For now im testing startet another fresh try with "Lenovo ThinkCentre M910q Tiny" 5-6500T | 16 GB | 256 GB SSD

with Ubuntu Server 22.04.3 LTS (ubuntu-22.04.3-live-server-amd64.iso) and i switched to OpenSSL 1.1 after last Update && Upgrade

sudo apt remove openssl libssl-dev
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.19_amd64.deb

 

_________

 

The build script outputs: -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2") 

but "openssl version" OpenSSL 1.1.1f  31 Mar 2020

I don't know what's wrong

 

here whole copy from working start build core and make -j4 (tried -j2 too, but same error like my last post)

 

 

mangos@meepwow:~/mangos/zero$ cmake -S ~/mangos/zero/server/ -B ~/mangos/zero/build/ -DBUILD_MANGOSD=1 -DBUILD_REALMD=1 -DBUILD_TOOLS=1 -DUSE_STORMLIB=1 -DSCRIPT_LIB_ELUNA=1 -DSCRIPT_LIB_SD3=1 -DPLAYERBOTS=1 -DPCH=1

This script builds the MaNGOS server.
  Options that can be used in order to configure the process:
   General:
    CMAKE_INSTALL_PREFIX    Path where the server should be installed to
    BUILD_MANGOSD           Build the main server
    BUILD_REALMD            Build the login server
    BUILD_TOOLS             Build the map/vmap/mmap extractors
    USE_STORMLIB            Use StormLib for reading MPQs
    SOAP                    Enable remote access via SOAP
    PCH                     Enable use of precompiled headers
    DEBUG                   Debug build, only for systems without IDE (Linux, *BSD)
   Scripting engines:
    SCRIPT_LIB_ELUNA        Compile with support for Eluna scripts
    SCRIPT_LIB_SD3          Compile with support for ScriptDev3 scripts
   Modules:
    PLAYERBOTS              Enable Player Bots

  To set an option simply type -D<OPTION>=<VALUE> after 'cmake <srcs>'.
  Also, you can specify the generator with -G. See 'cmake --help' for more details
  For example: cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mangos -DSCRIPT_LIB_SD3=0

-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- Found MySQL: /usr/include/mysql  
-- Found DL: /usr/include  
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.2")  
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11") 
-- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.8") 
-- Linking against dependent libraries statically
===================================================
Mangos revision       : 28425a37e232 2023-07-30 16:17:44 +0200 (master branch)
Build type            : Release
Install server(s) to  : /home/mangos/mangos/zero/build/install/bin
Install configs to    : ../etc

Detailed Information
+-- opeating system   : Linux-5.15.0-78-generic
+-- cmake version     : 3.22.1

Build main server     : Yes (default)
+-- with Eluna script engine
+-- with SD3 script engine
+-- with PlayerBots
Build login server    : Yes (default)
Support for SOAP      : No (default)
Build tools           : Yes (default)

===================================================
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mangos/mangos/zero/build
mangos@meepwow:~/mangos/zero$ openssl version
OpenSSL 1.1.1f  31 Mar 2020
mangos@meepwow:~/mangos/zero$ cd ~/mangos/zero/build
mangos@meepwow:~/mangos/zero/build$ ls
CMakeCache.txt  CMakeFiles  cmake_install.cmake  CPackConfig.cmake  CPackSourceConfig.cmake  dep  Makefile  src
mangos@meepwow:~/mangos/zero/build$ make -j2

 

Edited by Meepgos
Link to comment
Share on other sites

  • 0

found a solution for this last error in another thread:

On 5/5/2023 at 12:55 AM, Fyre said:

Thanks to @Avelde on the Discord for this solution. Thought I'd share it here:
 

That's the process for upgrading to gcc-12.

There's a known issue with this in gcc11 that's distributed with Ubuntu 22.04 LTS



sudo apt install gcc-12 g++-12

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12

 

Edited by Meepgos
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use