Cannot load or debug because of 'resources:get'

Moderator: admin

Cannot load or debug because of 'resources:get'

Postby LordTwig » Fri Apr 23, 2010 3:49 am

Hiya, I have tried to load pivot.lua in debugger but it cannot be created.

I tried also to Custom Load pivottest.lua to marketscope (added "test" to filename as standard pivot in marketscope already). It will not load because resources are nil value, I deleted & changed name & description to normal names this works for those lines of code but pivot.lua is full of "resource:get" code and keep getting same error message "resource is nil value".

How can I easily fix get around these issues?

LordTwig
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am

Re: Cannot load or debug because of 'resources:get'

Postby Nikolay.Gekht » Fri Apr 23, 2010 7:58 am

Every time you rename the standard indicator, please either:
1) also rename the lua.rc file (pivot.lua.rc -> test.lua.rc in your case).
or
2) remove the localization calls from the lua file (resources:get()) (see more about localization: http://www.fxcodebase.com/documents/ind ... ation.html)
Nikolay.Gekht
FXCodeBase: Site Admin
 
Posts: 1235
Joined: Wed Dec 16, 2009 6:39 pm
Location: Cary, NC

Re: Cannot load or debug because of 'resources:get'

Postby LordTwig » Fri Apr 23, 2010 8:11 am

yep! Just returned to delete this post as I just worked it out, I always wondered where the name & descriptions came from.

I am just going to copy the strings text from rc file to replace the resources:get - statements.
Hope this works with no problems.

LordTwig
Cheers
LordTwig
LordTwig
FXCodeBase: Confirmed User
 
Posts: 157
Joined: Fri Mar 12, 2010 3:15 am


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 8 guests