This commit is contained in:
Aria 2025-03-21 22:23:30 +11:00
commit 9c94d113d3
Signed by untrusted user who does not match committer: aria
GPG key ID: 19AB7AA462B8AB3B
10260 changed files with 1237388 additions and 0 deletions

View file

@ -0,0 +1,137 @@
{
"application" : {
"id" : 467102538278109224,
"manifests" : [
{
"label" : "starbound/data",
"platforms" : ["win32", "win64", "macos", "linux"],
"locales" : [],
"local_root" : "./data",
"file_rules" : {
"mappings" : [
{
"local_path" : ".",
"install_path" : "."
}
],
"properties" : [
{
"install_path" : "storage/*",
"attributes" : ["user_data"]
},
{
"install_path" : "mods/*",
"attributes" : ["user_data"]
},
{
"install_path" : "assets/user/*",
"attributes" : ["user_data"]
}
],
"exclusions" : [
]
}
},
{
"label" : "starbound/windows",
"platforms" : ["win32", "win64"],
"locales" : [],
"local_root" : "./windows",
"redistributables" : [
"vcredist_2015_x86",
"vcredist_2015_x64"
],
"file_rules" : {
"mappings" : [
{
"local_path" : ".",
"install_path" : "."
}
],
"properties" : [
{
"install_path" : "storage/*",
"attributes" : ["user_data"]
}
],
"exclusions" : [
]
},
"launch_options" : [
{
"name" : "Starbound",
"executable" : "win32/starbound.exe",
"arguments" : [],
"platforms" : ["win32"]
},
{
"name" : "Starbound",
"executable" : "win64/starbound.exe",
"arguments" : [],
"platforms" : ["win64"]
}
]
},
{
"label" : "starbound/macos",
"platforms" : ["macos"],
"locales" : [],
"local_root" : "./osx",
"file_rules" : {
"mappings" : [
{
"local_path" : ".",
"install_path" : "."
}
],
"properties" : [
{
"install_path" : "storage/*",
"attributes" : ["user_data"]
}
],
"exclusions" : [
]
},
"launch_options" : [
{
"name" : "Starbound",
"executable" : "osx/Starbound.app/Contents/MacOS/starbound",
"arguments" : [],
"platforms" : ["macos"]
}
]
},
{
"label" : "starbound/linux",
"platforms" : ["linux"],
"locales" : [],
"local_root" : "./linux",
"file_rules" : {
"mappings" : [
{
"local_path" : ".",
"install_path" : "."
}
],
"properties" : [
{
"install_path" : "storage/*",
"attributes" : ["user_data"]
}
],
"exclusions" : [
]
},
"launch_options" : [
{
"name" : "Starbound",
"executable" : "linux/run-client.sh",
"arguments" : [],
"platforms" : ["linux"]
}
]
}
]
}
}

6
scripts/distclean.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
cd "`dirname \"$0\"`/.."
rm -rf build
rm -rf dist

View file

