Okay, this may have been covered a loooong time ago, but I've looked at the list of topics and its just way too daunting for me.
I recently started up the smaug on my computer, all the redits etc are working, but anything changed in wizlist, deities, classes, etc isnt saving at all, are there commands that i'm not aware of that i'm supposed to be using to save those?
Idea of what i'm doing...wizlist 'adding names' its not saving.
deities...adding...its not saving
classes...getting rid of classes and putting 2 entirely different ones...its not saving
stuff like that...anything i'm missing? newbie coder issue lol
Well, I couldn't tell you about deities or classes, as all my experience is with SWR, and it does not have deites, and classes are not OLC in stock, but with wizlist, I beleive that it is only meant to reference the files in the /gods directory, read all those, and create the wizlist file with those, I don't think that they can be manually entered. However, many of the other commands, sset, cedit, cset, etc, all need you to enter, "<command> save". Check the help files on the commands, and look at the code for each of them, if they have an option for you to enter save, then it is indeed not automatic, and has to be done manually. Hope that helps.
So I guess that means my wizlist file is all wrong too. Lol can you all say KABOOM? I figured out the option save thing earlier, cause anything with save option saved...the rest refuses to do anything at all. and i cant figure out the commands to ADD commands...not going well this morning i'm afraid.
If your wizlist file is not working, delete ALL the files in your god directory, use the "makewizlist" command, and then save. Loadup all your imms, and force them to save and quit. This SHOULD make the proper god files, and then you can makewizlist again to get an accurate file.
To add a command, you need to use the cedit command, specifically, "cedit <command name> create <command code>", so perhaps, "cedit wpeace create do_world_peace". Most newbie coders are also unaware that every time you add a command, you need to add 3 entries: one into mud.h, 2 into tables.c . Easiest way, IMO, is to pick a pre-exististing command that starts with the same letter, and do a search for it. Copy the line in mud.h, just a declaration, and then you have to make two entries into tables.c . The first one DOES matter where you put it, make sure that you put it into the right letter, cause it gonna look at the first letter of a command, so if you put "wpeace" under R, it aint gonna work. The second entry doesn't matter where you put it, as long as it with the other ones similiar to it. Take a look, should be pretty obvious.
Also, if your trying to add a skill, you ALSO need to make another entry in mud.h for the gsn, and two in db.c: one declaring the gsn, and a second using ASSIGN_GSN. Hope that helps some.
Okay, that sounds a little like what I was noticing after staring at the files for 8 hours yesterday, clarified alot thanks. Am I to understand that there is actually no entry to put in for makewizlist? just to have all imms save between the first and second time i type it?
I'll let ya know if this all works and i dont crash my thing again lol
Yeah, the idea is that make_wizlist runs through all the files in the /god directory, and opens each of them, generating the wizlist file from that. The god files contains 3 bits of information: The immortals name, the flags on that immortal(used by make_wizlist to determine if the immortal has the retired or guest flag on them) and the ranges of vnums for their area. If they do not have an area, this bit is omitted. When an immortal saves, it will update their god file, or create one if its not there. One problem I've seen time and again with Newbie coders and admins setting up new muds is that when they assign a builder an area, they will not force the vnums open. By this, I means that they will not mcreate/ocreate/goto the first and last vnums, so when they foldarea, it compresses it down to nothing, and the vnums on the player file and the vnums of the area do not match, and the mud will not reboot/copyover. The final vnum can always be m/o/rdeleted, or the area parameters changed to fit the last real vnum used, if less than the max, but they his and lows have to be set. Please excuse the rambling, its early, and I'm really tired.
lol quite alright, i just went over anything related to makewizlist in the codes and i'm thinking its totally bugged up..everything is where its supposed to be...if command is supposed to be do_makewizlist. i'm going to try out do_make_wizlist see if maybe that'll make my wizlist understand..if not..back to the drawing board :)
Don't think its supposed to log anything besides that. Did you clear out the god files? You might wanna paste a copy of yor wizlist here so we can see whats actually going on with it.
Thats it. In the file it shows the exact same thing except with one of those default square characters to show that it didn't know the letter. or its supposed to look like that..any idea?
Double check in your /god directory if there are any files in it. If there is, maybe you can post your wizlist functions, make_wizlist( ) and towizfile( ).