1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you are going to register on XLNation, please make sure you do not use a proxy server.
    If you use a proxy server your registration will most likely get blocked due to spammers and hackers using proxy servers to hide their real IP address.

    If your using your home or work IP address and have not received your registration email, check your spam folder.
    PLEASE DO NOT ASK TO HAVE YOUR ACCOUNT DELETED IF YOU HAVE POSTED IN THE FORUM! If so we do not delete accounts due to the mess it can make on the forum.
    Dismiss Notice

I'm changing .lua file of mod thumbnails

Discussion in 'Modding Help Quarter' started by sadiemydog, Dec 11, 2019.

  1. sadiemydog

    sadiemydog Executive

    Joined:
    Nov 19, 2014
    Messages:
    175
    Likes Received:
    91
    I was trying to change the .lua file of the increase of mod thumbnails from 500 to 900. Changes - Mod Vignettes (Thumbnails)

    Code:
    original:
    
    local number = 0;
        local String=""
        for i,v in ipairs(result) do
            --if Entity:PrototypeIsVisible(v) then
                number = number + 1
                if (number > 500) then
    
    new:
    
    local number = 0;
        local String=""
        for i,v in ipairs(result) do
            --if Entity:PrototypeIsVisible(v) then
                number = number + 1
                if (number > 900) then 
    After I saved the .lua file and trying to change it to a .patch file the CitiesXL PakUnpak converter application stopped working.
    Is there anyone that could help me?
     
  2. skullz613

    skullz613 Administrator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    2,195
    Likes Received:
    2,242
    Did you get this fixed?
     
  3. sadiemydog

    sadiemydog Executive

    Joined:
    Nov 19, 2014
    Messages:
    175
    Likes Received:
    91
    Still not fixed though. I just want to increase my amouth of mods per sub-menu. I wonder is it possible to send the file that I'd edited to you or someone else who is able to package it inside a .pack file.
     
  4. skullz613

    skullz613 Administrator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    2,195
    Likes Received:
    2,242
    There was two areas that had the value 500 so I changed them both to 900. Let me know if it's correct. See attached patch file.

    The important thing with the upackupack tool is to close it after using it once. If you keep it open and try to work on another file or repack what you just unpacked, it will error.
     

    Attached Files:

  5. sadiemydog

    sadiemydog Executive

    Joined:
    Nov 19, 2014
    Messages:
    175
    Likes Received:
    91
    Unfortanitely as of now I still got just 150 thumbnails... :(
     
  6. skullz613

    skullz613 Administrator
    Staff Member

    Joined:
    Aug 21, 2014
    Messages:
    2,195
    Likes Received:
    2,242
    Did the thumbnail mod work at the original 500 value?
     

Share This Page