This commit is contained in:
listik committed 2026-11-11 07:52:16 +03:00
1 parent 1a0e54a933
commit 296988b199
71 files changed
+575263 -93130

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
// Собирает Luau-файл для Studio: модель lobby_guild_hall (bbmodel-to-luau.js) + tools/build-guild-hall3.lua.
// node tools/build-guild-hall3.js <out.lua>
const fs = require('fs'), path = require('path'), { execFileSync } = require('child_process');
const ROOT = path.join(__dirname, '..');
const out = process.argv[2] || path.join(ROOT, 'tools', 'guild-hall3-full.lua');
const lua = path.join(ROOT, 'tools', 'lobby-models', 'lobby_guild_hall_v2.lua');
execFileSync('node', [path.join(__dirname, 'bbmodel-to-luau.js'), path.join(ROOT, 'assets', 'props', 'lobby_guild_hall_v2.bbmodel'),
path.join(ROOT, 'assets', 'props', 'lobby_guild_hall_v2_palette.png'), lua, 'lobby_guild_hall_v2'], { stdio: 'inherit' });
const code = '-- СГЕНЕРИРОВАНО tools/build-guild-hall3.js\nlocal BUILD = {}\nBUILD.hall = (function()\n'
+ fs.readFileSync(lua, 'utf8') + '\nend)()\n' + fs.readFileSync(path.join(__dirname, 'build-guild-hall3.lua'), 'utf8');
fs.writeFileSync(out, code, 'utf8');
console.log('->', out, (code.length / 1024).toFixed(0) + ' KB');