|
1. New ch->player to save
|
|
Sat Aug 7, 2004 [2:05 AM]
|
crater
Email not supplied
member since: May 22, 2003
|
Reply
|
|
code=circlemud
Ok, so i added in structs.h rpcustom1 into the player data in both places where i saw title added. And then when i copyovered and did all that, and ocourse coded a command to display the stat, which was a bascaily custom attack players get to rp with, and it gets set by imm, so i made all of the correct things i could think of to add, and now i copyover and it doesnt save the rpcustom1 stuff. i set it displays, buton reboot or copyover or anything, it clears it back to null. HELP!!! please.
|
|
|
|
|
2. RE: New ch->player to save
|
|
Sat Aug 7, 2004 [10:54 AM]
|
sarix2
Email not supplied
member since: Mar 3, 2002
|
In Reply To
Reply
|
|
Did you make sure to add it to the saving functions as well?
|
|
|
Realms of the Forgotten
www.rotf.net
|
|
3. RE: New ch->player to save
|
|
Sat Aug 7, 2004 [7:22 PM]
|
crater
Email not supplied
member since: May 22, 2003
|
In Reply To
Reply
|
|
Where are the saving functions, i added it twice in the apropriate places in structs.h
|
|
|
|
|
4. RE: New ch->player to save
|
|
Sat Aug 7, 2004 [11:48 PM]
|
BrynnahLLD
Roguespell@aol.com
member since: Oct 23, 2003
|
In Reply To
Reply
|
|
Okay, I think it's clear that you haven't added the place where it saves. Choose something else in the player data structure, preferably something that'll be fairly rarely used in the code, and search for it. The 'title' that you mentioned in your first post might be a good choice.
Do a search: 'grep title' and find the functions where it is saved to the player file, and read in from the player file.
Then, use the code in those functions as a template, and imitate it, to save and read your added variable.
Remember to imitate saving/reading a variable of the same type as your added one. A string, integer, etc.
Good luck
|
|
|
|
|