Author Topic: NBDE by Knat question?  (Read 353 times)

Legacy_lordofworms

  • Sr. Member
  • ****
  • Posts: 422
  • Karma: +0/-0
NBDE by Knat question?
« on: February 09, 2011, 12:38:11 pm »


               if any one can help with this question I would appreciate it.

"Natural Bioware Database Extension by Knat."

I was planning on incorporating this into my already existing PW so I made a copy of my MOD on my BUILD PC,  I went through and just added the NBDE_ prefix to a small section of my code (mailbox )

the issue is that when I 'tested' it sure it seemed to trigger the convos faster but it seems that it wipes my database and starts a new one, which works well after that but is this what would happen? or did I overlook something?
 I want to try this but I hate to wipe my already existing database.


and second question, can these be used interchangeably?

meaning can I do a
SetCampainInt("MYINT","VAR",2);

then use a NBDE_GetCampaignInt("MYINT","VAR");

and will it return the value '2'? or do I have to use the NBDE_SetCampaign in order for this to work?

I ask as it would be nice to just use the NBDE_Get functions for now since I have aLOT of Get/SetCampaigns in my scripts and I wanted to know if I could do these fixes over time and not have to set aside 72 hours JUST replacing Get/Sets with NBDE_Get/NBDE_Set
and then if it wipes my database(s) boy will I be sad to have wasted all that time.'Image


Thanks, my initial testing found this wasn't working but again maybe I am just not following something obvious.'Image
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
NBDE by Knat question?
« Reply #1 on: February 09, 2011, 02:11:12 pm »


               Yes, It is normal for Knat's to whipe out the DB a rewrite the entire DB at once.  



You can use both at the same time. But not in the same DB for the reason you stated.  Any Var that is in the DB with Knat's will get deleted when the fBD is deleted and rewritten,  SO if you use both in the same module wiite then to different DB file names.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
NBDE by Knat question?
« Reply #2 on: February 09, 2011, 06:57:11 pm »


               

I ask as it would be nice to just use the NBDE_Get functions for now
since I have aLOT of Get/SetCampaigns in my scripts and I wanted to know
if I could do these fixes over time and not have to set aside 72 hours
JUST replacing Get/Sets with NBDE_Get/NBDE_Set

I suggest to try some improved text editor like PSPad, which allows mass replace in all files in folder. I guess that would be fast and very reliable in this situation, as parameters are the same? Just function name is changed. (if the parameters are not the same, i would said, that its quite poor written, as they surely can be the same)