in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.13k stars 352 forks source link

Errors while playing #80

Closed CrosRoad95 closed 3 years ago

CrosRoad95 commented 4 years ago

while entering the game

ArgumentException: Getting control 5's position in a group with only 5 controls when doing repaint
Aborting
UnityEngine.GUILayoutGroup.GetNext () (at C:/buildslave/unity/build/Modules/IMGUI/LayoutGroup.cs:122)
UnityEngine.GUILayoutUtility.DoGetRect (System.Single minWidth, System.Single maxWidth, System.Single minHeight, System.Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:461)
UnityEngine.GUILayoutUtility.GetRect (System.Single width, System.Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayoutUtility.cs:438)
UnityEngine.GUILayout.Space (System.Single pixels) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:219)
SanAndreasUnity.UI.MainMenu.OnGUI () (at Assets/Scripts/UI/MainMenu.cs:81)

After i enter vehicle, Assets\Scripts\Behaviours\Audio\AudioManager.cs line 96

System.NullReferenceException: Object reference not set to an instance of an object
  at NVorbis.VorbisCodebook.InitTree (NVorbis.DataPacket packet) [0x00155] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisCodebook.Init (NVorbis.DataPacket packet) [0x00047] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisCodebook.Init (NVorbis.VorbisStreamDecoder vorbis, NVorbis.DataPacket packet, System.Int32 number) [0x0000d] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisStreamDecoder.LoadBooks (NVorbis.DataPacket packet) [0x00081] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisStreamDecoder.TryInit () [0x00057] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisReader.NewStream (System.Object sender, NVorbis.NewStreamEventArgs ea) [0x0000e] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.Ogg.ContainerReader.GatherNextPage () [0x00049] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.Ogg.ContainerReader.Init () [0x0000b] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisReader.LoadContainer (NVorbis.IContainerReader containerReader) [0x00012] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at NVorbis.VorbisReader..ctor (System.IO.Stream stream, System.Boolean closeStreamOnDispose) [0x0001c] in <cd9a1085fbb24055ab16dac4ef6dad00>:0 
  at SanAndreasUnity.Audio.AudioStream..ctor (System.IO.Stream stream, System.String audioClipName, System.Boolean closeStreamOnDispose) [0x00008] in D:\gtaunity\SanAndreasUnity\Assets\Scripts\Audio\AudioStream.cs:43 
  at SanAndreasUnity.Behaviours.Audio.AudioManager.CreateAudioClipFromStream (System.String streamFileName, System.Int32 bankIndex) [0x00053] in D:\gtaunity\SanAndreasUnity\Assets\Scripts\Behaviours\Audio\AudioManager.cs:91 
UnityEngine.Debug:LogError(Object)
SanAndreasUnity.Behaviours.Audio.AudioManager:CreateAudioClipFromStream(String, Int32) (at Assets/Scripts/Behaviours/Audio/AudioManager.cs:96)
SanAndreasUnity.Behaviours.Vehicles.RadioStation:LoadCurrentClip() (at Assets/Scripts/Behaviours/Vehicles/RadioStation.cs:35)
SanAndreasUnity.Behaviours.Vehicles.Vehicle:PlayRadio() (at Assets/Scripts/Behaviours/Vehicles/Vehicle_Radio.cs:25)
SanAndreasUnity.Behaviours.Peds.States.VehicleSittingState:EnterVehicleInternal() (at Assets/Scripts/Behaviours/Ped/States/VehicleSittingState.cs:89)
SanAndreasUnity.Behaviours.Peds.States.VehicleSittingState:OnBecameActive() (at Assets/Scripts/Behaviours/Ped/States/VehicleSittingState.cs:21)
SanAndreasUnity.Utilities.StateMachine:SwitchState(IState) (at Assets/Scripts/Utilities/StateMachine.cs:39)
SanAndreasUnity.Behaviours.Ped:SwitchState(Type) (at Assets/Scripts/Behaviours/Ped/Ped.cs:243)
SanAndreasUnity.Behaviours.Ped:SwitchState() (at Assets/Scripts/Behaviours/Ped/Ped.cs:254)
SanAndreasUnity.Behaviours.Peds.States.VehicleSittingState:EnterVehicle(Vehicle, Seat) (at Assets/Scripts/Behaviours/Ped/States/VehicleSittingState.cs:59)
SanAndreasUnity.Behaviours.Peds.States.<EnterVehicleAnimation>d__8:MoveNext() (at Assets/Scripts/Behaviours/Ped/States/VehicleEnteringState.cs:134)

edit:

NullReferenceException: Object reference not set to an instance of an object
SanAndreasUnity.UI.TouchInput.ResetCustomInput () (at Assets/Scripts/UI/TouchInput.cs:183)
SanAndreasUnity.UI.TouchInput.Update () (at Assets/Scripts/UI/TouchInput.cs:122)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
NullReferenceException: Object reference not set to an instance of an object
SanAndreasUnity.Behaviours.Vehicles.VehicleController.Update () (at Assets/Scripts/Behaviours/Vehicles/VehicleController.cs:88)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

edit2:

ArgumentException: File "vegaswaterfall02.dff" is not a Clump!
Parameter name: name
SanAndreasUnity.Importing.Archive.ArchiveManager.ReadFile[TSection] (System.String name) (at Assets/Scripts/Importing/Archive/ArchiveManager.cs:114)
(wrapper synchronized) SanAndreasUnity.Importing.Archive.ArchiveManager.ReadFile(string)
SanAndreasUnity.Importing.Conversion.Geometry+<>c__DisplayClass36_0.<LoadAsync>b__0 () (at Assets/Scripts/Importing/Conversion/Geometry.cs:584)
SanAndreasUnity.Behaviours.LoadingThread+<>c__DisplayClass8_0`1[T].<RegisterJob>b__2 () (at Assets/Scripts/Utilities/LoadingThread.cs:89)
SanAndreasUnity.Behaviours.LoadingThread.ThreadFunction () (at Assets/Scripts/Utilities/LoadingThread.cs:123)
UnityEngine.Debug:LogException(Exception)
SanAndreasUnity.Behaviours.LoadingThread:Update() (at Assets/Scripts/Utilities/LoadingThread.cs:64)
in0finite commented 4 years ago

First one is harmless. File "vegaswaterfall02.dff" is not a Clump! is also harmless.

The others are not. Can you reproduce them ?

in0finite commented 4 years ago

@CrosRoad95 Can you reproduce these 3 bugs ?

in0finite commented 3 years ago

Closing because failed to reproduce the bugs.