Alas, that time seems over. My tie-in novels are by far the lowest "advances" I receive, and I collect no royalties. The new attitude seems to be, "It's a career builder. It'll get your name out there. You're lucky to be attached to us." That being said...
Historically, such publishers were supposed to pay you much more for this. After all, you are deprived of all rights to your work.