Quantcast Getting a strange error in file - LoTROInterface
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 10-29-2015, 07:12 PM
Papabard's Avatar
Papabard Papabard is offline
The Wary
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 2
Getting a strange error in file

get something about value returning nil. Tried to duplicate however it wouldn't do it again

the error is in this function

startsWith = function(self, piece)
return string.sub(self, 1, string.len(piece)) == piece
end
rawset(_G.string, "startsWith", startsWith)
Reply With Quote
  #2  
Unread 11-02-2015, 07:39 AM
Thurallor's Avatar
Thurallor Thurallor is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: May 2013
Posts: 136
Quote:
Originally Posted by Papabard
get something about value returning nil. Tried to duplicate however it wouldn't do it again

the error is in this function

startsWith = function(self, piece)
return string.sub(self, 1, string.len(piece)) == piece
end
rawset(_G.string, "startsWith", startsWith)
Well you're not giving me much to go on, but that function would generate an error message if the "piece" argument is nil. Example:
str = "blah";
piece = nil;
Turbine.Shell.WriteLine(tostring(str:startsWith(pi ece)));

Last edited by Thurallor : 11-02-2015 at 08:02 AM.
Reply With Quote
  #3  
Unread 11-08-2015, 04:36 PM
Papabard's Avatar
Papabard Papabard is offline
The Wary
Interface Author - Click to view interfaces
 
Join Date: Sep 2010
Posts: 2
yeah I couldn't ever get it to error again. Think it was a first run thing will remove the plugin and reinstall it to see if that triggers it again.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Having a strange problem with my plugins sheerra Interface Help (L) 0 04-30-2013 08:52 AM
Strange visual bug since update 6.1 Eili Interface Help (L) 6 04-21-2012 11:54 AM
Error log? Elenil Interface Help (L) 5 02-10-2012 08:55 PM
Strange issues with LUA plugins and Lotro F2P Europe sheen Interface Help (L) 5 11-12-2010 11:00 AM
SVN error The Old One Site help, bugs, suggestions/questions 5 09-28-2010 03:46 PM


All times are GMT -5. The time now is 09:42 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui