Time to head into the factory. Go back to the hotel and just past it. Now to your left is the factory gate. Put your key into the top guy's hands, and turn the bottom key. Then pull the lever. When you go in, there's a five-way intersection. First go southwest (if you assume you're facing north coming into it). This is the main factory area. When you walk in, go straight left (from her viewpoint) into the engine room. Pull the chain to send a mouse-thing out. It starts the big wheel turning. Pull the lever to engage the rod.
Now go out to the center fountain and go northwest. Use the lever to get the container taken into the factory. Yup, back into the factory.
This time go far right (from her viewpoint). Activate the forklift so it takes the container into the center of the factory area. Now go in the door. Go behind the guy and use the pully to lower him. Now tlak to him to learn he is Oscar the train engineer. He needs feet. Take his punchcard from him and go out onto the shop floor.
Head up the stairs. Stop into the office area first, and go to the cabinet. Pull the book to spin the middle shelf. Listen to the music cylinder that's in it, then listen to the one you found in the coffin. You learn about the finding of the mammoth. Now you get both cylinders and the top of the toy too.
Go to the desk. Read her letter to Hans about the train, and about her debts.
OK, out of the office and up again to the control area. This is a ROYAL pain because it's not obvious what's going on. Put his punch card into the center slot. Activate switch #3 since that's the station you're on. I activated 2 too since he talked about the feet being XZ2005B. Now see the spinner on the lower left? That's choosing the type of wood! If you get it wrong you have to go all the way down to get the feet, then over to him to say they're wrong, then all the way back up here to start again. Cycle around until you get ot the one with the knot in it. Spin again to the brown wood one that's smooth. Hit again to the bark with the crack. Now hit again to the light birch color. That's the one you want. When you then use the lower right control to activate it, you'll see the bird head get the special wood, and that's how you know you did it right.
Go down onto the shop floor to the far right to get the legs. Take them back to the robot and give them to him, and he walks off to the train. You're done with the factory now.