v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
137
scripts/discord-dispatch.json
Normal file
137
scripts/discord-dispatch.json
Normal 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
6
scripts/distclean.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "`dirname \"$0\"`/.."
|
||||
|
||||
rm -rf build
|
||||
rm -rf dist
|
16
scripts/findskippedmatids.sh
Normal file
16
scripts/findskippedmatids.sh
Normal 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
11
scripts/format-source.sh
Normal 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
|
98
scripts/gitlab-ci/assemble.sh
Normal file
98
scripts/gitlab-ci/assemble.sh
Normal 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/
|
180
scripts/gitlab-ci/deploy_stable_steam.sh
Normal file
180
scripts/gitlab-ci/deploy_stable_steam.sh
Normal 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
|
180
scripts/gitlab-ci/deploy_unstable_steam.sh
Normal file
180
scripts/gitlab-ci/deploy_unstable_steam.sh
Normal 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
|
22
scripts/gitlab-ci/linux/build.sh
Normal file
22
scripts/gitlab-ci/linux/build.sh
Normal 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/
|
5
scripts/gitlab-ci/linux/run-client.sh
Normal file
5
scripts/gitlab-ci/linux/run-client.sh
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "`dirname \"$0\"`"
|
||||
|
||||
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./" ./starbound "$@"
|
22
scripts/gitlab-ci/linux/run-server.sh
Normal file
22
scripts/gitlab-ci/linux/run-server.sh
Normal 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
|
8
scripts/gitlab-ci/linux/sbinit.config
Normal file
8
scripts/gitlab-ci/linux/sbinit.config
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"../assets/",
|
||||
"../mods/"
|
||||
],
|
||||
|
||||
"storageDirectory" : "../storage/"
|
||||
}
|
8
scripts/gitlab-ci/linux/test.sh
Normal file
8
scripts/gitlab-ci/linux/test.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cd linux_binaries
|
||||
|
||||
cp ../scripts/linux/sbinit.config .
|
||||
|
||||
./core_tests
|
||||
./game_tests
|
27
scripts/gitlab-ci/macos/Starbound.app/Contents/Info.plist
Normal file
27
scripts/gitlab-ci/macos/Starbound.app/Contents/Info.plist
Normal 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>
|
Binary file not shown.
25
scripts/gitlab-ci/macos/build.sh
Normal file
25
scripts/gitlab-ci/macos/build.sh
Normal 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/
|
11
scripts/gitlab-ci/macos/run-server.sh
Normal file
11
scripts/gitlab-ci/macos/run-server.sh
Normal 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
|
8
scripts/gitlab-ci/macos/sbinit.config
Normal file
8
scripts/gitlab-ci/macos/sbinit.config
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"../assets/",
|
||||
"../mods/"
|
||||
],
|
||||
|
||||
"storageDirectory" : "../storage/"
|
||||
}
|
9
scripts/gitlab-ci/macos/test.sh
Normal file
9
scripts/gitlab-ci/macos/test.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
cd macos_binaries
|
||||
|
||||
cp ../scripts/osx/sbinit.config .
|
||||
|
||||
./core_tests
|
||||
./game_tests
|
||||
|
43
scripts/gitlab-ci/repack_steamfree.sh
Normal file
43
scripts/gitlab-ci/repack_steamfree.sh
Normal 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
|
25
scripts/gitlab-ci/windows32/build.bat
Normal file
25
scripts/gitlab-ci/windows32/build.bat
Normal 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
|
14
scripts/gitlab-ci/windows32/sbinit.config
Normal file
14
scripts/gitlab-ci/windows32/sbinit.config
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"..\\assets\\",
|
||||
"..\\mods\\"
|
||||
],
|
||||
|
||||
"storageDirectory" : "..\\storage\\",
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"gameServerBind" : "*",
|
||||
"queryServerBind" : "*",
|
||||
"rconServerBind" : "*"
|
||||
}
|
||||
}
|
8
scripts/gitlab-ci/windows32/test.bat
Normal file
8
scripts/gitlab-ci/windows32/test.bat
Normal 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
|
30
scripts/gitlab-ci/windows64/build.bat
Normal file
30
scripts/gitlab-ci/windows64/build.bat
Normal 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
|
14
scripts/gitlab-ci/windows64/sbinit.config
Normal file
14
scripts/gitlab-ci/windows64/sbinit.config
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"..\\assets\\",
|
||||
"..\\mods\\"
|
||||
],
|
||||
|
||||
"storageDirectory" : "..\\storage\\",
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"gameServerBind" : "*",
|
||||
"queryServerBind" : "*",
|
||||
"rconServerBind" : "*"
|
||||
}
|
||||
}
|
8
scripts/gitlab-ci/windows64/test.bat
Normal file
8
scripts/gitlab-ci/windows64/test.bat
Normal 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
|
60
scripts/gog-project-linux.json
Normal file
60
scripts/gog-project-linux.json
Normal 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
|
||||
}
|
||||
}
|
60
scripts/gog-project-osx.json
Normal file
60
scripts/gog-project-osx.json
Normal 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
|
||||
}
|
||||
}
|
87
scripts/gog-project-windows.json
Normal file
87
scripts/gog-project-windows.json
Normal 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
|
||||
}
|
||||
}
|
16
scripts/ide/atom-build.json
Normal file
16
scripts/ide/atom-build.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
12
scripts/ide/clang_complete
Normal file
12
scripts/ide/clang_complete
Normal 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/
|
1
scripts/ide/linter-clang-flags
Normal file
1
scripts/ide/linter-clang-flags
Normal file
|
@ -0,0 +1 @@
|
|||
-Wall -Wextra -Wuninitialized -Wno-parentheses-equality -Qunused-arguments -Wno-deprecated-declarations -Woverloaded-virtual -Wnon-virtual-dtor -Winit-self
|
12
scripts/ide/linter-clang-includes
Normal file
12
scripts/ide/linter-clang-includes
Normal 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/
|
11
scripts/join-multiline-source-strings.sh
Normal file
11
scripts/join-multiline-source-strings.sh
Normal 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
|
21
scripts/linux/autotag_objects.sh
Normal file
21
scripts/linux/autotag_objects.sh
Normal 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
|
6
scripts/linux/find_invalid_tiles.sh
Normal file
6
scripts/linux/find_invalid_tiles.sh
Normal 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/
|
5
scripts/linux/object_tag_editor.sh
Normal file
5
scripts/linux/object_tag_editor.sh
Normal 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'
|
20
scripts/linux/sbinit.config
Normal file
20
scripts/linux/sbinit.config
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"../assets/",
|
||||
"./mods/"
|
||||
],
|
||||
|
||||
"storageDirectory" : "./",
|
||||
|
||||
"assetsSettings" : {
|
||||
"pathIgnore" : [],
|
||||
"digestIgnore" : [
|
||||
".*"
|
||||
]
|
||||
},
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"allowAdminCommandsFromAnyone" : true,
|
||||
"anonymousConnectionsAreAdmin" : true
|
||||
}
|
||||
}
|
27
scripts/linux/setup.sh
Normal file
27
scripts/linux/setup.sh
Normal 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
|
149
scripts/linux/ycm_extra_conf.py
Normal file
149
scripts/linux/ycm_extra_conf.py
Normal 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
|
||||
}
|
6
scripts/osx/build.command
Normal file
6
scripts/osx/build.command
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(dirname $0)/../.."
|
||||
|
||||
cd build
|
||||
make -j3
|
9
scripts/osx/copy-to-steam.sh
Normal file
9
scripts/osx/copy-to-steam.sh
Normal 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/"
|
7
scripts/osx/launch-steam.sh
Normal file
7
scripts/osx/launch-steam.sh
Normal 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
6
scripts/osx/run.command
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cd "$(dirname $0)/../.."
|
||||
|
||||
cd dist
|
||||
./starbound
|
23
scripts/osx/sbinit.config
Normal file
23
scripts/osx/sbinit.config
Normal 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
17
scripts/osx/setup.command
Normal 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
29
scripts/osx/setup.sh
Normal 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
|
160
scripts/osx/ycm_extra_conf.py
Normal file
160
scripts/osx/ycm_extra_conf.py
Normal 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
69
scripts/packing.config
Normal 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
30
scripts/priceobjects.py
Normal 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
1
scripts/steam_appid.txt
Normal file
|
@ -0,0 +1 @@
|
|||
367540
|
7
scripts/windows/build.bat
Normal file
7
scripts/windows/build.bat
Normal 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
|
8
scripts/windows/copy-to-steam32.bat
Normal file
8
scripts/windows/copy-to-steam32.bat
Normal 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\"
|
8
scripts/windows/copy-to-steam64.bat
Normal file
8
scripts/windows/copy-to-steam64.bat
Normal 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\"
|
7
scripts/windows/find_invalid_tiles.bat
Normal file
7
scripts/windows/find_invalid_tiles.bat
Normal 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
|
24
scripts/windows/sbinit.config
Normal file
24
scripts/windows/sbinit.config
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"assetDirectories" : [
|
||||
"..\\assets\\",
|
||||
".\\mods\\"
|
||||
],
|
||||
|
||||
"storageDirectory" : ".\\",
|
||||
|
||||
"assetsSettings" : {
|
||||
"pathIgnore" : [],
|
||||
"digestIgnore" : [
|
||||
".*"
|
||||
]
|
||||
},
|
||||
|
||||
"defaultConfiguration" : {
|
||||
"allowAdminCommandsFromAnyone" : true,
|
||||
"anonymousConnectionsAreAdmin" : true,
|
||||
|
||||
"gameServerBind" : "*",
|
||||
"queryServerBind" : "*",
|
||||
"rconServerBind" : "*"
|
||||
}
|
||||
}
|
44
scripts/windows/setup32.bat
Normal file
44
scripts/windows/setup32.bat
Normal 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
|
42
scripts/windows/setup64.bat
Normal file
42
scripts/windows/setup64.bat
Normal 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
|
1
scripts/windows/showlog.bat
Normal file
1
scripts/windows/showlog.bat
Normal file
|
@ -0,0 +1 @@
|
|||
powershell.exe -command "Get-Content -Path '%cd%\..\..\dist\starbound.log' -Wait"
|
6
scripts/windows/update_tilesets.bat
Normal file
6
scripts/windows/update_tilesets.bat
Normal file
|
@ -0,0 +1,6 @@
|
|||
pushd %~dp0
|
||||
pushd ..\..\dist
|
||||
update_tilesets
|
||||
pause
|
||||
popd
|
||||
popd
|
Loading…
Add table
Add a link
Reference in a new issue