Jump to content

ANJ_

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by ANJ_

  1. Are there any resources out there for updated methods? Because while most of this got me started, some things I'm having major issues with. Like for instance with the WorldStaticModels, the game now supports 3D models being placed and dropped in the world as opposed to icons, but even when I follow the games directory file setup no matter what I do I can't get my item to show up in game (Dropped/Placed) as the specified WorldStaticModel 3D model, it only shows as the inventory Icon.png . Obviously people out there are making mods that are working with the 3D placed items yet I can't make it work even when I match their entire setup. **RESOLVED** And for anyone who may be experiencing this same problem, you have to create a script text file in your Scripts folder, naming convention is unimportant though I'd name it something like WorldItems_MyModName or something, and it should look something like this module Base { model YourItem_Ground { mesh = WorldItems/YourItem_Ground, texture = Clothes/YourItem_Texure, scale = 0.01, } } "YourItem_Ground" referencing your items .FBX or .X file for the ground/worldstatic model and "YourItem_Texture" referencing that items respective .png texture file. Note of course that if any of your files are found in different folders you have to target those, for instance if you had a bag texture file in the textures/Clothes/Bag folder then your code should reflect that, written as Texture = Clothes/Bag/YourItem_Texture The scale you may have to mess around with in order to get the size of your model right. Hope this helps someone
  2. Now I know without showing all my code, files, filepathing, and naming conventions that the problem can be hard to diagnose, but as far as I can tell none of that should be an issue, I have even compared working item mods folders/files/and code and haven't seen any discrepancies yet when my item is either dropped on the ground or placed on the ground the game completely ignores the [itemname_ground.fbx] file and just places an image of the inventory icon for that item. Does anybody know what I might be doing wrong? I'm very new to Project Zomboid and am working on my first mod so it's a learning process but I'm banging my head against the wall on this one. I've tried different naming conventions, I've tried copying/pasting other peoples codes or the games codes within the /media/scripts folder while replacing the referenced [itemname_ground.fbx] files with my .fbx located within the same folder space, I've compared working default worldstaticmodels/ground models with my own, I can't seem to find any differentiation between any of the files models or codes with my mod and the default files yet for some reason it just won't work. **RESOLVED** And for anyone who may be experiencing this same problem, you have to create a script text file in your Scripts folder, naming convention is unimportant though I'd name it something like WorldItems_MyModName or something, and it should look something like this module Base { model YourItem_Ground { mesh = WorldItems/YourItem_Ground, texture = Clothes/YourItem_Texure, scale = 0.01, } } "YourItem_Ground" referencing your items .FBX or .X file for the ground/worldstatic model and "YourItem_Texture" referencing that items respective .png texture file. Note of course that if any of your files are found in different folders you have to target those, for instance if you had a bag texture file in the textures/Clothes/Bag folder then your code should reflect that, written as Texture = Clothes/Bag/YourItem_Texture The scale you may have to mess around with in order to get the size of your model right. Hope this helps someone
  3. I'm not really sure I am understanding what you are asking, every item in the game has a name, so I'm really confused by what you mean when you say "there is a problem with finding the names of all objects", that's rather vague wording and doesn't really tell us what the "problem" is, but maybe this helps?... https://pzwiki.net/wiki/Items
  4. Does anyone know, before I go deep diving to try and see what sort of code can be accessed for modding PZ, if you can limit items parameters fairly easily as far as spawn chance goes and limiting the amount of items per server? For instance lets say I have an armored tank vehicle in the game, could I target that vehicle to only spawn one per server. Or would I have to manually spawn one with a debug tool and place it myself? Personally I like the idea of adding in some cool items to the world like heavy armored vehicles or more powerful guns, but I would want them to be extreme rarities, not only because of the way they will effect gameplay if they are common items but also to make them more desirable and rewarding to have.
×
×
  • Create New...