Page 1 of 2

NMR Question

Posted: Wed Jan 15, 2003 3:26 am
by DaDemon
Ok, I searched around, but couldn't find anything like this in another thread, hope you guys can help me figure this little problem out.



My Jedi class uses Kai 1, replacing Mystic entirely. I deleted all of the Way powers in favor iof different Force powers (which work just fine).



My character, sysop, is a jedi. Everytime I edit something else (rooms, monsters, items, etc.), take down the board, apply an update, do a recovery, and get the bbs back up, the kai powers for that character always fail. *Your Power Fails* message. I need to reroll the character to get the powers to work again. Any suggestions?

Re: NMR Question

Posted: Wed Jan 15, 2003 4:40 am
by BlackHaze
have you waited for the database to finnish updating?

Re: NMR Question

Posted: Wed Jan 15, 2003 12:05 pm
by syntax53
this is definately an odd problem. try to narrow it down more by seeing what exactly needs to happen for them to stop working. liek try just taking the bbs down and then bringing it up. try taking the bbs down, compile a update (without making any more changes), and bring it back up, etc.



also what is your setup ... how do you have nmr setup to do your edits? do you edit the bbs dat files directly and only when the bbs is down, or do you have your dat files copied elsewhere and you edit those and copy the update file over? something else?



-syn

Re: NMR Question

Posted: Wed Jan 15, 2003 1:33 pm
by BlackHaze
I hope he doesnt edit while the BBS is up, that severely screwed up my BBS when i first started using NMR hehe..

Re: NMR Question

Posted: Wed Jan 15, 2003 2:19 pm
by DaDemon
Ok.. Here's my setup:



Using NMR on mud data files in a seperate directory. The bbs is up, I'm editting those. I take the board down, copy *.dat from there to WG folder after compiling an update.



I tried just copying over wccupda2.dat, but my changes dont stick unless i copy all the dats. Any help on this seperate problem would be great.



Syntax, I tried everything possible as you suggested to find out why. It seems that it's only if I compile an update, and copy it over to the WG directory do the kai powers stop working. EX: Take the board down, load up NMR, compile update without changing anything, copy dats over, put bbs back up, powers stop working. Any other info you need, just ask, and i'll tell.

Re: NMR Question

Posted: Wed Jan 15, 2003 2:30 pm
by zan
dunno if this will help... I have my nightmare being pointed rigth into my MUD/Wg directory so it edits the files that are in place. When I am finished in NIghtmare i run an update so it creates a wccupda2.dat file. Once it is complete in that I open up my sysop menu and go to mud and type "SYSOP" for the sysop menu. I then hit "U" for update and then type in wccupda2.dat. it runs the update all the while the board is running full steam. Once the update is complete it will tell you and the edits will be there, LIKE MAGIC!! The bbs is never shut down. The only thing people experience is once in a while a very minimal amount of lag. Hope that helps. It works everytime for me. The system will doa normal shut-down/recovery process during its usual nightly shut-down and restart. Hope that helps.



Zan

Re: NMR Question

Posted: Wed Jan 15, 2003 2:33 pm
by syntax53
Originally posted by DaDemon

Using NMR on mud data files in a seperate directory. The bbs is up, I'm editting those. I take the board down, copy *.dat from there to WG folder after compiling an update.



there a few problems here ... which is why we need this (http://mmb.forumshq.com/forums/showthread.php?s=&threadid=3383)



#1, is wccuser2.dat part of *.dat that you are copying over? if so, anything that you did to the user while the board was up would be erased when you copied wccuser2.dat over top of the other one. same holds true for the other user dats like wccgang and wccbank.



#2, if you copy *.dat over top of your bbs's dats, than a lot of the things your users have done while playing the game will be erased. for instance, if someone buys something from a shop, it writes that info to the shop datfile. well when you copy over top of it that info is gone. same holds true for things like monster item drops and a lot of others.



Originally posted by DaDemon

I tried just copying over wccupda2.dat, but my changes dont stick unless i copy all the dats. Any help on this seperate problem would be great.



this is what you should be doing. your edits will go in as the update file runs through. the update file hasn't ran through when the audit trail says "majormud initialized." the update file has finished when it says "Automatic Database Update Complete." you could also be misled with things like monsters if you don't run an offline recovery before you bring the board back up. this is because there is an active monster datfile which holds the monsters that are currently in the game. if you make edits to a monster and then start fighting one that doesn't have any of the edits, it's prolly because it still has the stats of the one before you edited it. running a offline recovery *should* clear the active monster file and any other things it has 'buffered'.



-syn

Re: NMR Question

Posted: Wed Jan 15, 2003 2:38 pm
by syntax53
Originally posted by zan

I have my nightmare being pointed rigth into my MUD/Wg directory so it edits the files that are in place. When I am finished in NIghtmare i run an update so it creates a wccupda2.dat file.



you REALLY shouldn't do this ...



Originally posted by syntax53

editing your dats while the board is running can (not saying it definately will) cause corruption.



if mud and you go to write to a record at the same time, OR if mud went to write a value and then you wrote over it before it went to read it again, OR if mud went to read one of the quickrefernces it creates for monsters/items/spells/etc and then all of a sudden it isn't there anymore or different than how it initially read it, OR any number of other things I could sit here and write about could cause corruption and/or crashes.



-syn

Re: NMR Question

Posted: Wed Jan 15, 2003 2:43 pm
by DaDemon
Syntax: Ok, I'll try just the wccupda2.dat file again, and wait for the update to complete. Thanks for the info. How about my problem with the kai powers going kaput? Even though im copying over all my dats, replacing users and whatnot (I knew about this when I first did it, and my character lost 35 levels.. grin), the updates do stick, and the kai powers then die until I reroll the character. It seems like it's the only way to fix it at the moment, which is terrible if I have to have all my Jedis reroll to have their powers.



Zan: Interesting way to do it.. I'll try it. But I have a question: When youre editting while the bbs is up, isnt the board affected by your edits in real time? Will this mess anything up?

Re: NMR Question

Posted: Wed Jan 15, 2003 2:47 pm
by Speed
DaDemon, don't copy over your dats. Just edit from the main directory. It seems to me that your kai powers are kaput because you are copying over users AND spells with changes. Your users with the old spell isn't reflecting the new spells, so it causes it to not work. I dunno what I'm talking about though, so ignore me.