Aller au contenu

Photo

Triggering cutscenes from the in-game console.


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Villainsoft

Villainsoft
  • Members
  • 12 messages
Does anyone know whether there is a console function to "play" a cutscene (.CUT) using its name?

ie. play <sequence001.cut>

This would help QA'ing cutscenes without having to manually trigger the related scripts (ie. quests, user actions etc)

#2
EJ42

EJ42
  • Members
  • 723 messages
It's highly unlikely. I can look into it, but it probably works the same as items. Since they're all stored as "resources", which can only be referenced as literals in your code, you wouldn't be able to provide a resource name on the fly.



There may be a way to manually edit a GDA file to add the cutscenes you want, but you'd have to restart the game each time you want to change one.

#3
FergusM

FergusM
  • Members
  • 460 messages
You should use the command line parameters. If you right click -> properties on your shortcut to the game (or go to properties, launch options on Steam) and add -autologin=single player -runcutscene=blah.cut to the end of the target (outside of quotes), the game will load up and play your cutscene.

#4
EJ42

EJ42
  • Members
  • 723 messages

FergusM wrote...

You should use the command line parameters. If you right click -> properties on your shortcut to the game (or go to properties, launch options on Steam) and add -autologin=single player -runcutscene=blah.cut to the end of the target (outside of quotes), the game will load up and play your cutscene.

That does work, but the game doesn't seem to exit cleanly after that.

One possibility is to create your own script that you can call from the console, and add parameters to call your own cutscenes specifically.  The only issue would be that you need to add a new line to the script, and re-export it whenever you create new cutscenes.  That should be a very minor issue, though, since you're already in the toolset when you make the new cutscene.

In hindsight, the command-line would probably be more useful for editing individual cutscenes, since you have to reload the game after changes anyway.  The script would be better if you want to test multiple cutscenes in one run.

Modifié par EJ42, 09 janvier 2010 - 10:27 .