From: Hedayat V. <hed...@ai...> - 2009-01-21 20:02:59
|
Hi Yuan, /*Yuan Xu <xu...@in...>*/ wrote on ۰۹/۰۱/۲۱ 01:41:46: > Hi Hedayat, > > Thanks, but it still doesn't work for me: > > (FileServer::OpenResource) Cannot locate file 'simspark.rb' > (SimulationServer) SimControlNode 'InputControl' not found > > It seems that it doesn't search the rcssserver3d installed directory. > I don't know what's the problem since it works for me! :( Would you please make sure that your simspark binary is actually rebuilt?! rcssserver3d data directory is expected to be added inside simspark/main.cpp to the list of resource locations. Would you please check the value of RCSS_BUNDLE_PATH macro inside rcssserver3d_config.h? It should contain the path of rcssserver3d data directory. I've just rebuilt everything and installed both spark/rcssserver3d from scratch and it works. :( If it still doesn't work for you with the latest svn, you could put some debugging messages in fileserver.cpp (LocateResource) to see which directories are checked. Please let me know the results. > And I noticed that some .rb files are loaded from the installed > directory (/usr/local/simspark) > but some others are loaded form my home directory (/home/xy/.simspark) > what is the rule to locate the resource files? > and when are the files installed in my home directory. > I think it doesn't match the regular Linux rule. > This is not a new behavior, and not related to the resource management. It's done by ScriptServer if I remember correctly (before separating packages, it used .rcssserver3d instead). The script file is installed in the installation directory, but when you run simspark (or monitorspark(now rcssmonitor3d!)) it checks to see if kerosin.rb is available in your home directory. If not, it'll copy kerosin.rb to .simspark in your home directory. It's not a bad thing, since you can modify settings in your local kerosin.rb without changing the original file. In fact it is proposed to do the same thing with other configuration files so that users don't need root access to change some settings. It's like other programs who store user specific configuration in his home directory. Thanks a lot, Hedayat > (ScriptServer) Running /usr/local/share/simspark//zeitgeist.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /usr/local/share/simspark//zeitgeist.rb > (ScriptServer) Running /usr/local/share/simspark//oxygen.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /usr/local/share/simspark//oxygen.rb > (ScriptServer) Running /home/xy/.simspark/kerosin.rb... > (ScriptServer) updating cached script variables > (ScriptServer) Script ended OK /home/xy/.simspark/kerosin.rb > (ScriptServer) Running /usr/local/share/simspark//spark.rb... > > > 2009/1/21 Hedayat Vatankhah <hed...@ai...>: > >> Hi Yuan, >> Thank you for this. I think the problem is solved now. :) >> >> Good luck >> Hedayat >> >> "Yuan Xu" <xu...@in...> wrote on ۰۹/۰۱/۱۴ 06:06:17: >> >> Hi all, >> >> I tried to install the current svn version simspark in my laptop, >> but I faced a problem due to the separated packages, >> the FileServer::LocateResource function can not search file in both >> 'simspark' and 'rcssserver3d' directory. >> I have to copy all the files together... I hope someone can fix this. >> >> >> > |