Forum Discussion

benjiu's avatar
9 years ago

Custom careers and 64 bits hash/high bit

I dabble a bit in custom careers and so far things are looking good, except my custom career raise an exception when I attempt to save after assigning the career to a Sim :

File "T:\InGame\Gameplay\Scripts\Server\careers\career_tracker.py", line 452, in save
File "T:\InGame\Gameplay\Scripts\Server\careers\career_base.py", line 2872, in get_persistable_sim_career_proto
File "T:\InGame\Gameplay\Scripts\Core\google\protobuf\internal\cpp_message.py", line 107, in Setter
ValueError: Value out of range: 12464470167094854350

with 12464470167094854350 being the decimal ID of my custom careers.career_tuning, and which is a 64bits hash with high bit set. The career assigned to my Sim is not saved when I exit/reload but it works fine when I use a 32 bits hash instead.

Am I supposed to use a 32 bits hash in this case or is this an oversight in the saving script ?

7 Replies

  • SimGuruEugi's avatar
    SimGuruEugi
    Icon for EA Staff (Retired) rankEA Staff (Retired)
    9 years ago
    You are correct, career ID only supports 32 bit. We'll look into fixing that to support 64 bits. Thanks for bringing it up!
  • Thanks for the quick response !

    I'll stick to the 32bits in the meantime, that will do while I test it, and I still have quite a lot to do (those careers have a lot of associated ressources !). Crossing fingers there won't be huge changes to career ressources soon™ ;)
  • SimGuruEugi's avatar
    SimGuruEugi
    Icon for EA Staff (Retired) rankEA Staff (Retired)
    8 years ago
    Just a heads up to anybody else that might be following this thread: this should be fixed as of the Vampires patch. Thanks!

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.14,390 PostsLatest Activity: 39 minutes ago