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

Vorp-inventory: Failed to create environment #51

Closed
Xh3ll opened this issue Feb 2, 2022 · 14 comments
Closed

Vorp-inventory: Failed to create environment #51

Xh3ll opened this issue Feb 2, 2022 · 14 comments

Comments

@Xh3ll
Copy link

Xh3ll commented Feb 2, 2022

Hello,

A couple of friends want to open a RedM server and have actually installed all the scripts from Vorp that are required so that the inventory is available, but they only get the following error message when they want to start the server:

[    c-scripting-core] Creating script environments for vorp_inventory
[         script:mono] System.Runtime.Remoting.RemotingException: Method 'SetConfiguration' not found in type 'CitizenFX.Core.InternalManager, CitizenFX.Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
[         script:mono]
[         script:mono]
[         script:mono] Server stack trace:
[         script:mono]   at System.Runtime.Remoting.Messaging.CADMethodRef.Resolve () [0x0017f] in <9391d7651e69459eae268d8a1dfa670f>:0
[         script:mono]   at System.Runtime.Remoting.Messaging.CADMessageBase.GetMethod () [0x0000b] in <9391d7651e69459eae268d8a1dfa670f>:0
[         script:mono]   at System.Runtime.Remoting.Messaging.MethodCall..ctor (System.Runtime.Remoting.Messaging.CADMethodCallMessage msg) [0x0004b] in <9391d7651e69459eae268d8a1dfa670f>:0
[         script:mono]   at System.AppDomain.ProcessMessageInDomain (System.Byte[] arrRequest, System.Runtime.Remoting.Messaging.CADMethodCallMessage cadMsg, System.Byte[]& arrResponse, System.Runtime.Remoting.Messaging.CADMethodReturnMessage& cadMrm) [0x00012] in <9391d7651e69459eae268d8a1dfa670f>:0
[         script:mono]   at (wrapper remoting-invoke-with-check) System.AppDomain.ProcessMessageInDomain(byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.Runtime.Remoting.Messaging.CADMethodReturnMessage&)
[         script:mono]   at System.Runtime.Remoting.Channels.CrossAppDomainSink.ProcessMessageInDomain (System.Byte[] arrRequest, System.Runtime.Remoting.Messaging.CADMethodCallMessage cadMsg) [0x0000d] in <9391d7651e69459eae268d8a1dfa670f>:0
[         script:mono]
[         script:mono] Exception rethrown at [0]:
[         script:mono]   at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,intptr)
[         script:mono]   at (wrapper remoting-invoke) CitizenFX.Core.InternalManager.SetConfiguration(bool)
[         script:mono]   at (wrapper xdomain-invoke) CitizenFX.Core.InternalManager.SetConfiguration(bool)
[         script:mono]   at (wrapper remoting-invoke-with-check) CitizenFX.Core.InternalManager.SetConfiguration(bool)
[         script:mono]   at CitizenFX.Core.MonoScriptRuntime.Create (CitizenFX.Core.IScriptHost host) [0x00105] in /src/code/client/clrcore/MonoScriptRuntime.cs:88
[                 Any] Error: Failed to create environment, hresult 80131501
Failed to create environment, hresult 80131501

if the script is removed, the server runs normally, but unfortunately without the inventory system

I hope that we could get a little food for thought as soon as possible so that we can eliminate this problem :D

Best regards

Xh3ll

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Which version are you using?

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

From Inventory? the latest release

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

and which CFX Server build?

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

i tried in 5181 and the latest 5294 from CFX

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Could you try these really old files and let me know if it works.

vorpinventory_old_files.zip

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

Unfortunately no, the same problem persists

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Ok, so least I know its not my changes... looks to be something with the CitizenFX.Core.dll not being updated

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

For example, if I run the same server files and such on my own Windows machine, everything works perfectly.

But as soon as I want to start the server on Linux, this error comes up immediately after loading the Vorp_inventory script

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Thats because mono isn't the same as Windows .NET, mono is rather behind on a lot of things, typical recommendation with CFX projects is to use Windows because of these edge cases.
vorpinventory_sv.net.zip updated Nuget

If that file doesn't work, just for my own personal curiosity, put these in the folder, it may break in a different way, but I want to rule it out. They do not need to be added to the fxmanifest.
CitizenFX.Core.Server.zip

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Another thing that can be tried, is downloading the windows server files, grabbing the relevant dlls and seeing if replacing them does the trick. Pretty much just throwing things here as I don't have a linux box to test with, to try and iron out the issue.

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

At least it worked with the last Core.Server.DLL

Anyway, thank you so much for your help!

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

So what happened? did you fix it? how did you fix it?

@Xh3ll
Copy link
Author

Xh3ll commented Feb 2, 2022

I deleted the other CitizenFX.Core.dll from server and i added the CitizenFX.Core.Server.dll from the last Zip you attached and now the server started up

@Local9
Copy link
Member

Local9 commented Feb 2, 2022

Thank you for letting me know 😄 as the issue is now corrected, I'll close the issue.

@Local9 Local9 closed this as completed Feb 2, 2022
@Local9 Local9 changed the title Vorp-inventory will not load script on Linux Vorp-inventory: Failed to create environment Feb 4, 2022
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

2 participants