thanks for your reply but
unfortunately, it still showing the same error even though the mobility.tcl file is in the same directiory as the ect.tcl, i also checked the r/w option for the mobility.tcl file and reading is enabled for the file so there shouldn't be any read issue with the file.
this is the error
maisha@maisha-ASUS:~/ect$ ns ect.tcl
num_nodes is set 41
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
couldn't read file "mobility.tcl": no such file or directory
while executing
"source.orig mobility.tcl"
("uplevel" body line 1)
invoked from within
"uplevel source.orig[list $fileName]"
invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
(procedure "source" line 8)
invoked from within
"source mobility.tcl"
(file "ect.tcl" line 63)
and this is some part of my mobility file,
$node_(0) set X_ 1507.27
$node_(0) set Y_ 1276.56
$node_(0) set Z_ 0
$ns_ at 1.0 "$node_(0) setdest 1507.27 1276.56 0.00"
$ns_ at 1.5 "$node_(0) setdest 1507.01 1276.99 0.99"
$ns_ at 2.0 "$node_(0) setdest 1506.49 1277.87 2.05"
$ns_ at 2.5 "$node_(0) setdest 1505.77 1279.09 2.85"
$ns_ at 3.0 "$node_(0) setdest 1504.8 1280.71 3.78"
$node_(1) set X_ 1652.38
$node_(1) set Y_ 1974.91
$node_(1) set Z_ 0
$ns_ at 3.0 "$node_(1) setdest 1652.38 1974.91 0.00"
$ns_ at 3.5 "$node_(0) setdest 1503.51 1282.88 5.04"
$ns_ at 3.5 "$node_(1) setdest 1652.28 1974.39 1.04"
$ns_ at 4.0 "$node_(0) setdest 1502.0 1285.43 5.92"
$ns_ at 4.0 "$node_(1) setdest 1652.07 1973.29 2.24"
$node_(2) set X_ 1675.8
$node_(2) set Y_ 2061.05
$node_(2) set Z_ 0
$ns_ at 4.0 "$node_(2) setdest 1675.8 2061.05 0.00"
$ns_ at 4.5 "$node_(0) setdest 1500.26 1288.35 6.81"
$ns_ at 4.5 "$node_(1) setdest 1651.78 1971.79 3.05"
$ns_ at 4.5 "$node_(2) setdest 1675.8 2060.51 1.08"
$ns_ at 5.0 "$node_(0) setdest 1498.29 1291.68 7.74"
$ns_ at 5.0 "$node_(1) setdest 1651.39 1969.74 4.17"
$ns_ at 5.0 "$node_(2) setdest 1675.81 2059.57 1.88"
i have seen many mobility.tcl files in the drive that you given to me they are colorfull like green, red ,purple but mine is not do you think that cause any problem?