Hey guys, this might be stupid, but...
How do you code your script pause?
let say:
What you guys rely on, for ms precision?Code:Movements.MoveForwardStart() pause 1000 ms Movements.MoveForwardStop()
Does it make sense to ask you JuJuBoSc to give us a Delay(ms) tool?
Beside my little problems, Juju, this tool is taking me!! and you add stuffs almost daily, i get back home from work and ther's some new toy!! tnx you man, i'll donate to the project tonight!
Alcor75
After loading up your framework and trying to login to game i get a message saying my IP has changed enter in security code and that the patchmanifesterror_versionfail any clue wtf? after reading the error message it says i get this because something switched my game version to EU when im playing on US but i go to the game version and it says its still on US.
Last edited by warheart209; 04-16-2014 at 07:04 AM.
No I can't add a pause or sleep function, because the code is executed by the game thread, so if you pause it, that will pause the game aswell.
solidriver : you need to download the whole framework as most of the time, the lua use new functions.
warheart209 : never had this kind of issue :/
To JuJuBosc , I don't think so .
Since i am a unity 3d game developer , I answer to this question.
In unity , it use JavaScript or C# , all are scripts,
But it can pause 1000ms with yield statement . why do you think it is not necessary ?
That's nice. but NO. there is no sleep in lua for exactly the reason he just said. try one of these and you'll see why.
timer - How to add a "sleep" or "wait" to my Lua Script? - Stack Overflow
Whats this teleportbook? any tutorial or something? sorry ^^
ty for the tool. its working great for me
damn I just got the banhammer not sure if it's perm or not but It won't let me log in to the website
was using the framework I never used it in front of players
looks like I'm back to wow
I would think the "OnFrame" event should return a number of milliseconds for setting timers. In this way your LUA script still gets called every frame, but you can set timers on what your LUA script does. Juju will need to comment on if this is implemented and how to use it in his LUA implementation.
If you don't need millisecond accuracy, simply use os.difftime().
http://lua-users.org/wiki/OsLibraryTutorial
I'm fairly certain attempting to create a sleep in any other way will cause the game to hang while the external sleep executes.
Last edited by Urguwno; 04-16-2014 at 01:15 PM.
Last version dont work for me. Got error: Couldnt grab ZoRenderManager! Any idea?
Can you, Juju, expose a Epoch timer to the framework?
This way we can solve any problems with milliseconds. I ask this becouse Lua only expose seconds in os.time() or any other commands.
I'm sure this problem will come soon or later.
No rush, friend, i only try to help improve.
Alcor75