Author Topic: Disabling Npc Interaction - Apparently it was meant to be in the game.  (Read 43831 times)

0 Members and 1 Guest are viewing this topic.

Nerius

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
  • WB
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #30 on: October 12, 2008, 07:41:56 PM »
I really like this mod, because it gets annoying when you have the perfect party where someone likes someone else - after each battle they just have to share their love. Which is annoying me to hell!

Also, playing with max difficulties, I never have all heroes, I have most. When I lose battles, and I cant quit without saving, Im bound to lose some of my heroes. And then Im at war with some factions, and those heroes are hiding out in those towns, and I cant recruit them again until they either move, or I conquer that town. So it works well.

minivuvu

  • Recruit
  • *
    • View Profile
  • Faction: Nord
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #31 on: October 13, 2008, 06:27:22 AM »
im trying to change it from 0 to 1 and then saving it,but when i do, it says...  cannot create .... scripts.txt file.  make sure that the path and file name are correct.  what do i do?

*Note:(On Vista)
Not sure if you already worked it out or not but,
I had the same problem also. Even though I was logged in as the administrator (also the only account on my computer), it told me the same thing and restricted me from changing the file.

If you are in admin acct. And it doesn't let you change it. Try right clicking the file (scripts) first and click on properties. Click on the Security tab, there will be a section titled, "Group or user names:". There click on Users, next, below that is a section called, Permissions for Users now. Click the Advanced button and check the box modify. Then Apply. You should be able to change the file now. (or at least it did for me...)

EiO

  • Regular
  • *
    • View Profile
  • Faction: Khergit
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #32 on: October 13, 2008, 06:35:32 AM »

You COULD work it into a game in progress if you really wanted to, but you would have to add the line of code somewhere. I won't cover that here, but basically you'd just pick a script that will be triggered and add in the 2133 2 144115188075856295 0 thing to the end or beginning of it. Then you add 1 to first number in the script (which is the # of lines in that script, it needs to add 1 because you're actually adding in an extra line of code). You could remove it after you know that the script has been triggered - it stays once set.

hey i don't get these... can u please show me exactly how it must look like? please... i will thank so much... i really like to have all of them...

Read the whole thread. . .

Excellent stuff, TML!  :)

You COULD work it into a game in progress if you really wanted to, but you would have to add the line of code somewhere. I won't cover that here, but basically you'd just pick a script that will be triggered and add in the 2133 2 144115188075856295 0 thing to the end or beginning of it. Then you add 1 to first number in the script (which is the # of lines in that script, it needs to add 1 because you're actually adding in an extra line of code). You could remove it after you know that the script has been triggered - it stays once set.

If I add that line (2133 2 144115188075856295 1) to, let's say, start_training_at_training_ground for example, would it get triggered when I start training at a training ground?  :?:

And if the method above works, is there a way to turn it off after that, like adding 2133 2 144115188075856295 0 line again?


still dont get it... or my English suck?
Lost Soul

triangle man

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #33 on: October 14, 2008, 12:13:19 AM »
ya i don't get it either. every time i add that line, 2133 2 144115188075856295 1, to start_training_at_training_ground (for example), the game crashes while it's loading up. im on vista 64, btw.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #34 on: October 14, 2008, 12:44:37 AM »
Well, I didn't specifically cover that for games in progress, but it does work - you just have to remember that whenever you add a line of code to something, you have to add 1 to the number before the lines of code so that it knows to read another one.

For instance, if you added it to the very beginning of start_training_at_training_ground, you'd need to change the
Quote
start_training_at_training_ground -1
 163 2105 2 144115188075856114 ...
to
Quote
start_training_at_training_ground -1
 164 2133 2 144115188075856295 1 2105 2 144115188075856114 ...

Then the next time you started training it should set the thing to turn off npc interaction.
« Last Edit: October 14, 2008, 12:47:07 AM by TheMageLord »
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

triangle man

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #35 on: October 14, 2008, 04:36:55 AM »
oh, ok. thanks for clearing it up, I was just a bit confused. It still crashes, but I doubt it's because of your directions. ill probably just live with my bickering, ungrateful companions.

woodsmoke

  • Veteran
  • *
    • View Profile
  • Faction: Rhodok
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #36 on: October 14, 2008, 11:49:07 AM »
Out of curiosity, is there any way to make this change (and others) to only affect one character, or is it a general game registry edit I'd need to change back every time I switch?
The more I learn, the less I know.

EiO

  • Regular
  • *
    • View Profile
  • Faction: Khergit
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #37 on: October 14, 2008, 12:24:36 PM »
now it works... thanks a lot
Lost Soul

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #38 on: October 14, 2008, 08:25:39 PM »
Woodsmoke,
Most of the edits are for all characters - so you'd have to change back and forth. But this one is in game_start so it would only affect new characters, and if you changed it back after making a character the next guy won't have it. Thats what the whole mess about adding it into the training ground script is for - to add it into a game in progress. Otherwise it won't affect a game in progress.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

SellSword

  • Sergeant
  • *
    • View Profile
  • Faction: Neutral
  • MP nick: Lavi_Bookman/Lavi
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #39 on: October 14, 2008, 08:59:09 PM »
This means I can have all the companions in my party at the same time  :shock: ?
Magelord you are a Script Wizard!
EDIT: Script Wizard would be a nice title for him wouldnt it? :)
« Last Edit: October 14, 2008, 09:03:01 PM by SellSword »

woodsmoke

  • Veteran
  • *
    • View Profile
  • Faction: Rhodok
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #40 on: October 14, 2008, 09:38:29 PM »
Apparently I struggle with being smarter than the game files. Exactly where do I find the start_at_training_ground line to change the script?
« Last Edit: October 14, 2008, 09:41:41 PM by woodsmoke »
The more I learn, the less I know.

TheMageLord

  • The Handyman Can
  • Knight
  • *
    • View Profile
  • Faction: Neutral
  • M&BWB
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #41 on: October 14, 2008, 10:14:10 PM »
Thats in scripts.txt. You only need to do that to get the tweak to work in a currently running game though.
I shall destroy you! I shall cleave off your limbs with a dull axe, rip off your head with my bare hands, tear out your eyes with a rusty SPOON! So please stand there while I find the time. Oh, so busy...

woodsmoke

  • Veteran
  • *
    • View Profile
  • Faction: Rhodok
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #42 on: October 14, 2008, 11:50:24 PM »
Awesome, thanks a lot TML! 'Tween this and a few of the other code tweaks posted in the sticky thread, my game's running a lot smoother. :D
The more I learn, the less I know.

triangle man

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #43 on: October 15, 2008, 12:35:22 AM »
hey it does work! awesome! thank you! i had just accidentally forgot to take something out, but I found it so now it's not crashing anymore.

woodsmoke

  • Veteran
  • *
    • View Profile
  • Faction: Rhodok
Re: Disabling Npc Interaction - Apparently it was meant to be in the game.
« Reply #44 on: October 15, 2008, 11:34:31 PM »
Alright, I managed to get the change in last night, but it doesn't seem to be working. I hit the training grounds and sparred a couple rounds on three separate occasions with the character I wanted to turn off NPC interaction with, then tracked down and recruited one of the problem NPCs and promptly got bitched at by him and the people he doesn't like.

I've long since completed the initial training with this character, though until last night I don't think I'd ever bothered hitting another TG. Could that have something to do with it?
The more I learn, the less I know.