Jump to content

Getting Custom TV Animation to Work Properly


lyosea

Recommended Posts

So I've always wanted to make my own texture for the television animation that fallout 4 uses and I simply got it to display pretty good in the creation kit model preview. I simply took the existing atom bomb tv commercial from the first quest, re-textured it with my favorite tv show arthur as a kid, made a copy of the regular tv model, opened that in nifskope, change the file path from the original effects folder to the new one, put the new model through elrich to make sure it was all good, then loaded it up in the creation kit.

 

So far so good. All the animations are the same as the original tv model. I figure it's easy road from here. Also quick note, my custom quest is entitled "MovieTheaterScreenBostonSquareQuest01"

 

But apparently NOPE.JPG. things didn't turn out as planned ð

 

Now from what I understand, to get the tv to display just like in the first quest (MQ101TVStation), you have to use a script used in the quest called MQ101TVStationScript. So I figured okay well it simply uses a alias PlayerTV, so i'll make a alias PlayerTV in my new quest.

The MQ101TVStationScript being this:

 

 

Scriptname MQ101TVStationScript extends Quest
ReferenceAlias Property PlayerTV Auto
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
If akSource == PlayerTV.GetRef() && asEventName == "comEnd"
SetStage(5)
UnregisterForAnimationEvent(akSource, asEventName)
EndIf
EndEvent
Function PlayWeatherLine01()
PlayerTV.GetRef().PlayAnimation("LineWeather")
EndFunction
Function PlayWeatherLine02()
PlayerTV.GetRef().PlayAnimation("LineColdFront")
EndFunction
Function PlayWeatherLine03()
PlayerTV.GetRef().PlayAnimation("LineTemp52")
EndFunction
Function PlayRantLine01()
PlayerTV.GetRef().PlayAnimation("LineOverseas")
EndFunction
Function PlayRantLine02()
PlayerTV.GetRef().PlayAnimation("LineJamboree")
EndFunction
Function PlayRantLine03()
PlayerTV.GetRef().PlayAnimation("LineHellcats")
EndFunction
Function PlaySportsLine01()
PlayerTV.GetRef().PlayAnimation("LineSports")
EndFunction
Function PlaySportsLine02()
PlayerTV.GetRef().PlayAnimation("LineBaseball")
EndFunction
Function PlaySportsLine03()
PlayerTV.GetRef().PlayAnimation("LineSultans")
EndFunction
Function PlaySportsLine04()
PlayerTV.GetRef().PlayAnimation("Line1918")
EndFunction
Function PlayNewsLine01()
PlayerTV.GetRef().PlayAnimation("LineChina")
EndFunction
Function PlayNewsLine02()
PlayerTV.GetRef().PlayAnimation("LineStalemate")
EndFunction
Function PlayNewsLine03()
PlayerTV.GetRef().PlayAnimation("LineDiplomacy")
EndFunction
Function PlayNukeLine01()
PlayerTV.GetRef().PlayAnimation("LineLost")
EndFunction
Function PlayNukeLine02()
PlayerTV.GetRef().PlayAnimation("LineConfirmed")
EndFunction
Function PlayNukeLine03()
PlayerTV.GetRef().PlayAnimation("LineOhGod")
EndFunction
And after you set the script in the scripts tab you then put this in the main papyrus compiler:
;play commcercial at first, then transition to news
kmyquest.RegisterForAnimationEvent(Alias_PlayerTV.GetRef(), "comEnd")
Alias_PlayerTV.GetRef().playAnimation ("com")
;disable the radio transmitter
Alias_TVStation.GetRef().Disable()

 

 

Now I got rid oof the last two lines for my quest because I don't need those for my quest. But then I get this error in the main quest compiler...

 

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4

Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E"...
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,0): variable kmyquest is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,35): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,50): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,9): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,0): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,15): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,24): void is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,0): variable kmyquest is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,35): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,50): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,9): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,0): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,15): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,24): void is not a known user-defined script type
No output generated for Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E
I am at a total loss on what to do. Are the animations for the model somehow tied too the main quest?
Link to comment
Share on other sites

What is the "main papyrus compiler" ? ... Do you maybe mean the script fragment attached to a run on start flagged quest stage ?

 

If you are putting lines into different script you need to define and link the objects/forms they are acting on (kmyquest or Alias_PlayerTV ) in the [Properties] button.

Link to comment
Share on other sites

 

So I've always wanted to make my own texture for the television animation that fallout 4 uses and I simply got it to display pretty good in the creation kit model preview. I simply took the existing atom bomb tv commercial from the first quest, re-textured it with my favorite tv show arthur as a kid, made a copy of the regular tv model, opened that in nifskope, change the file path from the original effects folder to the new one, put the new model through elrich to make sure it was all good, then loaded it up in the creation kit.

 

