I am using deadrons character saving and i have every thing down and for the first location thing i am using a tag and i know i have the tag right but when i log in it takes me to a black screen with the coordinates of (0,0,0)
So does any one know how to fix this
Thanx alot
ID:179518
Dec 11 2001, 5:18 pm
|
|
In response to Deadron
|
|
It worked
But i dont know why it doesnt work for my game Becuase i need it to save verbs/tmp vars in it and thats the only one i know of that does Well thanx any ways |
In response to Stimpy
|
|
Stimpy wrote:
It worked If it worked in that test case and not with the library, then it could have something to do with the library. You'll need to post the code you are using to place players for us to figure it out. |
In response to Deadron
|
|
Well here is the part from the demo i am using
src.client.mob = new_mob var/turf/first_location = locate("Start") new_mob.Move(first_location) del(src) That is what i used it doesnt put me at the tag Start but coordinates (0,0,0) Thanx Hope this is enough code |
In response to Stimpy
|
|
Move() can fail, leaving the new_mob at null. If you directly set new_mob.loc = first_location, the new_mob will move there regardless of any obstructions.
|
In response to Stimpy
|
|
Isn't the src the usr in this case? If that is true then del(src) would delete the usr which might give you the black screen.
But I'm new myself, so what do I know :p |
In response to English
|
|
English wrote:
Isn't the src the usr in this case? If that is true then del(src) would delete the usr which might give you the black screen. By the time it reaches del(src), the client has already been transferred to new_mob by this line: src.client.mob = new_mob If it had been deleting his mob, he would have been disconnected from the game. |
In response to Stimpy
|
|
Stimpy wrote:
Well here is the part from the demo i am using This part just doesn't have anything to do with the library...anyway, try testing first_location to see if you got something or got null: if (!first_location) |
In response to Shadowdarke
|
|
Ok now i tried this
src.client.mob = new_mob new_mob.loc=locate("Start") del(src) And i figured it would work but it doesnt so is there any way i could modify this to work Thanx |
In response to Stimpy
|
|
Stimpy wrote:
Ok now i tried this Look for the test I put in a message I just posted. |
This is unlikely have anything to do with the saving library.
To prove it either way: Create a new game, just put in the tag in the map and put your locating code in mob.Login (will be just a couple of lines of code), and see if it works.