HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Custom Movies

12-10-2002, 12:58 PM#1
thegnome
Hi !
I have got a question... 8)
First: Sorry for my English... I'm from Germany... emote_sweat
I want to add to my W3 custom movies... I know that they are in the Divx format. I already replaced a movie by a new one (:D ). It worked.
But:
How can I edit the blizzrard.j so that i can add new movies (without replacing anyone from blizzard).
I edited the worldeditstrings.txt and the triggerstrings.txt (I think...) correctly, but I dont know how to edit the blizzard.j.
I hope you can help me :D :foot:
Gnome

:ggani:Kill me for my english !!!!:ggani:
12-11-2002, 03:21 AM#2
DKSlayer
As far as I know you do not have to edit the Blizzard.j for this. I am not sure but I am sure someone in the Map Development forum would know how to do that so I will move it there so you get a quick answer.
Good Luck
DKSlayer
12-11-2002, 05:01 AM#3
Insaniteus
Damn, now THERE is an idea. If you can get this to work right, I will steal it for sure!

PS: Don't worry about your English, it's fine. Most of the locals here have worse grammer than the average foreigner anyway lol.

-Insaniteus-
12-11-2002, 01:44 PM#4
thegnome
thanks !
i searched for the strings... i think i have to edit them.
here is a list, i hope somebody can help me now :D :

Quote:
worldeditstrings.txt

// Cinematic Index
WESTRING_CINEMATICTYPE_TOP="Tutorial-Introvideo"
WESTRING_CINEMATICTYPE_HOP="Menschen-Introvideo"
WESTRING_CINEMATICTYPE_HED="Menschen-Schlussvideo"
WESTRING_CINEMATICTYPE_UED="Untoten-Schlussvideo"
WESTRING_CINEMATICTYPE_OED="Orc-Schlussvideo"
WESTRING_CINEMATICTYPE_NED="Nachtelfen-Schlussvideo"

triggerdata.txt

// Cinematic Index
CinematicIndexTOP=cinematicindex,bj_CINEMATICINDEX_TOP,WESTRING_CINEMATICTYPE_TOP
CinematicIndexHOP=cinematicindex,bj_CINEMATICINDEX_HOP,WESTRING_CINEMATICTYPE_HOP
CinematicIndexHED=cinematicindex,bj_CINEMATICINDEX_HED,WESTRING_CINEMATICTYPE_HED
CinematicIndexUED=cinematicindex,bj_CINEMATICINDEX_UED,WESTRING_CINEMATICTYPE_UED
CinematicIndexOED=cinematicindex,bj_CINEMATICINDEX_OED,WESTRING_CINEMATICTYPE_OED
CinematicIndexNED=cinematicindex,bj_CINEMATICINDEX_NED,WESTRING_CINEMATICTYPE_NED

blizzard.j

// Cinematic indexing constants
constant integer bj_CINEMATICINDEX_TOP = 0
constant integer bj_CINEMATICINDEX_HOP = 1
constant integer bj_CINEMATICINDEX_HED = 2
constant integer bj_CINEMATICINDEX_OOP = 3
constant integer bj_CINEMATICINDEX_OED = 4
constant integer bj_CINEMATICINDEX_UOP = 5
constant integer bj_CINEMATICINDEX_UED = 6
constant integer bj_CINEMATICINDEX_NOP = 7
constant integer bj_CINEMATICINDEX_NED = 8

//=============================================
function SetCinematicAvailableBJ takes boolean available, integer cinematicIndex returns nothing
if ( cinematicIndex == bj_CINEMATICINDEX_TOP ) then
call SetOpCinematicAvailable( bj_CAMPAIGN_INDEX_T, available )
call PlayCinematic( "TutorialOp" )
elseif (cinematicIndex == bj_CINEMATICINDEX_HOP) then
call SetOpCinematicAvailable( bj_CAMPAIGN_INDEX_H, available )
call PlayCinematic( "HumanOp" )
elseif (cinematicIndex == bj_CINEMATICINDEX_HED) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_H, available )
call PlayCinematic( "HumanEd" )
elseif (cinematicIndex == bj_CINEMATICINDEX_OOP) then
call SetOpCinematicAvailable( bj_CAMPAIGN_INDEX_O, available )
call PlayCinematic( "OrcOp" )
elseif (cinematicIndex == bj_CINEMATICINDEX_OED) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_O, available )
call PlayCinematic( "OrcEd" )
elseif (cinematicIndex == bj_CINEMATICINDEX_UOP) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_U, available )
call PlayCinematic( "UndeadOp" )
elseif (cinematicIndex == bj_CINEMATICINDEX_UED) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_U, available )
call PlayCinematic( "UndeadEd" )
elseif (cinematicIndex == bj_CINEMATICINDEX_NOP) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_N, available )
call PlayCinematic( "NightElfOp" )
elseif (cinematicIndex == bj_CINEMATICINDEX_NED) then
call SetEdCinematicAvailable( bj_CAMPAIGN_INDEX_N, available )
call PlayCinematic( "NightElfEd" )
else
// Unrecognized cinematic - ignore the request.
endif
endfunction

This is everything i've found about cinematics... 8)
please help me... :infth:
12-13-2002, 01:57 AM#5
Draco
yis, yer grammare is bettter than most poeple 'round these parts. lol :)
12-26-2002, 10:22 PM#6
thegnome
can nobody help me ?
is here nobody who understands this JASS ?
Please help me... :(
12-30-2002, 08:17 AM#7
Electromancer
Im not exactly the best at this kinda stuff, but im guessing your best bet would be something like this:

worldeditstrings.txt
// Cinematic Index
WESTRING_CINEMATICTYPE_(made up 3 letter code)="(Your video name)"

triggerdata.txt
// Cinematic Index
CinematicIndex(your 3 letter code)=cinematicindex,bj_CINEMATICINDEX_(your 3 letter code),WESTRING_CINEMATICTYPE_(your 3 letter code)

blizzard.j
// Cinematic indexing constants
constant integer bj_CINEMATICINDEX_(your 3 letter code) = (next number)

function SetCinematicAvailableBJ takes boolean available, integer cinematicIndex returns nothing
if ( cinematicIndex == bj_CINEMATICINDEX_(your 3 letter code) ) then
call SetOpCinematicAvailable( bj_CAMPAIGN_INDEX_(first letter of 3 letter code), available )
call PlayCinematic( "(your video name)" )

I bet this isnt right, but hey maybe it is. Give it a shot and see if you can get it work. I kinda just applied what i know about spell editing. I hope this helps. Just add these on to the end. And to find out how to get them running, just check in the campaign files in the war3.mpq.
12-31-2002, 12:51 PM#8
thegnome
@archersRcheap:
I tryed this and many other things
If you do nothing wrong you get no complie errors in the world editor, but when you start the map warcraft3 crashed....
If you try to load the map (in the game) the game switches back to the main menu ! :nono:
Is it possible that warcraft3 does not support more than the standart movies ? emote_confused
That would be very :gfu:
TheGnome

P.s.: This time my english is very bad ! :////
12-31-2002, 01:07 PM#9
Guest
Actually u speak better Englich than the rest of us.

If you need Jass help go into the Jass forum and ask for help.

Edit: Oh this was posted in the Jass forum and moved here sorry about that.
01-06-2003, 09:19 PM#10
thegnome
ok, i played a custom video in a map...
how do you do it?

you just have to convert the trigger to text... (there is a function in the editor) and then you have to add these lines:
call PlayCinematic( "TheNameoftheVideointheMovieFolder" )
:D