Loading Screen: Image and Music
From WiCWiki
Contents |
General
- You need to create .dds files. This Tool may help you. - or : This tool works better Use 2048x1024 no mipmaps and tools nvidia selected in options.
- Open the following folder "[x]:\[...]\Sierra Entertainment\World In Conflict Editor\maps\yourmapnamefolder and keep it open, since you have to use it some time.
- Always create a backup of your "mapname.juice" file!
- Create a folder named "loading
- This is instruction for addin loading screens and music in the original instalation of WicEd, if installing the modkit, you will be able to do theese steps in "juicemaker" (And it will let you try out your map without compiling it).. only where the modkit is installed of course.
|
Loading Screens
First you need some ".dds" files. If you have them, put them in your "loading" folder. Thenm, get to the folder i told above and search for a file named yourmapname.juice and open it with the microsoft editor.
Press CTRL+F and search for an entry named "myLoadingSlides".
It will surely look like this:
Code:
myLoadingSlides { }
This is the code, that gives you control over the images that are shown while loading. But it's not working, so what do we do? We need a working code!
And here it is:
Code:
myLoadingSlides { LoadingSlide LoadingSlide(0) { myImage maps/mymap/loading/myloadingscreen1.dds myText MYMAPNAMETEXT myTimeToShow 8.0 myFadeInTime 1.0 myFadeOutTime 5.0 } LoadingSlide LoadingSlide(1) { myImage maps/mymap/loading/myloadingscreen2.dds myText MYMAPNAMETEXT myTimeToShow 8.0 myFadeInTime 5.0 myFadeOutTime 5.0 } LoadingSlide LoadingSlide(2) { myImage maps/mymap/loading/myloadingscreen3.dds myText MYMAPNAMETEXT myTimeToShow 8.0 myFadeInTime 5.0 myFadeOutTime 5.0 } }
This it what the functions do: myImage maps/mymap/loading/myloadingscreen1.dds // path to your .dds file myText MYMAPNAMETEXT // Name displayed while loading. Mustn't be longer than one word! myTimeToShow 8.0 // Duration how long the image is shown myFadeInTime 1.0 // Duration, wich is needed, to fade from black to the picture myFadeOutTime 5.0 // Duration, which the picutre is fading into the following picture
Of course, i you want more or less picutres, just erase/add a bock of "loadingslide".
Loading Music
- Almost same as above. Only thing you need is an ".mp3" musicfile. Put it to the .dds files in your "loading" folder.
- Open your mapname.juice file and search the following string: "myLoadingScreenMusic"
You'll find this code:
Code:
myLoadingScreenMusic { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 1.0 myRevertState REVERT_TO_SILENCE myNumLoops 1 myMusicFile <empty> }
The only thing you need to change here, is the "myMusicFile" string. Replace it with your musicfile. It should look like this:
Code:
myLoadingScreenMusic { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 1.0 myRevertState REVERT_TO_SILENCE myNumLoops 1 myMusicFile maps/yourmapname/loading/yourfilename.mp3 }
Best thing is, to give your music file a single worded name, like "loading.mp3" or sth like that.
Loading Music: Tutorial
Lets presume that we are creating the map testmap_01, and the musicfile we want it to play is called: introtestmusic.mp3 So the mapfiles will be located in "c:\Program Files\Sierra Entertainment\World In Conflict Editor\maps\testmap_01"
Follow theese steps, and just replace the filenames with your own to get it working:
- Create a new folder called "\music" (Without the ") in your maps folder: c:\Program Files\Sierra Entertainment\World In Conflict Editor\maps\testmap_01
- Copy the file introtestmusic.mp3 into that folder.
NOTE: This is not really nessecary, the file should work from anywere inside the "World in Conflict Editor" Directory. - Now open up notepad.
- In notepad, open up testmap_01.juice. It is located in your maps folder: "c:\Program Files\Sierra Entertainment\World In Conflict Editor\maps\testmap_01"
- Now find the line that says myMusicFile in testmap_01.juice. (Ctrl + F, to find in notepad)
- Replace where it says <none> with the name of your musicfile, make sure that it only uses your working directory, so should look like this: "maps/testmap_01/music/introtestmusic.mp3"
- Now save the testmap_01.juice file and open your map in WicEd, save the map, compile it and check out the lovely loadingscreen music while loading the map.
Example taken from my file:
myLoadingScreenMusic { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 0.0 myRevertState REVERT_TO_SILENCE myNumLoops 0 myMusicFile "maps/testmap_01/music/introtestmusic.mp3" }
Problems getting this to work, please add your questions to the discussion part of this page, and I will try to help you as good as I can. (You find the discussion page by clicking "Discussion" at the top of this page)
Ambient Sound
You also have the chance to iclude your own ambient music. Didn't try this out so far, if you have any idea, just tell me, but here is the code to work with:
Code:
myAmbientSound { myAction MUSIC_PLAY mySoundChannel CHANNEL_AMBIENCE myFadeTime 5.0 myRevertState REVERT_TO_SILENCE myNumLoops 0 myMusicFile folder/filename.mp3 }
Soundtrack
You also have the chance to iclude your own music. Didn't try this out so far, if you have any idea, just tell me, but here is the code to work with:
Search for Code: mySoundTrack {
myTimeBeforeSoundTrackSwap 0.0 myTimeTimeLeftOfMatchForCrescendo 0.0 myTracks { }
}
Here is an example code from massive, how it could look like
Code:
{ myTimeBeforeSoundTrackSwap 5.0 myTimeTimeLeftOfMatchForCrescendo 60.0 myTracks { SoundTrack SoundTrack(0) { myMusicEvent { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 0.0 myRevertState REVERT_TO_SILENCE myNumLoops 1 myMusicFile music/multi/multi_end_07.mp3 } myPercentageTrigger 0.0 } SoundTrack SoundTrack(1) { myMusicEvent { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 5.0 myRevertState REVERT_TO_SILENCE myNumLoops 1 myMusicFile music/multi/multi_start_07.mp3 } myPercentageTrigger 0.0 } SoundTrack SoundTrack(2) { myMusicEvent { myAction MUSIC_PLAY mySoundChannel CHANNEL_MUSIC myFadeTime 5.0 myRevertState REVERT_TO_SILENCE myNumLoops 1 myMusicFile music/multi/multi_stress_02.mp3 } myPercentageTrigger 0.9 } }
That's it. If you have questions or feedback, use this post!. Copyright by [WiCHQ]Haschbeutel and Massive Entertainment.