Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No fish spawning and this in server console: [Nitrox] W: Couldn't load serializable attribute for Peeper version #82

Closed
TheDutchDev opened this issue Jan 24, 2018 · 19 comments

Comments

@TheDutchDev
Copy link

TheDutchDev commented Jan 24, 2018

Hi,

I've followed the steps in this guide carefully: https://github.com/SubnauticaNitrox/Nitrox/wiki/Setting-up-a-development-environment-for-Nitrox

Everything is working fine except for the fish and any predators or whatsoever, there are just no fish etc in the game. limestone rocks etc plants its all there just not any fish or leviathans or whatsoever.

I did get this warning message twice in the server console but I don't know if it's causing the fish to not spawn or if it's something else causing this.
[Nitrox] W: Couldn't load serializable attribute for Peeper version

NOTE: The fish don't spawn in singleplayer either after editing game files via dnspy.

EDIT:

I discovered this in the subnautica output log.txt file:

[Nitrox] I: Applying NitroxPatcher.Patches.ToggleLights_SetLightsActive_Patch [Nitrox] I: Applying NitroxPatcher.Patches.uGUI_OptionsPanel_AddBindings_Patch [Nitrox] D: Added surrogate NitroxModel.DataStructures.Surrogates.ColorSurrogate for type UnityEngine.Color [Nitrox] D: Added surrogate NitroxModel.DataStructures.Surrogates.Int3Surrogate for type Int3 [Nitrox] D: Added surrogate NitroxModel.DataStructures.Surrogates.QuaternionSurrogate for type UnityEngine.Quaternion [Nitrox] D: Added surrogate NitroxModel.DataStructures.Surrogates.TechTypeSurrogate for type TechType [Nitrox] D: Added surrogate NitroxModel.DataStructures.Surrogates.Vector3Surrogate for type UnityEngine.Vector3 [Nitrox] I: Connected to server IndexOutOfRangeException: Array index is out of range. at Array31[System.Int32].Get (Int32 x, Int32 y, Int32 z) [0x00000] in :0
at Array3`1[System.Int32].get_Item (Int32 x, Int32 y, Int32 z) [0x00000] in :0
at GameInput.GetBindingInternal (Device device, Button button, BindingSet bindingSet) [0x00000] in :0
at GameInput.GetInputStateForButton (Button button) [0x00000] in :0
at GameInput.GetButtonDown (Button button) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0022d>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002f>
at NitroxModel.Helper.ReflectionHelper.ReflectionCall (GameInput,string,System.Type[],bool,bool,object[]) <0x000be>
at NitroxPatcher.Patches.Player_Update_Patch.Postfix (Player) <0x00244>
at (wrapper dynamic-method) Player.Update_Patch1 (object) <0x0041c>

(Filename: Line: -1)

IndexOutOfRangeException: Array index is out of range.
at Array31[System.Int32].Get (Int32 x, Int32 y, Int32 z) [0x00000] in <filename unknown>:0 at Array31[System.Int32].get_Item (Int32 x, Int32 y, Int32 z) [0x00000] in :0
at GameInput.GetBindingInternal (Device device, Button button, BindingSet bindingSet) [0x00000] in :0
at GameInput.GetInputStateForButton (Button button) [0x00000] in :0
at GameInput.GetButtonDown (Button button) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0022d>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002f>
at NitroxModel.Helper.ReflectionHelper.ReflectionCall (GameInput,string,System.Type[],bool,bool,object[]) <0x000be>
at NitroxPatcher.Patches.Player_Update_Patch.Postfix (Player) <0x00244>
at (wrapper dynamic-method) Player.Update_Patch1 (object) <0x0041c>

(Filename: Line: -1)

[Nitrox] D: Freezing escape pod rigidbody
IndexOutOfRangeException: Array index is out of range.
at Array31[System.Int32].Get (Int32 x, Int32 y, Int32 z) [0x00000] in <filename unknown>:0 at Array31[System.Int32].get_Item (Int32 x, Int32 y, Int32 z) [0x00000] in :0
at GameInput.GetBindingInternal (Device device, Button button, BindingSet bindingSet) [0x00000] in :0
at GameInput.GetInputStateForButton (Button button) [0x00000] in :0
at GameInput.GetButtonDown (Button button) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0022d>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002f>
at NitroxModel.Helper.ReflectionHelper.ReflectionCall (GameInput,string,System.Type[],bool,bool,object[]) <0x000be>
at NitroxPatcher.Patches.Player_Update_Patch.Postfix (Player) <0x00244>
at (wrapper dynamic-method) Player.Update_Patch1 (object) <0x0041c>

(Filename: Line: -1)

IndexOutOfRangeException: Array index is out of range.
at Array31[System.Int32].Get (Int32 x, Int32 y, Int32 z) [0x00000] in <filename unknown>:0 at Array31[System.Int32].get_Item (Int32 x, Int32 y, Int32 z) [0x00000] in :0
at GameInput.GetBindingInternal (Device device, Button button, BindingSet bindingSet) [0x00000] in :0
at GameInput.GetInputStateForButton (Button button) [0x00000] in :0
at GameInput.GetButtonDown (Button button) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0022d>
at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002f>
at NitroxModel.Helper.ReflectionHelper.ReflectionCall (GameInput,string,System.Type[],bool,bool,object[]) <0x000be>
at NitroxPatcher.Patches.Player_Update_Patch.Postfix (Player) <0x00244>
at (wrapper dynamic-method) Player.Update_Patch1 (object) <0x0041c>`

