I am working with veins. I needed to change the default behavior of BaseWaveApplLayer. Rather doing in file changes, I created a second application file with the name MyApp. I added MyApp.cc, MyApp.h, MyApp.ned files. Then I duplicated TraCIDemoRSU11p, and added files for TraCIDemoRSU11pEnhanced. Now in .ini file when I changed *.rsu[*].applType to point to "TraCIDemoRSU11pEnhanced". It compiles fine, but when I try to run it, generates the following error:
Submodule appl: no module type named `TraCIDemo11pEnhanced' found that implements module interface org.car2x.veins.base.modules.IBaseApplLayer (not in the loaded NED files?).
In MyApp.ned file it is declared to be of type IBaseApplLayer. I tried setting ned-path parameter in ini file, didn't resolve the problem. In veins project properties, NED source folder is checked. Do I have to add the ned path for the newly created application file, somewhere?
.nedfile contains the correct path and name within the file (did you rename the module to TraCIDemoRSU11pEnhanced?). - Rens van der HeijdenLoading NED files from .: 1 Loading NED files from ../../src/veins: 32 Loading NED files from /home/path/veins-4a2/examples/veins: 1. The files are at /src/veins. ActuallyTraCIDemoRSU11pEnhancedis in the same folder asTraCIDemoRSU11p. I double checked it, the name checks out. I didn't rename the original module, I created another file under this name that extendsMyApp. - dutuTraCIDemoRSU11pEnhancedorTraCIDemo11pEnhanced? Because you have mentionedTraCIDemoRSU11pEnhancedbut in the error isTraCIDemo11pEnhanced. - Jerzy D.