So far so good. All the animations are the same as the original tv model. I figure it's easy road from here. Also quick note, my custom quest is entitled "MovieTheaterScreenBostonSquareQuest01"

 

But apparently NOPE.JPG. things didn't turn out as planned ð

 

Now from what I understand, to get the tv to display just like in the first quest (MQ101TVStation), you have to use a script used in the quest called MQ101TVStationScript. So I figured okay well it simply uses a alias PlayerTV, so i'll make a alias PlayerTV in my new quest.

The MQ101TVStationScript being this:

 

 

Scriptname MQ101TVStationScript extends Quest
ReferenceAlias Property PlayerTV Auto
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
If akSource == PlayerTV.GetRef() && asEventName == "comEnd"
SetStage(5)
UnregisterForAnimationEvent(akSource, asEventName)
EndIf
EndEvent
Function PlayWeatherLine01()
PlayerTV.GetRef().PlayAnimation("LineWeather")
EndFunction
Function PlayWeatherLine02()
PlayerTV.GetRef().PlayAnimation("LineColdFront")
EndFunction
Function PlayWeatherLine03()
PlayerTV.GetRef().PlayAnimation("LineTemp52")
EndFunction
Function PlayRantLine01()
PlayerTV.GetRef().PlayAnimation("LineOverseas")
EndFunction
Function PlayRantLine02()
PlayerTV.GetRef().PlayAnimation("LineJamboree")
EndFunction
Function PlayRantLine03()
PlayerTV.GetRef().PlayAnimation("LineHellcats")
EndFunction
Function PlaySportsLine01()
PlayerTV.GetRef().PlayAnimation("LineSports")
EndFunction
Function PlaySportsLine02()
PlayerTV.GetRef().PlayAnimation("LineBaseball")
EndFunction
Function PlaySportsLine03()
PlayerTV.GetRef().PlayAnimation("LineSultans")
EndFunction
Function PlaySportsLine04()
PlayerTV.GetRef().PlayAnimation("Line1918")
EndFunction
Function PlayNewsLine01()
PlayerTV.GetRef().PlayAnimation("LineChina")
EndFunction
Function PlayNewsLine02()
PlayerTV.GetRef().PlayAnimation("LineStalemate")
EndFunction
Function PlayNewsLine03()
PlayerTV.GetRef().PlayAnimation("LineDiplomacy")
EndFunction
Function PlayNukeLine01()
PlayerTV.GetRef().PlayAnimation("LineLost")
EndFunction
Function PlayNukeLine02()
PlayerTV.GetRef().PlayAnimation("LineConfirmed")
EndFunction
Function PlayNukeLine03()
PlayerTV.GetRef().PlayAnimation("LineOhGod")
EndFunction
And after you set the script in the scripts tab you then put this in the main papyrus compiler:

;play commcercial at first, then transition to news
kmyquest.RegisterForAnimationEvent(Alias_PlayerTV.GetRef(), "comEnd")
Alias_PlayerTV.GetRef().playAnimation ("com")
;disable the radio transmitter
Alias_TVStation.GetRef().Disable()

 

 

Now I got rid oof the last two lines for my quest because I don't need those for my quest. But then I get this error in the main quest compiler...

 

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4

Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E"...
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,0): variable kmyquest is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,35): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,50): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(7,9): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,0): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,15): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(8,24): void is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,0): variable kmyquest is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,35): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,50): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(17,9): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,0): variable Alias_PlayerTV is undefined
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,15): none is not a known user-defined script type
C:\Users\Lyosea\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_MovieTheaterScreenBostonS_01200B3E.psc(18,24): void is not a known user-defined script type
No output generated for Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on Fragments:Quests:QF_MovieTheaterScreenBostonS_01200B3E
I am at a total loss on what to do. Are the animations for the model somehow tied too the main quest?

 

When I said main papyrus I just meant the papyrus box on the quest stages tab. But yeah i'll try and link it to a different form.

Link to comment
Share on other sites

Have you looked at:

VIdeos of the Wasteland?

More stuff than you require, but allows adding custom vids/animations.

Anyway, there's a method there, mostly abandoned completed mod- see if it offers any deeper insights once you're rolling with what you've got going. :teehee:

There is a whole section on (their method) of converting videos for the Radiation King screens.

Personally, I always felt there should be random cr@p / static etc, on half the dead screens all around the wasteland (which VotW hoped to but didn't get around to providing).

Maybe like lootable crates and just overlay their tv screen with your tv screen 1% larger or +1 unit in z axis. o_O

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...