I want to share my pain with you, especially I appeal to the FiveM developers. With each update, im, as the developer of my own C # framework, get scared when the update download bar appears on the screen. The thing is that with each new update of the server version, I systematically have problems associated not with the framework (it works wonderfully on previous builds), but with the server itself, most of the time I spend not on developing a framework or other modifications for FiveM , but Iâm looking for solutions to new problems that have appeared with the update. On the forum, as a rule, posts do not gain many views, much less answers, and even less useful ones.
After the next update, I encountered a problem of the following nature:
I am compiling my C# framework for FiveM in Visual Studio 2019 (it works without problems on previous versions of the server)
Then im start the server and when the resource starts, I get an error: blah blah blah canât find assembly rage-scripting.dll (wtf?)
Then im recompile the framework again, but remove the link to CitizenFX.Core.Server.dll
Then im start the server, everything works.
Then im recompile again, but make small changes to the code, again nothing works.
Then im adding a link to CitizenFX.Core.Server.dll (yes, the one that I deleted in step # 3)
Then im recompile again without making any changes except step # 6 and everything works.
So the question is, am i retarded, or the new builds of the FXServerâs are breaking everythings?
p.s Yeah, i known the is no provided detailed info about
Server builds are not related to client updates at all. Sounds a bit misassociating.
Generally compatibility isnât broken whatsoever even across updates - and changes tend to be very conservative to ensure this. If thereâd be ânew problemsâ with âeveryâ update, donât you think the forums would go crazy multiple times a week?
Instead, you can in pretty much all cases take a script (or even a compiled C# resource) written in 2017 and run it verbatim 2 years later without any new problems.
Uh, no? Posts without information donât get any âanswersâ and why would you expect a support question to go viral?
Ah, you already have âthe next updateâ, when nothing is even made or even planned at this time? Letâs assume this means âthe last updateâ.
The latest server build contains a total of 0 changes made to the server other than an automated version bump, let alone the C# runtime.
Weird, thereâs no results for anything involving blah blah assembly on the repository. If youâre trying to report an issue, perhaps start off by not paraphrasing it.
If you mean âCouldnât load component rage:scripting:fiveâ, first off thatâd be a client error, and secondly that doesnât happen on resource start at all.
Why are you âlinkingâ (I guess you mean referencing?) a .dll directly, and not the NuGet package?
Okay, so your resource works even though it doesnât compile, since you canât compile without referencing the CitizenFX.* assembly, as it wonât find any of the types?
Evidently, since you didnât have the assembly added.
Ah, it starts to add up.
Are you
Using Visual Studio with a legacy (non-.NET Core-style) .csproj?
Directly adding renamed copies of the client/server CitizenFX.Core.dll to your project, rather than the reference assemblies included in the NuGet packages (client, server), or worse - the Client/Server assemblies included in the server zip/client update?
Having both a client and server project in the same solution?
If you are using DLLs directly, thatâs a Visual Studio bug with multiple assemblies with the same identity in the same solution where it gets confused as to which to reference. If youâre using the facade assemblies from the .zip, those will not work as theyâre facade assemblies and not reference assemblies. Iâm honestly surprised VS even lets you build with those.
Yes, you are âretardedâ as you put it yourself. Use the NuGet packages, donât try to use the raw CitizenFX.Core assemblies and especially donât try to use the facade assemblies.
You donât need to ârememberâ any error message, every OS has a clipboard.
What the hell are you talking about? The official wiki says use CitizenFX.Core.Client.dll from the FiveM Application Folder, why do you talk about NuGets that aint work?
I mean there is much errorâs at different times, and creating a new thread every time and waiting until someone can help is stupid, because often the answers are never found.
No, it doesnât. Thereâs also no âofficial wikiâ.
The official documentation (which is slightly outdated by now) however mentions citizenfx.core.dll, not citizenfx.core.client.dll, which will work fine as long as Visual Studio is updated.
The linked packages work fine, however?
And going âfivem is broken and badâ because you are seemingly doing a lot of things wrongly and canât be bothered to ask anyone isnât stupid?