Aller au contenu

Photo

Removing spells?


  • Veuillez vous connecter pour répondre
25 réponses à ce sujet

#1
Kossith123

Kossith123
  • Members
  • 96 messages

So this may sound very strange, and I made a thread like this quite a few months ago (on the old forums).

 

So I'm looking to "remove" all the spells, then filter in the ones I need.

 

In my project, I only need around 12 spells in total, but of course there's around 1000 lines of spells on the 2da.

 

I tried switching the "removed from game" to 1 (meaning yes), but alas, it didn't work.

 

I've tried looking around places, but I can barely find anything about custom spells or removing spells. Is anyone familiar with doing this, or is it even possible?

 

~ Kossith



#2
Kossith123

Kossith123
  • Members
  • 96 messages

To add to this;

 

In my project (very heavy lore), you need runes to cast spells. 

 

At the moment, I have it being;

 

Craft the runes > give to a wizard > he will turn them to a spell (scroll item).

 

Though the spells, say for example, greater issiac missle, will hit 2-10, at level 1

And still hit 2-10, at level 30.



#3
Dann-J

Dann-J
  • Members
  • 3 161 messages

It's strange that setting the 'REMOVED' column to 1 didn't work. That should stop characters from being able to select those spells during level-up.

 

Another option may be to set the level at which each spell can be gained to an impossibly high number (> 30). That should stop wizards from learning them from scrolls as well.



#4
Kossith123

Kossith123
  • Members
  • 96 messages

It's strange that setting the 'REMOVED' column to 1 didn't work. That should stop characters from being able to select those spells during level-up.

 

Another option may be to set the level at which each spell can be gained to an impossibly high number (> 30). That should stop wizards from learning them from scrolls as well.

 

I tried looking for that too, and theres no column :/

 

Also, am I correct as to putting the spells.2da in the override?



#5
Dann-J

Dann-J
  • Members
  • 3 161 messages

http://nwn2.wikia.com/wiki/Spells.2da

 

The columns you want are called Bard, Cleric, Druid, etc.

 

Spells.2DA will work from the override or from a HAK.



#6
Kossith123

Kossith123
  • Members
  • 96 messages

Just wanted to test this again before replying, so these are my exact steps;

 

1) Edit spells.2da by opening it in notepad. Changed the level for wiz_sorc to 30, and change the removed slot to 1 (meaning its removed from the game) on the spell Ice Storm.

 

2) Saved to desktop, move to overrides in documents

 

3) Leveled my character and still found ice storm where it normally is.



#7
Loki_999

Loki_999
  • Members
  • 430 messages

Hmm.. do you have HAKs involved? Is there a copy of spells.2da in your HAKs.

 

Try putting spells.2da in a sub-folder of your overide folder.

 

And final question... how in the 9 hells of Baator are you editing 2da files in Notepad? Jeez, even with tab delimiters set, its going to be a mess. Editing in a spreadsheet (eg: Excel, OpenOffice Calc) is much easier.



#8
Dann-J

Dann-J
  • Members
  • 3 161 messages

I've only ever edited 2DAs via the toolset. Then again, I've never had to modify things in bulk (just one line at a time).



#9
Loki_999

Loki_999
  • Members
  • 430 messages

Urgh, i never used the build in editor. No search and replace features or copy/paste.



#10
Eguintir Eligard

Eguintir Eligard
  • Members
  • 1 832 messages
Use nwn2 tlk editor you bums.

And why can't you delete the spell lines you don't want entirely?

#11
BartjeD

BartjeD
  • Members
  • 249 messages

Use nwn2 tlk editor you bums.

And why can't you delete the spell lines you don't want entirely?

You can, but it messes up any scripts which reference the 2da. They'll refer to the wrong entries. Your spell ID constants will be wrong, for example.



#12
Kossith123

Kossith123
  • Members
  • 96 messages

Hmm.. do you have HAKs involved? Is there a copy of spells.2da in your HAKs.

 

Try putting spells.2da in a sub-folder of your overide folder.

 

And final question... how in the 9 hells of Baator are you editing 2da files in Notepad? Jeez, even with tab delimiters set, its going to be a mess. Editing in a spreadsheet (eg: Excel, OpenOffice Calc) is much easier.

 

1) spells.2da is in a sub folder; http://puu.sh/cPj7p/c89751a40d.png

2) This is me leveling up after; http://puu.sh/cPj8L/2af88a9697.jpg

 

 

I find notepad fairly easy to use if you know what you are looking for :P 

+ My excel was pirated so I can't use it any more, just review, and for some reason, it doesnt want to open up in excel >_<

Urgh, i never used the build in editor. No search and replace features or copy/paste.

 

That's why I use notepad, has search and replace :P

 

