Jump to content
Rady

Importing values with Reader

5 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I started modifying my MMP files for them to show up in custom submenus. For this purpose, you need to add two values (Item Submenu Parent ID & Item Button Class) to the exemplar file of the MMP. As these values are the same for all MMP that should go to the same submenu, I was wondering whether there is a possibility in the Reader to import these values into the exemplar file from a file (instead of manually adding every single value). This would speed up the process and reduce mistakes .. SO instead of adding every single valu, you would open the dat file, import the new values and close it again.

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

I presume you're already copy-pasting the exemplars between files?

Otherwise, one option is to use Cohort files. Define all the common properties in a cohort, make each file reference this cohort, and all those files will 'inherit' the properties in the cohort. The base game uses them all the time, but they're relatively unused in most custom content. More reading here and here for what they are and here is a decent writeup of how to make some for prop families. Do not they're not the easiest to set up.

  • Like 1

Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    13 hours ago, nos.17 said:

    I presume you're already copy-pasting the exemplars between files?

    You might have touched a weak point *:idea: so what you are telling me is that the exemplar file is the same for all lots? AT least for all lots of a certain set *:???:

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     
    5 hours ago, Rady said:

    You might have touched a weak point *:idea: so what you are telling me is that the exemplar file is the same for all lots? AT least for all lots of a certain set *:???:

    In the sense that they will have the same or similar properties? Probably yes. But that's not what I was getting at. 

    Open all your exemplars in reader. Set the properties you want in one. Right click → Copy. Right click → paste in all the others.

    image.png

    • Thanks 2

    Looking for a prop or texture? The SC4 Prop & Texture Catalog might help! View online here.

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    1 hour ago, nos.17 said:

    In the sense that they will have the same or similar properties? Probably yes. But that's not what I was getting at. 

    Open all your exemplars in reader. Set the properties you want in one. Right click → Copy. Right click → paste in all the others.

    image.png

    Thank you for saving me hours of tedious work *:thumb:

    • Like 2

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account


    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections