|
Post by kaidenthompson on Feb 26, 2017 0:01:57 GMT -5
Hi! I've been trying to edit the names and descriptions of certain buffs just by editing the buff_name and buff_description in the XML file. But after I put it into a .package and put it in my mod folder, it doesn't change anything in-game. I'm wondering if I'm doing something wrong? Or maybe it's not possible to change buff names and descriptions. Really appreciate anyone who helps out!! Thank you!!!
|
|
|
Post by orangemittens on Feb 26, 2017 0:06:14 GMT -5
Hi kaidenthompson, welcome to the forums. It may be the case that all you need to edit is the string tables. If you post your .package and a description of what effect you're looking for in the game someone can take a look.
|
|
|
Post by kaidenthompson on Feb 26, 2017 0:15:58 GMT -5
Hi orangemittens! Thank you! I just picked a random buff to see if I could actually do it lol. I'm trying to upload it but don't see an add attachment button? Is it okay if I just copy and paste the code for the XML?
|
|
|
Post by Leniad on Feb 26, 2017 0:47:43 GMT -5
This form uses links to uploads, so items and images are loaded on sites like Sims File share or Imgur, and the links posted here. I have done a bit with buffs, just posted mood teapot - LOL, so I would be happy to look at your pkg.
|
|
|
Post by orangemittens on Feb 26, 2017 0:51:58 GMT -5
It's fine to post the .xml 
|
|
|
Post by kaidenthompson on Feb 26, 2017 0:56:32 GMT -5
Alright! Thank you!
<?xml version="1.0" encoding="utf-8"?>
<I c="Buff" i="buff" m="buffs.buff" n="Buff_Motives_Hunger_Starving" s="12821">
<T n="allow_running_for_long_distance_routes">False</T>
<T p="InGame\Audio\Stings\sting_buff_gain.propx" n="audio_sting_on_add">39b2aa4a:00000000:8af8b916cf64c646</T>
<T p="InGame\Audio\Stings\sting_buff_loss.propx" n="audio_sting_on_remove">39b2aa4a:00000000:3bf33216a25546ea</T>
<T n="buff_description">0xADF5B8D0<!--{0.SimFirstName} is very very hungry!--></T>
<T n="buff_name">0xE7B09C12<!--Ravenous--></T>
<T n="flip_arrow_for_progress_update">True</T>
<U n="game_effect_modifier">
<L n="_game_effect_modifiers">
<V t="autonomy_modifier">
<U n="autonomy_modifier">
<L n="decay_modifiers">
<U>
<T n="key">16656<!--motive_Hunger--></T>
<T n="value">0.0833333</T>
</U>
</L>
<L n="stat_use_multiplier">
<U>
<T n="key">16656<!--motive_Hunger--></T>
<U n="value">
<E n="apply_direction">DECREASE</E>
<T n="multiplier">0.0833333</T>
</U>
</U>
</L>
<V t="apply_to_owner" n="subject" />
</U>
</V>
</L>
</U>
<T p="InGame\UI\Icons\Buffs\buffs_hungerdistress_neg.png" n="icon">2f7d0004:00000000:b96bc78869617707</T>
<V t="enabled" n="interactions">
<U n="enabled">
<L n="interaction_items">
<T>13486<!--idle_Hunger--></T>
</L>
<T n="scored_commodity">16656<!--motive_Hunger--></T>
<T n="weight">2</T>
</U>
</V>
<T n="mood_type">14646<!--Mood_Uncomfortable--></T>
<T n="mood_weight">40</T>
<T n="timeout_string">0xFAEBF9D9<!--Starve to Death in: {0.Timespan}--></T>
</I>
I've bolded the only thing I've changed. And my .package is literally just this so I thought it'd be easier to copy and paste it. I've tried this method with other buffs, and nothing is working!! Is it maybe how I have it in my mods folder? It shouldn't be, it's just on the first level. Thank you both of you!!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 26, 2017 1:07:01 GMT -5
Hiya Kaidentompson you have indicated you changed the description but have you changed >0xADF5B8D0< this group of numbers and letters to correspond with the new value of your string?
|
|
|
Post by kaidenthompson on Feb 26, 2017 1:16:22 GMT -5
Ah! No, I didn't! The tutorial didn't tell me how to do that and I didn't know I needed to. Also I'm not sure how to. Could you by any chance help me out with that? A million thanks!!!!!
|
|
|
Post by orangemittens on Feb 26, 2017 1:26:29 GMT -5
Since you have not rehashed the string, if all you want is this text (buff description) showing up instead of EA's, all you need to do is edit the string as an override.
|
|
|
Post by Leniad on Feb 26, 2017 1:27:22 GMT -5
The buff name is a simple change. Add a line in the string table with the text you wish and copy the hex32 value from string table into the xml. Example: Add text kaidenthompson_Ravenous_NOT to s4s tool hash generator and you get 4D27E097 = 0x4D27E097 Add line in string table 0x4D27E097 with value Ravenous_NOT. Obviously change the buffname to what you want.  "buff_description">0xADF5B8D0<!--{0.SimFirstName} is very very hungry!-- may not be as simple. I have never replaced text with a sim's name in it before, so not sure the above method will work, but give it a try. Let me know, because I am curious, and too sleepy right now to investigate. 
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 26, 2017 1:28:06 GMT -5
Sure  , well you know that thing that says english, chinese ect, that's a string table to make a new string you have to open the hasher, go to tools then hash generator, type your name followed by a : then type the text you want to input. After this copy the FNV32 line. Open up the warehouse tab and select the appropriate language file string table, click edit items, after click add then past that value from the hash generator onto the line that says key, type your new description or name or whatever into the line that says value, save the string, copy your key line again and past in after the 0x replacing the everything up the the < arrow. The 0x points to the english string table in case you were wondering  , happy modding and let me know if you need more help  .
|
|
|
Post by orangemittens on Feb 26, 2017 1:29:40 GMT -5
If all you want to do is change the text of an existing buff you don't need to do anything but override the string that displays that text. Leniad , the given text will put the Sim's name instead of the curly braces and words between them.
|
|
|
Post by kaidenthompson on Feb 26, 2017 1:40:35 GMT -5
Thank you all! I changed <T n="buff_description">0xADF5B8D0<!--{0.SimFirstName} is very very hungry!--></T> to <T n="buff_description">0x501F3E69<!--{0.SimFirstName} is very very hungry!--></T> because I thought that's all I had to do, but it isn't showing in-game. I'm very new at this haha so sorry if I'm not getting it. Is there anything else I've missed??
|
|
|
Post by orangemittens on Feb 26, 2017 1:43:23 GMT -5
Hi kaidenthompson, what you're describing wanting to do is making a change to the in-game text. This is something that is managed by editing the string table resource. You are not editing the correct resource if that's what you're trying to do. If I've misunderstood what you're trying to do, post a description of the effect you want to achieve in the game.
One thing to note, the text in green font in .xml indicates notes, not code. Any text you change there will have no effect in the game.
|
|
|
Post by kaidenthompson on Feb 26, 2017 1:47:50 GMT -5
Yes, you're right, I'm trying to change what the description of the buff says in-game. I'm not sure where the string table resource is, or how to properly edit it???? I'm really sorry for being this oblivious and inconvenient haha, I'm just trying to learn how to do this.
|
|