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

Tutorials Duplicating Road Sgbin Files

How to rename and duplicate a road SGBin file.

  1. Peter912

    Peter912 Elite

    Joined:
    Aug 22, 2014
    Messages:
    759
    Likes Received:
    221
    Peter912 submitted a new resource:

    Duplicating Road SGBin files - How to rename and duplicate a road SGBin file.

    Read more about this resource...
     
  2. Lokentaz

    Lokentaz Governor

    Joined:
    Feb 9, 2015
    Messages:
    404
    Likes Received:
    625
    Is somebody able to update this tuto?
     
  3. Drazicdesign

    Drazicdesign Ambasidor

    Joined:
    Aug 24, 2014
    Messages:
    1,214
    Likes Received:
    3,217
    First you need Okeanos tools

    CXlUnpack.exe and CXLPackager.exe -- Tech Support - Okeanos's Unpacker and Repacker

    I will use the "r_wy_road_05x40x40.sgbin" in this example.

    Unpack it with cxlunpack,exe.


    [​IMG]

    go to the folder where you extracted the files. rename them to something new. note: you cannot change the character count, but can change to any character..
    [​IMG]


    at this point you would edit the diffuse, nmap or whatever texture you want using this method. http://forum.citiesxl.com/viewtopic.php?f=59&t;=1375

    next you would open the files graph.bin and r_wy_ohad_05x40x40 with a HEX editor.
    [​IMG]

    [​IMG]


    The easiest and safest thing to do here is press Ctrl + F and search\replace any of the old names with the new ones, but use as much of the word as you can, as to not replace something else,

    eg. search for "r_road_10x20" and replace with "r_ohad_10x20" this will update the new texture names.
    next search for "r_wy_road" and replace with "r_wy_ohad".

    the Graph.Bin has the name of the sgbin, so whatever you name it here, has to be the name of the new sgbin file as well.

    pretty much any file that you renamed. and save\close them both.

    Next open CXLPackager.exe and open the ORIGINAL sgbin, eg "r_wy_road_05x40x40.sgbin"

    now right click on the files to be replaced, (all of them except the 0.0.00. and 255.255.) and choose replace,find the new ones.
    [​IMG]


    once you've replaced them all, right click again and choose properties, and rename so they match the new filenames.
    [​IMG]
    then file save as, the same name you put in the graph.bin, "r_wy_ohad_05x40x40.sgbin"
     

Share This Page