Author Topic: Day And Night Cyles Mod?  (Read 1954 times)

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #30 on: January 29, 2012, 06:04:24 pm »


               what exactly does this do?does it rest for only hours,can you cancel resting and the time will be adjusted accordingly?does it go from day skies to night skies and vice versa?
qwert
               
               

               
            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #31 on: January 29, 2012, 07:06:15 pm »


               I just rested 3 complete times and the skies didnt switch from day to night...thats what i want changed.Im right at the beginning of chapter 1.
qwert
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #32 on: January 29, 2012, 07:27:21 pm »


               ok, I just looked farther into it. It looks like the file I posted is only going to work for XP2, (HOTU). a differant override will be needed for XP1. (SOU) The original campaign will pose a bit of a problem. It does not have any scripts attatched to the rest event, The only way to get something into the rest event for the OC (XP0) is going to be to open up the module and add a rest event. And that will need to be done in each chapter.
               
               

               


                     Modifié par Lightfoot8, 29 janvier 2012 - 07:27 .
                     
                  


            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #33 on: January 29, 2012, 07:33:26 pm »


               can you do that for the oc?
qwert
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #34 on: January 29, 2012, 07:35:23 pm »


               Might as well point out that the override will only work on modules that use an unaltered x2_onrest for the OnPlayerRest event.  If you are playing a module with its own modifications or custom scripts you will need to add Lightfoot's change into whatever script that custom module uses.
               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #35 on: January 29, 2012, 07:36:46 pm »


               

qwert_44643 wrote...

can you do that for the oc?
qwert


The OC, will need to be opened and modified, as Lightfoot said, because there is no script to override.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #36 on: January 29, 2012, 07:40:10 pm »


               Yes,  you can edit the OC.   The only draw back is that you may need to start the chapter over.  But with the way the OC modules are handled a little differant then custom made one you might not have to start it over.    What OS are you using?
               
               

               
            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #37 on: January 29, 2012, 08:15:58 pm »


               im using windows vista if i understand the question right.
qwert
               
               

               
            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #38 on: January 29, 2012, 08:16:34 pm »


               im using windows vista if i understand the question right.
qwert
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #39 on: January 29, 2012, 08:20:28 pm »


               In win XP I would do it this way.   

Open up the nwm folder in your nwn install.  on my computer the path is C:\\NeverwinterNights\\NWN\\nwm

Find the file named Chapter1.nwm and right click on it. 

Select  'open with...'

Click the 'browse...' button

Select nwtoolset.exe from the nwn folder to open the file with. // after you have done this one time you will be able to open any nwm files by just double clicking them, al long as you made sure the 'always use selected program to open this type of file' check box was checked. 

Once you have it opened in the toolset.   Form the EDIT menu select 'Module Properties' 
Select the 'Events' tab. 

Down where it says OnPlayerRest  type in a file name.  Ill call it  x0_onrest

click the EDIT button next to it. 

Confirm that the script does not exsist and that you want to create a new on. 

In the script editor Type in this script, Or just copy and past it from here. 

void main()
{       
    if (GetLastRestEventType()==REST_EVENTTYPE_REST_FINISHED)    
      SetTime( GetTimeHour()+8,GetTimeMinute(),0,0);   

  

Hit F7 to save and compile the script.   Or clicking the save and compile button in the upper left corner will do the same thing   you should get a message saying :  1/29/2012 3:13:16 PM: 0 Errors. 'x0_onrest' compiled successfully 

Close the script editor. 

Click "OK'  on the modules properties tab. 

Click the 'X' in the uper right corner of the toolset to close and confirm that you want to save the module.   

At this point you are done. 

 
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #40 on: January 29, 2012, 08:22:34 pm »


               

qwert_44643 wrote...

im using windows vista if i understand the question right.
qwert



Ok, It should work about the same way in vista,  as long as you give the toolset admin rights and you are installed on the C drive and not in the programs folder.
               
               

               


                     Modifié par Lightfoot8, 29 janvier 2012 - 08:45 .
                     
                  


            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #41 on: January 29, 2012, 08:52:49 pm »


               As much as i would like to have this...i have no nwn modding experience and im not going to try this and i vunderstand if you dont want to.Il just wait a while and try to play this again and maybe the day and night cyles wont bother me.I find it hard that no one else is affected by this.Thanks to everyone for their hard work and appreciate it.
qwert
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #42 on: January 29, 2012, 09:17:28 pm »


               Sorry,  The above instructions are the best I can do for you.   The EULA prevents me from being able to modifing  the OC module and uploading it to the web.
               
               

               
            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #43 on: January 29, 2012, 09:53:37 pm »


               Damn Boy...i followed the instructions and it worked...thank you so much!Now do i have to do this for the expansionss as well?
qwert
               
               

               
            

Legacy_qwert_44643

  • Full Member
  • ***
  • Posts: 147
  • Karma: +0/-0
Day And Night Cyles Mod?
« Reply #44 on: January 29, 2012, 10:00:55 pm »


               i added the xo_onrest to all the chapters...was that right???
qwert