Changes

→‎Custom movies: expand & tweak to keep new fields together
Line 6,330: Line 6,330:  
<dl>
 
<dl>
 
<dt>Movie selection</dt>
 
<dt>Movie selection</dt>
<dd><p>Movies were previously selected based on a specific ID pattern: <samp>spring_movie_0</samp> would play in spring the year you built the movie theater, <samp>spring_movie_1</samp> would play in spring the next year, etc.</p>
+
<dd><p>Movies were previously selected based on a specific ID pattern: <samp>spring_movie_0</samp> would play in spring the year you built the movie theater, <samp>spring_movie_1</samp> would play in spring the next year, etc. That meant it'd take two in-game years to see the first custom movie, and ID conflicts had to be managed manually.</p>
   −
Movies are now selected based on the three new fields below instead. If multiple movies can play in the same season, each movie will be shown for an equal block of days within the month (e.g. four movies will each play for seven consecutive days). If there are more movies than days, 28 movies will be chosen at random to play that month.
+
In 1.6, we can now have multiple movies per month based on the new fields listed below. If multiple movies can play in the same season, each movie will be shown for an equal block of days within the month (e.g. four movies will each play for seven consecutive days). If there are more movies than days, 28 movies will be chosen at random to play that month.</dd>
 +
 
 +
<dt>New data fields</dd>
 +
<dd>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 6,357: Line 6,360:  
"YearRemainder": 1
 
"YearRemainder": 1
 
</syntaxhighlight>
 
</syntaxhighlight>
|}
  −
</dd>
  −
  −
<dt>Movie textures</dt>
  −
<dd>
  −
The new <samp>Texture</samp> field in <samp>Data/Movies</samp> lets mods use their own movie spritesheet to avoid conflicts with other mods:
  −
{| class="wikitable"
  −
|-
  −
! field
  −
! effect
   
|-
 
|-
 
| <samp>Texture</samp>
 
| <samp>Texture</samp>
Line 6,373: Line 6,366:  
This must be a spritesheet with one 490×128 pixel row per movie. A 13×19 area in the top-left corner of the row should contain the movie poster. With a 16-pixel offset from the left edge, there should be two rows of five 90×61 pixel movie screen images, with a six-pixel gap between each image. (The movie doesn't need to use all of the image slots.)
 
This must be a spritesheet with one 490×128 pixel row per movie. A 13×19 area in the top-left corner of the row should contain the movie poster. With a 16-pixel offset from the left edge, there should be two rows of five 90×61 pixel movie screen images, with a six-pixel gap between each image. (The movie doesn't need to use all of the image slots.)
 
|}
 
|}
 
+
</dd>
The existing <samp>SpriteIndex</samp> field is now an index within that texture.</dd>
      
<dt>Asset changes</dt>
 
<dt>Asset changes</dt>
translators
8,404

edits