Author Topic: Installing custom items as overrides for use with SP modules  (Read 416 times)

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« on: September 09, 2010, 05:11:18 pm »


               Hey! I'd like to have Thirsty Bear's Sequencer  item available in a Single Player module - the problem is I already started playing it. If I add the erf with item and script to the module now, this won't have any effect on my savegame, right?

This is probably a very newbish question but how do I turn the sequencer erf / item / script into an override version that will work with my savegame?

Thanks!
               
               

               


                     Modifié par olivier leroux, 09 septembre 2010 - 04:12 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #1 on: September 09, 2010, 05:20:39 pm »


               Just idea: rename savegame to .mod open it in toolset, add erf, add item on the ground, save, rename to .sav, return to savegame folder and try to continue
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #2 on: September 09, 2010, 05:52:12 pm »


               Okay, I'll try that. Second n00b problem: The readme of Thirsty Bear's Sequencer instructs me to add the following lines to the module's OnActivateItem:

   if(GetTag(GetItemActivated())=="SEQ_WAND") {
       ExecuteScript("seq_item_activ",GetItemActivated());
   }

But, althought the module uses tons of scripted custom items, all the module's OnActivateItem script contains so far is this:

void main()
{
ExecuteScript(GetTag(GetItemActivated()),
OBJECT_SELF);
}

Am I right in assuming that Thirsty Bear's instruction is outdated and I'd achieve the same effect if I just renamed the sequencer script so that it matches the name of the sequencer item's tag? Seems to me the module already uses tag based scripting?
               
               

               


                     Modifié par olivier leroux, 09 septembre 2010 - 04:54 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #3 on: September 09, 2010, 05:55:14 pm »


               yes module already uses tagbased scripting however I think you should rather add that code into OnActivated script. If the sequencer wasnt scripted with tagbased scripting in mind, who knows what can happen...
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #4 on: September 09, 2010, 06:52:48 pm »


               Hm, somehow adding the Sequencer to the mod and adding the mentioned lines to the module's OnItemActivated script causes the module to crash on loading now.

I also tried to create an override version of the erf but of course I didn't get the item's properties to work that way, not even by renaming the ActivateSequencer script in the override folder in accordance with the sequencer's tag...

Seems like I've got to live without it. I wish BioWare had thought of adding more quickslots but I guess casters were meant to use the 'practical' radial menus... *sigh*

Anyway, thanks for your help, ShaDoOow!
               
               

               


                     Modifié par olivier leroux, 09 septembre 2010 - 05:53 .
                     
                  


            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #5 on: September 09, 2010, 09:11:16 pm »


               did you change the saved game file back to:   .sav   instead of .mod?
               
               

               
            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #6 on: September 09, 2010, 09:27:00 pm »


               Yes, I did. But whether I load it as a module or as a savegame doesn't make any difference, it always crashes on load after I modified it.
               
               

               
            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #7 on: September 09, 2010, 09:42:43 pm »


               You may want to take a look at this thread from the old Bioware boards. It's pretty old, but it has lots of information straight from the developers.

Here's another thread which may be helpful.
               
               

               
            

Legacy_Genisys

  • Hero Member
  • *****
  • Posts: 961
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #8 on: September 09, 2010, 09:44:13 pm »


               Invisigoth, how do you add a signature like you have there?
               
               

               
            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #9 on: September 10, 2010, 12:11:22 am »


               You can make a signature under Profile >> Forum Settings.

The hyperlink icon (Earth with some chain links) will allow you to highlight text that you have already typed and make it a link instead.

If you'd like to learn about more things you can do, run a Google search for "bbcode".

Oh, and I made the image myself. That one I can't help you with '<img'>
               
               

               


                     Modifié par Invisig0th, 09 septembre 2010 - 11:12 .
                     
                  


            

Legacy_olivier leroux

  • Hero Member
  • *****
  • Posts: 913
  • Karma: +0/-0
Installing custom items as overrides for use with SP modules
« Reply #10 on: September 10, 2010, 12:32:47 pm »


               Thanks for the links!