Jump to content
×
×
  • Create New...

Fix for issues with too many callouts (FileNotFoundException, duty menu not working) 1.0.2

   (4 reviews)

1 Screenshot

I came across an issue when too many callouts are installed.

The client log will have multiple FileNotFoundException errors and some FivePD functions are not working (like the duty menu).

 

Please check the support thread for more details on the error itself

You only need to do this, if you are having the same issues!

 

Note regarding FivePD 1.1+:

With this update some required dll files changed. Thanks to all who helped out in the comments during my absence.

The script itself still works, but you might require additional dll files (see updated description below).

Also you will not be able to merge callouts using a config.json in their folder, as the config.json files will overwrite each other.

 

 

1. Download the zip-file and unzip it anywhere

2. Copy the following files into the libs folder:

   - FiveM (Application Data/server) folder\citizen\clr2\lib\mono\4.5\CitizenFX.Core.dll

   - Newtonsoft.Json.dll, FivePD.net.dll from the fivepd folder

   - If you get the error "Unresolved assembly reference not allowed: Filename", some callouts require additional dll files.

     Just search for "Filename.dll" in the FivePD/FiveM folders and copy them to the libs folder

3. Put all callouts into the callouts folder (including json files if provided for the callout)

4. Double click createCalloutsDLL.bat

5. Copy the files from the output folder into the fivepd callouts folder on your server

   - Delete all other dll files from this folder

   - Keep any json files, if there are any; Those might be required for some mods

6. Restart the server (If it's not working, try "refresh" and "restart fivepd")

 

I will not give support for this workaround! This is just something which works for me and might not work for everybody!

 

Please use the support thread to discuss this issue and use the comments only for this workaround

 

I did not develop this tool. The tool is called ILMerge and I just added the powershell script and folder structure to make it easier to use.

Edited by Bogi


What's New in Version 1.0.2   See changelog

Released

Today I actually read the ILMerge documentation and found that there is a wildcard parameter 😉

With this I made a new, more user friendly script.

 

Now you can put all callout files (including json) into the callouts folder, double click the createCalloutsDLL.bat and copy everything from the output folder to your fivepd/callouts folder.

If you have a windows server, you also can edit the bat file with a text editor and change the line "set output=output" to the actual fivepd\callouts folder and the callouts will be copied there automatically.

Example: set output=D:\FXServer\server-data\resources\fivepd\callouts

 

  • Like 5

User Feedback

Recommended Comments



My callout do merge but when i put them in the callouts folder and start the server it just a blank page with force callout and i get an error: callout(s) could not be loaded

Link to comment
Share on other sites
4 hours ago, J.Jonesey#4002 said:

WARNING: Tried this as a fix for occuring issues with some clients, COMPLETELY broke my FivePD.

Anything to back up your claim? No? I didn't think so. Guys, before you mess around in your stuff always make a backup.

Edited by Bogi
  • Like 1
Link to comment
Share on other sites
On 1/14/2021 at 7:53 AM, Bogi said:

Anything to back up your claim? No? I didn't think so. Guys, before you mess around in your stuff always make a backup.

Before you get smart, I did back it up, Whatever THAT plugin did made it so whatever it was supposed to fix started happening. Completely bugged my SQL and had to redo my fivepd as a whole. Didn't fix ANYTHING.

Link to comment
Share on other sites
2 hours ago, J.Jonesey#4002 said:

Before you get smart, I did back it up, Whatever THAT plugin did made it so whatever it was supposed to fix started happening. Completely bugged my SQL and had to redo my fivepd as a whole. Didn't fix ANYTHING.

Uhm, yeah, that's just not possible. This is NOT a plugin. It does NOTHING with the database. It just merges any DLLs you feed it into one. Nothing more.

But you could also just asked for help instead of "warning" other people; That's why your comment got me the wrong way and therefore you got a "smart" answer from me.

Link to comment
Share on other sites

So, I thought I just give a few final words regarding this claim. I was thinking about it the whole day if it could actually be true ...

1. As mentioned, it only merges the callouts into one single file

2. Those callouts are loaded as client scripts, which means, they are executed for the player only and not on the server

3. This means, that those scripts never have any access to the database which resides on your server

Conclusion: It's impossible, that this script/method messes with your database (unless you tried to merge more than only callouts).

 

I do not doubt J.Jonesey had issues after using this method, but reverting the callout folder to the previous state reverts all changes.

Maybe it was a client or server cache issue? Maybe the issue already existed before? I don't know.

 

Please, if you have issues, ask for help or report your issue with as many details as possible (error messages, screenshots).

Jumping to conclusions like J.Jonesey did does not help anybody. Not you nor anybody else.

 

If you are still unsure and want to be 100% sure, make a backup of your database ... You should do it anyway from time to time.

 

This is my last comment regarding this issue.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Add a comment...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

Important Information

Please view the site: Terms of Use, Privacy Policy, and Guidelines. // IMPORTANT: We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.