Loading screens

From WiCWiki

Revision as of 15:07, 27 August 2008 by Mir (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Contents

This guide is written by Haschbeutel. For questions, go to this thread.


General

  • You need to create .dds files. This tool may help you.
  • 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".


Important!

  • Be careful not to leave any brackets open when editing or deleting codeblocks!!
  • If your "myText" Mapname is more than one words, use a "_" to connect them. Otherwise no name will be displayed! Example: The_Map
  • Your WicEd must be closed while working around!
  • You must compile your map every time after you editied your .juice file !!

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, if you want more or less picutres, just erase/add a bock of "loadingslide".


Important!

  • Be careful not to leave any brackets open!!
  • If your "myText" Mapname is more than one words, use a "_" to connect them. Otherwise no name will be displayed! Example: The_Map
  • You must compile your map every time after you editied your .juice file !!


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.


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!

Personal tools
User Created Content