Scuba Job – Crash Fix V1.1

Scuba Job - Crash Fix 1.1

Scuba Job – Crash Fix v1.2

A community fix and polish update for MNHC’s Scuba Job mod. v1.2 fixes a critical ini path resolution bug surfaced by O-MATIX with video proof. Original mod by MNHC remains the source of all gameplay design, big shout to MNHC.

What is fixed in v1.2

Critical ini path bug
– ResolveIniPath in v1.1 used Assembly.GetExecutingAssembly().Location to find Scuba Job.ini. SHVDN3 shadow copies script DLLs into a temp folder, so that lookup could point at a folder where the ini did NOT live. The script then loaded zero crate locations and aborted every mission start with the red ticker “no underwater locations in Scuba Job.ini” before spawning the boat.
– v1.2 walks every candidate path in order (Assembly.Location, Assembly.CodeBase URI, AppDomain.BaseDirectory + scripts\, current working directory + scripts\, plain relative scripts\) and uses the first one that actually contains the ini.
– Bug reported by O-MATIX with reproduction video, fix verified before this push.

Startup diagnostic
– On script load you now see a one-shot blue notification reporting the resolved ini path and the number of crate spots loaded from it. If something is misconfigured you spot it instantly instead of digging through scripthookvdotnet.log.

Everything else from v1.1 is unchanged:

Stability (v1.1)
– Start Job aborts cleanly with an in-game notification if no underwater locations are loaded.
– Mission completion is gated on an initialCrateCount > 0 check.
– Boat spawn failure aborts cleanly instead of NRE crashing later.

Pawn shop sell (v1.1)
– Sell trigger accepts an optional second coordinate (InteriorSellLocation) for users with the pablito_pawnshop MLO. Default SellRadius bumped from 1.5 m to 2.5 m.

Configurability (v1.1)
– BossLocation, BoatSpawn, BoatSpawnHeading, SellLocation, SellRadius, InteriorSellLocation and the interior toggle live in the [World] section of Scuba Job.ini. Custom map authors can relocate the entire job without touching the dll.

Credits this release
– O-MATIX (v1.2 ini path bug report with reproduction video)
– elpedron (v1.1 All Crates Salvaged bug report)
– DOC_X (v1.1 boat un-anchor discoverability)
– DiNagano (v1.1 no-MLO vanilla install ask)
– seungwooson (v1.1 pawn shop visibility report)

Requirements
– ScriptHookV
– ScriptHookVDotNet 3 (Enhanced 1.1.0.5 confirmed working on patch 1.0.3788.0 and newer)
– LemonUI.SHVDN3 in /scripts
– MLO Pawnshop Interior is OPTIONAL.

Installation
1. Drop Scuba Job.dll from this package into your /scripts folder, replacing the v1.1 dll.
2. Your existing v1.1 Scuba Job.ini keeps working. The bundled ini in this zip is reference only and includes a [World] section template.
3. Launch the game. You should see a blue ticker on script load: “Scuba Job v1.2: ini found at | N crate spots loaded”.

Original mod: Scuba Job by MNHC.

Credits:

chris22622

Download mod

FileFile size
zip ScubaJob_CrashFix_v1.120 KB

Leave a Reply

Your email address will not be published. Required fields are marked *