docdrow
Initiate
- ServUO Version
- Publish 58
- Ultima Expansion
- Endless Journey
Hello all,
I'd like to contribute this little script in the hopes that it might save someone else some time (and hair). This works fine for me as of December 31 2024 on ArchLinux x86_64.
Best Wishes to all and Happy New Year
#UOForever
I'd like to contribute this little script in the hopes that it might save someone else some time (and hair). This works fine for me as of December 31 2024 on ArchLinux x86_64.
Best Wishes to all and Happy New Year
#UOForever
example servuo build script for modern linux:
#!/bin/bash
# dont overwrite whatever is already there -- clean build
if [[ -d ServUO ]]; then
mv -v ServUO ServUO.$PID.bak
(( $? != 0 )) && exit 1
fi
git clone 'https://github.com/ServUO/ServUO'
# tar --zst -xpf servuo-clean.tar.zst
(( $? != 0 )) && exit 1
# change ServUO.wtf to whereever your backup is located or just comment out if you dont have one
cp -v ServUO.wtf/Config/* ServUO/Config
(( $? != 0 )) && exit 1
cp -rv ServUO.wtf/Scripts/custom ServUO/Scripts
(( $? != 0 )) && exit 1
# put additional restores here
#cp -rv ServUO.wtf/Backups/Automatic/Second\ Backup ServUO/Saves
#(( $? != 0 )) && exit 1
# it seems mono is a step behind C# ...
sed -i -e '/langver/ s/7.3/7.2/' ServUO/Server/ScriptCompiler.cs
(( $? != 0 )) && exit 1
# it seems the parallel save strat is bugged on systems with more than 16 cpus
# this forces the SaveStrategy logic to always resort to the "dual" strategy
# whatever that is.
(( $(nproc) > 16 )) &&
sed -i -e '/processorCount > 16/ s/16/9999/' ServUO/Server/Persistence/SaveStrategy.cs
(( $? != 0 )) && exit 1
cd ServUO
(( $? != 0 )) && exit 1
make build
(( $? != 0 )) && exit 1
echo If I were a Siith Lord I would force choke whomever is responsible for not using POSIX C
mono ServUO.exe