Jump to content

Vintagebob

Vintarian
  • Posts

    36
  • Joined

  • Last visited

Recent Profile Visitors

193 profile views

Vintagebob's Achievements

Stone Age Settler

Stone Age Settler (3/9)

11

Reputation

  1. Yes, the error was, that i tried to get the rotated block code with an outdated method. I used a dictionary, but this is the right way: BlockFacing[] horVer = SuggestedHVOrientation(byPlayer, blockSel); if (blockSel.Face.IsVertical){ horVer[1] = blockSel.Face; } AssetLocation code = this.CodeWithVariants(new string[] { "verticalorientation", "horizontalorientation" }, new string[] { horVer[1].Code, horVer[0].Code }); Block block = blockAccessor.GetBlock(code);
  2. Thank You! Unfortunately it still does not work, but i think this is some other error in the code then...
  3. Hello there, I recently decidet to update my mod to the newest version, and i noticed, that my custom classes are not registering. Every object, that had a custom class and thus a custom functionality, stopped working. In addition, when i try to spawn an entity with such a class, my game crashes with the crash log in the VS crash reporter: System.Exception: Don't know how to instantiate entity of type CustomEntity did you forget to register a mapping? at Vintagestory.Common.ClassRegistry.CreateEntity(String className) in VintagestoryLib\Common\ClassRegistry.cs:line 333 at Vintagestory.Common.ClassRegistryAPI.CreateEntity(EntityProperties entityType) in VintagestoryLib\Common\API\ClassRegistryAPI.cs:line 85 at Vintagestory.GameContent.ItemCreature.OnHeldInteractStart(ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel, Boolean firstEvent, ... Im currently registering classes by this mehtod: namespace custommod { public class CustomMod : ModSystem { public override void Start(ICoreAPI api) { base.Start(api); //---------Entities api.RegisterEntityClass("CustomEntity", typeof(CustomEntity)); //------------Blocks api.RegisterBlockClass("CustomBlock", typeof(CustomBlock)); //------------BlockEntities api.RegisterBlockEntityClass("CustomBlockEntity", typeof(CustomBlockEntity)); //------------Items api.RegisterItemClass("CustomItem", typeof(CustomItem)); } } } This is also the method shown in the wiki, and it worked bevore. So what do i need to change, or what is the new method of registering custom Classes in VS version 1.18.1? Thank You
  4. So, the new release without non-english letters is out now hopefully it wont bug anymore
  5. O, really? This is bad... I dont thought, it would cause any problems... Thanks very much for this tip I'll fix that at the weekend then, thanks
  6. Yes, i will make a new update for the mod, but now i havent enougth time to code it But I defenetly will
  7. Ok, i changed it now But if you want to look at tis file, it might take a long time, because i've written down all classes from the whole mod in this one file... nevertheless, thank you for your advice
  8. Hi, please spawn the boss only with the eternityaltar, otherwise it might bug and cant do all attacks Thanks for the feedback, @jakecool19 , but the music was a little bit buggi in the release x D, because i tested it and forgot to set the music-repeat-value back, and the music started every 10 seconds again. Now i fxed that, but if you die, and the boss despawns, the music still plays to end, because i dont know, how to fix that But now you can enjoy it without bugs (and thank you for not spoiling here ) New features in the new update: -from normal wooden buckets you can craft fishbuckets -use it on a fish (not a shark, because it is too big xD), and you will get the fish in the bucket -you can release the fish, whereever you want, just shift and left-click -the fish should not despawn then -you can craft the fishbucket back to a normal bucket
  9. Thank you i dont even knew, that it is possible to zip not a folder, but many files into one .zip file x D Now i uploaded a newer version with the corect zip
  10. Hello everyone, this is my first mod. It adds oceans, fishes, dungeons, mushrooms, popys and some stuff more. More information you find here: https://mods.vintagestory.at/httpsgithubcomkrafterbobomniummod (I didnt want do write all the stiff donw twice xD) Enjoy the mod
  11. No, this isnt working :/. If i try this, the world looks like this: and when i change offsetY from -84 to 84, the structures generate above the surface: But thanks for answer me
  12. unfortunately i missed the event . maybe you could do other such events, like a christmas event for example or so
  13. Thank you for the answer , but its solved already . The problem was, that i forgot to add the the texture to the blocktypes/metal/ingotpile,json file, and the texture for the forge and the anvil-workitems are taken from there. And yes, the textures have to be in the game folder, thanks
  14. Hello, I wonder for what the meta blocks "Pathway" and "Underground" are usefull. The "Filler" one fills structures with air, when they are generated, and the "Spawner" spawns entities. But what do the "Pathway" and the "Underground"?
  15. Hi, i have a problem: i want to add a new metal to the game, but when i put the ingots in a forge, or when im smithing them, they loose there textures and become white and with a question mark. Has someone an idea, how i can fix that problem pls?
×
×
  • 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.