@ -0,0 +1,16 @@
#!/bin/bash
cd "`dirname \"$0\"`"
cd ../assets/packed/tiles/;
THISMAT=0;
for i in $(grep materialId */*.material | awk '{print $4}' | sort -n );
do
THISMAT=$(($THISMAT+1));
if [ ${i%?} -ne $THISMAT ];
then
echo "Skipped $THISMAT to $((${i%?}-1))";
THISMAT=${i%?};
fi;
done;

11
scripts/format-source.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
cd "`dirname \"$0\"`/../source"
: ${CLANG_FORMAT:=clang-format}
for file in *; do
if [ $file != "extern" -a -d $file ]; then
find $file \( -name '*.cpp' -or -name '*.hpp' \) -exec $CLANG_FORMAT -fallback-style=none -i {} \;
fi
done

View file

@ -0,0 +1,98 @@
#!/bin/sh -e
mkdir client_distribution
mkdir client_distribution/assets
mkdir client_distribution/tiled
./linux_binaries/asset_packer -c scripts/packing.config assets/packed client_distribution/assets/packed.pak
cp -r assets/user client_distribution/assets/
cp -r tiled/packed client_distribution/tiled/
cp -r doc client_distribution/doc
mkdir client_distribution/mods
touch client_distribution/mods/mods_go_here
mkdir client_distribution/win64
cp -r \
windows64_binaries/starbound.exe \
windows64_binaries/starbound.pdb \
windows64_binaries/starbound_server.exe \
windows64_binaries/mod_uploader.exe \
windows64_binaries/*.dll \
windows64_binaries/iconengines \
windows64_binaries/imageformats \
windows64_binaries/platforms \
windows64_binaries/translations \
scripts/gitlab-ci/windows64/sbinit.config \
client_distribution/win64/
mkdir client_distribution/win32
cp \
windows32_binaries/starbound.exe \
windows32_binaries/starbound.pdb \
windows32_binaries/starbound_server.exe \
windows32_binaries/asset_packer.exe \
windows32_binaries/asset_unpacker.exe \
windows32_binaries/dump_versioned_json.exe \
windows32_binaries/make_versioned_json.exe \
windows32_binaries/planet_mapgen.exe \
windows32_binaries/*.dll \
scripts/gitlab-ci/windows32/sbinit.config \
client_distribution/win32/
mkdir client_distribution/osx
cp -LR scripts/gitlab-ci/macos/Starbound.app client_distribution/osx/
mkdir client_distribution/osx/Starbound.app/Contents/MacOS
cp macos_binaries/starbound client_distribution/osx/Starbound.app/Contents/MacOS/
cp macos_binaries/*.dylib client_distribution/osx/Starbound.app/Contents/MacOS/
cp \
macos_binaries/starbound_server \
macos_binaries/asset_packer \
macos_binaries/asset_unpacker \
macos_binaries/dump_versioned_json \
macos_binaries/make_versioned_json \
macos_binaries/planet_mapgen \
scripts/gitlab-ci/macos/sbinit.config \
scripts/gitlab-ci/macos/run-server.sh \
client_distribution/osx/
mkdir client_distribution/linux
cp \
linux_binaries/starbound \
linux_binaries/starbound_server \
linux_binaries/asset_packer \
linux_binaries/asset_unpacker \
linux_binaries/dump_versioned_json \
linux_binaries/make_versioned_json \
linux_binaries/planet_mapgen \
linux_binaries/*.so \
scripts/gitlab-ci/linux/sbinit.config \
scripts/gitlab-ci/linux/run-client.sh \
scripts/gitlab-ci/linux/run-server.sh \
client_distribution/linux/
mkdir server_distribution
mkdir server_distribution/assets
mkdir server_distribution/mods
touch server_distribution/mods/mods_go_here
./linux_binaries/asset_packer -c scripts/packing.config -s assets/packed server_distribution/assets/packed.pak
mkdir server_distribution/win64
mkdir server_distribution/linux
cp \
linux_binaries/starbound_server \
linux_binaries/*.so \
scripts/gitlab-ci/linux/run-server.sh \
scripts/gitlab-ci/linux/sbinit.config \
server_distribution/linux/
cp \
windows64_binaries/starbound_server.exe \
windows64_binaries/*.dll \
scripts/gitlab-ci/windows64/sbinit.config \
server_distribution/win64/

View file

@ -0,0 +1,180 @@
#!/bin/sh -e
cat > depot_client_main.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "211821"
"FileMapping"
{
"LocalPath" "assets/*"
"DepotPath" "assets/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "doc/*"
"DepotPath" "doc/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "mods/*"
"DepotPath" "mods/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "tiled/*"
"DepotPath" "tiled/"
"recursive" "1"
}
}
EOF
cat > depot_client_win32.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "211822"
"FileMapping"
{
"LocalPath" "win32/*"
"DepotPath" "win32/"
"recursive" "1"
}
}
EOF
cat > depot_client_win64.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "211823"
"FileMapping"
{
"LocalPath" "win64/*"
"DepotPath" "win64/"
"recursive" "1"
}
}
EOF
cat > depot_client_macos.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "211824"
"FileMapping"
{
"LocalPath" "osx/*"
"DepotPath" "osx/"
"recursive" "1"
}
}
EOF
cat > depot_client_linux.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "211825"
"FileMapping"
{
"LocalPath" "linux/*"
"DepotPath" "linux/"
"recursive" "1"
}
}
EOF
cat > app_build_client.vdf << EOF
"appbuild"
{
"appid" "211820"
"desc" "$CI_BUILD_REF"
"buildoutput" "steambuild_output"
"contentroot" "client_distribution"
"setlive" "staging"
"preview" "0"
"local" ""
"depots"
{
"211821" "depot_client_main.vdf"
"211822" "depot_client_win32.vdf"
"211823" "depot_client_win64.vdf"
"211824" "depot_client_macos.vdf"
"211825" "depot_client_linux.vdf"
}
}
EOF
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_client.vdf" +quit
cat > depot_server_main.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "533831"
"FileMapping"
{
"LocalPath" "assets/*"
"DepotPath" "assets/"
"recursive" "1"
}
}
EOF
cat > depot_server_win64.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "533832"
"FileMapping"
{
"LocalPath" "win64/*"
"DepotPath" "win64/"
"recursive" "1"
}
}
EOF
cat > depot_server_linux.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "533833"
"FileMapping"
{
"LocalPath" "linux/*"
"DepotPath" "linux/"
"recursive" "1"
}
}
EOF
cat > app_build_server.vdf << EOF
"appbuild"
{
"appid" "533830"
"desc" "$CI_BUILD_REF"
"buildoutput" "steambuild_output"
"contentroot" "server_distribution"
"setlive" "staging"
"preview" "0"
"local" ""
"depots"
{
"533831" "depot_server_main.vdf"
"533832" "depot_server_win64.vdf"
"533833" "depot_server_linux.vdf"
}
}
EOF
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_server.vdf" +quit

View file

@ -0,0 +1,180 @@
#!/bin/sh -e
cat > depot_client_main.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "367541"
"FileMapping"
{
"LocalPath" "assets/*"
"DepotPath" "assets/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "doc/*"
"DepotPath" "doc/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "mods/*"
"DepotPath" "mods/"
"recursive" "1"
}
"FileMapping"
{
"LocalPath" "tiled/*"
"DepotPath" "tiled/"
"recursive" "1"
}
}
EOF
cat > depot_client_win32.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "367542"
"FileMapping"
{
"LocalPath" "win32/*"
"DepotPath" "win32/"
"recursive" "1"
}
}
EOF
cat > depot_client_win64.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "367543"
"FileMapping"
{
"LocalPath" "win64/*"
"DepotPath" "win64/"
"recursive" "1"
}
}
EOF
cat > depot_client_macos.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "367544"
"FileMapping"
{
"LocalPath" "osx/*"
"DepotPath" "osx/"
"recursive" "1"
}
}
EOF
cat > depot_client_linux.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "367545"
"FileMapping"
{
"LocalPath" "linux/*"
"DepotPath" "linux/"
"recursive" "1"
}
}
EOF
cat > app_build_client.vdf << EOF
"appbuild"
{
"appid" "367540"
"desc" "$CI_BUILD_REF"
"buildoutput" "steambuild_output"
"contentroot" "client_distribution"
"setlive" "staging"
"preview" "0"
"local" ""
"depots"
{
"367541" "depot_client_main.vdf"
"367542" "depot_client_win32.vdf"
"367543" "depot_client_win64.vdf"
"367544" "depot_client_macos.vdf"
"367545" "depot_client_linux.vdf"
}
}
EOF
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_client.vdf" +quit
cat > depot_server_main.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "532331"
"FileMapping"
{
"LocalPath" "assets/*"
"DepotPath" "assets/"
"recursive" "1"
}
}
EOF
cat > depot_server_win64.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "532332"
"FileMapping"
{
"LocalPath" "win64/*"
"DepotPath" "win64/"
"recursive" "1"
}
}
EOF
cat > depot_server_linux.vdf << EOF
"DepotBuildConfig"
{
"DepotID" "532333"
"FileMapping"
{
"LocalPath" "linux/*"
"DepotPath" "linux/"
"recursive" "1"
}
}
EOF
cat > app_build_server.vdf << EOF
"appbuild"
{
"appid" "532330"
"desc" "$CI_BUILD_REF"
"buildoutput" "steambuild_output"
"contentroot" "server_distribution"
"setlive" "staging"
"preview" "0"
"local" ""
"depots"
{
"532331" "depot_server_main.vdf"
"532332" "depot_server_win64.vdf"
"532333" "depot_server_linux.vdf"
}
}
EOF
$STEAM_CONTENTBUILDER_CMD +login "$STEAM_ACCOUNT" "$STEAM_PASSWORD" +run_app_build "`pwd`/app_build_server.vdf" +quit

View file

@ -0,0 +1,22 @@
#!/bin/sh -e
mkdir -p build
cd build
rm -f CMakeCache.txt
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DSTAR_ENABLE_STATIC_LIBGCC_LIBSTDCXX=ON \
-DSTAR_USE_JEMALLOC=ON \
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
-DCMAKE_INCLUDE_PATH=../lib/linux/include \
-DCMAKE_LIBRARY_PATH=../lib/linux \
../source
make -j2
cd ..
mv dist linux_binaries
cp lib/linux/*.so linux_binaries/

View file

@ -0,0 +1,5 @@
#!/bin/sh
cd "`dirname \"$0\"`"
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./starbound "$@"

View file

@ -0,0 +1,22 @@
#!/bin/sh
cd "`dirname \"$0\"`"
terms="
x-terminal-emulator
konsole
gnome-terminal.wrapper
xfce4-terminal.wrapper
koi8rxterm
lxterm
uxterm
xterm"
for term in $terms; do
$term -e ./starbound_server $@
if [ $? -eq 0 ]; then
exit 0;
fi
done
exit 1

View file

@ -0,0 +1,8 @@
{
"assetDirectories" : [
"../assets/",
"../mods/"
],
"storageDirectory" : "../storage/"
}

View file

@ -0,0 +1,8 @@
#!/bin/sh -e
cd linux_binaries
cp ../scripts/linux/sbinit.config .
./core_tests
./game_tests

View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleGetInfoString</key>
<string>Starbound</string>
<key>CFBundleExecutable</key>
<string>starbound</string>
<key>CFBundleIdentifier</key>
<string>com.chucklefish</string>
<key>CFBundleName</key>
<string>starbound</string>
<key>CFBundleIconFile</key>
<string>starbound</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>LSEnvironment</key>
<dict>
<key>MinimumSystemVersion</key>
<string>10.9.0</string>
</dict>
<key>SDL_FILESYSTEM_BASE_DIR_TYPE</key>
<string>parent</string>
</dict>
</plist>

View file

@ -0,0 +1,25 @@
#!/bin/sh -e
mkdir -p build
cd build
rm -f CMakeCache.txt
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DSTAR_ENABLE_STATIC_LIBGCC_LIBSTDCXX=ON \
-DSTAR_USE_JEMALLOC=OFF \
-DSTAR_ENABLE_STEAM_INTEGRATION=ON \
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON \
-DCMAKE_INCLUDE_PATH=../lib/osx/include \
-DCMAKE_LIBRARY_PATH=../lib/osx \
-DCMAKE_OSX_SYSROOT=/ \
-DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 \
../source
make -j2
cd ..
mv dist macos_binaries
cp lib/osx/*.dylib macos_binaries/

View file

@ -0,0 +1,11 @@
#!/bin/sh -e
cd "`dirname \"$0\"`"
osascript <<END
tell application "Terminal"
do script "cd \"`pwd`\";./starbound_server $@;exit"
end tell
END

View file

@ -0,0 +1,8 @@
{
"assetDirectories" : [
"../assets/",
"../mods/"
],
"storageDirectory" : "../storage/"
}

View file

@ -0,0 +1,9 @@
#!/bin/sh -e
cd macos_binaries
cp ../scripts/osx/sbinit.config .
./core_tests
./game_tests

View file

@ -0,0 +1,43 @@
#!/bin/sh -e
mkdir client_win32_win64
cp -r \
client_distribution/assets \
client_distribution/doc \
client_distribution/mods \
client_distribution/tiled \
client_distribution/win32 \
client_distribution/win64 \
client_win32_win64
mkdir client_linux
cp -r \
client_distribution/assets \
client_distribution/doc \
client_distribution/mods \
client_distribution/tiled \
client_distribution/linux \
client_linux
mkdir client_macos
cp -r \
client_distribution/assets \
client_distribution/doc \
client_distribution/mods \
client_distribution/tiled \
client_distribution/osx \
client_macos
mkdir server_win64
cp -r \
server_distribution/assets \
server_distribution/mods \
server_distribution/win64 \
server_win64
mkdir server_linux
cp -r \
server_distribution/assets \
server_distribution/mods \
server_distribution/linux \
server_linux

View file

@ -0,0 +1,25 @@
set CMAKE_PREFIX_PATH="C:\Program Files\CMake"
set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin;%QT_PREFIX_PATH%\bin
mkdir build
cd build || exit /b 1
del /f CMakeCache.txt
cmake.exe ^
-G"Visual Studio 14" ^
-T"v140_xp" ^
-DSTAR_ENABLE_STATIC_MSVC_RUNTIME=ON ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows32\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows32" ^
..\source || exit /b 1
cmake.exe --build . --config RelWithDebInfo || exit /b 1
cd ..
move dist windows32_binaries || exit /b 1
copy lib\windows32\*.dll windows32_binaries\ || exit /b 1

View file

@ -0,0 +1,14 @@
{
"assetDirectories" : [
"..\\assets\\",
"..\\mods\\"
],
"storageDirectory" : "..\\storage\\",
"defaultConfiguration" : {
"gameServerBind" : "*",
"queryServerBind" : "*",
"rconServerBind" : "*"
}
}

View file

@ -0,0 +1,8 @@
cd windows32_binaries
set PATH="%PATH%;..\lib\windows32"
copy ..\scripts\windows\sbinit.config .
.\core_tests || exit /b 1
.\game_tests || exit /b 1

View file

@ -0,0 +1,30 @@
set QT_PREFIX_PATH="C:\Qt\5.7\msvc2015_64"
set CMAKE_PREFIX_PATH="C:\Program Files\CMake"
set PATH=%PATH%;%CMAKE_PREFIX_PATH%\bin;%QT_PREFIX_PATH%\bin
mkdir build
cd build || exit /b 1
del /f CMakeCache.txt
cmake.exe ^
-G"Visual Studio 14 Win64" ^
-T"v140" ^
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
-DSTAR_USE_JEMALLOC=OFF ^
-DSTAR_ENABLE_STEAM_INTEGRATION=ON ^
-DSTAR_ENABLE_DISCORD_INTEGRATION=ON ^
-DSTAR_BUILD_QT_TOOLS=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows64" ^
..\source || exit /b 1
cmake.exe --build . --config RelWithDebInfo || exit /b 1
cd ..
move dist windows64_binaries || exit /b 1
windeployqt.exe windows64_binaries\mod_uploader.exe || exit /b 1
copy lib\windows64\*.dll windows64_binaries\ || exit /b 1

View file

@ -0,0 +1,14 @@
{
"assetDirectories" : [
"..\\assets\\",
"..\\mods\\"
],
"storageDirectory" : "..\\storage\\",
"defaultConfiguration" : {
"gameServerBind" : "*",
"queryServerBind" : "*",
"rconServerBind" : "*"
}
}

View file

@ -0,0 +1,8 @@
cd windows64_binaries
set PATH="%PATH%;..\lib\windows64"
copy ..\scripts\windows\sbinit.config .
.\core_tests || exit /b 1
.\game_tests || exit /b 1

View file

@ -0,0 +1,60 @@
{
"project": {
"baseProductId": "1452598881",
"clientId": "49298129999913969",
"clientSecret": "725f21f087731acf1671a2e2cb4191a23894031e66a47c73583fedf3c326939f",
"version": "1.4.2",
"installDirectory": "Starbound",
"name": "Starbound",
"platform": "gnu-linux",
"tags": [
],
"languageMode": "together",
"products": [
{
"name": "Starbound",
"productId": "1452598881",
"depots": [
{
"name": "data",
"folder": "C:/Users/william/Documents/starbound-dispatch/data",
"languages": [
"en-US"
],
"osBitness": [
"64"
]
},
{
"name": "linux",
"folder": "C:/Users/william/Documents/starbound-dispatch/linux",
"languages": [
"en-US"
],
"osBitness": [
"64"
]
}
],
"tasks": [
{
"type": "FileTask",
"name": "Starbound",
"languages": [
"en-US"
],
"category": "game",
"path": "linux/run-client.sh",
"isPrimary": true,
"osBitness": [
"64"
]
}
],
"supportDepots": []
}
],
"dependencies": [],
"scriptInterpreter": true
}
}

View file

@ -0,0 +1,60 @@
{
"project": {
"baseProductId": "1452598881",
"clientId": "49298129999913969",
"clientSecret": "725f21f087731acf1671a2e2cb4191a23894031e66a47c73583fedf3c326939f",
"version": "1.4.2",
"installDirectory": "Starbound",
"name": "Starbound",
"platform": "osx",
"tags": [
],
"languageMode": "together",
"products": [
{
"name": "Starbound",
"productId": "1452598881",
"depots": [
{
"name": "data",
"folder": "C:/Users/william/Documents/starbound-dispatch/data",
"languages": [
"en-US"
],
"osBitness": [
"64"
]
},
{
"name": "osx",
"folder": "C:/Users/william/Documents/starbound-dispatch/osx",
"languages": [
"en-US"
],
"osBitness": [
"64"
]
}
],
"tasks": [
{
"type": "FileTask",
"name": "Starbound",
"languages": [
"en-US"
],
"category": "game",
"path": "osx/Starbound.app/Contents/MacOS/starbound",
"isPrimary": true,
"osBitness": [
"64"
]
}
],
"supportDepots": []
}
],
"dependencies": [],
"scriptInterpreter": true
}
}

View file

@ -0,0 +1,87 @@
{
"project": {
"baseProductId": "1452598881",
"clientId": "49298129999913969",
"clientSecret": "725f21f087731acf1671a2e2cb4191a23894031e66a47c73583fedf3c326939f",
"version": "1.4.2",
"installDirectory": "Starbound",
"name": "Starbound",
"platform": "windows",
"tags": [],
"languageMode": "together",
"products": [
{
"name": "Starbound",
"productId": "1452598881",
"depots": [
{
"name": "data",
"folder": "C:/Users/william/Documents/starbound-dispatch/data",
"languages": [
"en-US"
],
"osBitness": [
"32",
"64"
]
},
{
"name": "win32",
"folder": "C:/Users/william/Documents/starbound-dispatch/win32",
"languages": [
"en-US"
],
"osBitness": [
"32",
"64"
]
},
{
"name": "win64",
"folder": "C:/Users/william/Documents/starbound-dispatch/win64",
"languages": [
"en-US"
],
"osBitness": [
"64"
]
}
],
"tasks": [
{
"type": "FileTask",
"name": "Starbound",
"languages": [
"en-US"
],
"category": "game",
"path": "win64/starbound.exe",
"isPrimary": true,
"osBitness": [
"64"
]
},
{
"type": "FileTask",
"name": "Starbound",
"languages": [
"en-US"
],
"category": "game",
"path": "win32/starbound.exe",
"isPrimary": true,
"osBitness": [
"32"
]
}
],
"supportDepots": []
}
],
"dependencies": [
"MSVC2015_x64",
"MSVC2015"
],
"scriptInterpreter": true
}
}

View file

@ -0,0 +1,16 @@
{
"cmd": "make -Cbuild",
"name": "starbound",
"args": [],
"sh": true,
"env": {},
"errorMatch": "^(?<file>[^\\.]+.hs):(?<line>\\d+):(?<col>\\d+)",
"targets": {
"build": {
"cmd": "make -Cbuild build"
},
"clean": {
"cmd": "make -Cbuild clean"
}
}
}

View file

@ -0,0 +1,12 @@
-Isource/application/
-Isource/core/
-Isource/extern/
-Isource/frontend/
-Isource/game/
-Isource/game/interfaces/
-Isource/game/items/
-Isource/game/objects/
-Isource/game/scripting/
-Isource/game/terrain/
-Isource/graphics/
-Isource/windowing/

View file

@ -0,0 +1 @@
-Wall -Wextra -Wuninitialized -Wno-parentheses-equality -Qunused-arguments -Wno-deprecated-declarations -Woverloaded-virtual -Wnon-virtual-dtor -Winit-self

View file

@ -0,0 +1,12 @@
source/application/
source/core/
source/extern/
source/frontend/
source/game/
source/game/interfaces/
source/game/items/
source/game/objects/
source/game/scripting/
source/game/terrain/
source/graphics/
source/windowing/

View file

@ -0,0 +1,11 @@
#!/bin/sh
cd "`dirname \"$0\"`/../source"
for file in *; do
if [ $file != "extern" -a -d $file ]; then
# This is not bulletproof, this will break if the last character on a line
# is an *escaped* quote.
find $file \( -name '*.cpp' -or -name '*.hpp' \) -exec perl -0777 -i -pe 's/\"\s*\n\s*\"//igs' {} \;
fi
done

View file

@ -0,0 +1,21 @@
#!/bin/sh -e
cd "`dirname \"$0\"`/../.."
for OBJECT in $(find assets/ -name *.object); do
EXISTING_TAGS=$(./dist/json_tool --opt '/tags' "$OBJECT")
if test "x$EXISTING_TAGS" != "x"; then
echo "Skipping $OBJECT; it already has tags..."
continue
fi
echo "Automatically tagging $OBJECT"
RACE_TAGS=$(./dist/json_tool --opt '/race' "$OBJECT" --array)
CATEGORY_TAGS=$(./dist/json_tool --opt '/category' "$OBJECT" --array)
TYPE_TAGS=$(./dist/json_tool --opt '/objectType' "$OBJECT" --array)
TAGS=$(./dist/json_tool -j "$RACE_TAGS" -j "$CATEGORY_TAGS" -j "$TYPE_TAGS" --get '/*' --array-unique)
./dist/json_tool -i --set '/tags' "$TAGS" --after objectName "$OBJECT"
done

View file

@ -0,0 +1,6 @@
#!/bin/sh -e
cd "`dirname \"$0\"`/../../dist"
./map_grep "invalid=true" ../assets/packed/dungeons/
./map_grep "invalid=true" ../assets/devel/dungeons/

View file

@ -0,0 +1,5 @@
#!/bin/sh -e
cd "`dirname \"$0\"`/../.."
./dist/json_tool --find ./assets .object --edit '/tags' --input csv --after objectName --editor-image '/orientations/0/imageLayers/0/image' --editor-image '/orientations/0/dualImage' --editor-image '/orientations/0/image' --editor-image '/orientations/0/leftImage'

View file

@ -0,0 +1,20 @@
{
"assetDirectories" : [
"../assets/",
"./mods/"
],
"storageDirectory" : "./",
"assetsSettings" : {
"pathIgnore" : [],
"digestIgnore" : [
".*"
]
},
"defaultConfiguration" : {
"allowAdminCommandsFromAnyone" : true,
"anonymousConnectionsAreAdmin" : true
}
}

27
scripts/linux/setup.sh Normal file
View file

@ -0,0 +1,27 @@
#!/bin/sh
cd "`dirname \"$0\"`/../.."
mkdir -p dist
cp scripts/linux/sbinit.config dist/
mkdir -p build
cd build
if [ -d /usr/lib/ccache ]; then
export PATH=/usr/lib/ccache/:$PATH
fi
LINUX_LIB_DIR=../lib/linux
cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-DCMAKE_BUILD_TYPE=RelWithAsserts \
-DSTAR_USE_JEMALLOC=ON \
-DCMAKE_INCLUDE_PATH=$LINUX_LIB_DIR/include \
-DCMAKE_LIBRARY_PATH=$LINUX_LIB_DIR/ \
../source
if [ $# -ne 0 ]; then
make -j$*
fi

View file

@ -0,0 +1,149 @@
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
# of the public at large and to the detriment of our heirs and
# successors. We intend this dedication to be an overt act of
# relinquishment in perpetuity of all present and future rights to this
# software under copyright law.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# For more information, please refer to <http://unlicense.org/>
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-fexceptions',
'-DNDEBUG',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c++11',
'-stdlib=libc++',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x', 'c++'
]
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
#
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = '/home/catherine/starbound/build'
if compilation_database_folder:
database = ycm_core.CompilationDatabase( compilation_database_folder )
else:
database = None
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
def DirectoryOfThisScript():
return os.path.dirname( os.path.abspath( __file__ ) )
def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
if not working_directory:
return list( flags )
new_flags = []
make_next_absolute = False
path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
for flag in flags:
new_flag = flag
if make_next_absolute:
make_next_absolute = False
if not flag.startswith( '/' ):
new_flag = os.path.join( working_directory, flag )
for path_flag in path_flags:
if flag == path_flag:
make_next_absolute = True
break
if flag.startswith( path_flag ):
path = flag[ len( path_flag ): ]
new_flag = path_flag + os.path.join( working_directory, path )
break
if new_flag:
new_flags.append( new_flag )
return new_flags
def IsHeaderFile( filename ):
extension = os.path.splitext( filename )[ 1 ]
return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
def GetCompilationInfoForFile( filename ):
# The compilation_commands.json file generated by CMake does not have entries
# for header files. So we do our best by asking the db for flags for a
# corresponding source file, if any. If one exists, the flags for that file
# should be good enough.
if IsHeaderFile( filename ):
basename = os.path.splitext( filename )[ 0 ]
for extension in SOURCE_EXTENSIONS:
replacement_file = basename + extension
if os.path.exists( replacement_file ):
compilation_info = database.GetCompilationInfoForFile(
replacement_file )
if compilation_info.compiler_flags_:
return compilation_info
return None
return database.GetCompilationInfoForFile( filename )
def FlagsForFile( filename, **kwargs ):
if database:
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
# python list, but a "list-like" StringVec object
compilation_info = GetCompilationInfoForFile( filename )
if not compilation_info:
return None
final_flags = MakeRelativePathsInFlagsAbsolute(
compilation_info.compiler_flags_,
compilation_info.compiler_working_dir_ )
else:
relative_to = DirectoryOfThisScript()
final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
return {
'flags': final_flags,
'do_cache': True
}

View file

@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname $0)/../.."
cd build
make -j3

View file

@ -0,0 +1,9 @@
#!/bin/sh -e
cd "`dirname \"$0\"`/../../dist"
STEAM_INSTALL_DIR="$HOME/Library/Application Support/Steam/steamapps/common/Starbound - Unstable"
./asset_packer -c ../scripts/packing.config ../assets/packed ./packed.pak
mv packed.pak "$STEAM_INSTALL_DIR/assets/packed.pak"
cp starbound "$STEAM_INSTALL_DIR/osx/Starbound.app/Contents/MacOS/"

View file

@ -0,0 +1,7 @@
#!/bin/sh -e
cd "`dirname \"$0\"`/../../dist"
cp ../scripts/steam_appid.txt .
DYLD_INSERT_LIBRARIES=~/Library/Application\ Support/Steam/Steam.AppBundle/Steam/Contents/MacOS/gameoverlayrenderer.dylib DYLD_LIBRARY_PATH=../lib/osx/ $@

6
scripts/osx/run.command Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname $0)/../.."
cd dist
./starbound

23
scripts/osx/sbinit.config Normal file
View file

@ -0,0 +1,23 @@
{
"assetDirectories" : [
"../assets/",
"./mods/"
],
"storageDirectory" : "./",
"assetsSettings" : {
"pathIgnore" : [],
"digestIgnore" : [
".*"
]
},
"defaultConfiguration" : {
"allowAdminCommandsFromAnyone" : true,
"anonymousConnectionsAreAdmin" : true,
"bindings" : {
"KeybindingClear" : [ { "type" : "key", "value" : "Del", "mods" : [] } ]
}
}
}

17
scripts/osx/setup.command Normal file
View file

@ -0,0 +1,17 @@
#!/bin/sh
cd "$(dirname $0)/../.."
mkdir -p dist
cp scripts/osx/sbinit.config dist/
mkdir -p build
cd build
CC=clang CXX=clang++ /Applications/CMake.app/Contents/bin/cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true \
-DCMAKE_BUILD_TYPE=RelWithAsserts \
-DSTAR_USE_JEMALLOC=ON \
-DCMAKE_INCLUDE_PATH=../lib/osx/include \
-DCMAKE_LIBRARY_PATH=../lib/osx/ \
../source

29
scripts/osx/setup.sh Normal file
View file

@ -0,0 +1,29 @@
#!/bin/sh
cd "`dirname \"$0\"`/../.."
mkdir -p dist
cp scripts/osx/sbinit.config dist/
mkdir -p build
cd build
QT5_INSTALL_PATH=/usr/local/opt/qt5
if [ -d $QT5_INSTALL_PATH ]; then
export PATH=$QT5_INSTALL_PATH/bin:$PATH
export LDFLAGS=-L$QT5_INSTALL_PATH/lib
export CPPFLAGS=-I$QT5_INSTALL_PATH/include
export CMAKE_PREFIX_PATH=$QT5_INSTALL_PATH
BUILD_QT_TOOLS=ON
else
BUILD_QT_TOOLS=OFF
fi
CC=clang CXX=clang++ cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=true \
-DCMAKE_BUILD_TYPE=RelWithAsserts \
-DSTAR_BUILD_QT_TOOLS=$BUILD_QT_TOOLS \
-DSTAR_USE_JEMALLOC=ON \
-DCMAKE_INCLUDE_PATH=../lib/osx/include \
-DCMAKE_LIBRARY_PATH=../lib/osx/ \
../source

View file

@ -0,0 +1,160 @@
# This file is NOT licensed under the GPLv3, which is the license for the rest
# of YouCompleteMe.
#
# Here's the license text for this file:
#
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or
# distribute this software, either in source code form or as a compiled
# binary, for any purpose, commercial or non-commercial, and by any
# means.
#
# In jurisdictions that recognize copyright laws, the author or authors
# of this software dedicate any and all copyright interest in the
# software to the public domain. We make this dedication for the benefit
# of the public at large and to the detriment of our heirs and
# successors. We intend this dedication to be an overt act of
# relinquishment in perpetuity of all present and future rights to this
# software under copyright law.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
# For more information, please refer to <http://unlicense.org/>
import os
import ycm_core
# These are the compilation flags that will be used in case there's no
# compilation database set (by default, one is not set).
# CHANGE THIS LIST OF FLAGS. YES, THIS IS THE DROID YOU HAVE BEEN LOOKING FOR.
flags = [
'-Wall',
'-Wextra',
'-Werror',
'-fexceptions',
'-DNDEBUG',
# THIS IS IMPORTANT! Without a "-std=<something>" flag, clang won't know which
# language to use when compiling headers. So it will guess. Badly. So C++
# headers will be compiled as C headers. You don't want that so ALWAYS specify
# a "-std=<something>".
# For a C project, you would set this to something like 'c99' instead of
# 'c++11'.
'-std=c++14',
'-stdlib=libc++',
# ...and the same thing goes for the magic -x option which specifies the
# language that the files to be compiled are written in. This is mostly
# relevant for c++ headers.
# For a C project, you would set this to 'c' instead of 'c++'.
'-x', 'c++'
]
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
#
# You can get CMake to generate this file for you by adding:
# set( CMAKE_EXPORT_COMPILE_COMMANDS 1 )
# to your CMakeLists.txt file.
#
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = '/Users/catherine/Documents/starbound/build'
if os.path.exists( compilation_database_folder ):
database = ycm_core.CompilationDatabase( compilation_database_folder )
else:
database = None
SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ]
def DirectoryOfThisScript():
return os.path.dirname( os.path.abspath( __file__ ) )
def MakeRelativePathsInFlagsAbsolute( flags, working_directory ):
if not working_directory:
return list( flags )
new_flags = []
make_next_absolute = False
path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ]
for flag in flags:
new_flag = flag
if make_next_absolute:
make_next_absolute = False
if not flag.startswith( '/' ):
new_flag = os.path.join( working_directory, flag )
for path_flag in path_flags:
if flag == path_flag:
make_next_absolute = True
break
if flag.startswith( path_flag ):
path = flag[ len( path_flag ): ]
new_flag = path_flag + os.path.join( working_directory, path )
break
if new_flag:
new_flags.append( new_flag )
return new_flags
def IsHeaderFile( filename ):
extension = os.path.splitext( filename )[ 1 ]
return extension in [ '.h', '.hxx', '.hpp', '.hh' ]
def GetCompilationInfoForFile( filename ):
# The compilation_commands.json file generated by CMake does not have entries
# for header files. So we do our best by asking the db for flags for a
# corresponding source file, if any. If one exists, the flags for that file
# should be good enough.
if IsHeaderFile( filename ):
basename = os.path.splitext( filename )[ 0 ]
for extension in SOURCE_EXTENSIONS:
replacement_file = basename + extension
if os.path.exists( replacement_file ):
compilation_info = database.GetCompilationInfoForFile(
replacement_file )
if compilation_info.compiler_flags_:
return compilation_info
return None
return database.GetCompilationInfoForFile( filename )
def FlagsForFile( filename, **kwargs ):
if database:
# Bear in mind that compilation_info.compiler_flags_ does NOT return a
# python list, but a "list-like" StringVec object
compilation_info = GetCompilationInfoForFile( filename )
if not compilation_info:
return None
final_flags = MakeRelativePathsInFlagsAbsolute(
compilation_info.compiler_flags_,
compilation_info.compiler_working_dir_ )
else:
relative_to = DirectoryOfThisScript()
final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to )
# Workaround for clang bug regarding default paths in compiling from
# libclang.so vs the clang binary
final_flags.extend([
"-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/",
"-isystem/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/7.0.2/include"
])
return {
'flags': final_flags,
'do_cache': True
}

69
scripts/packing.config Normal file
View file

@ -0,0 +1,69 @@
{
"globalIgnore" : [
"/\\.",
"/~",
"thumbs\\.db$",
"\\.bak$",
"\\.tmp$",
"\\.zip$",
"\\.orig$",
"\\.fail$",
"\\.psd$",
"\\.tmx$"
],
"serverIgnore" : [
"\\.ogg$",
"\\.wav$"
],
"extensionOrdering" : [
"",
"config",
"bush",
"grass",
"modularfoliage",
"modularstem",
"projectile",
"monstertype",
"monsterpart",
"npctype",
"npctype",
"vehicle",
"particle",
"animation",
"object",
"liquid",
"material",
"object",
"coin",
"miningtool",
"flashlight",
"wiretool",
"beamminingtool",
"harvestingtool",
"tillingtool",
"paintingbeamtool",
"headarmor",
"chestarmor",
"legsarmor",
"backarmor",
"consumable",
"blueprint",
"codex",
"techitem",
"instrument",
"grapplinghook",
"thrownitem",
"unlockitem",
"activeitem",
"augmentitem",
"material",
"matmod",
"lua",
"frames",
"png",
"wav",
"ogg"
]
}

30
scripts/priceobjects.py Normal file
View file

@ -0,0 +1,30 @@
#!/usr/bin/python
import os
import fnmatch
import sys
import fileinput
import re
import math
count = 0
for root, dir, files in os.walk("../assets/packed"):
for items in fnmatch.filter(files, "*.object"):
filePath = os.path.join(root, items)
newFile = open(filePath + '.new', 'w+')
for line in fileinput.input(filePath):
priceMatch = re.search("\"price\"\s?: (\d+)", line)
if priceMatch:
count += 1
price = int(priceMatch.groups()[0])
newPrice = int(math.floor(price * float(sys.argv[1])))
print str(price) + " -> " + str(newPrice) + " | in: " + filePath
line = line.replace(str(price), str(newPrice))
newFile.write(line)
newFile.close()
os.remove(filePath)
os.rename(filePath + '.new', filePath)
print '\n\n' + str(count) + " files changed"

1
scripts/steam_appid.txt Normal file
View file

@ -0,0 +1 @@
367540

View file

@ -0,0 +1,7 @@
cd /d %~dp0
cd ..\..
cd build
IF %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL%
"C:\Program Files (x86)\CMake\bin\cmake.exe" --build . --config %1

View file

@ -0,0 +1,8 @@
cd /d %~dp0
cd ..\..\dist
set STEAM_STARBOUND_DIR=c:\Program Files (x86)\Steam\steamapps\common\Starbound - Unstable
.\asset_packer.exe -c ..\assets\packing.config "custom assets" ..\assets\packed .\packed.pak
move packed.pak "%STEAM_STARBOUND_DIR%\assets\packed.pak"
copy starbound.exe "%STEAM_STARBOUND_DIR%\win32\"

View file

@ -0,0 +1,8 @@
cd /d %~dp0
cd ..\..\dist
set STEAM_STARBOUND_DIR=c:\Program Files (x86)\Steam\steamapps\common\Starbound - Unstable
.\asset_packer.exe -c ..\assets\packing.config "custom assets" ..\assets\packed .\packed.pak
move packed.pak "%STEAM_STARBOUND_DIR%\assets\packed.pak"
copy starbound.exe "%STEAM_STARBOUND_DIR%\win64\"

View file

@ -0,0 +1,7 @@
pushd %~dp0
pushd ..\..\dist
map_grep "invalid=true" ..\assets\packed\dungeons\
map_grep "invalid=true" ..\assets\devel\dungeons\
pause
popd
popd

View file

@ -0,0 +1,24 @@
{
"assetDirectories" : [
"..\\assets\\",
".\\mods\\"
],
"storageDirectory" : ".\\",
"assetsSettings" : {
"pathIgnore" : [],
"digestIgnore" : [
".*"
]
},
"defaultConfiguration" : {
"allowAdminCommandsFromAnyone" : true,
"anonymousConnectionsAreAdmin" : true,
"gameServerBind" : "*",
"queryServerBind" : "*",
"rconServerBind" : "*"
}
}

View file

@ -0,0 +1,44 @@
cd /d %~dp0
cd ..\..
mkdir dist
del dist\*.dll
copy lib\windows32\*.dll dist\
copy scripts\windows\sbinit.config dist\
mkdir build
cd build
if exist "C:\Program Files (x86)\CMake\bin" (
set CMAKE_EXE_PATH="C:\Program Files (x86)\CMake\bin"
) else (
set CMAKE_EXE_PATH="C:\Program Files\CMake\bin"
)
set QT_PREFIX_PATH=C:\Qt\5.6\msvc2015
if exist %QT_PREFIX_PATH% (
%CMAKE_EXE_PATH%\cmake.exe ^
..\source ^
-G"Visual Studio 14" ^
-T"v140_xp" ^
-DSTAR_USE_JEMALLOC=OFF ^
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
-DSTAR_BUILD_QT_TOOLS=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows32\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows32"
) else (
%CMAKE_EXE_PATH%\cmake.exe ^
..\source ^
-G "Visual Studio 14" ^
-T"v140_xp" ^
-DSTAR_USE_JEMALLOC=OFF ^
-DCMAKE_INCLUDE_PATH="..\lib\windows32\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows32"
)
pause

View file

@ -0,0 +1,42 @@
cd /d %~dp0
cd ..\..
mkdir dist
del dist\*.dll
copy lib\windows64\*.dll dist\
copy scripts\windows\sbinit.config dist\
mkdir build
cd build
if exist "C:\Program Files (x86)\CMake\bin" (
set CMAKE_EXE_PATH="C:\Program Files (x86)\CMake\bin"
) else (
set CMAKE_EXE_PATH="C:\Program Files\CMake\bin"
)
set QT_PREFIX_PATH=C:\Qt\5.6\msvc2015_64
if exist %QT_PREFIX_PATH% (
%CMAKE_EXE_PATH%\cmake.exe ^
..\source ^
-G"Visual Studio 15 Win64" ^
-DSTAR_USE_JEMALLOC=ON ^
-DCMAKE_PREFIX_PATH=%QT_PREFIX_PATH% ^
-DSTAR_BUILD_QT_TOOLS=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows64"
) else (
%CMAKE_EXE_PATH%\cmake.exe ^
..\source ^
-G "Visual Studio 15 Win64" ^
-DSTAR_USE_JEMALLOC=ON ^
-DCMAKE_INCLUDE_PATH="..\lib\windows64\include" ^
-DCMAKE_LIBRARY_PATH="..\lib\windows64"
)
pause

View file

@ -0,0 +1 @@
powershell.exe -command "Get-Content -Path '%cd%\..\..\dist\starbound.log' -Wait"

View file

@ -0,0 +1,6 @@
pushd %~dp0
pushd ..\..\dist
update_tilesets
pause
popd
popd