Format unformatted files and add script

This commit is contained in:
dazedanon 2025-05-04 17:26:42 -05:00
parent 96edf0f7ca
commit fbaac54f9c
11 changed files with 120222 additions and 120195 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,69 +1,69 @@
--- !ruby/object:RPG::System
elements:
!ruby/object:RPG::System
'elements':
- ''
- Phys
- Bstab
- 3Hol
- Anal
- Nip
- Spare
- Heel
- Hit
- Holy
- N/A
- Fing
- Brst
- Mth
- Tent
- TngT
- Cuni
- STech
- M
- Misn
- CWGR
- Dggy
- Plin
- Drgn
- Hmn
- Dmn
- Plnt
- Aqtc
- Inst
- Boss
- Anml
- Undd
- Amrp
- Pneum
- Ancl
- Grdn
- Frya
- Hom
- Tuna
- MGrl
- Swrd
- 2Hnd
- Axe
- Spr
- Bow
- Fist
- Book
- Ktr
- Gun
- Wpn
- Emp
- DMGC
- Glas
- Pzri
- Ptri
- Btch
- UKnw
- Fire
- Frozn
- RedH
- BluH
- GrnH
- BldH
- Pure
- 'Phys'
- 'Bstab'
- '3Hol'
- 'Anal'
- 'Nip'
- 'Spare'
- 'Heel'
- 'Hit'
- 'Holy'
- 'N/A'
- 'Fing'
- 'Brst'
- 'Mth'
- 'Tent'
- 'TngT'
- 'Cuni'
- 'STech'
- 'M'
- 'Misn'
- 'CWGR'
- 'Dggy'
- 'Plin'
- 'Drgn'
- 'Hmn'
- 'Dmn'
- 'Plnt'
- 'Aqtc'
- 'Inst'
- 'Boss'
- 'Anml'
- 'Undd'
- 'Amrp'
- 'Pneum'
- 'Ancl'
- 'Grdn'
- 'Frya'
- 'Hom'
- 'Tuna'
- 'MGrl'
- 'Swrd'
- '2Hnd'
- 'Axe'
- 'Spr'
- 'Bow'
- 'Fist'
- 'Book'
- 'Ktr'
- 'Gun'
- 'Wpn'
- 'Emp'
- 'DMGC'
- 'Glas'
- 'Pzri'
- 'Ptri'
- 'Btch'
- 'UKnw'
- 'Fire'
- 'Frozn'
- 'RedH'
- 'BluH'
- 'GrnH'
- 'BldH'
- 'Pure'
- ''
- ''
- ''
@ -71,15 +71,15 @@ elements:
- ''
- ''
- ''
start_y: 1
airship: !ruby/object:RPG::System::Vehicle
start_y: 0
bgm: !ruby/object:RPG::BGM {name: Airship, volume: 100, pitch: 100}
start_x: 0
character_index: 3
character_name: Vehicle
start_map_id: 0
test_battlers:
'start_y': !!int '1'
'airship': !ruby/object:RPG::System::Vehicle
'start_y': !!int '0'
'bgm': !ruby/object:RPG::BGM {'name': 'Airship', 'volume': !!int '100', 'pitch': !!int '100'}
'start_x': !!int '0'
'character_index': !!int '3'
'character_name': 'Vehicle'
'start_map_id': !!int '0'
'test_battlers':
- !ruby/object:RPG::System::TestBattler
'actor_id': !!int '1'
'level': !!int '1'
@ -3339,79 +3339,79 @@ test_battlers:
- ''
- ''
- ''
gameover_me: !ruby/object:RPG::ME
name: ''
pitch: 100
volume: 100
game_title: Re:BF Side Story 1.2
title_bgm: !ruby/object:RPG::BGM {name: title_はじまりの日, volume: 80, pitch: 100}
terms: !ruby/object:RPG::System::Terms
params:
- MHP
- MSP
- STR
- VIT
- INT
- DEX
- AGI
- LUK
etypes:
- PENIS
- WEAPON
- ACCESSORY
- PET
- CARD
commands:
- /BFMODE
- ESCAPE
- FUCK
- GUARD@
- ITEMS
- SKILL
- EQUIP
- STATUS
- Sort
- SAVE
- GAMEEND
'gameover_me': !ruby/object:RPG::ME
'name': ''
'pitch': !!int '100'
'volume': !!int '100'
'game_title': 'Re:BF Side Story 1.2'
'title_bgm': !ruby/object:RPG::BGM {'name': 'title_はじまりの日', 'volume': !!int '80', 'pitch': !!int '100'}
'terms': !ruby/object:RPG::System::Terms
'params':
- 'MHP'
- 'MSP'
- 'STR'
- 'VIT'
- 'INT'
- 'DEX'
- 'AGI'
- 'LUK'
'etypes':
- 'PENIS'
- 'WEAPON'
- 'ACCESSORY'
- 'PET'
- 'CARD'
'commands':
- '/BFMODE'
- 'ESCAPE'
- 'FUCK'
- 'GUARD@'
- 'ITEMS'
- 'SKILL'
- 'EQUIP'
- 'STATUS'
- 'Sort'
- 'SAVE'
- 'GAMEEND'
- ''
- Weapon
- EQUIP
- KEYITEM
- Change Equipment
- Optimize
- Remove All
- NEWGAME
- LOAD
- EXIT
- TITLE
- CANCEL
- 'Weapon'
- 'EQUIP'
- 'KEYITEM'
- 'Change Equipment'
- 'Optimize'
- 'Remove All'
- 'NEWGAME'
- 'LOAD'
- 'EXIT'
- 'TITLE'
- 'CANCEL'
- ''
basic:
- Level
- Lv
- HP
- HP
- SP
- SP
- TP
- SUP
test_troop_id: 1
boat: !ruby/object:RPG::System::Vehicle
start_y: 0
bgm: !ruby/object:RPG::BGM {name: Ship, volume: 100, pitch: 100}
start_x: 0
character_index: 0
character_name: Vehicle
start_map_id: 0
skill_types:
'basic':
- 'Level'
- 'Lv'
- 'HP'
- 'HP'
- 'SP'
- 'SP'
- 'TP'
- 'SUP'
'test_troop_id': !!int '1'
'boat': !ruby/object:RPG::System::Vehicle
'start_y': !!int '0'
'bgm': !ruby/object:RPG::BGM {'name': 'Ship', 'volume': !!int '100', 'pitch': !!int '100'}
'start_x': !!int '0'
'character_index': !!int '0'
'character_name': 'Vehicle'
'start_map_id': !!int '0'
'skill_types':
- ''
- SKILL
- 'SKILL'
- '------'
- ASSIST
- DDD
weapon_types:
- 'ASSIST'
- 'DDD'
'weapon_types':
- ''
- penis
- 'penis'
- '------'
- '------'
- '------'
@ -3421,29 +3421,29 @@ weapon_types:
- '------'
- '------'
- '------'
- Enemy-Exclusive
armor_types:
- 'Enemy-Exclusive'
'armor_types':
- ''
- General Armor
- Weapon
- Sniper
- Novice Exclusive
- Spano Liberation Armor
- Reincarnation-Exclusive Armor
- Spano Liberation Weapon
- Reincarnation-Exclusive Weapon
currency_unit: Jenis
window_tone: !ruby/object:Tone {r: 48.0, g: 48.0, b: 48.0, a: 0.0}
japanese: false
opt_draw_title: false
opt_use_midi: false
opt_transparent: false
opt_followers: true
opt_slip_death: false
opt_extra_exp: false
opt_display_tp: true
battleback1_name: Castle
battleback2_name: Brick
title1_name: タイトルじゃい
title2_name: ''
opt_floor_death: false
- 'General Armor'
- 'Weapon'
- 'Sniper'
- 'Novice Exclusive'
- 'Spano Liberation Armor'
- 'Reincarnation-Exclusive Armor'
- 'Spano Liberation Weapon'
- 'Reincarnation-Exclusive Weapon'
'currency_unit': 'Jenis'
'window_tone': !ruby/object:Tone {'r': !!float '48.0', 'g': !!float '48.0', 'b': !!float '48.0', 'a': !!float '0.0'}
'japanese': !!bool 'false'
'opt_draw_title': !!bool 'false'
'opt_use_midi': !!bool 'false'
'opt_transparent': !!bool 'false'
'opt_followers': !!bool 'true'
'opt_slip_death': !!bool 'false'
'opt_extra_exp': !!bool 'false'
'opt_display_tp': !!bool 'true'
'battleback1_name': 'Castle'
'battleback2_name': 'Brick'
'title1_name': 'タイトルじゃい'
'title2_name': ''
'opt_floor_death': !!bool 'false'

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

36
formatyaml Normal file
View file

@ -0,0 +1,36 @@
import os
from ruamel.yaml import YAML
from pathlib import Path
def format_yaml_file(input_file, output_dir):
# Create output directory if it doesn't exist
Path(output_dir).mkdir(parents=True, exist_ok=True)
# Read input YAML
yaml_in = YAML(pure=True)
with open(input_file, 'r', encoding='utf-8') as infile:
data = yaml_in.load(infile)
# Write formatted YAML
yaml_out = YAML(pure=True)
yaml_out.width = 4096 # Prevent line wrapping
yaml_out.default_style = "'" # Quote all scalars
output_file = os.path.join(output_dir, os.path.basename(input_file))
with open(output_file, 'w', encoding='utf-8', newline='\n') as outfile:
yaml_out.dump(data, outfile)
def main():
# Directory containing YAML files
input_dir = 'YAML'
output_dir = 'formatted'
# Process all YAML files
for filename in os.listdir(input_dir):
if filename.endswith(('.yaml', '.yml')):
input_path = os.path.join(input_dir, filename)
print(f"Formatting: {filename}")
format_yaml_file(input_path, output_dir)
if __name__ == '__main__':
main()