Forum

> > CS2D > Scripts > lua error
Forums overviewCS2D overview Scripts overviewLog in to reply

English lua error

10 replies
To the start Previous 1 Next To the start

moved lua error

deatclaws
User Off Offline

Quote
Hey guys,

i am working on a lua for tibia rpg that a edited whit the weiwen one for base .. i created my own map and i edited monster,item,npc but now i'm blocked on multiple error in monster files ,, a friend corrected me the npc.lua but now i have trouble whit the monster one and she is offline .. i corrected by my self the half of the ERROR in the monster.lua but now i'm blocked on one fault that i don't see i searched whit the CTRL+F ( windows 7) in the monster.lua that i edited and the one who weiwen created and i don't find anything ! it's little bit frustrating .. the message is .. =>

LUA ERROR: sys/cs2dtibia/monster.lua:288: ')' expected (to close ')' at line 286) near '='

what that mean ??? for me is i forgot to close a function in the line 286 near an equals sign ( = ) but i don't find it so i am searching for someone that can help me like give me more specified information or your skype or msn or hotmail or forum ( something to talk and exchange files .. ) so i can be helped i worked 40 hours on this script and it's still not working so please someone help me !!

thx Deatclaws

Admin/mod comment

this is about scripts. why do you post it in the general section and not in the scripts section? please think before posting /DC

old Re: lua error

deatclaws
User Off Offline

Quote
i don't knows how to find the line whitout counting all the lines can you tell me the secret x)
edited 1×, last 30.11.11 09:55:42 pm

old Re: lua error

deatclaws
User Off Offline

Quote
okay uhmm i installed notepad++ ( great idea im so dumb U_U )

i found the line whit out counting everyone x) ! so the line is

{
          name = 'Bigtroll', health = 625, image = 'gfx/weiwen/pokemon0/21.png', scalex = 3, scaley = 3, r = 144, g = 144, b = 144,
          atk = 7.8, def = 5=8.0, spd = 3, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, runat = 0, range = 64,
          spawnchance = {['DJ_tibia_by_deatclaws'] = {70}},

and the ERROR is .. =>

LUA ERROR: sys/lua/cs2dtibia/monsters.lua:288: '}' expected (to close '{' at line 286) near '='
edited 2×, last 30.11.11 11:09:10 pm

old Can you help me?

imtheshamman
User Off Offline

Quote
Guys i clicked on a lua file open with then i clicked notepad when i closed open with i saw all of the lua files are all txt.
how can i change it back to lua? men my server cant start
the lua cant start cuz its notepad but its a lua file under the name of it? then the lua file removed the anyname(.lua)
it removed the .lua whY?!
i cant start my server now

old Re: lua error

Apache uwu
User Off Offline

Quote
Open a folder-ANY FOLDER.

1. Press alt-T
2. Select Folder Options
3. Switch to the tab 'View' if not selected already.
4. Uncheck 'Hide Extensions for known file types.'
5. OK or Apply

Now you can change the file's type with ease.

Lua doesn't need to be .lua you know, if you want to use .txt you just need to change mp_luasever to have a .txt extension and when dofile() --> making sure it's the correct extension.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview