[Solved] Modular route alias does not work

Moderator: Moderators

Postby Buddace » 01.06.2011, 15:26

Image

1 route alias found for [BSS_BL_LINEA_OVEST-BSS_BL_BIN1]

I don't find any difference between working route
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 01.06.2011, 16:02

No solutions found :( ..but in trace there is:
Code: Select all
20110601.165737.062 r9999D main     OMap     0098 findMapItem(): hashVal = 422, key = BSS_LINEA_OVEST_Point_e
replace existing object with key [BSS_LINEA_OVEST_Point_e]


what's means ?

and this ?
Code: Select all
20110601.165737.062 r9999I main     OModPlan 0414 add 1 aliases for route [BSS_BL_LINEA_OVEST-BSS_BL_BIN1] to routeIdMap
You do not have the required permissions to view the files attached to this post.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 01.06.2011, 17:12

Hi,

the debug level is not for end users; Forget it.

All traces are OK.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Buddace » 01.06.2011, 18:38

rjversluis wrote:Hi,

the debug level is not for end users; Forget it.

All traces are OK.

ok...but why don't work ?
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 01.06.2011, 20:43

Buddace wrote:ok...but why don't work ?


Use the source Luke. ;)
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Buddace » 01.06.2011, 20:50

Image
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 01.06.2011, 22:42

Image

Surrender ..I tried to redraw same problem....
Code: Select all
1 route alias found for [BSS_BL_LINEA_OVEST-BSS_BL_BIN2]
and no correct display....
I think when rocrail create alias we need a different route id to be place in track element
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 02.06.2011, 09:35

Rob which means this function:
Code: Select all
static void __broadcast(iORoute inst) {
  iORouteData o = Data(inst);
  /* Broadcast to clients. */
  iOModel model = AppOp.getModel(  );
  iONode nodeD = NodeOp.inst( wRoute.name(), NULL, ELEMENT_NODE );
  const char* routeId = wRoute.getid(o->props);
  iOList aliases = ModelOp.getRouteAliases( model, routeId );

  wRoute.setlocid(nodeD, o->lockedId );

  if( o->lockedId == NULL || StrOp.len(o->lockedId) == 0 )
    wRoute.setstatus( nodeD, wRoute.status_free);
  else if( o->lockedId != NULL && StrOp.len(o->lockedId) > 0 )
    wRoute.setstatus( nodeD, wRoute.status_locked);
  /* TODO: other status reports */

  TraceOp.trc( name, TRCLEVEL_USER1, __LINE__, 9999, "status of route %s is %d, locked by %s",
      wRoute.getid(o->props), wRoute.getstatus( nodeD), o->lockedId == NULL ? "-":o->lockedId );

  if( aliases == NULL ) {
    wRoute.setid( nodeD, routeId );
    AppOp.broadcastEvent( nodeD );
  }
  else {
    int i = 0;
    for( i = 0; i < ListOp.size(aliases); i++ ) {
      iONode routeseg = (iONode)ListOp.get( aliases, i );
      wRoute.setid( nodeD, wRoute.getid(routeseg) );
      AppOp.broadcastEvent( (iONode)NodeOp.base.clone(nodeD) );
    }
    NodeOp.base.del(nodeD);
  }

}

Work it in different mode whit and without alias ?
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 02.06.2011, 15:24

Buddace wrote:Work it in different mode whit and without alias ?

Yes, of course.
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Buddace » 11.06.2011, 18:26

Bad news..try to learning code but no helpful....right route indication don't work..I think rocrail bug
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 11.06.2011, 20:04

Hi Nuccio,

can you provide a simple layout for reproducing the problem?
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Buddace » 11.06.2011, 23:37

Yeha..wait.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby Buddace » 12.06.2011, 00:24

There are only two route (autogenerated):
BSS_BL_LINEA_OVEST-BSS_BL_BIN1-work right
BSS_BL_LINEA_OVEST-BSS_BL_BIN2-don't display activation

Plan.xml include only two test plan.
Thnaks
You do not have the required permissions to view the files attached to this post.
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

Postby rjversluis » 12.06.2011, 06:41

Hi,

how do you activate the routes?
Best Regards, Rob.
:!: PS: Do not forget to attach the usual files.
:!: PS: Nicht vergessen die übliche Dateien an zu hängen.
[ macOS - Linux] - [ N: CBus - CAN-GCA ] - [ 0: RocNetNode - GCA-Pi ]
rjversluis
Site Admin
 

Postby Buddace » 12.06.2011, 09:56

rjversluis wrote:Hi,

how do you activate the routes?

With output :
-BSS_OU_IN_OVEST_2
-BSS_OU_IN_OVEST_1
www.dccworld.com First and Only Italian DCC Website.

TMWDCC/TBX , zDCC, Lokmaus 2, Arnold DCC, Intellibox, Hornby Select, A lot of Loconet DIY (Loconet SwitcBoard, Loconet P50, etc..)
Buddace
 

PreviousNext

Return to Modular Layout Support