Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Lab Assistant
Original Poster
#1 Old 26th Feb 2017 at 6:41 PM
Default Can't get String from hash of STBL file.
Hello.

My MTS_ArtUrlWWW_PregnancyMegaMod_v7.0.package (that's loaded and values from it successfully shown in pie menu) has STBL with value
Code:
  [00]: Key 0x3F70BCAA, Flags 0x00 : Pregnancy


I am trying to receive string from STBL file, but nothing happened after execution of
Code:
@sims4.commands.Command('p', command_type=sims4.commands.CommandType.Live)
def pregnancymod_picksimforactivation(opt_sim: OptionalTargetParam = None, _connection=None):
    output = sims4.commands.CheatOutput(_connection)
    client = services.client_manager().get_first_client()

    output("QQQQQQQQQQQQQQQQQQQQQQQQQQQ5")
    #localized_title = get_localized_string(object_value=0x3F70BCAA, _connection=_connection)
    localized_title = lambda **_: sims4.localization._create_localized_string(0x3F70BCAA)
    output(localized_title)
    output("+++++++++++++++++++++++++++++")


After execution of this code only QQQQQQQQQQQQQQQQQQQQQQQQQQQ5 showed and nothing more. Looks, like exception, but there are no lastException*.txt files in c:\Users\ArtUrlWWW\Documents\Electronic Arts\The Sims 4\ dir.
Where is my mistake?

Thank you!
Advertisement
Lab Assistant
Original Poster
#2 Old 26th Feb 2017 at 7:40 PM
OK, I found, that _create_localized_string returns object with type LocalizedString().
How to send string (text) value of the LocalizedString() to output?
Thank you!
Back to top