commit
425268e956
@ -0,0 +1,34 @@
|
||||
jobs:
|
||||
- job: ubuntu16
|
||||
pool:
|
||||
vmImage: 'Ubuntu-16.04'
|
||||
steps:
|
||||
- script: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y software-properties-common
|
||||
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
|
||||
sudo apt-get update
|
||||
sudo apt-get install cmake build-essential -y
|
||||
sudo apt-get install gcc-8 g++-8 -y
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 60
|
||||
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 60
|
||||
sudo apt-get install libmysqlclient-dev -y
|
||||
sudo apt-get install bison autoconf automake -y
|
||||
sudo apt-get install libpng12-dev libjpeg62-dev -y
|
||||
sudo apt-get install liblua5.1-dev libluabind-dev libcpptest-dev -y
|
||||
sudo apt-get install libogg-dev libvorbis-dev libopenal-dev -y
|
||||
sudo apt-get install libgif-dev libfreetype6-dev -y
|
||||
sudo apt-get install libxml2-dev -y
|
||||
sudo apt-get install libcurl4-openssl-dev -y
|
||||
displayName: 'Dependencies'
|
||||
- script: |
|
||||
mkdir build
|
||||
cmake --version
|
||||
cd build
|
||||
cmake -DWITH_NEL_TESTS=OFF -DWITH_NEL_SAMPLES=ON -DWITH_LUA51=ON -DWITH_RYZOM_SERVER=ON -DWITH_RYZOM_TOOLS=OFF -DWITH_NEL_TOOLS=OFF ../code
|
||||
cat CMakeCache.txt
|
||||
displayName: 'CMake'
|
||||
- script: |
|
||||
cd build
|
||||
make -j`nproc`
|
||||
displayName: 'Make'
|
@ -1,42 +0,0 @@
|
||||
--
|
||||
-- custom maps
|
||||
--
|
||||
|
||||
if (game==nil) then
|
||||
game= {};
|
||||
end
|
||||
|
||||
-- alternative textures for maps
|
||||
game.mapTextures = {}
|
||||
-- game.mapTextures["zorai_map.tga"] = "tryker_map.tga"
|
||||
|
||||
-- register alternative texture for map
|
||||
function game:setAltMap(mapName, altMap)
|
||||
self.mapTextures[mapName] = altMap
|
||||
end
|
||||
|
||||
-- remove alternative map texture
|
||||
function game:removeAltMap(mapName)
|
||||
self.mapTextures[mapName] = nil
|
||||
end
|
||||
|
||||
-- map = getUI("ui:interface:map:content:map_content:actual_map")
|
||||
function game:onLoadMap(map)
|
||||
-- debugInfo("onLoadMap(id=".. map.id ..", texture=".. map.texture ..")");
|
||||
|
||||
-- if alt view not enabled
|
||||
if getDbProp("UI:VARIABLES:SHOW_ALT_MAP") == 0 or map:isIsland() then
|
||||
return
|
||||
end
|
||||
|
||||
local texture = map.texture
|
||||
if self.mapTextures[texture] ~= nil then
|
||||
-- debugInfo("-- using ".. self.mapTextures[texture] .." for " .. texture)
|
||||
return self.mapTextures[texture]
|
||||
end
|
||||
end
|
||||
|
||||
-- register map overrride
|
||||
-- game:setAltMap("fyros_map.tga", "fyros_map_sp.tga")
|
||||
|
||||
|
Loading…
Reference in New Issue