ID:154719
Jan 9 2012, 4:22 pm
|
|
I have a skin that once you enter your username and password, it will show you a screen where you can do typical things, such as create, load, or delete a character. Now, I was wondering how would I go about putting the icon from a savefile, and putting it onto a label? Or how would I make a mob that I could place into a grid to show the mob and the name. I have tried making a new mob, and placing the mob from the savefile on to the new mob. However, it loads the savefile rather than loading it on to the new mob. I have tried a few different ways, and I have run out of ideas. Any help would be greatly appreciated.
|
In response to Koriami
|
|
Bump
|
In response to Koriami
|
|
Show us how you're saving the icon.
|
In response to DarkCampainger
|
|
mob/proc and then when I try to take the icon from the file, I do this: mob/proc and usually what happens is either: A. Src loads the entire savefile, instead of taking the icon and overlays from the file or B. Nothing shows up in the grid, giving me the impression that it is not reading the variables from the savefile, leaving the name, icons, and overlays as null. But the mob would still be placed in the grid. I have tried 4 or 5 different ways to do this, and I have gone so far as to save an extra .txt file with the icon and name in it, and using the params2list() proc to take it out of the file and place it on the icon. However, I cannot seem to find a way to get this to work. |
In response to Koriami
|
|
The issue is that within the datum Write() process, the current directory of the savefile is set to a sub-directory just for that datum. So when you later try to access "ICON" or "Name" from the base directory, it can't find it. The simplest solution is to move the writing of those particular values (ICON, OVERS, Name) into the mob/Save() process.
mob/proc |
And it reads the icon from the savefile as null.
Doing other variations of code to try to get something towards that effect, I have gotten different errors. Things like Bad client, and others that have been put down the list.
Once again, any help would be greatly appreciated.