A new TgSmush.dll

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderators: Darksaber, General_Trageton, Forceflow, DTM, JeremyaFr

Re: A new TgSmush.dll

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Sep 12, 2015 9:20 am

Yes it is.
XWAUCP v1.3 includes the latest version of the custom TgSmush.dll. The original TgSmush.dll is renamed TgSmushOrig.dll.

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Sep 13, 2018 4:00 pm

UPDATE
Hello,
I've updated the dll to remove the dependence on Visual C++ 2013 Runtime.
TgSmush.2.2.zip

Bman
Lieutenant
Posts: 844
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Sat Sep 15, 2018 1:24 am

Thanks Jeremy.
W-I-P: ISD-II, XQ-1 Platform1, (Imp) Escort Carrier, Misc, & TFTC.

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Apr 15, 2020 2:43 pm

Hello,

Here is a WIP version.
I've added support for mp4 files.

EDIT: link removed

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Apr 15, 2020 5:54 pm

JeremyaFr wrote:
Wed Apr 15, 2020 2:43 pm
Hello,

Here is a WIP version.
I've added support for mp4 files.


TgSmush_WIP.zip
Great stuff but XwaSnmConverter isn't updated though
So can't select the MP4 file to try and convert
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
Trevor
Ensign
Posts: 301
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Wed Apr 15, 2020 6:04 pm

If I read correctly you use .mp4 instead if .snm so conversion is not necessary?

Trev

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Apr 15, 2020 6:10 pm

Trevor wrote:
Wed Apr 15, 2020 6:04 pm
If I read correctly you use .mp4 instead if .snm so conversion is not necessary?

Trev
Possibly but the game needs to know where to look.
I can't see where there is the text file that links the movie names. Renaming just to SNM doesn't work
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Apr 15, 2020 6:13 pm

Hello,
XwaSnmConverter is a tool to convert snm files to avi or convert avi files to snm.
To play a video, you don't need to convert it to the snm format.
The TgSmush dll allow you to play snm, avi, wmv and mp4 videos.

Before a video is played (for instance "video.snm"), the dll searches a file with the same base name ("video") with an extension (in that order) avi, wmv, mp4, or znm. If such a file exists, it is played instead of the snm file.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Apr 15, 2020 6:35 pm

JeremyaFr wrote:
Wed Apr 15, 2020 6:13 pm
Hello,
XwaSnmConverter is a tool to convert snm files to avi or convert avi files to snm.
To play a video, you don't need to convert it to the snm format.
The TgSmush dll allow you to play snm, avi, wmv and mp4 videos.

Before a video is played (for instance "video.snm"), the dll searches a file with the same base name ("video") with an extension (in that order) avi, wmv, mp4, or znm. If such a file exists, it is played instead of the snm file.
Sorry to be a pain. I really should read the whole thread through first. :blush2:
I got it working using the method below. I had to create a false file with the Battle name in.
That's the correct way to do it right?
By just renaming the file MP4 Test to Battle7d didn't work.

Either way I got one to play and it was great! Can the video be any length and quality we need?
Keep on making your magic Jeremy :)
Bman wrote:
Thu Aug 21, 2014 7:38 am
Ok to test a custom video, say it's called Battle2.avi, one must create an empty file with same name but give it a .snm extention. So just create a new text file with nothing in it, save 0Kb, and rename it, i.e.--Battle2.txt to Battle2.snm with your Battle2.avi file in the .../Movies folder. Your custom video file should also be referenced correctly in the ...FrontRes/Cutscene folder, etc.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Apr 15, 2020 6:49 pm

Yes, you need to create an empty snm file.

The game checks whether an snm file exist to determine whether the video is in local Hard Drive or in the CD.

I think that this behavior can be changed. I know where the code is in the EXE.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Apr 15, 2020 6:59 pm

Brilliant stuff. It's given my later to do list a lot more to play with too now :)

If you want any extra work the old SNM Movie Player by Isildur is a little dodgy.
I expect you could knock up a new player in no time lol It's not important though as we can all see what the videos are in game :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Apr 15, 2020 8:14 pm

EDIT: link removed

The use of an empty snm file is no longer needed when you replace the snm file with an other format.

User avatar
Ace Antilles
Captain
XWAU Member
Posts: 3519
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Wed Apr 15, 2020 9:37 pm

JeremyaFr wrote:
Wed Apr 15, 2020 8:14 pm
TgSmush_WIP.zip

The use of an empty snm file is no longer needed when you replace the snm file with an other format.
Works PERFECT Jeremy!
I've just had it playing 3 mins of Return of the Jedi, it would have done more in full widescreen and in HD.
Plus there's no limit of how many cut scenes can be added afaik? More on the limit of how many missions can be added.
Another brilliant tool in the XWA modder arsenal :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Apr 16, 2020 8:56 am

There is no limit in "CUTSCENE.TXT". So the limit is the number of missions.

User avatar
JeremyaFr
Commander
XWAU Member
Posts: 2229
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Apr 16, 2020 12:45 pm

UPDATE

Hello,
I've merged the changes from the WIP version into the stable version.

I've uploaded TgSmush v2.3:
TgSmush.2.3.zip

Post Reply