copygirl / carrycapacity Goto Github PK
View Code? Open in Web Editor NEWVintage Story mod which adds the capability to carry blocks in-hand and on your back
License: The Unlicense
Vintage Story mod which adds the capability to carry blocks in-hand and on your back
License: The Unlicense
Threw a flint spear at a trader causing game crash. Very easy to repeat.
CarryCapacity-0.4.10
Version: v1.13.4 (Stable)10/7/2020 10:57:49 AM: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
at Vintagestory.GameContent.ItemSpear.OnHeldInteractStop(Single secondsUsed, ItemSlot slot, EntityAgent byEntity, BlockSelection blockSel, EntitySelection entitySel)
at Vintagestory.Client.NoObf.SystemMouseInWorldInteractions.HandleHandInteraction(Single dt)
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world)
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt)
at Vintagestory.Client.NoObf.ClientMain.MainGameLoop(Single deltaTime)
at _VtIDI6oYFpyEcQSZBFso9UVxS9aA._ZnYzeuHqveMMiEvOnpahncAMjfg(Single )
at _LSAAgZhw31Rqs2is6nnojfZBbQC._4BykKOCicJqCBHpyWIgTmxWrTrg(Single )
at _LSAAgZhw31Rqs2is6nnojfZBbQC._6XmOxKoTYrFLRCGd58p58XW43nD(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _lYLQLGyldvbDG9rPQyiRVeIqQVp._EEzpApWBQHtHR4iMJabXK2wDvlA(_ex0VSgRAdtsvhANmJHZHaf9ATWt , String[] )
at _IcGByoJhapvESnm6vaOawAHbkeU._EEzpApWBQHtHR4iMJabXK2wDvlA(ThreadStart )
Hi Copygirl, Elwood here
Not an issue but a question
I was looking at how you patched chests and baskets. Can the "Carryable" attribute be added to any block or just containers?
I was thinking I could add the attribute to the carcass block in my animal products mod. Then carry the carcass on my back.
I would need to somehow use the jsonpatch "test" to make sure the CarryCapacity mod is loaded. Then i could use patch to add the Carryable attribute optionally to my carcass block.
Running on 64 bit Windows with 16 GB RAM
Game Version: v1.16.4-rc.2 (Unstable)
Loaded Mods: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
02/21/2022 18:00:24: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
at CarryCapacity.CarriedBlockExtensions.IsCarryable(Block block, CarrySlot slot)
at CarryCapacity.CarriedBlock.PickUp(IWorldAccessor world, BlockPos pos, CarrySlot slot, Boolean checkIsCarryable)
at CarryCapacity.CarriedBlockExtensions.Carry(Entity entity, BlockPos pos, CarrySlot slot, Boolean checkIsCarryable)
at CarryCapacity.Common.CarryHandler.OnGameTick(Single deltaTime)
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world)
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt)
at Vintagestory.Client.NoObf.ClientMain.MainGameLoop(Single deltaTime)
at _25hCbD9BEFkP69yUQhdpPQgkOvd._qqcop0mvH9ZoRMTDJIwGb6fcyPM(Single )
at _bjnBWlJotnHiR69aw1flHb4F023._U6WbyQ4am861wMSz04lHr6bdWYyA(Single )
at _bjnBWlJotnHiR69aw1flHb4F023._PeYLgU97COZFmBgbuLznjIwJUOS(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 476
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 452
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at _As7FGAmUC8gaKIkRNk2zuk1jlJ._zleiWFUbDyAE8J9zHf00bJUUlQr(_M5s9po0jOCy75F2Bz2DU6XdfcDb , String[] )
at _f8y3Fmmhb3dxIjBj0LM71AeVhBG._zleiWFUbDyAE8J9zHf00bJUUlQr(ThreadStart )
using 5.2 but this also happened a few days ago using 5.1
Running on 64 bit Windows with 16 GB RAM
Version: v1.14.0 (Stable)12/12/2020 8:33:42 PM: Critical error occurred
System.MissingMethodException: Method not found: 'Void Vintagestory.API.Common.BlockEntity.FromTreeAtributes(Vintagestory.API.Datastructures.ITreeAttribute, Vintagestory.API.Common.IWorldAccessor)'.
at CarryCapacity.CarriedBlock.RestoreBlockEntityData(IWorldAccessor world, BlockPos pos)
at CarryCapacity.CarriedBlock.PlaceDown(IWorldAccessor world, BlockSelection selection, Entity entity)
at CarryCapacity.Common.CarryHandler.OnGameTick(Single deltaTime)
at Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world)
at Vintagestory.Client.NoObf.ClientMain.MainRenderLoop(Single dt)
at Vintagestory.Client.NoObf.ClientMain.MainGameLoop(Single deltaTime)
at _6HHEy0R7TdcydZEq9IGp6JeHxdi._ogIdn3jhm7KUUuyvw6LDaa2X3PC(Single )
at _gVBHOlByVD3vztgY4vPBxj2Bdae._ZKkvVIgccAdBc9j9BIZLqcgTrNL(Single )
at _gVBHOlByVD3vztgY4vPBxj2Bdae._UQuOSpN5p2QIPbIExoPtD2ecXtb(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _93RBbYKdbejiH9hVmbTS8c6kZxJ._hbMghNVJIKTGI5zBx3SuxRG1XDI(_Lsm9ms4vr0dfuNPxkLwK9w8a58N , String[] )
at _eVFDVqwXngafMmcD9boVPO86iWx._hbMghNVJIKTGI5zBx3SuxRG1XDI(ThreadStart )
-------------------------------
When carrying a block, if one takes damage the block is forcefully dropped. The issue is that the hotbar slot that was being used to carry remains 'locked' and always appears empty. Moving an item into that slot, the slot still appears empty. Issue can be corrected in-game by picking up a carryable block with the affected hotbar slot and setting it down without taking damage.
I picked them up and didn't encountered with errors, so I think it is safe to add
I've found that it doesn't work for my worlds that were created before updating to 1.16.5 including a 1.16.4 world. It does work if I create a new world just not for any of the older worlds. I also have removed all other mods to make sure they were not causing a conflict.
Game version: 1.16.4-rc.2
Mod version: v0.6.5-rc.1
World: https://we.tl/t-zk2bJm08DR
When I load my world with the mod, it crashes. When I disabled it, the world loads fine.
I played on 1.16.4-rc.2 with v0.6.5-rc.1 version just fine, so I don't know what the problem.
I have storage vessel filled with items on the back.
Running on 64 bit Windows with 16 GB RAM
Game Version: v1.16.4-rc.2 (Unstable)
Loaded Mods: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
02/19/2022 17:05:49: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
at CarryCapacity.Common.CarryHandler.OnLockSlotsMessage(LockSlotsMessage message)
at Vintagestory.Client.NoObf.NetworkChannel.<>c__DisplayClass12_0`1.<SetMessageHandler>b__0(_2otdrmfSKfjlCdVIjRYcVy8uo7U p)
at Vintagestory.Client.NoObf.NetworkAPI.HandleCustomPacket(_yyyo0JT9wi3btNTUXP38bgDMMkY packet)
at Vintagestory.Client.NoObf.NetworkAPI.HandleChannelsPacket(_yyyo0JT9wi3btNTUXP38bgDMMkY packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _fxfI2UE0ayN90kkW3TlPfqCqByE._9cfcId0IFdBkNhMH5h3zKScp7JtA(Single )
at _bjnBWlJotnHiR69aw1flHb4F023._U6WbyQ4am861wMSz04lHr6bdWYyA(Single )
at _bjnBWlJotnHiR69aw1flHb4F023._PeYLgU97COZFmBgbuLznjIwJUOS(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 476
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 452
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at _As7FGAmUC8gaKIkRNk2zuk1jlJ._zleiWFUbDyAE8J9zHf00bJUUlQr(_M5s9po0jOCy75F2Bz2DU6XdfcDb , String[] )
at _f8y3Fmmhb3dxIjBj0LM71AeVhBG._zleiWFUbDyAE8J9zHf00bJUUlQr(ThreadStart )
I noticed this when messing around with a trader's claim. I could place down my basket, but not pick it up again afterwards. Temporarily solution is to go into creative mode, which overrides claims at the moment, allowing the container to be picked up regardless.
I can't pick up and carry items anymore with the new 1.15 preview versions from pre.10 on. It works fine up until pre.9.
I use CarryCapacity v0.6.1.
When a carried block is dropped on damage or death within a claim, it should be possible for the owner to take back their possessions, instead of being prevented from doing so due to the claim.
{
"op": "add",
"path": "/behaviorsByType/*/1",
"value": {
"name": "Carryable",
"properties": {
"translation": [
0.0625,
0,
0
],
"rotation": [
0,
180,
0
],
"slots": {
"Hands": {},
"Back": {}
}
}
},
"file": "blocktypes/clay/mold/ingotmold.json"
}
{
"op": "add",
"path": "/behaviorsByType/*/1",
"value": {
"name": "Carryable",
"properties": {
"translation": [
0.0625,
0,
0
],
"rotation": [
0,
180,
0
],
"slots": {
"Hands": {},
"Back": {}
}
}
},
"file": "blocktypes/clay/mold/toolmold.json"
}
Hi copygirl,
The below crash happened when attempting to pick up a wooden crate that belonged to a trader (was curious what would happen :D) - was able to carry one fine in a test world that didnt have the claim.
Running on 64 bit Windows with 16 GB RAM
Version: v1.12.11 (Stable)4/4/2020 3:07:06 PM: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
at Vintagestory.Client.NoObf.SystemRenderPlayerEffects.onBeforeRender(Single dt)
at _ZWyx8V7GBY20FZhd02o5wlkBhTM._3MzjqAt5GiJmvnVzhdiANDAEMCB(EnumRenderStage , Single )
at _12aioOzLogzcJMHhplAX1ctUKPP._3MzjqAt5GiJmvnVzhdiANDAEMCB(EnumRenderStage , Single )
at _12aioOzLogzcJMHhplAX1ctUKPP._EwXRd5TjiEjwEnwkgR6SD2VwKOi(Single )
at _12aioOzLogzcJMHhplAX1ctUKPP._H2qn3yZXJ5qaROCXlgxZgsHhHqt(Single )
at _N5xEhV0YMy0mMOwBe09dKlcWjwu._DmGyRRAceBU1Y01pLfQvCPqzM3A(Single )
at _TjqHBJw2IYSAlyXCQYRZyDjXkjs._f3BqvaJbeJjUlO1Vz6UZg7yIMVf(Single )
at _TjqHBJw2IYSAlyXCQYRZyDjXkjs._cEEYga8RkvUZyLxVZDIQqvmAaRE(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _KhgOJjJMqvBmMftdPC9NuNGCr2l._KJdbFdyRyPI3RBGfknJMDw7qv3g(_z0CXJGPbPfszOCyrvlmbpR4Uq8q , String[] )
at _W7oHr1XmopiBCmRiVK2Gh8gGNEX._KJdbFdyRyPI3RBGfknJMDw7qv3g(ThreadStart )
-------------------------------
Reported by julius van vern, this exception occurs when trying to pick up a block while a backpack slot is selected. He thought that picking up blocks in the backpack slots was the intended way to put blocks on your back.
Running on 64 bit Windows with 32 GB RAM
Version: v1.12.14 (Stable)13.04.2020 19:37:32: Critical error occurred
System.ArgumentOutOfRangeException: Der Index lag au?erhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
Parametername: index
bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
bei System.Collections.Generic.List`1.set_Item(Int32 index, T value)
bei CarryCapacity.Utility.LockedItemSlot.Lock(ItemSlot slot)
bei CarryCapacity.CarriedBlock.Set(Entity entity, CarrySlot slot, ItemStack stack, ITreeAttribute blockEntityData)
bei CarryCapacity.CarriedBlockExtensions.Carry(Entity entity, BlockPos pos, CarrySlot slot, Boolean checkIsCarryable)
bei CarryCapacity.Common.CarryHandler.OnGameTick(Single deltaTime)
bei Vintagestory.Common.EventManager.TriggerGameTick(Int64 ellapsedMilliseconds, IWorldAccessor world)
bei _hLaepLRCOckdCEvZTPp1GxfgrdT._gvVdZYlJjMijmkAmKtFDCvJNXax(Single )
bei _hLaepLRCOckdCEvZTPp1GxfgrdT._nu0syyqM6QcVDRvU3XOrq03zfUh(Single )
bei _wbw3WsD1ic8cZIS5Ql2MkIqPWmb._ibkrrJqCs89QNSe99xnFzRxp3sL(Single )
bei _s54YxMQ8l5DBeihbmw81nJkPTSU._RT1lBvzfhVzcDZ6jmYewDTkUdvx(Single )
bei _s54YxMQ8l5DBeihbmw81nJkPTSU._EZIJU8BLizIQdIOGgxu5BrkHzpV(Single )
bei Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
bei System.EventHandler`1.Invoke(Object sender, TEventArgs e)
bei OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
bei OpenTK.GameWindow.DispatchRenderFrame()
bei OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
bei _gilSYm6aSzOct8TKUm64HAM8OHp._tyidesQGCE1oKHv8YEo8HwYCSty(_RxGTCHor7fqeGRNMEH5pZVfBHHK , String[] )
bei _xmrDk9pogtvR6xvbzmBc2dtFsbu._tyidesQGCE1oKHv8YEo8HwYCSty(ThreadStart )
Version 0.4.0 will introduce the ability to pick up blocks into a players' hands on as well as their back. Here's a couple of things that still have to be finished before a new version can be released:
Shoulder
slot for carrying animals for The Neolithic Mod. Should include an animation where the player is holding the animal with left arm. Also prevent carrying in hands when something is on shoulder. (19c5390)A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.