br_indicate_finished
in f1 what does it print?cmake .. -DCLIENT=OFF
map = twmap.Map(path)
map_to_change = map.game_layer().tiles
map_to_change[1][2][3] = 4 # changes
map.game_layer().tiles = map_to_change
map.save(path)
But there is not map.tiles_layer()
, only game, front, speedup, switch, tele, tune layers. (edited)map = twmap.Map(path)
map_to_change = map.game_layer().tiles
map_to_change[1][2][3] = 4 # changes
map.game_layer().tiles = map_to_change
map.save(path)
But there is not map.tiles_layer()
, only game, front, speedup, switch, tele, tune layers. (edited)map = twmap.Map(path)
map_to_change = map.game_layer().tiles
map_to_change[1][2][3] = 4 # changes
map.game_layer().tiles = map_to_change
map.save(path)
But there is not map.tiles_layer()
, only game, front, speedup, switch, tele, tune layers. (edited)# you can ofc also skip assigning the group/layer to a variable and just write the whole thing chained
group = map.groups[group_index]
layer = group.layers[layer_index]
# get the numpy array of tiles (3D, first two layers are the y and x axis, last axis is just [tile id, tile flags]
tilemap = layer.tiles
# then do changes
# then reassign the tilemap to the layer
layer.tiles = tilemap
# you can ofc also skip assigning the group/layer to a variable and just write the whole thing chained
group = map.groups[group_index]
layer = group.layers[layer_index]
# get the numpy array of tiles (3D, first two layers are the y and x axis, last axis is just [tile id, tile flags]
tilemap = layer.tiles
# then do changes
# then reassign the tilemap to the layer
layer.tiles = tilemap
game_layer
or else.AttributeError: The twmap.Map object has no attribute 'group'
import twmap
map = twmap.Map(r'path\myMap.map')
group = map.group(0)
layer = group.layers(1)
tilemap = layer.tiles
print(tilemap)
Am I doing everything right?
I need that "Block" tile layer.
@Patigagroups(0)
, then groups[0]
cl_nameplates_own 0
into the F1 console.