@Staudey
Copy link

Staudey commented Jan 24, 2018 via email

@TheDutchDev
Copy link
Author

@Staudey Yeah tried that already, didn't work :/

I did however find an incorrect path in the ParseFile function inside BatchCellsParser.cs which I changed to the correct subnautica folder after which the server startup seemed to take much longer and everything works, except that there's a huge overspawn of fish/items and floating limestone rocks aswell

@Alberto247
Copy link

That't happening to me too @sampniels. I already opened an issue.
I also tried decreasing the spawn chance in the file but it doesn't seem to have any effect. I'm still trying to solve the issue.
@Sunrunner37 can you tell us where you got the files in the "raw" directory from? That would help. Thank you.

@nesrak1
Copy link
Member

nesrak1 commented Jan 25, 2018

Those files came from the assets files. There was a branch here to grab data from the files, however it is outdated and not up to date with this one.

@Flash1232
Copy link

Flash1232 commented Jan 28, 2018

No fish for me aswell.

I tried executing Unit Tests, a couple of which didn't pass.
And there's that one aswell:

[Nitrox] W: Couldn't load serializable attribute for Peeper version

I get the following exception in output_log.txt:

AmbiguousMatchException: Ambiguous matching in method resolution
at System.Reflection.Binder.FindMostDerivedMatch (System.Reflection.MethodBase[]) <IL 0x0002f, 0x001f5>
at System.MonoType.GetMethodImpl (string,System.Reflection.BindingFlags,System.Reflection.Binder,System.Reflection.CallingConventions,System.Type[],System.Reflection.ParameterModifier[]) <IL 0x000fa, 0x006dd>
at System.Type.GetMethod (string,System.Reflection.BindingFlags) <IL 0x00018, 0x000fc>
at NitroxModel.Helper.ReflectionHelper.GetMethod (System.Type,string,bool,bool,System.Type[]) <IL 0x00094, 0x006df>
at NitroxModel.Helper.ReflectionHelper.ReflectionCall<uGUI_OptionsPanel> (uGUI_OptionsPanel,string,bool,bool,object[]) <0x001b9>
at NitroxPatcher.Patches.uGUI_OptionsPanel_AddBindings_Patch.Postfix (uGUI_OptionsPanel,int,GameInput/Device) <IL 0x00064, 0x00529>
at (wrapper dynamic-method) uGUI_OptionsPanel.AddBindings_Patch1 (object,int,GameInput/Device) <IL 0x00152, 0x00693>
at uGUI_OptionsPanel.AddKeyboardTab () <IL 0x0005d, 0x002b9>
at uGUI_OptionsPanel.AddTabs () <IL 0x00017, 0x000e7>
at uGUI_OptionsPanel.OnEnable () <IL 0x00028, 0x0016b>