Use nwn2 tlk editor you bums.

And why can't you delete the spell lines you don't want entirely?

 

This is what my spells.2da looks like lol;

 

http://puu.sh/cPjf0/72289d6306.png



#13
Dann-J

Dann-J
  • Members
  • 3 161 messages

Urgh, i never used the build in editor. No search and replace features or copy/paste.

 

I can copy and paste just fine in the toolset 2DA editor. Plus my eyes and brain function as excellent search and replace tools. :)

 

Besides - if you know the spell ID, then you know exactly what line number you want. As I said though, I've never had to do any bulk changes. That would certainly be tedious via the toolset editor.



#14
Eguintir Eligard

Eguintir Eligard
  • Members
  • 1 832 messages
I guess tlk2edit was too correct of a solution, Kossith?

#15
kamal_

kamal_
  • Members
  • 5 250 messages
Use tlkedit and it's not relevant what your 2da looks like in notepad.

#16
Kossith123

Kossith123
  • Members
  • 96 messages

Would using the tlk editor help fix the reason why my spell.2da in overrides not working?



#17
kamal_

kamal_
  • Members
  • 5 250 messages
Since you used notepad to do the editing, I bet if you turn on viewing of file extensions in Windows that what is in your override is not spells.2da but spells.2da.txt.

#18
Happycrow

Happycrow
  • Members
  • 612 messages

tlkedit is fine for .tlk, but it has this marvelous habit of deciding it won't read 2das for no apparent reason and at random times -- I think you're steering folks wrong by being dogmatic about the tool.



#19
rjshae

rjshae
  • Members
  • 4 491 messages

tlkedit is fine for .tlk, but it has this marvelous habit of deciding it won't read 2das for no apparent reason and at random times -- I think you're steering folks wrong by being dogmatic about the tool.

 

Yes, if a 2da file has been edited and saved with the toolset, I sometimes find I can't edit it with tlk2edit. It just posts an error message complaining about some format issue.



#20
kevL

kevL
  • Members
  • 4 061 messages

although tlkEdit2 is indispensable (for me) 'cause it opens so many filetypes, I use this guy: NwN2daEditor

It seems to have good error handling/messages, looks great, lots of relevant commands/functions on the menus but understanding how to use them takes a bit of xp. (needs .NET 2.0 / 3.5, which i think all windows computers post XP have)


tlkedit2 has regex, tho its slow & quirky.



#21
Kossith123

Kossith123
  • Members
  • 96 messages

Since you used notepad to do the editing, I bet if you turn on viewing of file extensions in Windows that what is in your override is not spells.2da but spells.2da.txt.

 

 

Just tried that and it's 100% spells.2da, not the txt :P

 

I've been using this method for a while, such as I removed all the classes but fighter/ranger/wizard, and that works fine.

 

--

 

Is there any chance someone could try test this for themselves? Such as remove all (or some) spells, place it in their override to see if it works for them.



#22
Kossith123

Kossith123
  • Members
  • 96 messages

although tlkEdit2 is indispensable (for me) 'cause it opens so many filetypes, I use this guy: NwN2daEditor

It seems to have good error handling/messages, looks great, lots of relevant commands/functions on the menus but understanding how to use them takes a bit of xp. (needs .NET 2.0 / 3.5, which i think all windows computers post XP have)


tlkedit2 has regex, tho its slow & quirky.

 

I just tried using this, it's great, but alas, it still doesn't fix the problem :/



#23
kevL

kevL
  • Members
  • 4 061 messages

i keep Spells.2da in /override

I just changed Fireball to REMOVED=1 and on loading an 11th Wizard it disappeared from the quickcast and spellbook.


i think you have a duplicate ... campaign folder, .hak, module folder, or /override

- didn't try levelup tho.


  • rjshae aime ceci

#24
Kossith123

Kossith123
  • Members
  • 96 messages

i keep Spells.2da in /override

I just changed Fireball to REMOVED=1 and on loading an 11th Wizard it disappeared from the quickcast and spellbook.


i think you have a duplicate ... campaign folder, .hak, module folder, or /override

- didn't try levelup tho.

 

Checked every single folder lol, I've never touched spells.2da before until now, so I can't imagine it being anywhere else.

I tried Ice Storm, maybe I should try fireball ;s



#25
-Semper-

-Semper-
  • Members
  • 2 256 messages

Checked every single folder lol, I've never touched spells.2da before until now, so I can't imagine it being anywhere else.

 

what about renaming the neverwinter nights 2 folder in mydocuments? after starting the game it will automatically recreate that folder. put your spells.2da in the override, start a new game (the tutorial modul should be fine), give the pc enough xp through dev console to level up and look what happens. this way you could be sure that there's no other file interfering.