I'm still having trouble finding a loading code with
Deadron's character handling lib, where each mob get's located to an "area" when they load.
If you are reading this Deadron, will you soon update your lib ?
ID:179419
Dec 31 2001, 9:43 am
|
|
In response to Deadron
|
|
Well, here is the code you gave me:
client Each time I load the mob, I get these errors: runtime error: Cannot execute null.base CharacterNames(). proc name: ChooseCharacter (/mob/BaseCamp/ChoosingCharacter/proc/ChooseCharacter) source file: implementation.dm,103 usr: ChoosingCharacter (/mob/BaseCamp/ChoosingCharacter) src: ChoosingCharacter (/mob/BaseCamp/ChoosingCharacter) call stack: ChoosingCharacter (/mob/BaseCamp/ChoosingCharacter): ChooseCharacter() ChoosingCharacter (/mob/BaseCamp/ChoosingCharacter): ChooseCharacter() ChoosingCharacter (/mob/BaseCamp/ChoosingCharacter): Login() If there's another way to make a locate code, I could try it. Thx. |
In response to Cravens
|
|
If there's another way to make a locate code, I could try it. This is a lot more barbaric but: usr.loc = locate(/area/start1) |
In response to Cravens
|
|
Cravens wrote:
Well, here is the code you gave me: client Each time I load the mob, I get these errors: I created a new project and pasted in exactly that code, and didn't get any errors. runtime error: Cannot execute null.base CharacterNames(). What's being called there is: client.base_CharacterNames() So that means the client is null, which is not possible if there is a player hooked up to it...are you calling this for a mob that doesn't have a player attached? |
In response to Exadv1
|
|
Exadv1 wrote:
This is a lot more barbaric but: Have to use src here, not usr. Usr is the last player to use a verb or click something. Lummox JR |
In response to Deadron
|
|
Maybe there's a problem with my login code...
I made it based on your character handling demo. Here's a small part of it: #include <deadron/characterhandling> Oook.. and that's just a small part of it... Anyway, if there's a problem, it has to be in here somewhere because I haven't touched your lib. Thx. |
In response to Lummox JR
|
|
True -- however, in rare cases (like Login()), usr is also defined for you automatically without any input from the user.
|
In response to Spuzzum
|
|
Spuzzum wrote:
True -- however, in rare cases (like Login()), usr is also defined for you automatically without any input from the user. But since in that case src will work fine, why go for the mysterious invisible variable? |
In response to Deadron
|
|
Yeah, I never use usr in Login(). Just pointing out something that could actually be harmful to a newbie just for the heck of it. =)
|
In response to Spuzzum
|
|
Yes..."EVIL USR" comes to mind.
|
In response to Cravens
|
|
Is it possible that the Character Handling Lib doesn't work
because my project isn't in the BYOND folder ? It's in C:\Project instead of C:\Byond\Bin\Project . Thx. |
In response to Cravens
|
|
Cravens wrote:
Is it possible that the Character Handling Lib doesn't work No. |
I still need to get to your earlier message...all my time has gone into working on Birdland. Could you zip up your code and send it to me? That will make it easier for me to find the problem and will prompt me to get it taken care of.