SKYRIM
Critter - Simply script fixes by ReDragon
Skyrim » Bug Fixes
Added: 06/06/2016 - 11:27PM
Updated: 03/01/2017 - 01:04AM

416 Endorsements

6.0 Latest version

5,239 Unique D/Ls

10,866 Total D/Ls

26,769 Total Views

Uploaded by ReDragon2013

Description

Last updated at 1:04, 3 Jan 2017 Uploaded at 23:27, 6 Jun 2016

Critters are little animals which make your Skyrim to a living habitat. Moths, dragonflies, fireflies, bees and fishes need good working papyrus script files to spawn the critter objects, moving the critters around and cleaning up all critters without trouble. Since v5.5 my script improvements are very stabile and the result of two years papyrus learning, almost trial and error.  main sources: https://forums.nexusmods.com/index.php?showtopic=4877010

  Relations

  [critterSpawn / critterSpawn01]   activator placed in the world to spawn critters
                    |
               [critter]  as parent script
                    |
         ------------------------------------------------------
         |                    |                         |                |
  [critterFish]  [critterDragonFly]  [critterMoth]  [FireFly]   are child scripts
                                                         |
                              [DLC1CritterFollowSCRIPT]   is a grand child script (in my version)

 Content (10 scripts) as replacement for vanilla scripts
  It should work for every Skyrim version, also Skyrim SE

  Install

 Copy all 10 scripts into the folder "scripts" of your Skyrim installation. You don't have to start a new game.
 If you run my scripts for the first time on existing savegame (best way so far), use fast travel to unload/remove
 older script instances as fast as possible. If you get in trouble caused by the scripts, let me know.
 
  UnInstall

 Go inside a house and wait here for 10 seconds. After that make a new savegame, leave the game and remove all 10 scripts.
 Next time you run Skyrim use this savepoint to continue with your gameplay.


Papyrus - good to know:

  1. Persistence - avoid long-running functions and minimize the using of properties like actor, objectReference
      http://www.creationkit.com/index.php?title=Persistence_%28Papyrus%29

  2. Threading - "If two objects want to operate on a third object, a race ensues. Which is killed by synchronization, allowing awesomeness to continue."
      http://www.creationkit.com/index.php?title=Threading_Notes_%28Papyrus%29

  3. States - "name of the state to enter is not case-sensitive. If you want to go to the 'empty state', simply use" gotoState("").
      But be careful by comparing of state names with strings.
     http://www.creationkit.com/index.php?title=States_(Papyrus)

  4. Performance - "Unlike most other languages, Papyrus has some special architectural choices that make performance sometimes non-intuitive."
      Keep in mind next was written for the game 'FallOut 4', which is a bit different to Skyrim papyrus scripting.
      http://www.creationkit.com/fallout4/index.php?title=Performance_%28Papyrus%29

  5.  Complexity - Joel Burgess wrote: "We wanted a complex scripted system, .. to culturally show the studio what wonderful things were possible.."
      http://blog.joelburgess.com/2012/03/gdc-2012-transcript-pursuing-elegance.html

  6. 16bit string count limit -  Skyrims save file format may responsible for savegames to become unloadable
      https://forums.nexusmods.com/index.php?/topic/3924850-corrupt-saves-strcount-0xffff-ctd-on-load/