Carregando...
0 arquivos curtidos
1 comentário
0 vídeos
0 envios
0 seguidores
  • Hi Nj5050, thanks for the great mod! I'm reporting a bug that kills the whole script a few minutes into being wanted. I think I've found where it happens in the code.

    Setup: GTA V Legacy 1.0.3889, ScriptHookV 3889.0, SHVDN v3.7.0-nightly.193, AirForce Intercept v2.3 (the "SHVDN Nightly 3.7.93 & Above" DLL from the current download), plus Army At SixStars Basic v2.4.

    What happens: at 3+ stars everything works for 4–8 minutes. Then SHVDN aborts AirForce.Main, and no jets, drones, etc. spawn for the rest of the session. It's not one unit. It first happened in the Heli unit. I set the helis to 0 and it moved to the SpaceForce thruster:

    System.ArgumentException: The VehicleSeat selected was not free
    Parameter name: seat
    at GTA.Vehicle.CreatePedOnSeat(VehicleSeat seat, Model model) in ScriptHookVDotNet3\GTA\Entities\Vehicles\Vehicle.cs:line 2126
    at AirForce.HeliWantedController.SpawnPilotHeliIntoVehicle(Vehicle heli)
    at AirForce.HeliWantedController.SpawnHeliAirTraffic()
    [WARNING] Aborted script AirForce.Main.

    System.ArgumentException: The VehicleSeat selected was not free
    at GTA.Vehicle.CreatePedOnSeat(VehicleSeat seat, Model model)
    at AirForce.SpaceForceWantedController.SpawnPilotThrusterIntoVehicle(Vehicle thruster)
    at AirForce.SpaceForceWantedController.SpawnSpaceForceAirTraffic()
    at AirForce.SpaceForceWantedController.OnTick()
    at AirForce.Main.OnTick(Object sender, EventArgs e)
    [WARNING] Aborted script AirForce.Main.

    I saw your reply to another user suggesting an SHVDN downgrade. That isn't an option for me, because several of my other mods need 3.7. I've followed the readme: paratroopers are off in AirForce (I use the Army At SixStars ones), and SpaceForce is now set to 0 because I run Army At SixStars. With SpaceForce at 0, my first test session ran about 50 minutes with no abort, and the jets kept coming. So the workaround helps, but I've lost the Heli and SpaceForce units to get there. The unguarded driver-seat spawn is still there in the other units too.

    Likely cause: the crew/soldier spawns check IsSeatFree() first, but the pilot spawns, CreatePedOnSeat(VehicleSeat.Driver, ...), don't. That's true in every controller: Jet, Heli, SpaceForce, UAV, SpyPlane, ParaTrooper, USCG and AirTraffic. Since SHVDN 3.7, CreatePedOnSeat throws an exception when the seat is taken; older versions failed silently. So whenever the driver seat is already filled at spawn time, the exception escapes OnTick and SHVDN aborts the entire script.

    Possible fix for each pilot spawn:

    Ped pilot = veh.IsSeatFree(VehicleSeat.Driver)
    ? veh.CreatePedOnSeat(VehicleSeat.Driver, pilotModel)
    : veh.Driver;
    if (pilot == null || !pilot.Exists()) { veh.Delete(); return; }

    It would also help to wrap each controller's OnTick call in Main.OnTick in its own try/catch and log the error. That way one bad spawn only skips that unit instead of shutting down jets, drones and everything else.

    Happy to test a fixed build. Thanks!

    Expandir para ler o comentário completo
    06 de novembro de 2026