HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.
Pages: 1 [2]

Author Topic: [Solved] Node 0 not found to call method GETMYCHARACTER  (Read 6390 times)

XCalPro

  • General Accounts
  • *
  • Posts: 105
  • 3D Artist & HSL Coder
    • View Profile
    • Excalibur Productions
Re: Node 0 not found to call method GETMYCHARACTER
« Reply #15 on: Feb 02, 12, 02:25:35 PM »

Here is the complete cmdKillAccount script I created to destroy your account node. It worked for me and I was able to rebuild my account node once I logged back in.
Code: [Select]
shared function HE_ProcessCommandInput( account as NodeRef, input as String )
// The Command Handler calls this shared function based on a mapping stored on the COMMANDHANDLER prototype
//   which maps a /command to a script to call
//
  args as List of String
  Tokenize( input, args )
  if args.length < 2
    HE_CommandUsage( account, input )
    return
  .

  partialMatch toLower( args[2] )
    to "suicide"
      DestroyAccountNode( account )
    .
    default
      HE_CommandUsage( account, input )
      return
    .
  .
.

shared function HE_CommandUsage( account as NodeRef, input as String )
  // NOTE, this style is much more efficient on the client than doing a seperate Msg() for each line.
  // This is because only a single label gets created in chat, rather than one per line.
  msg as String = "/COMMAND KILLACCOUNT SUICIDE$R"
  msg = msg + " - WARNING!! This command will destroy your account root node. USE WITH CAUTION$R"
  Msg( account, msg )
.

function Msg( account as NodeRef, msg as String )
  $CHAT.CHATPLAYER( account, "", msg )
.

function DestroyAccountNode(account as NodeRef)

  $CHAT.ChatArea("general" , "[Script] Your account root node has been destroyed. Restart the HeroBlade.")
  $ACCOUNT._DestroyAccountRootNode(account)
.


Just /register add the command and you can call it from your Chat window with /KillAccount Suicide
Account wiped, and your New_Account node will be rebuilt when you log back in.
Logged
Tony Oliveira aka XCalPro
HeroEngine Projects: Traveller 6 Online - www.traveller6.com/forum/
Portfolio: www.xcalpro.com/art

Atticus

  • General Accounts
  • *
  • Posts: 30
    • View Profile
    • 610 Labs
Re: Node 0 not found to call method GETMYCHARACTER
« Reply #16 on: Feb 02, 12, 03:20:46 PM »

thanks. I had already made a command for that to destroy the account node.

My current problem is that all of my new classes are missing Node 0...well besides the fact that I cannot log on.
Logged
Atticus

dmccollum

  • General Accounts
  • *
  • Posts: 29
    • View Profile
Re: Node 0 not found to call method GETMYCHARACTER
« Reply #17 on: Feb 07, 12, 06:12:11 AM »

Honestly, what you guys are doing is pretty much as complicated as it gets. The problems are that many of the classes you think you are replacing are either being used by another node or prototype etc, and so you end up not bypassing, or the node needs to be manually removed, etc. it's actually more complicated than I'm fully capable of understanding.

There are ten threads on the forums all with different things that happened to different teams while attempting to adapt the clean engine. It's hard, and we haven't done a good enough job of providing at least a flow chart with the top level overview.

Cooper,

Any chance you guys would be able to provide a flowchart any time soon? I've now at the point that I'm completely stuck and will probably need you to just reset my world and start over.
Logged
Pages: 1 [2]