You are not logged in.
Pages: 1
im having some problems with lua's not working.........this is the error code i get
[string "dynotimer.lua"]:1: unexpected symbol near '{'
Lua API: Loading rules.lua
Lua API: syntax error during pre-compilation: [string "rules.lua"]:1: unexpected symbol near '{'
i get the same error code for both of the lua's i have tried to work with
anyhelp would be great.
Also upgraded to nitmod 1.6 runs smoother, no glitchyness in the constructibles, u guys are doing awsome, thanks so much for a great mod.
Also thanks ahead of time for any help i may get MoEDAWG
Offline
You probably modified the LUA's and made mistakes.
These scripts are in the "LUA Scripts" section of the forum, that's probaly where you got them from.
I would recommend downloading the files again and try with the unmodified versions. Then tell us if it works or not.
Also upgraded to nitmod 1.6 runs smoother, no glitchyness in the constructibles, u guys are doing awsome, thanks so much for a great mod.
You're welcome x) To know that people like the mod makes us happy too you know
Offline
ok, so i redownloaded the rules and the dynotimer luas the rules one now works....thanks again N!trox, and im not sure if the dyno time works.....and info on what it actually will look like if it does. And now that the rules.lua is working how do i go about setting the rules i want without messing the file up again, honestly im not sure what happened the first time....lol that why im
Offline
rules.lua is kina self explanatory.
There are a few comments everywhere to explain how to configure it.
NUMRULES = 4
This is the number of rules you want to print.
rules = {
"Rule # 1",
"Rule # 2",
"Rule # 3",
"Rule # 4"
}
These lines are the rules that will be printed when clients issue /rules in their console. (The text has to be inside quotation marks. Last line must not be followed by a comma).
WEBSITE = "http://nitmod.ath.cx"
If you want to print a website when clients issue /website, modify this line and set USE_WEBSITE to 1.
I hope it helps and that you'll understand everythig I wrote x)
Concerning the dyno counter, it will print "X seconds till <place> explosion" in the chat (if a dynamite is planted at an objective) It can work as is, then of course you can customize the messages that will be printed.
Offline
i got the rules.lua working beautiful, but the dyno timer doesnt seem to want to work. i didnt modify it downloaded into the server with it off even and restart, still dont get messages. is it because i have dyno set to a 15 sec timer? or should i try saving the link and doing it again. ive checked my server.cfg to make sure i have the lua's set correctly the names match exactly.......hmmm thats all i can think of for now
Offline
The dyno timer uses 30 second dynamites. For other timer lengths, the lua script needs to be manually edited for them.
Offline
ok so i changed the timer back to what it is supposed to be 30 seconds. i did the rcon thing exec dynamite_counter.lua and it reads the file it says =B 8 = CHAT but i still go no warnings . i am assuming it will be like another chat or like a banner but im getting nothin :(thanks for all the help so far
Offline
Just to be sure, you did insert the script filename in the lua_modules string. The module gets loaded when the next map loads, not before that. You are using unaltered version of the dynamite_counter.lua?
Offline
yes i made sure i put it in the lua_modules string it actually looks like this "dynamite_counter.lua rules.lua" and yes unaltered version strait from the link in the lua forums Thanks again
Offline
The unaltered script prints the messages to the chat. Now I don't know what can be wrong if the rules lua works but the dynamite counter doesn't. At the same time I mean. I don't use either one of those myself but maybe someone who does, knows what can go wrong when setting them
Offline
well, i have to say thank u gaoesa. u were right to question the filename i had in nitmod.......i totally spelled it wrong.....works like a charm now.....and what did i learn from this......always check again when someone asks ........thanks so much man
Offline
Pages: 1