rFactor 2 Online Tools by Chris “redapg”

Discussion in 'Modding' started by Slow Motion, Oct 11, 2016.

  1. Mauro

    Mauro Registered

    Joined:
    Oct 14, 2011
    Messages:
    1,700
    Likes Received:
    2,480
    i'm trying to add a logo but i have problems
    the logo must be 500x500px? .png format?

    i have upload a logo but in preview i see only car icon without logo

    and then when i press continue i have

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 17640 bytes) in /users/meetme/www/rF2_onlineTools/rF2GGeninfo/uiiconcreator.php on line 890
     
    Last edited: Oct 17, 2020
  2. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    @Mauro Thank you for reporting the Issue and sorry for the Inconveniences.
    It seems that there was a Modification from bplaced, that makes it almost impossible to use the "add another Picture" Function.
    I will remove that Function soon.
    Until then, please don't use it anymore.
    Thank you.
    BTW you also can use a simple temporary 1 Poly Plane with a Logo or another Picture, that gets loaded with the Cars Spinner GEN File, to add it to the Icon.
     
    Last edited: Oct 17, 2020
    Corti and Mauro like this.
  3. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    As an Information: due to some Problems with the Host, i will have to modify the UI Icon Creator Tool Script.
    Unfortunately it will last 1 or 2 Days until the Site will be online again.
     
    Spitfire1, Corti, Emery and 1 other person like this.
  4. Spitfire1

    Spitfire1 Registered

    Joined:
    Dec 6, 2019
    Messages:
    144
    Likes Received:
    70
    Just want to say your tools are utterly fantastic.

    Is it possible to have your tools on .exe format?
     
    zxd1997 likes this.
  5. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    Thank you, it's always good to see that the Tools are used and liked. :)
    But i am no Programmer and have only some limited Skills in php and html.
    And to learn a programming Language that allows to create Executables, i'm to old for and also don't have the Time to do that.
    So "no", from my Site there is no Chance to get them in exe Format, sorry.
     
    zxd1997 likes this.
  6. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    Update: unfortunately it will last longer, because i decided to completely rewrite the Script.
    But i'll of course try to get it back online as quick as possible. :)
     
    Spitfire1, dylbie, lagg and 2 others like this.
  7. Will Mazeo

    Will Mazeo Registered

    Joined:
    Sep 12, 2015
    Messages:
    2,185
    Likes Received:
    1,555
    hmm maybe someone could put your scripts into some exe and run it in a browser? idk xD I studied very little of coding
    @The Iron Wolf is the guy that added rF2 and some other titles to Crew Chief, he sure knows what can be done
     
  8. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    The Advantage of an exe File is, that it don't needs a Browser. ;)
    And the Scripts, that now use php, html and sqlite, would have to be "translated" into a coding Language that is necessary to create an exe File, which will be a bigger Job i guess.
    As an Example, the largest Script has ~14200 Lines of php/html and i guess you would need more Lines to get it coded for an exe File.
     
  9. Will Mazeo

    Will Mazeo Registered

    Joined:
    Sep 12, 2015
    Messages:
    2,185
    Likes Received:
    1,555
    I meant, this runs on client side and server side, right? Making it an app would mean the PC would run both sides so I don't think a rewrite of the whole thing is needed. I could be wrong ofc.
     
  10. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    The only Way to get these Scripts running unchanged on your PC, is to use an own localhost Web-Server, that supports php and sqlite.
    That is what i do, when i write the Scripts.
    But for that, you would need to have all Scripts and other Things, that are necessary to get them working properly.
    But i currently have no Plans to offer the Tools as a Download, because i don't want to have them spreaded all over the Web without to have the Control about it. :)
    As said, to get an exe File it needs a complete different Code.
     
    lagg, Will Mazeo, philrob and 3 others like this.
  11. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    The Icon Creator Tool is online again.
    Unfortunately, due to some Modifications on the bplaced Host, i had to completely rewrite the Script.
    Also the Function, with that i could remove the empty Space from all 4 Sides of the Screenshots, don't works anymore.
    Now the Script is doing this:
    The uploaded Files remain unchanged and are used to create all needed Icons.
    The only Thing for that you have to take care, is the Name of the uploaded File(s).
    To get a proper Set of Icons, the uploaded Screenshot Files should have the exact same Name like their according veh File.
    The Name "Additions" like -icon-2048x1152, -icon-1024x576 and so on, are added automatically.

    Please report all Problems here or send me a Mail to the Mail Adress, that can be found on the Tools main Site. :)
    Thank you
     
    Mauro, lagg, Corti and 1 other person like this.
  12. dazzer

    dazzer Registered

    Joined:
    Feb 3, 2018
    Messages:
    425
    Likes Received:
    1,236
    GREAT!
     
    redapg likes this.
  13. Mauro

    Mauro Registered

    Joined:
    Oct 14, 2011
    Messages:
    1,700
    Likes Received:
    2,480
    that's a shame, it was a very useful feature
    i have to add new icons to a wip project, now i'm redoing all old icons :D

    anyway thanks for your great tool, it saved me days and days of work ;)
     
    redapg likes this.
  14. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    I'll try to find another Way to get it working again, but i can not tell you if it will be successful and how long it will last to find a Way.
    I also liked that Function and i unfortunately don't know what has changed on the Server, that it don't works properly anymore.
    There are no helpful Error Messages shown.
     
    Mauro likes this.
  15. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    New Update for the Icon Creator Tool (i hope the last one :)): directly after posting the above contribution, i remembered something, where i had a similar Problem with a Function, that stopped working without any apparent Reason and that i could solve.
    So i tried it out with the Function that removes the empty Space from the png Screenshots.
    That seems to work and it is again available as an Option in the Script.
    Please report any Problems.
    Thank you
     
    Emery and Mauro like this.
  16. Mauro

    Mauro Registered

    Joined:
    Oct 14, 2011
    Messages:
    1,700
    Likes Received:
    2,480
    Great news, thanks redapg

    I have 46 car icons to test today ;)
     
    redapg likes this.
  17. RoWo

    RoWo Registered

    Joined:
    Jul 16, 2014
    Messages:
    339
    Likes Received:
    385
    Thank you for this very helpful tool. I have just tested the current version. It worked the first time. But now I get the same error message over and over again:
    Unfortunately, multiple F5 does not help.
     
    redapg likes this.
  18. Mauro

    Mauro Registered

    Joined:
    Oct 14, 2011
    Messages:
    1,700
    Likes Received:
    2,480
    Max 6 skins at the same time?

    EDIT. just redone my 46 car icons and it works fine for me
     
    Last edited: Oct 18, 2020
    redapg likes this.
  19. redapg

    redapg Registered

    Joined:
    Jan 16, 2012
    Messages:
    1,397
    Likes Received:
    224
    That F5 doesn't help is a bit strange.
    Did you upload 6 Screenshots?
    If yes, try it with 5.
    If that also doesn't work, you could send me the Files that you upload (eMail Adress from the Tools main Side), that i can try to reproduce the Problem.
    And if you do it, please also tell me which Browser you do use.

    Yes, max 6 Skins at the same Time, to try to stay inside of the several Limitations of the bplaced Host.
     
    Emery and Mauro like this.

Share This Page