University of Southern CaliforniaUSC
USC ICT TwitterUSC ICT FacebookUSC ICT YouTube

Running the integration examples: ogresmartbody & irrlichtsmartbody | General SmartBody Discussion | Forum

Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Running the integration examples: ogresmartbody & irrlichtsmartbody
July 29, 2015
12:16 pm
Avatar
Member
Members
Forum Posts: 11
Member Since:
July 29, 2015
sp_UserOfflineSmall Offline

Hey!

I want to use SmartBody for a university project, but I can't run the supplied and compiled integration examples at <smartbody_root>/bin/.

both ogresmartbody .exe and irrlichtsmartbody.exe log: "Could not find Python script 'irrlichtsmartbody.py'/'ogresmartbody.py'". From the code in main.cpp and ogresmartbody.cpp:

    // sets the media path, or root of all the data to be used
    // other paths will be relative to the media path
    m_pScene->setMediaPath(smartbodyRoot + "/data");
    m_pScene->addAssetPath("script", ".");
    // the file 'OgreSmartBody.py' needs to be placed in the media path directory
    m_pScene->runScript("ogresmartbody.py");

it seems like the scripts are supposed to be in the <smartbody_root>/data/respective_script_name.py, but putting them there does not work. Any ideas on what am I doing wrong here?

Update: Changed:

m_pScene->setMediaPath(smartbodyRoot + "/data");

to:

m_pScene->setMediaPath(smartbodyRoot + "/data/");

and compiled both examples again and it works with the scripts in the data folder.

July 29, 2015
7:55 pm
Avatar
Admin
Forum Posts: 983
Member Since:
December 1, 2011
sp_UserOfflineSmall Offline

Thanks for the fix,  I'll add it to the source for the next revision.

 

Ari

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 733

Currently Online: Jamesnuh, gotselyuk1987mon, koenig62ramos, krygerhagen69, coxgeorge3, doyle68bekker, ludvigsen62abbott, shortstext78, cormierhopper5
66 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

jwwalker: 80

jyambao: 52

rbaral: 47

adiaz: 30

WargnierP: 29

lucky7456969: 28

mbarros: 28

avida.matt: 26

JonathanW: 24

laguerre: 23

Member Stats:

Guest Posters: 67

Members: 100502

Moderators: 3

Admins: 4

Forum Stats:

Groups: 1

Forums: 5

Topics: 460

Posts: 2403