Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
manipulateanimalproduction [2017/04/06 10:15]
jdmfarms
manipulateanimalproduction [2017/05/24 14:27] (current)
Line 60: Line 60:
 end; end;
  
-addModEventListener(AnimalValues);​[/code]+addModEventListener(AnimalValues);​</code>
  
 [b]Step 2:[/b]  Place the script file in your map folder. See the attached snapshot for an example. This can be in the parent folder of the map or if the map has a '​scripts'​ subfolder, you can place it there. [b]Step 2:[/b]  Place the script file in your map folder. See the attached snapshot for an example. This can be in the parent folder of the map or if the map has a '​scripts'​ subfolder, you can place it there.
Line 66: Line 66:
 [b]Step 3:[/b]  Edit the map moddesc file to call the script file when the game loads. [b]Step 3:[/b]  Edit the map moddesc file to call the script file when the game loads.
 Place the following xml tag line (file path is important; depends on where you placed it in the parent folder or a subfolder): Place the following xml tag line (file path is important; depends on where you placed it in the parent folder or a subfolder):
-[code]<​sourceFile filename="​husbandry.lua"​ />[/code]+<code><​sourceFile filename="​husbandry.lua"​ /></code>
 in between the following brackets that should have other files being called already: in between the following brackets that should have other files being called already:
-[code]<​extraSourceFiles>​+<code><​extraSourceFiles>​
  
 </​extraSourceFiles></​code>​ </​extraSourceFiles></​code>​