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



3 minutes ago, Liam W said:

@Bogi There are no JSON files. 

It's ok if there are none. I just mentioned it, because some callouts use json files for configuration and those should stay in the callouts folder.

Link to comment
Share on other sites

ContentFeatured.png.1904e2a582f7d84e7921b63d58fb2078.png

This content has been marked featured by the GPM Community Team. We feature content that is good quality and/or shows community interest. Keep up the great work!

  • Like 1
Link to comment
Share on other sites

The five m files does that come from five m on the  server or individual five 

Edited by ump50099
Link to comment
Share on other sites
8 minutes ago, ump50099 said:

The five m files does that come from five m on the  server or individual five 

Both seem to work, but I'd recommend the one from the client, as the callouts are client-side scripts.

But I successfully tested with either of them.

Link to comment
Share on other sites
32 minutes ago, dayatjahat said:

Will it work if i just compile to 4 file and rename it by numbers. Each compile consist of 5-7 callout

Should work, just make sure all of them end in .net.dll, besides that you can name it everything you want.

 

But as it's unclear, what exactly causes the issue, I'm not sure at what point it happens again. So if it's size related the issues might start again at 5 files or at 10 files ... I don't know.

You'll have to try yourself to find out.

Link to comment
Share on other sites

I know you said you aren't supporting this so I apologise. I have the issue and love your work around however when I run the PS it executes but there is no resulting file created. I can't see if Powershell is returning any error as it closes on completion. Any suggestions on what I could try? I confirmed I have the correct lib files in the lib folder as instructed, callouts in the callouts folder, etc.

Link to comment
Share on other sites

Yes as you are just combining all the .dll files into one. You need to do that on your PC first then upload the resulting file to your server and delete the other callouts there.

  • Like 1
Link to comment
Share on other sites

Where is this resulting file supposed to be created because I'm not seeing it anywhere.  Yes, I followed the instructions and have read them over and over just to make sure I wasn't missing anything.

Link to comment
Share on other sites
23 minutes ago, tromac said:

I know you said you aren't supporting this so I apologise. I have the issue and love your work around however when I run the PS it executes but there is no resulting file created. I can't see if Powershell is returning any error as it closes on completion. Any suggestions on what I could try? I confirmed I have the correct lib files in the lib folder as instructed, callouts in the callouts folder, etc.

No problem, I'll still help you guys out 😉

I just uploaded an updated version of the script which includes the output of ILMerge.exe ... Please run it again with this version and check if there are any errors.

Link to comment
Share on other sites
Quote

Merging all callouts into one dll ...
===========================================================
An exception occurred during merging:
ILMerge.Merge: Could not load assembly from the location 'D:\FiveM\FIVEPD\FivePD 1.0.6.1\working callouts\FivePDCalloutMerge (1)\FivePDCalloutMerge\callouts\FivePD-GangWarfareConfig.json'. Skipping and processing rest of arguments.
   at ILMerging.ILMerge.Merge()
   at ILMerging.ILMerge.Main(String[] args)


Was the .json file supposed to be in with the .dll files or outside of it?  

Edited by ChipW
Link to comment
Share on other sites

@ChipW Remove the json file from the folder. You need that one in the fivepd\callouts folder, but not for merging. Only dll files should go in the callouts folder of this tool.

  • Like 1
Link to comment
Share on other sites
1 minute ago, ChipW said:


Was the .json file supposed to be in with the .dll files or outside of it?  

Ok, not in with it apparently LOL.  

Link to comment
Share on other sites

Legend! That helped, so there was two callouts the same but the author had changed the actual file name in a recent update. Deleted the duplicate and all good.
image.thumb.png.56df509d6f39780a73ef6d36dc87ae97.png
 

Link to comment
Share on other sites
On 6/1/2020 at 2:55 PM, Alex[RUS] said:

37 callouts, and it doesn't work ((((can I fix it?

Please specify what is not working. Merging the callouts? If yes, what error message do you get?

If the merging works but you still have issues, check the console output on client side (F8) if there are any errors when fivepd starts (restart fivepd). The issue might also be elsewhere, like a broken callout. In that case please open a support topic in the forum, as it's not related to this script.

Link to comment
Share on other sites
On 02.06.2020 at 18:26, Bogi said:

Пожалуйста, укажите, что не работает. Слияние выносок? Если да, какое сообщение об ошибке вы получаете?

Если объединение работает, но у вас все еще есть проблемы, проверьте вывод консоли на стороне клиента (F8), если есть какие-либо ошибки при запуске fivepd (перезапустите fivepd). Эта проблема также может быть в другом месте, например, неправильная выноска. В этом случае, пожалуйста, откройте тему поддержки на форуме, так как она не связана с этим скриптом.

when I combine them, then nothing appears in the output folder

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.