Function; playAnimatic - HWRM/KarosGraveyard GitHub Wiki
.campaign files
playAnimatic
- arg1: path to animatic lua file
- arg2: 0 or 1, esc takes you to leave animation, no continue
- arg3: 0 or 1, re-enables UI after finished
Comments
Page Status
Updated Formatting? Initial
Updated for HWRM? Initial
What format should my .webm's be?
The codec, resolution, sample rate, bitrate must be EXACTLY what homeworld has them for it's .webm's, as you'll start to see strange behavior like the audio track warping or looping.
Uploading an animation as part of your mod
Wanna add a cool intro to your mod? Got a custom campaign with some fresh animatics? Just use the WorkshopTool right? Na. Well kinda.
First, create your mod using WorkshopTool and upload it. Retrieve the mod id (from it's URL) and note it down.
Update your path to the animatic to filenameV = "data:../../../../workshop/content/244160/xxxxxxxxx/Intro.webm",
by replacing xxxxxxxxx
with the ID you retrieved above
Update it again....
Next get steamcmd. In my case, I created a folder called steamcmd at C:/ and put in in there
Then create a file called example_file_name.vdf
Inside, make it look like this
"workshopitem"
{
"appid" "244160"
"publishedfileid" "xxxxxxxx"
"contentfolder" "C:\\steamcmd\\hw"
"previewfile" "C:\\steamcmd\\hw\\preview.png"
"visibility" "0"
"title" "your title"
"description" "for testing"
"changenote" "new updator"
}
Then ensure steam has downloaded the mod, and run the launcher.
Then get the mod from C:\Program Files (x86)\Steam\steamapps\common\Homeworld\HomeworldRM\DataWorkshopMODs\76561198073061232\xxxxxxxxx
Paste it into the same directory as you've set the contentfolder
in the example_file_name.vdf
file, and also drop in all your .webm's.
Then run steamcmd, type login
(and fill in your username/password/steamauth)
Then type workshop_build_item example_file_name.vdf