Jump to content

Nat_VS

VS Team
  • Posts

    17
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Nat_VS's Achievements

Berry Picker

Berry Picker (2/9)

30

Reputation

2

Community Answers

  1. Thanks for writing this! Could you please move the post to https://www.vintagestory.at/forums/forum/35-modding-guides/?
  2. Hmm... There appears to be two ways you can do this - The first is to, as you've said, use the HarvestableBlockBehavior. There is code inside of CollectibleBehaviorHandbookTextAndExtraInfo.cs that controls it being added to the handbook. Perhaps this will give you an idea as to why your previous code did not work?: List<ItemStack> harvestedStacks = []; if (stack.Block.GetBehavior<BlockBehaviorHarvestable>()?.harvestedStacks is BlockDropItemStack[] hStacks) harvestedStacks = [.. hStacks.Select(hStack => hStack?.ResolvedItemstack)]; if (harvestedStacks?.Count > 0) { bool haveText = components.Count > 0; AddHeading(components, capi, "handbook-dropswhen-harvested", ref haveText); components.Add(new ClearFloatTextComponent(capi, TinyPadding)); while (harvestedStacks.Count > 0) { ItemStack hstack = harvestedStacks[0]; harvestedStacks.RemoveAt(0); if (hstack == null) continue; SlideshowItemstackTextComponent comp = new SlideshowItemstackTextComponent(capi, hstack, harvestedStacks, 40, EnumFloat.Inline, (cs) => openDetailPageFor(GuiHandbookItemStackPage.PageCodeForStack(cs))); components.Add(comp); } components.Add(new ClearFloatTextComponent(capi, TinyPadding)); } The second option appears to be to use the 'ICustomHandbookPageContent' interface on your collectible. I haven't personally used it, but it appears to be able to do what you need it to do. It contains a single function 'OnHandbookPageComposed' that is called by the CollectibleBehaviorHandbookTextAndExtraInfo.cs. It appears you may be able to edit the components of the harvested stacks to add in what you need. Take a look at BlockFruitTreeBranch.cs for an example. Good luck!
  3. Indeed; Most of these videos will be one-shot tutorials that are not linked to each other. Perhaps, in the future, we could do some long videos of zero to full mod kind of thing, but it will never be a particularly huge mod.
  4. Hi all - I'm considering making some video tutorials for the existing modding tutorials that exist on the wiki. These will be updated and verified regularly to ensure they remain up-to-date. There is a poll attached that I would be very grateful if you could submit. Thanks!
  5. I'm not 100% sure if it's leaves or grass. Either way, something is using a solid quad rather than its texture.
  6. Mod Development FAQ Please check the following before posting your question! This is a growing list; please feel free to reply to this post for recommendations on any questions that should be added. (Coming soon, thanks for being patient.)
      • 1
      • Like
  7. Mod Development Questions/Troubleshooting - Posting Rules, Guidelines & Templates This board is for enquiring about how to achieve something with modding, or for troubleshooting certain issues when making a mod. Rules Either search on the forum or google your issue to try and find if it has been asked before! See the (not yet existent) pinned FAQ post to see if it is on there. If not, then.... Please clearly state what version of the game you are modding. This can be done in the post title or body. Please use the 'solve' feature for when your issue is resolved! If you figure out the issue yourself, or answer your own question, please reply to your own post or edit the post with the answer. Guidelines If you are asking a question, use the 'question' tag. Otherwise, if troubleshooting an issue, use the 'troubleshooting' tag. If you have already tried certain things to solve your issue, note these in your post. It'll help people know what kind of issue you're facing. Template The following is a template that can be used for this channel. You don't have to use it, just as long as you follow the rules. Mod Version: _ Summary: _ Detailed description: _ Already Tried: _
  8. @Arisilde I think you're close but not exactly correct - If you take a look at the grass blocks, they are appearing as complete black panes, rather than a completely unlit texture. If it was just lighting, that wouldn't effect the transparency of such blocks. My suggestion is that this is a shader mod, if you have any installed. Specifically, I would say the standard.fsh/vsh shaders appear broken (with the premise that the water is rendering fine, which uses a different shader).
  9. Mod Requests - Posting Rules, Guidelines & Templates This board is for enquiring about paid or unpaid mods that you would like someone to make. Rules Please use post reactions to give support to a mod idea. Do not use comments to do this. Please clearly state whether your mod is a commission or unpaid request. Please be careful when/if doing any sort of financial transaction. Guidelines If your mod is a commission, use the 'commission' tag on your post. Give as many details as possible about your request, in their simplest form. I.e., what should the finished product do from the player's perspective? Template The following is a template that can be used for this channel. You don't have to use it, just as long as you follow the rules. Mod Title: _ Mod Version: _ Commission: Yes/No (If commission) Price Range: $0 to $1 Required Features: Feature 1 Feature 2 ... Further Description: _
      • 1
      • Like
  10. Modding Guides - Posting Rules and Guidelines This board is to allow people to create guides and information dumps about certain modding topics. This board is less strict in terms of templates, since it will vary depending on topics. Rules Please provide the version number that the guide was last updated for. Please ensure that all information posted here is correct at the time of writing. Speculation or guesses on how something works is allowed, but please state this for each speculative point. One post per topic. If you are writing about multiple unlinked topics, please use multiple posts. Guidelines It is recommended to provide sources to any information - Whether in the form of inline links, or a sort of bibliography at the end of your post that gives relevant links. It is recommended to use some of the following tags, and you can add more if needed: C# Guide JSON Guide Content Mod Guide Code Mod Guide Blocks Items Entities Misc. Have fun writing your guides! You're doing a service to all modders
  11. So you'll need to make your mod page first - After the page is created you'll see an "Add Release" button. Click that, it'll let you upload your mod
  12. I had a quick look at your current zip file. What you're trying to do will require the use of variants. Variants are basically multiple versions of items inside a single asset file. For your purposes, you'll want to have a single 'dyedfletching.json' asset, with a 'color' variant. The states for the color variant should be the same as your barrel recipe. After that, you'll want to add a 'color' variant to your 'fletchedarrow.json' item. It may be worth taking a look at the following wiki tutorials, which deal with creating and using variants: https://wiki.vintagestory.at/Modding:Content_Tutorial_Item_Variants https://wiki.vintagestory.at/Modding:Content_Tutorial_Complex_Grid_Recipes I hope this helps to get you started and gives you an idea of the direction that you need to go in!
  13. Hi all! A while ago, I hosted a poll over on Discord about the usage of the forum, and it was agreed that we were all hoping for some improvements to be made to the forum to allow it to be used more efficiently, as well as provide a long-term solution to modding queries. Forum Structure To compare, the following is the old structure of the forum, with categories in bold: Vintage Story Modding Mod Releases Modpack Releases Mods & Mod Development The main issue with this is that "Mods & Mod Development" is ultimately the go-to for any and all development queries or updates. The following is the new structure of the forum, with categories in bold: Vintage Story Modding Using Mods Mod Releases WIP Mods Using Mods Troubleshooting Modding Chat Making Mods Official Modding API/Doc Updates Mod Development Questions/Troubleshooting Mod Requests/Ideas Modding Guides [Legacy] [Legacy] Mods & Mod Development [Legacy] Modpack Releases Note that the 'Modpack Releases' and 'Mods & Mod Development' boards are now 'legacy' boards. This means that new posts cannot be created but old posts can still be replied to. One major goal of the new boards is to allow a problem to be searched on Google, and the appropriate results will be displayed. Posting Rules, Guidelines, and Template Each board that can be posted on in the Vintage Story Modding category will now have a pinned 'Posting Rules, Guidelines, and Template'. Following these not only helps us keep the wiki clean, but they are there to help you with posting and ensuring that you give relevant information, and also allows you to receive the information that you want if in a help channel. It is highly recommended to use the attached template for your post. How To Help The forum is a community-based environment, so here's how you can help: Engage with posts - Replying, liking, and sharing posts helps us make a better and more inclusive community. Follow the Board Guidelines - These will help everyone in the long-term. It may seem a little pointless, but it'll help you get the results you want. Recommend the forums - If you're helping someone or talking a lot about a specific problem on Discord, consider asking the author to make a forum post. If one person has struggled with something, you can be sure that someone else will struggle with it too. Use the 'Solved' feature - Certain boards will have a feature where you can mark an issue as solved. Using this will help keep the troubleshooting boards organized. Thanks everyone
  14. Hello! The reason the forum seems quiet is because the new boards were only created yesterday. (Thank you for using the 'solve' feature too, I love that it's getting use already!)
  15. You certainly can do this. First, you'll want to create some lines. You can use the LineMeshUtil class to generate a 3D mesh for your lines. You can position and/or rotate the mesh if desired, but you need to upload it to the graphics card using 'capi.Render.UploadMesh(...)'. Then, you can render the mesh using the render API. You will want to use the 'EnumShaderProgram.Wireframe' shader, and you'll likely want to use one of the predefined render functions, e.g. 'OnRenderFrame'. For an actual example, see https://github.com/anegostudios/vsapi/blob/a2e2ca074c351d9154101107c704fd4d63161d51/Client/Render/WireframeCube.cs#L9. Hope this helps!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.