Misc collected fixes (#1497)
This commit is contained in:
parent
cd234fc04a
commit
30b70b2055
|
@ -63,7 +63,7 @@ class ClientCommandProcessor(CommandProcessor):
|
||||||
|
|
||||||
def _cmd_received(self) -> bool:
|
def _cmd_received(self) -> bool:
|
||||||
"""List all received items"""
|
"""List all received items"""
|
||||||
logger.info(f'{len(self.ctx.items_received)} received items:')
|
self.output(f'{len(self.ctx.items_received)} received items:')
|
||||||
for index, item in enumerate(self.ctx.items_received, 1):
|
for index, item in enumerate(self.ctx.items_received, 1):
|
||||||
self.output(f"{self.ctx.item_names[item.item]} from {self.ctx.player_names[item.player]}")
|
self.output(f"{self.ctx.item_names[item.item]} from {self.ctx.player_names[item.player]}")
|
||||||
return True
|
return True
|
||||||
|
|
|
@ -107,7 +107,7 @@ def main(args=None, callback=ERmain):
|
||||||
player_files = {}
|
player_files = {}
|
||||||
for file in os.scandir(args.player_files_path):
|
for file in os.scandir(args.player_files_path):
|
||||||
fname = file.name
|
fname = file.name
|
||||||
if file.is_file() and not file.name.startswith(".") and \
|
if file.is_file() and not fname.startswith(".") and \
|
||||||
os.path.join(args.player_files_path, fname) not in {args.meta_file_path, args.weights_file_path}:
|
os.path.join(args.player_files_path, fname) not in {args.meta_file_path, args.weights_file_path}:
|
||||||
path = os.path.join(args.player_files_path, fname)
|
path = os.path.join(args.player_files_path, fname)
|
||||||
try:
|
try:
|
||||||
|
|
3
Main.py
3
Main.py
|
@ -38,7 +38,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
||||||
world = MultiWorld(args.multi)
|
world = MultiWorld(args.multi)
|
||||||
|
|
||||||
logger = logging.getLogger()
|
logger = logging.getLogger()
|
||||||
world.set_seed(seed, args.race, str(args.outputname if args.outputname else world.seed))
|
world.set_seed(seed, args.race, str(args.outputname) if args.outputname else None)
|
||||||
world.plando_options = args.plando_options
|
world.plando_options = args.plando_options
|
||||||
|
|
||||||
world.shuffle = args.shuffle.copy()
|
world.shuffle = args.shuffle.copy()
|
||||||
|
@ -53,7 +53,6 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
||||||
world.enemy_damage = args.enemy_damage.copy()
|
world.enemy_damage = args.enemy_damage.copy()
|
||||||
world.beemizer_total_chance = args.beemizer_total_chance.copy()
|
world.beemizer_total_chance = args.beemizer_total_chance.copy()
|
||||||
world.beemizer_trap_chance = args.beemizer_trap_chance.copy()
|
world.beemizer_trap_chance = args.beemizer_trap_chance.copy()
|
||||||
world.timer = args.timer.copy()
|
|
||||||
world.countdown_start_time = args.countdown_start_time.copy()
|
world.countdown_start_time = args.countdown_start_time.copy()
|
||||||
world.red_clock_time = args.red_clock_time.copy()
|
world.red_clock_time = args.red_clock_time.copy()
|
||||||
world.blue_clock_time = args.blue_clock_time.copy()
|
world.blue_clock_time = args.blue_clock_time.copy()
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
const adjustTableHeight = () => {
|
const adjustTableHeight = () => {
|
||||||
const tablesContainer = document.getElementById('tables-container');
|
const tablesContainer = document.getElementById('tables-container');
|
||||||
|
if (!tablesContainer)
|
||||||
|
return;
|
||||||
const upperDistance = tablesContainer.getBoundingClientRect().top;
|
const upperDistance = tablesContainer.getBoundingClientRect().top;
|
||||||
|
|
||||||
const containerHeight = window.innerHeight - upperDistance;
|
const containerHeight = window.innerHeight - upperDistance;
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{% for patch in room.seed.slots|list|sort(attribute="player_id") %}
|
{% for patch in room.seed.slots|list|sort(attribute="player_id") %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ patch.player_id }}</td>
|
<td>{{ patch.player_id }}</td>
|
||||||
<td data-tooltip="Connect via TextClient"><a href="archipelago://{{ patch.player_name | e}}:@{{ config['PATCH_TARGET'] }}:{{ room.last_port }}">{{ patch.player_name }}<a/></td>
|
<td data-tooltip="Connect via TextClient"><a href="archipelago://{{ patch.player_name | e}}:@{{ config['PATCH_TARGET'] }}:{{ room.last_port }}">{{ patch.player_name }}</a></td>
|
||||||
<td>{{ patch.game }}</td>
|
<td>{{ patch.game }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% if patch.game == "Minecraft" %}
|
{% if patch.game == "Minecraft" %}
|
||||||
|
|
|
@ -422,7 +422,7 @@ for root in sorted_rows:
|
||||||
progressive = progressive_rows[root]
|
progressive = progressive_rows[root]
|
||||||
assert all(tech in tech_table for tech in progressive), "declared a progressive technology without base technology"
|
assert all(tech in tech_table for tech in progressive), "declared a progressive technology without base technology"
|
||||||
factorio_id += 1
|
factorio_id += 1
|
||||||
progressive_technology = Technology(root, technology_table[progressive_rows[root][0]].ingredients, factorio_id,
|
progressive_technology = Technology(root, technology_table[progressive[0]].ingredients, factorio_id,
|
||||||
progressive,
|
progressive,
|
||||||
has_modifier=any(technology_table[tech].has_modifier for tech in progressive),
|
has_modifier=any(technology_table[tech].has_modifier for tech in progressive),
|
||||||
unlocks=any(technology_table[tech].unlocks for tech in progressive))
|
unlocks=any(technology_table[tech].unlocks for tech in progressive))
|
||||||
|
|
Loading…
Reference in New Issue