SCATEBOARD
This commit is contained in:
10
ogg/general/combat/creatures/dragon/firebolt.cue
Normal file
10
ogg/general/combat/creatures/dragon/firebolt.cue
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
REM GoldWave
|
||||||
|
FILE "firebolt.ogg" BINARY
|
||||||
|
TRACK 01 AUDIO
|
||||||
|
TITLE "01"
|
||||||
|
PERFORMER "Ömer Yılmaz"
|
||||||
|
INDEX 01 00:03:64
|
||||||
|
TRACK 02 AUDIO
|
||||||
|
TITLE "02"
|
||||||
|
PERFORMER "Ömer Yılmaz"
|
||||||
|
INDEX 01 00:03:64
|
||||||
BIN
ogg/general/combat/creatures/dragon/firebolt.ogg
Normal file
BIN
ogg/general/combat/creatures/dragon/firebolt.ogg
Normal file
Binary file not shown.
BIN
ogg/general/misc/SCATEBOARD.ogg
Normal file
BIN
ogg/general/misc/SCATEBOARD.ogg
Normal file
Binary file not shown.
BIN
wav/general/combat/creatures/dragon/firebolt.wav
Normal file
BIN
wav/general/combat/creatures/dragon/firebolt.wav
Normal file
Binary file not shown.
BIN
wav/general/combat/creatures/dragon/firebolt1.wav
Normal file
BIN
wav/general/combat/creatures/dragon/firebolt1.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
wav/general/misc/SCATEBOARD.wav
Normal file
BIN
wav/general/misc/SCATEBOARD.wav
Normal file
Binary file not shown.
3424
wav/sound_structure.json
Normal file
3424
wav/sound_structure.json
Normal file
File diff suppressed because it is too large
Load Diff
44
wav/sp_db_maker.py
Normal file
44
wav/sp_db_maker.py
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
import os
|
||||||
|
import json
|
||||||
|
|
||||||
|
def build_tree(root_dir):
|
||||||
|
tree = {}
|
||||||
|
|
||||||
|
for root, dirs, files in os.walk(root_dir):
|
||||||
|
# Skip hidden folders like .git, .idea, node_modules ghosts, etc.
|
||||||
|
dirs[:] = [d for d in dirs if not d.startswith('.')]
|
||||||
|
|
||||||
|
rel_path = os.path.relpath(root, root_dir)
|
||||||
|
folders = rel_path.split(os.sep) if rel_path != "." else []
|
||||||
|
|
||||||
|
current = tree
|
||||||
|
|
||||||
|
# Walk / create folder structure safely
|
||||||
|
for folder in folders:
|
||||||
|
# If this path key doesn't exist or got turned into something non-dict, fix it
|
||||||
|
if folder not in current or not isinstance(current.get(folder), dict):
|
||||||
|
current[folder] = {}
|
||||||
|
current = current[folder]
|
||||||
|
|
||||||
|
# Register files
|
||||||
|
for file in files:
|
||||||
|
if file.lower().endswith(('.wav', '.wave', '.mp3', '.ogg')):
|
||||||
|
file_name = os.path.splitext(file)[0]
|
||||||
|
|
||||||
|
# Only set to None if it doesn't already exist
|
||||||
|
# (avoid overwriting a folder accidentally)
|
||||||
|
if file_name not in current or not isinstance(current[file_name], dict):
|
||||||
|
current[file_name] = None
|
||||||
|
|
||||||
|
return tree
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
root_directory = os.getcwd()
|
||||||
|
tree = build_tree(root_directory)
|
||||||
|
|
||||||
|
output_filename = "sound_structure.json"
|
||||||
|
with open(output_filename, "w") as f:
|
||||||
|
json.dump(tree, f, indent=4)
|
||||||
|
|
||||||
|
print(f"Sound structure saved to {output_filename}")
|
||||||
Reference in New Issue
Block a user