feverdog
Active Member
- Joined
- Mar 10, 2008
- Messages
- 229
- Reaction score
- 36
Hello, there is something that has always bugged me and I really hope someone can help me with it.
On TFS 0.3.7 (I don't know if this happens to any other) when I put a script to execute something in the module lib like on: data/talkactions/lib/example.lua or in data/lib/0023-example.lua it just keep looping over and over again.
if you try to execute like this on example.lua:
It keeps looping print function, just like with any other thing that I try to execute in module_name/lib (actions, talkactions, etc) or in data/lib/filename.lua
Notes: the spells/lib/ seems safe from loop calling, but the others are just messed up.
Doesn't this affect performance at server startup?
Is there any catch that I do not know with it? Can someone help me solve this please?
Thanks in advance.
On TFS 0.3.7 (I don't know if this happens to any other) when I put a script to execute something in the module lib like on: data/talkactions/lib/example.lua or in data/lib/0023-example.lua it just keep looping over and over again.
if you try to execute like this on example.lua:
Code:
do
local executed = false
if not executed then
print('hi')
executed = true
end
end
It keeps looping print function, just like with any other thing that I try to execute in module_name/lib (actions, talkactions, etc) or in data/lib/filename.lua
Notes: the spells/lib/ seems safe from loop calling, but the others are just messed up.
Doesn't this affect performance at server startup?
Is there any catch that I do not know with it? Can someone help me solve this please?
Thanks in advance.
Last edited: