Blueberrys

  • Content count

    737
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Downloads

Klei Bug Tracker

Game Updates

Hot Lava Bug Reporter

Everything posted by Blueberrys

  1. Tuning Tweaks

    Version 1.1

    1,234 downloads

    Simple tuning tweaks all combined into one mod. Hopefully the last tuning mod you'll ever need. Everything is configurable in modconfig. Disabling things you don't need may improve performance, so if you only need one or two of these, you can set the rest to "Vanilla" (or the corresponding vanilla setting). Included in the mod: Hunger Resistance - Delay hunger depletion Attack Power - Damage with hands and weapons (not darts, cause walrus) Item Stacks - Size of stacks of items Chop/Mine Speed - For trees, rocks, etc Grow/Dry Speed - For berries, grass, twigs, meat, etc Fuel efficiency - Items add more fuel to fuelable things DurabilityTools/Weapons Armors/Clothes Amulets/Staffs Traps - Normal and Tooth [*]Perish time Lights (torch, lantern, etc) Foods [*]Depletion (turn off to disable component) Health Hunger Sanity [*]Various Breaking with hammer gives 100% loot Evil flower's don't decrease sanity when picked Compatibility: Compatible with DS and RotG. Made for DS, so RotG elements may be missing Should be compatible with all other mods (let me know if not) For anyone interested, feel free to copy/modify/use my mods however you wish, including in your own mods. Please include appropriate attribution with links so everyone can benefit from them. Legally equivalent to CC Non-commercial Attribution licence. In case of conflict with terms of the website, the websites terms take precedence over this message.
  2. Version 1.2

    484 downloads

    A module that can store, save, and load any arbitrary data. For developers only! Don't expect it to do anything interesting in-game. Download contains: persistentdata.lua - The module. Put this in your mod's scripts folder. PersistentDataExample_v1.x.zip - Example usage of the module with comments See the example for information on how to use it. Mods that currently use it: Mod Manager - by Blueberrys Feats of the World - by debugman18 Previously posted here. Everything provided here is public domain. No warranties for anything. Blah blah blah. Use it however you want! Attribution would be appreciated, but is not required.
  3. Considerate Spiders

    Version 1.2

    895 downloads

    When using Webber, spiders won't break walls. That's about it. Chester's hostility can be set in the modconfig to: Vanilla - No change Monster - Spiders: Not hostile, Pigs: Hostile. Peaceful - Neither hostile Works even when spiders or chester is not following the player. Compatibility: Compatible with RotG (DS doesn't have Webber, but you can still enable the mod) Compatible with all other mods (let me know if not) For anyone interested, feel free to copy/modify/use my mods however you wish, including in your own mods. Please include appropriate attribution with links so everyone can benefit from them. Legally equivalent to CC Non-commercial Attribution licence. In case of conflict with terms of the website, the websites terms take precedence over this message.
  4. Customize Screen Tooltips

    Version 0.3

    1,483 downloads

    Changes to customizations screen: A tooltip appears on the options images describing what the image represents. Cause sometimes it's hard to tell, especially for newer players. Pages scrolls completely instead of half way. You won't see the same items twice anymore when you click the "next" or "back" arrows. Compatibility: Compatible with DS and RotG. Probably compatible with all other mods. (let me know if not) For anyone interested, feel free to copy/modify/use my mods however you wish, including in your own mods. Please include appropriate attribution with links so everyone can benefit from them. Legally equivalent to CC Non-commercial Attribution licence. In case of conflict with terms of the website, the websites terms take precedence over this message.
  5. Tree Drops

  6. Stack Repeater

    @Deilan I don't currently have the time for it, but I'll keep that in mind if I get back to DS modding. Thanks for the feedback!
  7. Help with simple coding?

    @SquareRoot In a place where the inst variable refers to your player instance. Usually, that's in your player file, inside the "fn" function.
  8. Help with simple coding?

    @SquareRoot inst:ListenForEvent("oneat", function(inst, data) -- When you eat something if data.food.components.edible.foodtype == "VEGGIE" then -- If it's a veggie inst.components.sanity:DoDelta(-10) -- Decrease sanity endend)
  9. You can't just cut out parts of the code to optimise space xD It has to make sense too. I see. First of all, fix the if statement. Either write them all out correctly, or use one of the shorter methods I suggested. The builditem event is still being used in DST through the builder component. The armor component still has a operational SetPercent function. I think the issue may be related to the networking aspect. Perhaps the code isn't executing because it's not running on the host. I suggest you post on the DST mod forums. Include your full code, logs, etc.
  10. You mean prefab name? Not sure what you're looking for, but that if statement won't work how you think. if data.item.prefab == "armorwood" or "armormarble" ...Means "if the name is 'armorwood', OR if 'armormarble exists..." Should be: if data.item.prefab == "armorwood" or data.item.prefab == "armormarble" ...- Alternately: if data.item.prefab:sub(1, 5) == "armor" ...for everything starting with "armor" Edit: More code. -- ending in hatif data.item.prefab:sub(-3) == "hat" ...-- containing armorif data.item.prefab:find("armor", 1, true) ...-- containing hatif data.item.prefab:find("hat", 1, true) ...
  11. @jimmosio See Mobbstar's solution above. Also.. where is armor_inst coming from? Are you doing something like "armor_inst = data.item"? If what you provided here is all you have in your event function, it should probably crash with "attempt to index armor_inst a nil value". Considering that isn't happening, there may be another issue. Testing the event myself to confirm. Edit: data.item contains the prefab name, not the instance of the item. armor_inst still needs to come from somewhere though. Edit 2: Nope, actually it is the instance. You would need to use data.item.prefab to check if you've got the right item. Testing to confirm. Edit 3: Works. inst:ListenForEvent("builditem", function(inst, data) if (data.item.prefab == "armorwood") then data.item.components.armor:SetPercent(1.35) endend)
  12. @jimmosio Use the hungerdelta event, it updates whenever the hunger value is changed. local function check_light(inst, data) if GetClock():IsNight() and inst.components.hunger.current > 104 then -- if light off, enable light else -- if light on, disable light endendinst:ListenForEvent("hungerdelta", check_light)-- To ensure it's working even if the hunger doesn't change at night/dayinst:ListenForEvent("nighttime", check_light)inst:ListenForEvent("daytime", check_light)- Not sure what approach you want to take on that, but here's how you can change the durability. -- 135% of original durabilityarmor_inst.components.armor:SetPercent(1.35)You can do it upon crafting with: inst:ListenForEvent("builditem", function(inst, data) if data.item.prefab == "armor_prefab" then -- ... endend)Edit: Fixed data.item.prefab. (see below)
  13. Tree Drops

    Sorry, I don't think so. You're free to try it, but it wasn't made with DST compatibility in mind. I might make a DST version some time later though.
  14. @Corrosive I think you used the term fine, but it's such a vague and undefined term that it can be confusing. It's probably better to keep it reserved for humorous or non-educational kinda things (as above). We're so off topic, btw. This thread is for variables in caves. @Mobbstar I think you might as well start a new topic regarding your mod. I'd like to help out with it when I have some time.
  15. "Strongly typed". "type" meaning variable types such as integer, string, float, etc. Not typing with a keyboard. (Simpler explanation)
  16. What happened to RPG HUD?

    @Gearfried It's right here?
  17. It's about your mod, but not the issue you mentioned. Corrosive found something else in your mod and we started talking about that, but he edited the original post now. Er, again, have you tried using that module? xD It's fairly straight forward, should only take you about 5 minutes to figure it out. Or are you talking about the second issue, too? That doesn't sound right.. I think I'll have a look at your code. >-> If 1 is "unconcerned" and 10 is "Noo whyyyyyyyy" then probably 9.