[REL] rF2CarIconGenerator - Fully automated Car Skin Livery Icon generator

Discussion in 'Other' started by svictor, Apr 3, 2025.

  1. jmarq10

    jmarq10 Registered

    Joined:
    Mar 5, 2017
    Messages:
    40
    Likes Received:
    12
    Well the port was set right, but the test for imagemagick doesnt seem right I guess (i dont know what im looking at), I will try to install an older version

    [​IMG]

    [​IMG]

    [​IMG]
     
  2. vava74

    vava74 Registered

    Joined:
    Dec 14, 2020
    Messages:
    983
    Likes Received:
    1,302
    This and so many other little things -- along with some background clean up using some of the knowledge of LMU -- could give rF2 many years of life as the premier modding platform going forward...

    And it befuddles me that, stuff like the icons' update was not pushed through on ISI's content... I am pretty sure that there is no legal angle under which such an update could be looked at as a licensing breach.
     
    solerpalau likes this.
  3. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    1,149
    Likes Received:
    7,431
    Your ImageMagick version is perfectly fine, I used the same 7.1.1-47 version. The ImageMagick version check from RF2 REST API page does not work for this latest 7.1.1-47 version as far as I tested.

    Just make sure that you have "Add application directory to your system path" option selected while installing (it is selected by default), otherwise the tool will not be able to detect ImageMagick.

    Also make sure you open this tool first and enabled "Start Monitoring", then go to game, load car in showroom, and press "in-game screenshot" hotkey, done.

    If everything is set correctly, you should immediately hear two beep sounds and follow another two beeps shortly, which indicates icon is generated.

    [​IMG]

    However if you don't hear beeps, then it could be one of the issues:

    * REST API connection failed. Besides WebUI port, you may also check firewall or anti-virus setting, since some firewall or anti-virus APP can actively blocking network accessing without noticing.

    Note, if REST API connection is successful, after you took a screenshot, the VEH name will be displayed in Vehicle File Name(VEH) box. However, if connection failed, then it will show nothing after you took a screenshot.

    * The ImageMagick executable file was not found in system path. This is usually due to that "Add application directory to your system path" option was not selected while installing. You can quick test whether it is added to system PATH by run following command in Powershell (right-click on "windows start", select "Windows Powershell", then type):
    magick.exe -version

    Totally agree. I would guess game developer would already have similar tools internally, but just not released for whatever reasons, otherwise manually creating every icons will just be a huge and pointless time waste, and nonsense in the long run.
     

    Attached Files:

    • 2.png
      File size:
      99.3 KB
      Views:
      674
    Last edited: Apr 25, 2025
    yashiman likes this.
  4. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    1,149
    Likes Received:
    7,431
    One of my friend just tried this tool, and he also could not generate icon.

    And we finally found the cause, it turns out that the screenshots he took was in "JPG" format, which is the whole reason icon failed to generate, because it requires PNG format to generate icon, and that is because RF2's screenshots setting was set on "JPG" format.

    We used to assume that game nowadays always uses PNG format by default, but that is not the case...

    The solution is simple:
    Open rFactor 2\UserData\player\player.JSON with notepad, then search for "Screenshot Format" keyword, change the number to 3 and save.

    That's it!
     
  5. vava74

    vava74 Registered

    Joined:
    Dec 14, 2020
    Messages:
    983
    Likes Received:
    1,302
    Could this be adapted to upscale track textures, keeping their size and generating the upscaled associated trinkets (bumpmaps and mipmaps) and... apply a 'standard' recalibration of some parameters, aligned with the ones used for Mills-Metro, NoLa, Toban*...

    * the background vineyards and trees are still poor.
     
  6. mantasisg

    mantasisg Registered

    Joined:
    Aug 17, 2016
    Messages:
    3,433
    Likes Received:
    5,370
    Thank you. Didn't work at first, it was because of jpg format, and maybe because I was entering to showroom not from options. Also at first time I have failed to take screenshots correctly because I didn't press "enter".

    Finally, it was very kool to hear the beeping sound, and then find the images all set up properly. It is very quick.
     
    Emery, svictor and Mauro like this.
  7. [LSF] Pierre

    [LSF] Pierre Registered

    Joined:
    Mar 29, 2021
    Messages:
    18
    Likes Received:
    6
    Hi, The screenshots show the image centered, but when I look at the generated icon image, the car is in the bottom left corner. Hence the following result in game. Any ideas?[​IMG] [​IMG] [​IMG]
     
    Last edited: Sep 11, 2025
  8. mantasisg

    mantasisg Registered

    Joined:
    Aug 17, 2016
    Messages:
    3,433
    Likes Received:
    5,370
    It has happened to me. But I can't remember exact cause, maybe because I didn't press "enter" on my keyboard.
     
  9. svictor

    svictor Registered

    Joined:
    Jan 20, 2019
    Messages:
    1,149
    Likes Received:
    7,431
    Your screenshot has "framerate" value (the green number with black label) on the top right of your screenshot, which messed up with the auto image edge crop function.

    I assume that this framerate value comes from steam ingame overlay (or other third-party overlay app?). You should disable those framerate overlay before taking the screenshot, and it should work correctly.

    zzz.png

    Good luck
     
    buzz hornet, Spyro, Matt21 and 2 others like this.
  10. [LSF] Pierre

    [LSF] Pierre Registered

    Joined:
    Mar 29, 2021
    Messages:
    18
    Likes Received:
    6
    Thank you so much for solving my problem and thank you for your application which makes the work of teams making skin packs easier. So much time saved.
     
  11. goonzo

    goonzo Registered

    Joined:
    Oct 19, 2012
    Messages:
    32
    Likes Received:
    5
    Thanks for the good tools and explanation, it worked out of the box on the first try for me.
    But I dont get the screenshot or the generated icons with transparent background.
    Im not sure Im using rF2's screenshot function. I cant find the settings for it?

    edit: I found the screenshot hotkey in the settings in rF2, its mapped to F12 and that is what Im using. so now Im out of ideas...
     
    Last edited: Oct 3, 2025
  12. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,125
    Likes Received:
    1,234
    What format are the screenshots saved as? (In your rFactor 2\UserData\ScreenShots folder).
     
  13. goonzo

    goonzo Registered

    Joined:
    Oct 19, 2012
    Messages:
    32
    Likes Received:
    5
    Yeah, sorry. I forgot to mention. I read the comment about settings screenshot format to 3 (png) in the json. So its correct.

    Can the type of showroom cause it to be not transparent?
     
    Woodee likes this.
  14. Woodee

    Woodee Registered

    Joined:
    Oct 4, 2010
    Messages:
    4,125
    Likes Received:
    1,234
    Use the "sideview_ui" one that comes with the game. But you must press the remove background button in the showroom to delete it and make your PNG transparent.
     
    goonzo, svictor and Emery like this.
  15. goonzo

    goonzo Registered

    Joined:
    Oct 19, 2012
    Messages:
    32
    Likes Received:
    5
    thanks! now it works
     
    Woodee likes this.

Share This Page