I think that the problem is not on accessible_var_!!! i remove the line "Agent/protoname set accessible_var_ true" in "ns-default.tcl" and all occurence of the "accessible_var_" on the .cc and .h files. and now i get the following errors :
num_nodes is set 2 invalid command name "Agent/Protoname" while executing "Agent/Protoname create _o17 0" invoked from within "catch "$className create $o $args" msg" invoked from within "if [catch "$className create $o $args" msg] { if [string match "__FAILED_SHADOW_OBJECT_" $msg] { delete $o return "" } global errorInfo error "class $..." (procedure "new" line 3) invoked from within "new Agent/Protoname [$node node-addr]" (procedure "_o3" line 2) (Simulator create-protoname-agent line 2) invoked from within "$self create-protoname-agent $node" ("Protoname" arm line 2) invoked from within "switch -exact $routingAgent_ { Protoname { set ragent [$self create-protoname-agent $node] } DSDV { set ragent [$self create-dsdv-agent $node] } DSR {..." (procedure "_o3" line 11) (Simulator create-wireless-node line 11) invoked from within "_o3 create-wireless-node" ("eval" body line 1) invoked from within "eval $self create-wireless-node $args" (procedure "_o3" line 23) (Simulator node line 23) invoked from within "$ns_ node" ("for" body line 2) invoked from within "for {set i 0} {$i < $val(nn) } {incr i} { set node_($i) [$ns_ node] $node_($i) random-motion 0 ;# disable random motion }" (file "simple-wireless.tcl" line 97) Can any one help me, Regards, Nassim "Francisco J. Ros" <[EMAIL PROTECTED]> a écrit : Hi Nassim, There are some typos in the tutorial. Sometimes "accessible_var" is miswritten as "accesible_var". Just have to find every occurrence of the latter and correct the name. Regards, fran On Tuesday 05 June 2007 10:51, nassim laga wrote: > Hi All, > > I try to implement a new Manet protocol according to > "ImplementingNewMANetProtocol" tutorial. > > but the following errors occurs when i try to simulate any script : > > ns: > [code omitted because of length] > > : invalid command name "Agent/Protoname" > > while executing > "Agent/Protoname set accessible_var_ true" > > > Can any one help me? > > regards, > Nassim > > > --------------------------------- > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions > ! Profitez des connaissances, des opinions et des expériences des > internautes sur Yahoo! Questions/Réponses. -- Francisco J. Ros, Ph.D. Student Dept. of Information and Communications Engineering University of Murcia, Murcia (Spain) http://masimum.inf.um.es/fjrm/ --------------------------------- Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail