#============================================================================== # LonaCraft 1.1.2 - loader.rb (version: _ModInfo.json) # Loads the mod's scripts in order. Put LonaCraft LAST in the Mods menu # (below RolePlayS and Lona Big Booba), see README.md. #============================================================================== # Load the online game's Ruby310Compat layer BEFORE any LonaCraft classes. load_script($mod_manager.get_resource("LonaCraft", "Scripts/01_Ruby310Runtime.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/0_Core.rb")) # Config/LonaCraft.json: the "debug" switch (numpad keys, self-test) and the self-test settings. load_script($mod_manager.get_resource("LonaCraft", "Scripts/05_Config.rb")) # Warns (console + one map popup) if RolePlayS loads after LonaCraft. load_script($mod_manager.get_resource("LonaCraft", "Scripts/10_Icons.rb")) # ENG fallback for LonaCraft texts (missing key or language file); before 50_Tiers.rb, which aliases on top of it. load_script($mod_manager.get_resource("LonaCraft", "Scripts/15_Text.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/20_Station.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/30_Process.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/40_Mining.rb")) # Boulders (Rough Stone nodes on wilderness maps) and the axe needed for wood. load_script($mod_manager.get_resource("LonaCraft", "Scripts/45_Nodes.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/50_Tiers.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/55_Recipes.rb")) # Shops: the mod's items at the game's traders (Shops::DEFAULTS + Config/Shops.json); 0_Core.rb # merge_barters appends them at load_database. After 55_Recipes.rb (ConfigJSON, RecipeConfig.dump). load_script($mod_manager.get_resource("LonaCraft", "Scripts/25_Shops.rb")) # Viewport guard: no Sprite / Plane / Window / Tilemap outlives its Viewport (the crafting-screen # crash, RGSS301.dll+0x111a1c). After 55_Recipes.rb, so Config.get reads its "viewport_guard" switch. load_script($mod_manager.get_resource("LonaCraft", "Scripts/02_ViewportGuard.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/60_Skill.rb")) load_script($mod_manager.get_resource("LonaCraft", "Scripts/70_Save.rb")) # Keep the crafting screen LAST: it uses the data layer (50-70) and 30_Process.rb. load_script($mod_manager.get_resource("LonaCraft", "Scripts/80_CraftScene.rb")) # Main menu "Craft" row: hand crafting (uses 80_CraftScene.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/85_MenuCraft.rb")) # Furniture: items, placement, persistence (uses 55_Recipes.rb and 80_CraftScene.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/90_Furniture.rb")) # Homes: old shack, stone house, rooms. Their ownership remains separate from NoerHome. load_script($mod_manager.get_resource("LonaCraft", "Scripts/100_Homes.rb")) # Maani bank's Buy house -> private house, shack, stone house (hide owned offers). load_script($mod_manager.get_resource("LonaCraft", "Scripts/101_NoerHomeThreeHouses.rb")) # Bases: buildings on a world-map tile pin its field map; marker, System page "Destroy all bases", debug Numpad /. load_script($mod_manager.get_resource("LonaCraft", "Scripts/110_Bases.rb")) # Raids: night raids on a base, wall and door HP, the siege driver, Config/Bases.json, debug Numpad . (needs 110_Bases.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/120_Raids.rb")) # Deep Sewer: the mod's own sewer map under Noer, four grates, its vermin and raids (needs 110_Bases.rb, 120_Raids.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/130_Sewer.rb")) # Away raids: raids on a base while Lona is elsewhere, worked out on the record; reports, the world-map "!" (needs 110_Bases.rb, 120_Raids.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/140_AwayRaids.rb")) # Mercenaries: the squad hired at the Noer guild receptionist that guards one base (needs 100_Homes.rb, 140_AwayRaids.rb). load_script($mod_manager.get_resource("LonaCraft", "Scripts/150_Mercs.rb")) # Rest: ground / Bedroll / Bed inside walls, the chest meal and the bath on sleeping (needs 90, 100, 110, 120). load_script($mod_manager.get_resource("LonaCraft", "Scripts/160_Rest.rb")) # Maid: hired from Boss Mama, keeps one base or owned house, cooks the chests' food each morning (needs 100, 110, 120, 140, 150, 160). load_script($mod_manager.get_resource("LonaCraft", "Scripts/170_Maid.rb")) # Cooperative online world-object synchronization through multiplayer deistvia. load_script($mod_manager.get_resource("LonaCraft", "Scripts/180_OnlineSync.rb")) # Crafting mastery stored per online profile in server MySQL (after cloud bootstrap). load_script($mod_manager.get_resource("LonaCraft", "Scripts/190_SkillMySQL.rb")) # Personal camp-chest contents in character cloud (extends bank_blob lc_chests). load_script($mod_manager.get_resource("LonaCraft", "Scripts/191_ChestCloud.rb")) # Online: craft / rename UI keep the world ticking (MPLiveEscMenu live pattern). load_script($mod_manager.get_resource("LonaCraft", "Scripts/192_LiveMenu.rb")) # Debug hotkeys (numpad), on only with "debug": true in Config/LonaCraft.json. load_script($mod_manager.get_resource("LonaCraft", "Scripts/95_Debug.rb")) # Start-up self-test (debug and self_test on): checks the game parts LonaCraft relies on, # writes UserData/LonaCraft_selftest.log, one message box on failure. Keep it LAST. load_script($mod_manager.get_resource("LonaCraft", "Scripts/98_SelfTest.rb"))