Changes

Jump to navigation Jump to search
7,005 bytes added ,  21:34, 21 June 2022
no edit summary
Line 1: Line 1:  
← [[Modding:Index]]
 
← [[Modding:Index]]
   −
==Associated files location==
+
=Associated files location=
    
All the sprites for the farmer are stored in "Content/Characters/Farmer". The main sprite for the male farmer is "farmer_base.xnb" and for the female farmer is "farmer_girl_base.xnb".
 
All the sprites for the farmer are stored in "Content/Characters/Farmer". The main sprite for the male farmer is "farmer_base.xnb" and for the female farmer is "farmer_girl_base.xnb".
   −
==Layers==
+
=Layers=
    
The farmer sprite is drawn in several layers. On the bottom layer is the head, torso, and boots. The clothing, accessories, hair, and others are all drawn in multiple layers on top in this order:
 
The farmer sprite is drawn in several layers. On the bottom layer is the head, torso, and boots. The clothing, accessories, hair, and others are all drawn in multiple layers on top in this order:
Line 46: Line 46:     
Note: It seems strange that hairstyle 7 would change to 30, so it may actually stay the same.
 
Note: It seems strange that hairstyle 7 would change to 30, so it may actually stay the same.
 +
 +
=Sprite Index Breakdown=
 +
 +
As mentioned above, the pants, head/torso/boots, and arms all appear to line up. As all of the following information was tested specifically for pants, the illustrations will cover pants, but it most likely also covers head/torso/boots and arms.
 +
 +
The notation used here is R1F1 = Row 1 Frame 1
, and so on. In the code (which is located in FarmerSprite.cs), frame numbers are 0-indexed and go in order, so these would need to be converted. In these notes, down refers to the farmer facing downwards (towards the screen), while up refers to the farmer facing upwards (away from the screen). Left and right are from the perspective of the player (screen left/screen right). As the left and right animations are universally mirror images of each other, they are always combined. The player facing to the right is the unflipped sprite, while facing left is flipped.
 +
 +
For the accompanying images, as they are quite large, they are displayed at small size, but if you click through you can see them larger. The male farmer side is greyed out, as this analysis was conducted with the female farmer base, but it should be exactly analogous. There is an extra small sprite at the bottom for the pants item inventory sprite.
 +
 +
==Farmer Movement==
 +
 +
===Walking===
 +
Walking, down: R1F1, R1F2, R1F3, repeat
 +
 +
Walking, left and right: R2F1, R2F2, R2F3, repeat
 +
 +
Walking, up: R3F1, R3F2, R3F3, repeat
 +
 +
[[File:Walking sprites.png|50px]]
 +
 +
===Running===
 +
Running, down: R1F1, R1F2, R4F1, R1F2, R1F1, R1F3, R4F2, R1F3, repeat
 +
 +
Running, left and right: R2F1, R4F4, R3F6, R2F1, R4F3, R2F6, repeat
 +
 +
Running, up: R3F1, R3F2, R4F5, R3F1, R3F3, R4F6, repeat
 +
 +
[[File:Running sprites.png|50px]]
 +
 +
===Harvesting===
 +
Harvesting down: R10F1, R10F2, R10F3, R10F4
 +
 +
Harvesting left and right: R10F5, R10F6, R11F1, R11F2
 +
 +
Harvesting up: R11F3, R11F4, R11F5, R11F6
 +
 +
[[File:Harvesting sprites.png|50px]]
 +
 +
===Eating and Drinking===
 +
Eating and drinking always take place with the farmer facing the screen (down).
 +
 +
Eating: R15F1, R15F2, R15F3, R15F4, R15F5, R15F4, R15F5, R15F4
 +
 +
[[File:Eating sprites.png|50px]]
 +
 +
Drinking: R16F1, R16F2, R16F3, R16F4, R16F3, R16F4, R16F3, R16F4, R16F2, R16F1
 +
 +
[[File:Drinking sprites.png|50px]]
 +
 +
===Horse Riding===
 +
Horse riding down: R18F6
 +
 +
Horse riding left/right: R18F5
 +
 +
Horse riding up: R19F6
 +
 +
===Sitting===
 +
Sitting down: R18F6
 +
 +
Sitting left and right: R20F4
 +
 +
Sitting up: R19F6
 +
 +
==Farmer Basic Tool and Weapon Use==
 +
 +
===Heavy Tools===
 +
Axe/pickaxe/hoe/club special down: R12F1, R12F2, R12F3, R12F4, R12F5, cycles once
 +
 +
Axe/pickaxe/hoe/club special left and right: R9F1, R9F2, R9F3, R9F4, R9F5, cycles once
 +
 +
Axe/pickaxe/hoe/club special up: R7F1, R7F2, R7F3, R11F4, R11F3, cycles once
 +
 +
===Scythe/Melee Weapons===
 +
Scythe/melee down: R5F1, R5F2, R5F3, R5F4, R5F5, R5F6, cycles once
 +
 +
Scythe/melee left and right: R6F1, R6F2, R6F3, R6F4, R6F5, R6F6, cycles once
 +
 +
Scythe/melee up: R7F1, R7F2, R7F3, R7F4, R7F5, R7F6, cycles once
 +
 +
===Watering Can===
 +
Watering down: R10F1, R10F2, R5F2, cycles once
 +
 +
