pala M-market-1b: CDC corrige (taxe 5% §3.8 confirmee, expiry TODO) + scripts/parencheck.py
This commit is contained in:
+9
-5
@@ -460,7 +460,7 @@ avant M4 (TODO:crafts-machines).
|
||||
- TODO explicites : 15 nommes (pog-os CLOS par M2-complement : OS 11/21/26/31 implemente ;
|
||||
grep : ocr-fiable, worldgen-couches, broadsword,
|
||||
crafts-machines, chervil, commandes-exactes, ghost, luckperms, runclient, mcp-ocular, shebang,
|
||||
java-home, craft-xp, smelt-xp, crusher-xp)
|
||||
java-home, craft-xp, smelt-xp, crusher-xp, market-expiry)
|
||||
+ 4 points UNVERIFIED (seuils XP 6-100, durees sticks, valeurs armures wiki vs MCreator,
|
||||
patterns machines images).
|
||||
- Methode : WAVES (crawl 137 articles → stub JS isoles → re-crawl navigateur → verifie) + ETERNAL CODE
|
||||
@@ -672,10 +672,14 @@ avant M4 (TODO:crafts-machines).
|
||||
26.3 -> enchant 1). Lecon : boot-systématique attrape ce que la compile ne voit pas.
|
||||
VERIFIE : build SUCCESSFUL, boot Done, 0 erreur. UNVERIFIED en jeu.
|
||||
- M-market-1 LIVRE 2026-10-19 ~06:15 : market commandes (/market sell/list/buy/cancel,
|
||||
PalaMarket pala-market.json, money existante, hors-ligne credite). ECART : pas de
|
||||
GUI, items sans NBT. Incidents : taxe 5% inconnue apparue dans le fichier (retiree,
|
||||
non-wiki) ; registry.get() -> Optional en 26.3 (getValue) ; Player.drop() supprime
|
||||
(-> ItemEntity). VERIFIE : build SUCCESSFUL, boot Done, 0 erreur. UNVERIFIED en jeu.
|
||||
PalaMarket pala-market.json, money existante, hors-ligne credite, taxe 5 % §3.8 :
|
||||
vendeur recoit 95 % floor au centime). ECART : pas de GUI, items sans NBT.
|
||||
TODO:market-expiry : expiration 7 j + purge au flush (M7). Lecons : DefaultedRegistry
|
||||
.get() -> Optional en 26.3 (getValue) ; Player.drop() supprime (-> ItemEntity) ;
|
||||
ne jamais nommer une variable `net` (masque net.minecraft -> "double cannot be
|
||||
dereferenced"). VERIFIE : build SUCCESSFUL, boot Done (0.381s), 0 ERROR/Exception
|
||||
au log, jar md5 identique build/libs = server/mods = HEAD. UNVERIFIED en jeu
|
||||
(2 joueurs : vente->achat->taxe).
|
||||
- M-palaforge LIVRE 2026-10-19 ~03:55 : bloc + BE partagee (3e mode) + gate mineur 14 +
|
||||
table fonte wiki §3.2 (31 items, ratio floor usure) + fuels bois (+buche/planches/baton,
|
||||
lave exclue : seau non rendu) + craft (1 findium + 4 furnaces + 4 briques, positions
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Compteur de profondeur (parentheses) par ligne, strings/comments maskees.
|
||||
Usage: parencheck.py <fichier.java> [start] [end]
|
||||
Exige FINAL: 0."""
|
||||
import sys
|
||||
|
||||
path = sys.argv[1]
|
||||
start = int(sys.argv[2]) if len(sys.argv) > 2 else 1
|
||||
end = int(sys.argv[3]) if len(sys.argv) > 3 else None
|
||||
|
||||
with open(path) as f:
|
||||
lines = f.readlines()
|
||||
|
||||
depth = 0
|
||||
in_block = False
|
||||
for i, raw in enumerate(lines, 1):
|
||||
line = raw.rstrip("\n")
|
||||
masked = []
|
||||
j = 0
|
||||
in_str = False
|
||||
in_char = False
|
||||
while j < len(line):
|
||||
if in_block:
|
||||
if line[j:j+2] == "*/":
|
||||
in_block = False
|
||||
j += 2
|
||||
else:
|
||||
j += 1
|
||||
continue
|
||||
if in_str:
|
||||
if line[j] == "\\":
|
||||
j += 2
|
||||
continue
|
||||
if line[j] == '"':
|
||||
in_str = False
|
||||
j += 1
|
||||
continue
|
||||
if in_char:
|
||||
if line[j] == "\\":
|
||||
j += 2
|
||||
continue
|
||||
if line[j] == "'":
|
||||
in_char = False
|
||||
j += 1
|
||||
continue
|
||||
if line[j:j+2] == "//":
|
||||
break
|
||||
if line[j:j+2] == "/*":
|
||||
in_block = True
|
||||
j += 2
|
||||
continue
|
||||
if line[j] == '"':
|
||||
in_str = True
|
||||
j += 1
|
||||
continue
|
||||
if line[j] == "'":
|
||||
in_char = True
|
||||
j += 1
|
||||
continue
|
||||
masked.append(line[j])
|
||||
j += 1
|
||||
code = "".join(masked)
|
||||
opens = code.count("(") - code.count(")")
|
||||
depth += opens
|
||||
if (end is None or (start <= i <= end)) and (opens != 0 or "Commands.literal" in line
|
||||
or "dispatcher.register" in line or ".executes(" in line):
|
||||
print(f"{i:5d} d={depth:+3d} ({opens:+3d}) {line.strip()[:100]}")
|
||||
|
||||
print(f"FINAL: {depth}")
|
||||
Reference in New Issue
Block a user