twmap
: 0.9.0 contained a rather big bug where the Layer::shape
function had x and y mixed up. that is fixed, alongside its uses (somehow I managed to use it the correct wrong way multiple times).
apart from the fixes there should not be any breaking changes with 0.9.1, but some nice additions from @Ryozuki
twmap-tools
: twmap-edit
wasn't working properly because of the mentioned bug, everything should work again
twmap-py
: the to_mesh
method on tiles layers now works again, it was broken for a while (also the release was necessary to fix the mentioned bug)
twmap-blender
: the add-on now automatically downloads the twmap python module with pip, if it isn't installed (release: https://gitlab.com/Patiga/twmap-blender/-/releases/v0.3.0)snapshot_object
type/dev/mapper/xubuntu--vg-root 144G 132G 5,4G 97% /
cargo build --release
Receiving objects: 100% (32608/32608), 918.89 MiB
so 920MB packedimport twmap
from glob import glob
import numpy as np
TILE_FREEZE = 9
for mapname in glob('ddnet-maps/types/race/maps/*.map'):
Map = twmap.Map(mapname)
game = Map.game_layer().tiles[:,:,0]
try:
front = Map.front_layer().tiles[:,:,0]
except AttributeError:
front = np.zeros((1,1))
if (game == TILE_FREEZE).any() or (front == TILE_FREEZE).any():
print(f'{mapname} has freeze')
$ cmake -G Ninja -DDEV=ON ..
$ time ninja
# 16.5
real 3m2,989s
user 10m1,479s
sys 0m31,780s
# master build with rust
real 3m45,214s
user 12m3,471s
sys 0m37,628s
Finished dev [unoptimized + debuginfo] target(s) in 54.34s
rust_version
## master build with rust
284K ./src
40M ./data
90M ./CMakeFiles
238M ./debug
434M .
## 16.5
284K ./src
40M ./data
89M ./CMakeFiles
167M .
/// Color, in HSLA format. Corresponds to the C++ type `ColorHSLA`.
///
/// The color is represented by hue, saturation, lightness and alpha values
/// between `0.0` and `1.0`.
///
/// See also <https://en.wikipedia.org/wiki/HSL_and_HSV>.
///
/// # Examples
///
/// ---
/// use ddnet_base::ColorHSLA;
///
/// let white = ColorHSLA { h: 0.0, s: 0.0, l: 1.0, a: 1.0 };
/// let black = ColorHSLA { h: 0.0, s: 0.0, l: 0.0, a: 1.0 };
/// let red = ColorHSLA { h: 0.0, s: 1.0, l: 0.5, a: 1.0 };
/// let transparent = ColorHSLA { h: 0.0, s: 0.0, l: 0.0, a: 0.0 };
///
/// // #ffa500
/// let ddnet_logo_color = ColorHSLA { h: 0.10784314, s: 1.0, l: 0.5, a: 1.0 };
/// ---
(edited)cargo fmt
as
a coercion[ERROR rust_analyzer::lsp_utils] failed to run build scripts
error: failed to run custom build command for `ddnet-test v0.0.1 (/home/jupeyy/Schreibtisch/Teeworlds/DDNet/ddnet_jupeyy/src/rust-bridge/test)`
Caused by:
process didn't exit successfully: `/home/jupeyy/Schreibtisch/Teeworlds/DDNet/ddnet_jupeyy/target/debug/build/ddnet-test-3232940390239a5f/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=DDNET_TEST_LIBRARIES
cargo:rerun-if-env-changed=DDNET_TEST_NO_LINK
--- stderr
thread 'main' panicked at 'environment variable DDNET_TEST_LIBRARIES required but not found: NotPresent', src/rust-bridge/test/build.rs:27:14
stack backtrace:
0: rust_begin_unwind
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/std/src/panicking.rs:584:5
1: core::panicking::panic_fmt
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/panicking.rs:142:14
2: core::result::unwrap_failed
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/result.rs:1785:5
3: core::result::Result<T,E>::expect
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/result.rs:1035:23
4: build_script_build::main
at ./build.rs:26:25
5: core::ops::function::FnOnce::call_once
at /rustc/e092d0b6b43f2de967af0887873151bb1c0b18d3/library/core/src/ops/function.rs:248:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[ERROR project_model::workspace] cyclic deps: ddnet_engine_shared(CrateId(17)) -> ddnet_engine(CrateId(16)), alternative path: ddnet_engine(CrateId(16)) -> ddnet_engine_shared(CrateId(17))