Jump to content

bandus

Member
  • Content Count

    11
  • Joined

  • Last visited

About bandus

  • Rank
    Freshly Bitten

Profile Information

  • Gender
    Man
  1. Greetings! Working on adding a bit to my "Seed Bag" mod. In particular, I would like to make it so that the seed bag has a chance of spawning in certain locations such as the shelves of convenience stores, grocery storage, and in multiple places in grocers. I have reviewed some threads on here as well as tried to glean how other mods have done this and I would like to verify my understanding. Basically, for my own mod, I need to add a .lua file to \seedbag\media\lua\server\ and call it something like "SeedBagDist.lua." Then, within that file, have code like this: My questions specifically are: 1. Line 18 and line 46 seem to have issues. I am new to lua, but, it is my understanding that on line 18 I am declaring a function called SeedBag.init. However, Zomboid gets exceptions when loading these lines so I've clearly done something wrong. 2a. For the table itself, is it built properly with the proper formatting? I am pretty confident it is, but again, I would like to verify.2b. In lines 29, 31, 33, 35, and 37, the number after items, governs the chance that an item will spawn. Would the values I have used make the spawn chance rare? I think that value can be 1-100 but I am not completely sure. Thank you!
  2. Sorry to hijack this thread, but, is this answer true for ANY mods or just map/building mods? I see a bunch of a mods on the workshop already but I have not been able to find any solid instructions on the process to actually upload a mod (say, adding items into the game) to the Steam workshop. Can anyone point me in the right direction? Thank you!
  3. Indeed. That seems to have done the trick. I greatly appreciate your help! Good info too about weight reduction having a minimum value. Noted for the future!
  4. I appreciate the information! As I said, I am a bit new to modding. Is there any particular part of the code I should provide or should I zip up the mod in its entirety and post it to Dropbox? Edit: After reading the first post in the forum here, I realized I had posted my mod improperly. Here it is in the post as opposed to on Dropbox. My mistake! First file - SeedContainer.lua Second file - SeedContainer_items.txt module Base{ item SeedContainer {WeightReduction = 0.25, Weight = 2.00, Type = Container,Capacity = 50, DisplayName = Seed Container, Icon = SeedContainer, }} Third file - SeedContainer_recipies.txt module Base{recipe Craft Seed Container{Sheet/Pillow,WoodenStick=3, Result:SeedContainer=1,Time:200.0,} }
  5. Greetings! I am attempting to make my first mod for PZ and I feel like it is pretty simplistic. The intent is to simply add a new type of container to the game. Obviously, I believe I have the mod built properly, however after activating it in the game and then starting a game up, when I access the crafting window I am presented with this: https://www.dropbox.com/s/6zhecv8l4sjl2j9/2015-10-29%2016_03_58-Project%20Zomboid.png?dl=0 Clearly, it cannot find the texture for the icon and also "Blooo" seems to indicate that it can't find the name of the item either. I'm just not sure why as it seems to be reading the ingredients for the recipe properly, at the least. Any advice would be appreciated!
  6. Are you referring to the file ProjectZomboidServer.bat, the file that configures the server and ultimately is used to start it? Or is there a separate file? I'm really scratching my head here because I read several FAQs and posts on how to start a server and I never saw mention of another file. I also don't really see another file that seems to be close. Unless you are referring to PZServerSettings.exe, but that file generates a LUA file that appears to be out of date with the current LUA file format and the server won't launch if you use that, in my experience.
  7. Thanks, I will try that! Yes, I'm using a debian machine for hosting it, so it might also work. No, I did this by saving the world, shutting down the server, modyfing lua file and starting server again. yeah youll need to set the setting FIRST then launch teh server for the first time. Settings will stick and work. Now I am a bit confused. The C:\Users\Username\Zomboid\ directory that contains \server\ with the .LUA files for configuration didn't exist until I had already run the .BAT file to start the server. How can one set the settings before starting the server for the first time?
  8. Thank you again Tibby! I wanted to add this for posterity in case someone has the same questions I still do. Below is my SandboxVars.lua file that I have added comments to based on the research I have done so far. If anyone finds something here that is inaccurate, please say so! Anyhow, here goes:
  9. Thank you for your reply! I do indeed have the game through Steam, however, I am not entirely clear on what the "Sandboxvariables launcher" is or where it would be located. Can you elaborate? Thank you!
  10. Greetings! I recently purchased Project Zomboid and am excited to set up my own private server to play with some friends of mine. In attempting to configure the server, I have come across a few questions. I appreciate any assistance! 1. With regard to the SandboxVars.lua file, I can't seem to find any current and definitive source that describes what the variables can be set to. For example, I understand that DayLength = 2, changes the length of a day. However, if I change it to 3, how long does that make a day last? Also, at the top of the default SandboxVars.lua file is a line that says "Speed = 3," At first I thought that it controlled the speed of the zombies, but that appears to be handled lower in the LUA file. It doesn't seem to control the day length either because of the variable mentioned above. So what does this do? I realize this game is still in early access, however, does any current and definitive source exist so that I can better understand what changing these variables do? 2. Another question is the serveroptions.ini file. Most of the options in there seem self explanatory, but the first option "nightlengthmodifier=1.0" confuses me a bit. Is this something that needs to be changed in addition to the DayLength modifier in the SandboxVars.lua file? Thank you!
×
×
  • Create New...