Skip to content

the start of a simple context menu for dropping items#25

Open
curtisr wants to merge 17 commits into
devmoreir4:mainfrom
curtisr:main
Open

the start of a simple context menu for dropping items#25
curtisr wants to merge 17 commits into
devmoreir4:mainfrom
curtisr:main

Conversation

@curtisr
Copy link
Copy Markdown

@curtisr curtisr commented May 26, 2026

I've added a right click context to drop items.
I've added the ability to pickup items in the world and put them in the inventory.
Using emote2 animation for pickups and have a little area in front of the character that is used to determine what items
are nearby to pickup.

I really like your server and have tested the --headless mode with 3 run instances and it works fine,
also tested this change in host/join with 2 run instances.

I think NAT punch to get this working through firewalls might be something to consider in the fucture.

In the player I've added the collision function for the rigidbody3d object, I think this the wrong way of doing this.
I was very close to having this working without doing this and just relying on the godot physics.

Sorry if this is a little messy this is my first time doing a "pull request"

Copy link
Copy Markdown
Owner

@devmoreir4 devmoreir4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this.

I tested it and the game does run, but Godot still reports some warnings/errors. I also noticed a few changes in the diff that seem unrelated to this feature, probably from local editor/project settings.

Could you please go through the PR again, fix the warnings/errors Godot reports, and remove anything that wasn't meant to be part of the pickup/drop change?

The main things to check are the project config changes, deleted UID/import files, item scene paths/data, and the multiplayer pickup/drop validation.

After that, I'll take another look.

Comment thread .gitattributes
@@ -1,7 +1,2 @@
# Normalize EOL for all files that Git considers text files.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert this

Comment thread project.godot
; Format:
; [section] ; section goes between []
; param=value ; assign values to parameters

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like unrelated local/editor config churn. Please revert the project name back from TemplateTest, restore the description/tags, and keep only project settings that are required for pickup/drop.

@devmoreir4 devmoreir4 linked an issue May 28, 2026 that may be closed by this pull request
@devmoreir4 devmoreir4 requested a review from Copilot May 28, 2026 23:02

This comment was marked as outdated.

@curtisr
Copy link
Copy Markdown
Author

curtisr commented May 29, 2026 via email

@devmoreir4
Copy link
Copy Markdown
Owner

I'd keep them committed.

The scenes still reference those scripts by UID, so deleting/ignoring the .gd.uid files is what causes the warnings.

The best fix here is to restore the missing UID files, or re-save/update the scenes in Godot so the references are clean.

unecessary

Revert "Merge pull request devmoreir4#23 from devmoreir4/dev"

This reverts commit 05092e5, reversing
changes made to 9445587.
@devmoreir4
Copy link
Copy Markdown
Owner

I think this reverted a bit too much. The PR now only changes the README.

You can check what's currently changed in the Files changed tab.

attack, damage and death for character, platforms, world items gems,
pickaxe
@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 3, 2026

I've checked in a bunch of changes that gives you some more "game" features where the players can hit each other and pick up items in the world. Also i put some blocks in the game so I have something to jump on.

This code should be useful to add to your template. It may need some refining / networking fixes as I wasn't focused on the
security issues as much as you were.

I would post a video but the godot recording doesn't seem to work very well with multiple instances running.
Maybe I should start a new Pull Request?

todo:
Polishing: Dragging weapons and armor out of weapon and armor slots.
Having the context menu equip weapons and armor in the weapon and armor slot.
Allow the player to move while attacking.
Dragging and droping items outside of the bag/inventory.
Double clicking items in the inventory.
Esc is a terrible key to use for leaving the game without an "are you sure?"
b for bag? or i for inventory... I would also add i.

@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 3, 2026

Maybe i should start a new pull request so I could get the AI summary again?

client. Not sure if this bug always existed.
@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 3, 2026

noticed a serious problem picking up items.
No point in merging/pulling until I fix this I think.

@devmoreir4
Copy link
Copy Markdown
Owner

No need to start a new PR just for the AI summary. You can keep working in this one.

I can run the summary again after the next update, but don't worry too much about it. I'll review the actual diff.

The extra gameplay ideas sound cool too.

@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 3, 2026 via email

@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 3, 2026

I see "1 requested change" but don't see it.

Also seems like my video cuts out half way through probably because i tabbed in and out of the application and for whatever reason the recording application doesn't register that that host/join node is no longer visible.

@devmoreir4
Copy link
Copy Markdown
Owner

the "1 requested change" is from my previous review. I'll update/clear it when I review the PR again.

I did a quick multiplayer test and found a few issues: the skin color doesn't seem to update, gravity breaks after jumping + attacking, and the items being too large.

@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 4, 2026

  1. gravity breaks. Yep i saw that also but left it in because it looked funny.. i started to change it but never got to fixing it completely. -> fixed

  2. Objects changing size is definitely an inconsistency i never got around to fixing. The most obvious being the helmet.
    -> fixed helmet

  3. skin color not changing, not sure what caused this. Looked into this a little and i can't seem to find what changed to break it.

curtisr added 3 commits June 4, 2026 01:38
caused it so the texture could no longer be set as a null was being
returned in player.set_mesh_texture. The color changes but not how you
want it to. It changes color of the other players when you want it to
only change / remember your own color.
introduced. It was fixed by instantiating a new material for each player
instead of using the existing material. Somehow the material got shared
between each instance.
@curtisr
Copy link
Copy Markdown
Author

curtisr commented Jun 4, 2026

color problems are fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requesting features

3 participants