Watering left and right: R10F5, R10F6, R8F4, cycles once
 +
 +
Watering up: R11F3, R11F4, R8F5, cycles once
 +
 +
===Sword Block===
 +
Sword sp. down: R5F5, held
 +
 +
Sword sp. left and right: R6F5, held
 +
 +
Sword sp. up: R7F5, held
 +
 +
===Slingshot===
 +
Note: I think the slingshot arms are weird. They certainly look weird, and I think they break the normal grid pattern.
 +
 +
Slingshot down: R8F1
 +
 +
Slingshot left and right: R8F2
 +
 +
Slingshot up: R8F3
 +
 +
==Fishing==
 +
 +
===Casting===
 +
This is when the farmer is throwing out a line (holding down the mouse while the bar over the farmer's head fills/shrinks), plus the animation right after the mouse is un-pressed.
 +
 +
Casting down: R12F1, held, then rest of heavy tool animation
 +
 +
Casting left and right: R9F1, held, then R9F2, R9F3, R9F4, R9F5
 +
 +
Casting up: R15F5, held, then R7F3, R11F4, R11F3, repeat last two
 +
 +
===Fishing===
 +
This is when the farmer has a line out, and is waiting for a bite.
 +
 +
Fishing down: R12F5, held
 +
 +
Fishing left and right: R15F6, held
 +
 +
Fishing up: R8F3, held
 +
 +
===Reeling===
 +
This is when the farmer is playing the minigame.
 +
 +
Reeling down: R12F1, held
 +
 +
Reeling left and right: R9F1, held
 +
 +
Reeling up: R7F1, held
 +
 +
===Fish Caught===
 +
This is after the player has caught a fish, going from the reeling position to holding up a fish for display.
 +
 +
Fish caught down: R13F3, R10F4, R15F1
 +
Fish caught left and right: R13F1, then farmer switches to down R10F4, R15F1
 +
Fish caught up: R13F5, then farmer switches to down, R10F4, R15F1
 +
 +
==Farmer Other Tool Use==
 +
 +
===Panning===
 +
Panning only ever occurs with the farmer facing down (towards the screen).
 +
 +
Panning down: R21F4, R21F5, R21F4, R21F6, repeat 3x, R21F4, R21F5, R21F4
 +
 +
===Milking===
 +
Milking down: R10F1, R10F2, repeats twice total
 +
 +
Milking left/right: R10F5, R10F6, repeats twice total
 +
 +
Milking up: R11F3, R11F4, repeats twice total
 +
 +
===Shearing===
 +
Shearing down: R14F1, R14F2, repeats twice total
 +
 +
Shearing left/right: R14F3, R14F4, repeats twice total
 +
 +
Shearing up: R14F5, R14F6, repeats twice total
 +
 +
==Farmer Miscellaneous Movement==
 +
 +
===Passing Out===
 +
This seems to be the same animation both for passing out due to low energy, passing out due to 2:00 AM, and passing out due to low health, but I have not confirmed the last one.
 +
 +
Passing out: R3F5, R1F1, R3F5, R1F5, R1F6
 +
 +
===Barfing===
 +
This occurs after eating something poisonous.
 +
 +
Barfing: R18F3, R18F4, repeat several times
 +
 +
===Kissing===
 +
This is used in the wedding, for kissing your spouse, and in a couple cutscenes.
 +
 +
Kissing: R17F6
 +
 +
===Flower Dance===
 +
You can either be facing down or up, depending on which NPCs you ask to dance.
 +
 +
Flower dance down: R1F1, R1F5, repeat, R1F1, R1F4, repeat
 +
 +
Flower dance up: R3F1, R3F2, R3F1, R3F3, repeat at various speeds
 +
 +
==Farmer in Cutscenes==
 +
There are a variety of farmer frames and animations that are used in different cutscenes. Many of them are used in more than one cutscene, but a few are specific. Here, absolute frame numbers are used instead of the row/frame notation.
 +
 +
Reaching (used in Haley darkroom, George remote events): 15
 +
 +
Sitting down, sad (used in Alex sad mother event): 95
 +
 +
Looking sad/pensive (used in Abigail video game failure): 96
 +
 +
Head scratching/looking sheepish (used in Abigail video game event, several others): 97
 +
 +
Playing the harp (used in Abigail flute scene): 98, 99, 100
 +
 +
Laughing (used in various cutscenes): 102, 103
 +
 +
Turning green and looking sick: (used in Penny’s cooking, Wizard potion): 104, 105
 +
 +
Opening a jar (used in Haley jar event): 111, 112
 +
 +
==Bathing Suit==
 +
Each pants .png has its own bathing suit so that the bathing suit color reflects the pants color.
 +
 +
Bathing suit walking down: R19F1, R19F2, R19F3
 +
 +
Bathing suit walking left/right: R20F1, R20F2, R20F3
 +
 +
Bathing suit walking up: R21F1, R21F2, R21F3
 +
 +
==Unknown Frames==
 +
 +
There are 7 frames I was not able to identify, shown below including the head/torso/boots and arms, along with the frame index. The last two may be used in the strength test game at the Fall Fair.
 +
 +
[[File:Unknown_Sprites.png|600px]]
    
[[Category:Modding]]
 
[[Category:Modding]]
    
[[ru:Модификации:Спрайт фермера]]
 
[[ru:Модификации:Спрайт фермера]]
249

edits

Navigation menu