Search the Community
Showing results for tags 'help needed'.
Hi, I'm making a mod that adds a removable (with some electrical skill) back-up beeper to spawn with the game's step vans, while adding a little extra trunk room (the downside being putting the vehicle in reverse will make a looping loud beep from the vehicle, which will attract zombies until the part can be uninstalled). This will not be visible from looking at the step van, but checking at the mechanics tab will reveal whether it's installed or not. It will always be installed when the vehicle spawns into the world. I know of older versions of the game where something very similar was on all commercial vehicles, but I couldn't find the code for that in those versions files, and the seemed to have a problem where the sound would play as soon as the reverse button was pressed, and rapidly tapping would quickly, repeatedly play the sound. My goal was to avoid that and place a minimum time limit between each beep. Hopefully, this is understandable and enough information. This is my first mod, I have a little familiarity with coding, but not much with lua, so I'd like to apologize, I had to take inspiration from similar vehicle mods already on the workshop. Unfortunately, I'm not quite sure what exactly is causing this issue. Booting up the game with only this mob enabled shows no change from the base game. The step vans in the world will not have the part on them and will not beep in reverse. The console give the following: ERROR: template "BackUpBeeper" not found. (The name I have used throughout the code to specify this back-up beeper.) I have below attached files I suspect to be causing the problem. "beeper_vehiclesitems" gives the qualities of the back-up beeper itself, while "template_beeper" explains the qualities of the item in the vehicle, if that's the correct information. I also have attached the revised step van code for the game. The changes I have made it to where the back-up beeper ("template = BackUpBeeper") and an increase of 10 to the step van's trunk size, increasing it to 170. These were taken after the example of the base game's code for adding vehicle items, so I'm not quite sure what bits are necessary for this item. For example, some of the code that specified an item of a vehicle had a "lua" segment at the end, which I believe gave the variables such as "create" and "update" and I believe all of them had "test" under the specifications for uninstalling the part. This can be seen as the last written code in my "template_beeper". Is this necessary? What, exactly, does it do? I have additionally attached below the code which specifies what functions of the back-up beeper (I have my intended functions for the beeper at the top of this message) The code runs through the game as the mod is but it may cause errors in the future once the mod's functionality changes. I apologize if this was too much to read, I just wasn't sure how to get the mod functioning properly. Thank you. beeper_vehiclesitems.txt template_beeper.txt vehicle_stepvan.txt ReverseBeeper.lua
Hello I've been trying to start up my own server with mods after being dormant for 2 years. But I'm experiencing error after error... Been searching on google and the forum for almost 3 days straight, but all in vain. So I decided to embarrass myself with (what would believe to be) a petty problem. Had problems with mods not loading but after I fixed that I still get "server terminated" I have. Opened the all the ports, updated JRE, made exceptions in the firewall, Reinstalled PZ and cleaned all the leftovers . So where/what's wrong and how do I fix it? Log and servertest below. "server log" http://pastebin.com/AQ1jjKRa "Servertest.ini" http://pastebin.com/dmqmyyWj /Omen