More Awesome Than You!
Welcome, Guest. Please login or register.
2014 November 24, 10:01:47

Login with username, password and session length
Search:     Advanced search
538453 Posts in 17892 Topics by 11519 Members
Latest Member: Mosspaw
* Home Help Search Login Register
+  More Awesome Than You!
|-+  The Bowels of Trogdor
| |-+  The Large Intestines of Trogdor
| | |-+  Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits)  (Read 12751 times)
chann
Corpulent Cretin
*
Posts: 112

TS3: an "eye-opening tour de farce" (sic)


View Profile WWW
Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits)
« on: 2009 July 16, 16:18:33 »
THANKS THIS IS GREAT

      AwesomeMod currently comes packaged with these three XMLs (the "Awesome XMLs"):
    • Careers (instance 0x6E9ADCDAEB2CE302) - includes new MaxOfficeHolders (career caps) tags
    • Socializing (instance 0x4B0FC8F0A28B12EF) - includes Pedophile interactions
    • Traits (instance 0x905E2204EBCAC0B6) - includes Pedophilia and Sacred functionality

    If you try to load a mod that modifies one of the above XMLs while AwesomeMod is active, one of two Bad Things will happen.
    1. Your mod will squelch the Awesome XML in awesome.package - breaking or removing AM's functions.[/li][/list]
    2. Awesome.package will squelch your mod. The changes you made will be ignored.[/li][/list]

    This tutorial will explain how to make modifications to these SPECIFIC three XMLs so that they play nice with AwesomeMod. Not other XMLs. Not core hacks. Just Careers, Socializing and Traits.

    Note that if Pescado updates the relevant XML, you will have to re-extract the XML from the newest awesome.package and re-do the tweaks you made originally. Oh, and this tutorial applies to any future tuning XMLs "commandeered" for AwesomeMod use.

    The short version
    1. Add this text to the top of Resource.cfg:
    Code:
    Priority 501
    PackedFile Mods/Override/*.package
    2. Extract the relevant Awesome XML from awesome.package
    3. Edit the extracted XML to your liking while not breaking Pescado's additions.
    4. Import the edited Awesome XML into a new .package and save that package in the /Mods/Override folder.
    5. Load TS3 and see if your changes show up in the game.

    The long version

    Before you start, I'll assume you have AM up and running in its default location, which means your mod framework is in place and working. I'll also assume you know how to mod tuning XMLs; there's plenty of tutorials for that available out there. I'm focusing on how to make your changes appear without being squelched by awesome.package.

    1. Locate Resource.cfg in your TS3 root folder, by default in C:\Program Files\Electronic Arts\The Sims 3\ on PC. Open it in a text editor.

    Example - the Resource.cfg that comes with Delphy's install tool:

    Code:
    Priority 500
    PackedFile Mods/Packages/*.package
    PackedFile Mods/Packages/*/*.package
    PackedFile Mods/Packages/*/*/*.package
    PackedFile Mods/Packages/*/*/*/*.package

    2. Add these two lines to the top of the file:

    Code:
    Priority 501
    PackedFile Mods/Override/*.package

    Once done, save and exit. Your game is now equipped to load override packages in the Mods/Override/ folder (which you should create at this point).

    3. Using s3pe, open awesome.package. Click the Type column to sort by type. You will see this:



    Select one of the 3 XML resources that you wish to alter in the main window - you can use the instance numbers at the top of my post for reference, or open them up (click Value or Editor) to see what they contain. For instance, the Careers XML looks like this:



    After you choose one, go to File > Export to Package. Save the package in Electronic Arts/The Sims 3/Mods/Override and name it whatever you wish. For this example, I want to tweak the XML to allow two mayors instead of one. I exported the Careers XML from awesome.package into a new package in Mods/Override/ called MoreMayors.package.

    4. Keeping s3pe open, open the new .package containing the extracted Awesome XML (close awesome.package WITHOUT saving - it shouldn't prompt you anyway).



    Select the single resource you see in the main window, and click the Editor button in s3pe to open it in your text editor.

    5. Here's the point where you make your desired tweaks/changes.

    In my example, after loading MoreMayors.package and opening the XML, I search for Mayor, find the MaxOfficeHolders tag which reads "-1" and change it to "-2". Now, MaxOfficeHolders is a tag added by AM - but of course you can change ANY part of the file Awesome or not. I'm just using this as an example. In the Careers XML you can tune wages, uniforms job hours and other stuff - it's all pretty intuitive.

    Here's what I changed:



    Go to File > Save in Notepad, then exit Notepad. Click yes when the the Commit Changes dialog pops up in s3pe and go to File > Save.

    6. Finally, load up TS3 and check whether your change shows up. The Resource.cfg framework should load your Mod/Override/ resources on top of the Mod/Packages/ ones, overriding the identical ones but allowing the rest of awesome.package to load.



    Success!

    Feedback and questions welcome.
    Logged
    Aaroc
    Asinine Airhead

    Posts: 45


    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #1 on: 2009 July 25, 08:13:18 »
    THANKS THIS IS GREAT

    So, according to the example you just gave, if I wanted to completely do away with the MaxOfficeHolders thing, I could simply delete all instances of that tag and I could, say, have 500 Leaders of The Free World running around in my hood if I wanted to? (you know, of course providing that my neighborhood and computer could support that many sims, let alone that many in Politics, etc, etc.)
    Logged
    chann
    Corpulent Cretin
    *
    Posts: 112

    TS3: an "eye-opening tour de farce" (sic)


    View Profile WWW
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits)
    « Reply #2 on: 2009 July 25, 09:47:55 »
    THANKS THIS IS GREAT

    So, according to the example you just gave, if I wanted to completely do away with the MaxOfficeHolders thing, I could simply delete all instances of that tag and I could, say, have 500 Leaders of The Free World running around in my hood if I wanted to? (you know, of course providing that my neighborhood and computer could support that many sims, let alone that many in Politics, etc, etc.)

    Yes, you could do that.
    Logged
    J. M. Pescado
    Fat Obstreperous Jerk
    El Presidente
    *****
    Posts: 26033



    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #3 on: 2009 July 25, 10:10:25 »
    THANKS THIS IS GREAT

    FYI, the Careers XML will likely be dropped from future releases of AwesomeMod as I replace it with a solution that touches fewer files, so don't count on this method being reliable forever.
    Logged

    Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
    pbox
    Garrulous Gimp
    **
    Posts: 315


    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #4 on: 2010 January 11, 16:46:48 »
    THANKS THIS IS GREAT

    FYI, the Careers XML will likely be dropped from future releases of AwesomeMod as I replace it with a solution that touches fewer files

    Hm, I just looked at an almost-current version and there's still a career XML in there. Are you planning to keep that? I wanted to look into making some careers and if what I want to do is even possible then I'd like them to last for a while .. are those XMLs here to stay now, or will they soon be ditched?

    Somewhat related question: would it be feasible to somehow recycle the "MaxOfficeHolders" key for custom careers? I wouldn't want 28 store clerks in my town any more than I'd want 28 mayors.
    Logged
    J. M. Pescado
    Fat Obstreperous Jerk
    El Presidente
    *****
    Posts: 26033



    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #5 on: 2010 January 11, 16:48:52 »
    THANKS THIS IS GREAT

    Yes, the max office holders key can be recycled, and should not affect the game's functionality whether or not the game has AwesomeMod installed, although without AwesomeMod, the tag will be ignored. Setting MaxOfficeHolders to a negative number will make the rule rabbithole-specific, so you could set a limit of maximum store clerks per store. This value has no effect on the entry-level position, though.
    Logged

    Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
    pbox
    Garrulous Gimp
    **
    Posts: 315


    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits)
    « Reply #6 on: 2010 January 12, 04:04:36 »
    THANKS THIS IS GREAT

    Thank you. What if a carreer only has one level, though? Would it not work because that's the entry level, or work because it's the top level?
    Logged
    J. M. Pescado
    Fat Obstreperous Jerk
    El Presidente
    *****
    Posts: 26033



    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #7 on: 2010 January 12, 04:40:29 »
    THANKS THIS IS GREAT

    If the career has only one level, it wouldn't work with this because that's the entry level. As the system doesn't presently prevent anyone from APPLYING, the job will thus remain open. Although I can only really see this becoming an issue if you were to sadistically send 30 people to apply there.
    Logged

    Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
    pbox
    Garrulous Gimp
    **
    Posts: 315


    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #8 on: 2010 January 14, 04:35:56 »
    THANKS THIS IS GREAT

    As the system doesn't presently prevent anyone from APPLYING, the job will thus remain open. Although I can only really see this becoming an issue if you were to sadistically send 30 people to apply there.

    Unfortunately, it does become pretty annoying without me doing anything I'm using Awesome Story Progression, and after about a sim week I've got a horde of dishwashers =/. Half of them are townies (i.e. "NPC family", they must have gotten the job autonomously); I only made 3 sims apply for the career myself.

    Hm. Is there any way at all to restrict job offers? I find it utterly illogical that in a town of perhaps 50 sims, a diner would make so much money that it could afford 15 employees .. what I want to acheive is a somewhat realistic job market (or at least, not as completely implausible as the default EA jobs) for a small town - say two dishwashers, one waiter, one cook or something like that.  

    eta:
    Hmmm .. what I could perhaps do is move "Dishwasher" to level 2, and make level 1 an unpaid "dishwasher internship" or something like that  Tongue .. when Awesome makes a sim apply for a carreer, does it take into account how much the job pays? I wouldn't care if those 15 sims would show up at the diner every day instead of sitting at home, as long as they don't get paid from nowhere. Maybe after a while they'd quit again and try another career .. this time perhaps one that actually has real jobs available.
    « Last Edit: 2010 January 14, 04:42:38 by pbox » Logged
    J. M. Pescado
    Fat Obstreperous Jerk
    El Presidente
    *****
    Posts: 26033



    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #9 on: 2010 January 14, 10:24:13 »
    THANKS THIS IS GREAT

    Unfortunately, it does become pretty annoying without me doing anything I'm using Awesome Story Progression, and after about a sim week I've got a horde of dishwashers =/. Half of them are townies (i.e. "NPC family", they must have gotten the job autonomously); I only made 3 sims apply for the career myself.
    The NPC fambly is excluded from story progression, so it's not AwesomeStory that's assigning them that.

    Hm. Is there any way at all to restrict job offers? I find it utterly illogical that in a town of perhaps 50 sims, a diner would make so much money that it could afford 15 employees .. what I want to acheive is a somewhat realistic job market (or at least, not as completely implausible as the default EA jobs) for a small town - say two dishwashers, one waiter, one cook or something like that.
    I'll look into making max officeholders work for entry-level application, I suppose. At the moment, it doesn't work, but I can look into making it work.
    Logged

    Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
    pbox
    Garrulous Gimp
    **
    Posts: 315


    View Profile
    Re: Tutorial: making AwesomeMod-compatible XML hacks (Careers/Socializing/Traits
    « Reply #10 on: 2010 January 14, 15:57:03 »
    THANKS THIS IS GREAT

    The NPC fambly is excluded from story progression, so it's not AwesomeStory that's assigning them that.

    Oh? So how did this happen? I noticed that at least two of the former-NPCs *also* moved into town, but I can't tell whether that was before or after they got a job .. I had placed houses until there were no homeless bums left (except for the NPC family), and then some more, and after a while some of those houses were also occupied. I'm testing this in a Riverview that I had previously almost completely bulldozed and I believe most of the NPC family members are former Riverview residents. Maybe this makes for somewhat abnormal testing conditions? Is it expected behaviour that sims who end up on the clipboard because their homes are being bulldozed will join the NPC family? (Unfortunately I can't tell anymore whether or not I had Awesome already in while I did the bulldozing ..)

    Another thing btw - boss glitch: I have one career (Political) that HasBoss and also uses RelBoss as a metric - for that carreer, the game assigned Robert Newbie (who must have been in the NPC family) as  "TheMayor" while one of the other sims was at work: Newbie showed up in her relationship panel, with the "boss" tag underneath. But the next time I restarted, the "boss" tag was gone and he didn't even have a coworker tag either. All of the sims in the Political career have a RelBoss level of suck (which makes sense since none of them are friends with Newbie) but I'm wondering whether the game still knows that he is the boss (he still has the job, I checked in his household). Could the tag have got lost because I fiddled with the career override in between game sessions? (yadda yadda yadda) -- Figured it out. kMinimumBossLevel was 5, and that career only has 4 levels ..  Roll Eyes


    Is there some way to see a list of jobs, per rabbithole or for the entire nhood? Sort of like listhomeless but for work statistics?


    I'll look into making max officeholders work for entry-level application, I suppose. At the moment, it doesn't work, but I can look into making it work.

    That would definitely be very cool. Thank you. Also let me know if you can think of any other workarounds I could try, gameplay-wise or in the career edit.
    « Last Edit: 2010 January 15, 05:43:29 by pbox » Logged
    Pages: [1] Print 
    « previous next »
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
    Page created in 0.268 seconds with 20 queries.