UnityEngine.GameObject:SetActive(Boolean)
IngameMenu:ChangeSubscreen(String)
UnityEngine.Events.InvokableCall1:Invoke(Object[]) (at C:\Subnautica\plastic_workspace_unity\Runtime\Export\UnityEvent.cs:189) UnityEngine.Events.CachedInvokableCall1:Invoke(Object[]) (at C:\Subnautica\plastic_workspace_unity\Runtime\Export\UnityEvent.cs:309)
UnityEngine.Events.InvokableCallList:Invoke(Object[]) (at C:\Subnautica\plastic_workspace_unity\Runtime\Export\UnityEvent.cs:637)
UnityEngine.Events.UnityEventBase:Invoke(Object[]) (at C:\Subnautica\plastic_workspace_unity\Runtime\Export\UnityEvent.cs:773)
UnityEngine.Events.UnityEvent:Invoke() (at C:\Subnautica\plastic_workspace_unity\Runtime\Export\UnityEvent_0.cs:52)
UnityEngine.UI.Button:Press()
UnityEngine.UI.Button:OnPointerClick(PointerEventData)
UnityEngine.EventSystems.ExecuteEvents:Execute(IPointerClickHandler, BaseEventData)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
FPSInputModule:ProcessMousePress(MouseButtonEventData)
FPSInputModule:ProcessMouseEvent()
FPSInputModule:OnUpdate()
ManagedUpdate:Execute(Queue)
ManagedUpdate:LateUpdate()

(Filename: Line: -1)

@werichff
Copy link

if you want fishes go to nitroxserver/Serialization/BatchCellsParser.cs and change path on line 84 to your subnautica location
image

@Flash1232
Copy link

Hi @werichff
Thanks for the reminder! I just read @sampniels' post above and fixed it that way.
Great work on the Multiplayer Mod so far btw! I'll take a closer look at your Trello board shortly!

Cheers,
Flash1232

@ioncodes
Copy link

#94

@hsiayuchih
Copy link

hsiayuchih commented Jan 31, 2018

Have you already solved?

@hsiayuchih
Copy link

@ioncodes Hello, may I ask how to solve this problem? The website you quoted I read, but did not understand ...

@ioncodes
Copy link

See @werichff's comment. You have to change that string there.

@hsiayuchih
Copy link

@ioncodes I tried his method, but it does not work...

@ioncodes
Copy link

ioncodes commented Feb 1, 2018

@hsiayuchih, Are you sure u change it to the absolute Build18 path? It won‘t work with a relative path.

@hsiayuchih
Copy link

hsiayuchih commented Feb 1, 2018

@ioncodes Is the path not like this?
string path = @"G:\game\Subnautica\SNUnmanagedData\Build18";
This is how I set the path, but after the game still no creatures...

@ioncodes
Copy link

ioncodes commented Feb 1, 2018

@hsiayuchih If that‘s a valid path, yes. Are you sure you recompiled everything?

@hsiayuchih
Copy link

@ioncodes In fact, this is my friend to help compile, I will not programming ...
So I do not quite understand what you mean recompile ...

@Sunrunner37
Copy link
Member

Path is no longer hard coded as of a new commit. Resolving.

@JohnCesario
Copy link

JohnCesario commented Dec 16, 2018

I have a similar problem, however it just happens to a friend trying to connect to my server. I can see all fish and interact with anything, nothing is missing on my end, however, when he tries to connect, the can't see any fish, no stones, no fauna or flora, everything is barren. I tried the solutions suggested above, but when I tried compiling the server, I get lots of errors.
Is this problem on my server or is it on his installation?

OBS: I'm using Subnautica on Steam while he is using it on Epic Games Launcher. I helped him install it and made sure that all paths were leading to the correct installation instead of Steam.

EDIT: I made a separate installation from Epic Games and used a new Nitrox folder (I backed up the steam one), I proceeded to install the Nitrox server and I got it up and running on my machine. I did the same to my friend's installation and again, when he connected to me, he couldn't see any creature, in fact, he couldn't even see me this time. I followed this youtube guide: https://www.youtube.com/watch?v=bzF9C4gR9C0

@Yanzzzx
Copy link

Yanzzzx commented May 9, 2021

Try launching a single player game and then joining the server via the console. Worked in our case.

how to do that? open the server via single player in console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests