Jump to content

hummie

Member
  • Posts

    11
  • Joined

  • Last visited

Everything posted by hummie

  1. First of all thanks to RoboMat and Stormy for helping me out. On the second post RoboMat solved my problems on how to play a sound. On ninth post Stormy posted a solution to my timer problem.
  2. Thanks for the reply stormy it works. Going to recap the solutions in a new reply to make it easier for the people with the same problems.
  3. Mmh I was thinking about a sound-bomb. It would be a little bit similar to a alarm that some of the windows have. Only you would have a ten second head-start.
  4. ok thanks for the getInstance() part that made it work. The only problem is that it crashes ones it excutes the script. I think it spams to much since it crashes at the "print("not equal")" part. When I remove that it still doesnt work. Edit: At this point I think it is more of a problem that I have not a work-around for wait/delay function. On a other project I would use sleep() function inside a for or while loop, to prevent spamming the client/server. Or to prevent some tasks from being executed to quikly in a row.
  5. I tried wat you suggested but the error doesnt change at all. The line is still line 29 with the same error. Edit: After giving the error some more thought and what you said. Is it a possibillity that I need to do something with require'something'. I looked at a example in this tutorial: http://theindiestone.com/forums/index.php/topic/61-robomats-modding-tutorials-updated-12112013/ But when searched for such a name in the javadocs I couldn't find any classes that matched.
  6. So I am back with the results from testing: Got the sound working, the only thing that I need to do is tweak some values. The bad news is, is that I dindn't got my timer/delay to work. I tried to used getMinutes() to make a delay but got a error that reads out:"Object tried to call nil in soundtest"(on line 29) Here is the code on pastebin.(since it looks a little bit cleaner there) http://pastebin.com/gEXZHst5
  7. Ok thanks for the help with the formatting RoboMat. I will check your suggestions tomorrow(or later today) since it is half past 12 here(AM). But thanks for the help so far.
  8. I have 2 problem as the topic title suggests. One of them being the problem that I dont know how to create a timer in lua. On a other project I was used to a sleep(float) function. The other thing that I tried was with os.time but that didn't work out as well.(crashed upon using it) The second problem is that I can't find a method to let me play a sound and set the radius for it.(like a weapon that was fired) I have found the playsound() method but I dont think it will be the same as a used gun, but more as a sound effect. sorry for the code in the spoilers it doesnt seem to like me .
  9. Okay so I managed to fix it. I changed the name of one of my files. I think the crash was caused because my item file was named items, which is simmilar to the default one.
  10. Guys, I am back from the death!(plz dont point that shotgun at me) I am making a mod at the moment that will add a little bit of everything. But at the moment I can get it to work. Everytime I start the game(with the mod enabled), the options in the main menu completely disappear. Removing the item file seems to work but I cant find the problem in the file. error link: http://pastebin.com/w8hVdBVu thanks in advance, -hummie
  11. Wow this looks promising, it looks good so far. Can plants grow through broken windows or will that be implemented?
×
×
  • Create New...