Entity based backpack [backpack]

Post Reply
User avatar
sparky
Member
Posts: 154
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

Entity based backpack [backpack]

by sparky » Post

Based off the prestibags mod, backpacks!
Spoiler
Image
Image
Image
Craft:
e=empty w=wool
[e,w,e]
[w,e,w]
[w,w,w]

Craft and place the backpack, then rightclick them to open them up.
punch will put it on your back, and shift-punch when empty will put it in your inventory.
the bags button in the inventory will drop the backpack you are wearing.
I would not completely trust them with valuable items, they are still a bit buggy.

Download
latest
browse

Depends: wool inventory_plus

License: WTFPL

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Entity based backpack [backpack]

by Napiophelios » Post

This doesn't seem compatible with the latest Minetest Game
the backpack is centered at character's feet

Image
screenshot.png
screenshot.png (30.56 KiB) Viewed 664 times
And sometimes when you press the backpack button it's placed inside a node
maybe look direction when pressing? IDK

Image
screenshot_20170926_121427.png
screenshot_20170926_121427.png (35.76 KiB) Viewed 664 times
Really cool mod tho :)

EDIT: Yup it works great with "non dev" version of MTGame 0.4.16.0

Image
screenshot_20170926_122536.png
screenshot_20170926_122536.png (36.82 KiB) Viewed 664 times

It still has some glitches:
if you are wearing the backpack and press F7 for 3rd person view mode
and then remove the backpack by clicking the InvPlus button;
when you exit the F7 3rd person view mode the backpack isn't visible.
You have to press F7 again to see it and pick it back up.

User avatar
sparky
Member
Posts: 154
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

Re: Entity based backpack [backpack]

by sparky » Post

hm, I wasn't able to replicate that glitch you mentioned. don't know why

User avatar
Desour
Member
Posts: 1473
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: Entity based backpack [backpack]

by Desour » Post

Looks nice.
I guess the backpack object is attached to the player. How do you solve the problem with waving? Does the backpack model have animations? Or don't you solve it at all? Or do you attach it to a player's bone (which would be ugly)?
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
kingoscargames
Member
Posts: 216
Joined: Fri Jul 28, 2017 12:06
GitHub: kingoscargames
In-game: kingoscargames
Location: Netherlands

Re: Entity based backpack [backpack]

by kingoscargames » Post

EDIT: Yup it works great with "non dev" version of MTGame 0.4.16.0
Its probably because the player model was changed.
Last edited by kingoscargames on Tue Sep 26, 2017 17:23, edited 1 time in total.

User avatar
cx384
Member
Posts: 655
Joined: Wed Apr 23, 2014 09:38
GitHub: cx384
IRC: cx384

Re: Entity based backpack [backpack]

by cx384 » Post

Nice mod!
Do you want to support Inventorybags?
Can your read this?

User avatar
sparky
Member
Posts: 154
Joined: Sun Oct 05, 2014 00:54
GitHub: Elkien3
IRC: ircSparky
In-game: sparky
Location: USA
Contact:

Re: Entity based backpack [backpack]

by sparky » Post

The backpack model doesn't have any animations, for some reason I couldn't get the bone attaching to work
(I don't see why that would be ugly) ATM it's just attached to the player, and isn't affected by player animations. :/

Not sure what you mean by "support" cx384 :)

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: Entity based backpack [backpack]

by Napiophelios » Post

Napiophelios wrote:This doesn't seem compatible with the latest Minetest Game
the backpack is centered at character's feet
This probably isn't the right way to go about fixing this,
but if you replace line #241 with this:

Code: Select all

self.object:set_attach(puncher, "", {x=0,y=10.5,z=-2.5}, {x=0,y=0,z=0})
The backpack is attached at the right height for the dev version player model.

Image
screenshot_20170926_232650.png
screenshot_20170926_232650.png (104.99 KiB) Viewed 664 times

EDIT: Replacing the backpack mesh object/textures with those from the Farlands game's
backpack mod doesn't look half bad either :)

Image
screenshot_20170926_233841.png
screenshot_20170926_233841.png (46.27 KiB) Viewed 664 times

BBmine
Member
Posts: 3476
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins
Location: USA

Re: Entity based backpack [backpack]

by BBmine » Post

Nice mod! When some of the bugs get out, I'll think about adding this to one of my servers! Keep up the good work!!! :D

u19503

Re: Entity based backpack [backpack]

by u19503 » Post

EDIT: Replacing the backpack mesh object/textures with those from the Farlands game's
backpack mod doesn't look half bad either :)
thanks I'm happy to hear that you like my model :)

User avatar
veNext​
Member
Posts: 85
Joined: Sun Dec 03, 2017 21:23
IRC: Idk
In-game: veNext

Re: Entity based backpack [backpack]

by veNext​ » Post

This is a really amazing mod

ShadMOrdre
Member
Posts: 1118
Joined: Mon Dec 29, 2014 08:07
Location: USA

Re: Entity based backpack [backpack]

by ShadMOrdre » Post

I have made modifications to this mod to support sfinv_buttons. I thought I modified to make hard dependency on Unified Inventory a soft dependency, but instead, I must have simply removed UnifiedInv altogether.

Feel free to merge my changes back into the fold, and I'll help with the hard dependency on UnifiedInv.

DOWNLOAD: https://github.com/ShadMOrdre/backpack/ ... master.zip
Browse Code: https://github.com/ShadMOrdre/backpack

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: Entity based backpack [backpack]

by azekill_DIABLO » Post

that is an amazing mod you've done, congrats!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
Lone_Wolf
Member
Posts: 2578
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: Entity based backpack [backpack]

by Lone_Wolf » Post

Could you modify this to also work with sfinv? I don't use inventory_plus but would like to try out this mod
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests