Author Topic: Help with old lua script  (Read 1451 times)

0 Members and 1 Guest are viewing this topic.

Offline nEgativE

  • Double Ace
  • *
  • Posts: 146
  • Karma: +6/-4
Help with old lua script
« on: 15 February, 2015, 20:11:39 »
Hi there, first, sorry the english and forum section help. So, i'm running a small hub with ptokax 0.3.6.0, with old lua, and a script called "GEOIP LITE CITY" by CHILLCODEā„¢ with a few modifications, for years running fine, i always update 2 files to get updates, the "GeoLiteCity-Blocks.csv" and "GeoLiteCity-Location.csv" but in this december the script is unable to convert the CSV files.. it gives erros, i guess geoip site have changed some data on files or something, so.. i cant get it to work, could someone help me ?

Error ptokax : 01.px-geoip.lua:239: attempt to index local 'tc' (a nil value)

Error function:
function GLite:unpack( tc )
   return tc[1], tc[2], tc[3], tc[4], string.gsub( tc[5], "%.", "," ), string.gsub( tc[6], "%.", "," )
end
« Last Edit: 15 February, 2015, 20:14:23 by nEgativE »
LUSA
dc.vasco.srv.br

PtokaX forum

Help with old lua script
« on: 15 February, 2015, 20:11:39 »

Offline nEgativE

  • Double Ace
  • *
  • Posts: 146
  • Karma: +6/-4
Re: Help with old lua script
« Reply #1 on: 22 February, 2015, 06:00:55 »
Hi there, first, sorry the english and forum section help. So, i'm running a small hub with ptokax 0.3.6.0, with old lua, and a script called "GEOIP LITE CITY" by CHILLCODEā„¢ with a few modifications, for years running fine, i always update 2 files to get updates, the "GeoLiteCity-Blocks.csv" and "GeoLiteCity-Location.csv" but in this december the script is unable to convert the CSV files.. it gives erros, i guess geoip site have changed some data on files or something, so.. i cant get it to work, could someone help me ?

Error ptokax : 01.px-geoip.lua:239: attempt to index local 'tc' (a nil value)

Error function:
function GLite:unpack( tc )
   return tc[1], tc[2], tc[3], tc[4], string.gsub( tc[5], "%.", "," ), string.gsub( tc[6], "%.", "," )
end
Solved
LUSA
dc.vasco.srv.br

PtokaX forum

Re: Help with old lua script
« Reply #1 on: 22 February, 2015, 06:00:55 »