Welcome to
Mod The Sims
Online: 1171
News:
Have an account? Sign in:
pass:
If you don't have an account, why not sign up now? It's free!
Other sites: SimsWiki
Reply  Replies: 2 (Who?), Viewed: 1980 times.
Search this Thread
Old 22nd Sep 2017, 5:34 PM DefaultUpdating BHAV that was in the middle of running on lot save #1
Lamare
Original Poster

just a girl

Join Date: Jan 2014
Posts: 645
Thanks: 3338 in 26 Posts
16 Achievements


Say, I modified an interaction that was taking place when I saved. I guess, the game doesn't like when BHAV code changes in the middle of it running. I've observed such effects as object reset, flashing blue, weird animation, displaced parts, and worse -- game crash on lot load. Is there a way to prevent these problems?

Assorted mods: Moving out and job options
Apartment rent agreement mod - fresh update
Testers wellcome on Electrical box & Fertile land
Functional sofa bed is ready to be tested as well
Old 23rd Sep 2017, 4:06 PM #2
Chris Hatch
Lab Assistant

Join Date: Dec 2005
Posts: 201


I do that often and never had it cause a crash or flashing blue. When the lot saves the current running op-codes are also saved so somtimes changes aren't immediate, if the changes change the 'tree' that is branches added, changed or removed then the game will usually reset that item (and any sims using it) which is probably the safest outcome.
Almost always an op-code is saved during an idle period or animation because they take time while the rest runs by so quickly it's unlikely to be at any other point when you save. If you keep those idle and animations at the same line numbers so it can come out of them at the same point it went in when saved you may get a better result.
Old 30th Sep 2017, 12:35 PM #3
Lamare
Original Poster

just a girl

Join Date: Jan 2014
Posts: 645
Thanks: 3338 in 26 Posts
16 Achievements


So spaghetti code really is a necessity When it comes to updating old stuff, anyway.
I've tested this on my bed related mod and it had no side effects at all.


Will test some more in different circumstances and diff. mods, but so far so good. Thank you, Chris. This rule should be somewhere in a 'must read' section for all modders.

Assorted mods: Moving out and job options
Apartment rent agreement mod - fresh update
Testers wellcome on Electrical box & Fertile land
Functional sofa bed is ready to be tested as well
Last edited by Lamare : 30th Sep 2017 at 12:46 PM.
Reply


Section jump:


Powered by MariaDB Some icons by http://dryicons.com.