AliasAlreadyTaken reports: projectiles API #102

Closed
opened 2020-11-25 01:04:18 +00:00 by yourland-report · 12 comments

AliasAlreadyTaken reports a bug:

Ranged weapons and later also magic spells need to know who fired them. Not only for the assignment of XP, but also to determine the pvp status

Player position:

{
	y = 18,
	x = 1986,
	z = 1184
}

Player look:

{
	y = -0.27060043811798,
	x = 0.91007870435715,
	z = -0.3138981461525
}

Log identifier


[MOD] yl_report log identifier = QZK2Q9A2kKGfmGD5iLH7bJZPG9I3Au0E

Profiler save:

profile-20201125T020418.json_pretty

Status:

# Server: version=5.3.0-yl, uptime=1639.71, max_lag=0.265761, clients={Bailiff, AliasAlreadyTaken}
AliasAlreadyTaken reports a bug: > Ranged weapons and later also magic spells need to know who fired them. Not only for the assignment of XP, but also to determine the pvp status Player position: ``` { y = 18, x = 1986, z = 1184 } ``` Player look: ``` { y = -0.27060043811798, x = 0.91007870435715, z = -0.3138981461525 } ``` Log identifier ``` [MOD] yl_report log identifier = QZK2Q9A2kKGfmGD5iLH7bJZPG9I3Au0E ``` Profiler save: ``` profile-20201125T020418.json_pretty ``` Status: ``` # Server: version=5.3.0-yl, uptime=1639.71, max_lag=0.265761, clients={Bailiff, AliasAlreadyTaken} ```
AliasAlreadyTaken was assigned by yourland-report 2020-11-25 01:04:18 +00:00
AliasAlreadyTaken added the
1. kind/enhancement
label 2020-11-25 01:04:33 +00:00
flux changed title from AliasAlreadyTaken reports: Ranged weapons ans later also ... to AliasAlreadyTaken reports: projectiles API 2022-09-04 03:45:29 +00:00
flux added this to the flux's TODO list project 2022-09-04 03:45:51 +00:00
flux self-assigned this 2022-09-04 03:46:00 +00:00
flux added a new dependency 2022-10-23 23:33:39 +00:00
flux added a new dependency 2023-03-03 01:07:37 +00:00
flux added a new dependency 2023-12-19 02:20:33 +00:00
Member

making use of of the builtin collision detection and trying to use that while e.g. leaving arrows stuck in the ground where they hit is proving troublesome, because the phyiscal projectiles keep moving even after they collide, which is bad with lag...

also, when attaching to an entity, i need to check the entity's scale...

image

making use of of the builtin collision detection and trying to use that while e.g. leaving arrows stuck in the ground where they hit is proving troublesome, because the phyiscal projectiles keep moving even after they collide, which is bad with lag... also, when attaching to an entity, i need to check the entity's scale... ![image](/attachments/410495c8-6620-4969-aa7f-db394f9bee58)
876 KiB
flux added the
4. step/at work
label 2023-12-21 23:46:46 +00:00
Member

today: added drag.

still need to fix attachment to entities, and add a bunch of pre-baked behaviors.

today: added drag. still need to fix attachment to entities, and add a bunch of pre-baked behaviors.
Member

after spending a day trying to get arrows to stick into entities with a reasonable rotation, i'm giving up that for now. x_bows can't do that either. maybe i'll come back to it some day, but i need to read a book on geometry/trigonometry/linear algebra for programmers, it's been 20 years or so since i thought about this stuff. and minetest seems to randomly mix degrees and radians, i need to dig into the code more.

after spending a day trying to get arrows to stick into entities with a reasonable rotation, i'm giving up that for now. x_bows can't do that either. maybe i'll come back to it some day, but i need to read a book on geometry/trigonometry/linear algebra for programmers, it's been 20 years or so since i thought about this stuff. and minetest seems to randomly mix degrees and radians, i need to dig into the code more.
Member

implemented some new behaviors, but didn't get around to testing many of them as i got distracted trying to create a bouncing ball. there's probably a week's worth of coding and bugfixing left, and could be more. i'm quite happy with the basics though.

implemented some new behaviors, but didn't get around to testing many of them as i got distracted trying to create a bouncing ball. there's probably a week's worth of coding and bugfixing left, and could be more. i'm quite happy with the basics though.
Member

still making progress. you can now tell a mob what angle (initial velocity) it should shoot an arrow if you want it to be affected by gravity. you can attach a sound to an arrow so you'll hear it like an arrow whooshing towards you.

an attempt to add target-tracking projectiles is currently not working incredibly well.

still making progress. you can now tell a mob what angle (initial velocity) it should shoot an arrow if you want it to be affected by gravity. you can attach a sound to an arrow so you'll hear it like an arrow whooshing towards you. an attempt to add target-tracking projectiles is currently not working incredibly well.
Member

Took a minute to find the link, so I'll just post it here:
https://github.com/fluxionary/minetest-ballistics

Took a minute to find the link, so I'll just post it here: https://github.com/fluxionary/minetest-ballistics
Member

the API part of things is "good enough" at this point, i'm working on porting all the x_bows stuff to a new mod

the API part of things is "good enough" at this point, i'm working on porting all the x_bows stuff to a new mod
Member

it's completely non-functional currently, but if people want to track the progress: https://github.com/fluxionary/minetest-y_bows

it's completely non-functional currently, but if people want to track the progress: https://github.com/fluxionary/minetest-y_bows
Member

boop. still not functional. but getting there.

boop. still not functional. but getting there.
Member

ballistics & y_bows are good enough to put on the test server. pretty much all functionality is there. NOTE: it's recommended to not have x_bows and y_bows installed at the same time

ballistics & y_bows are good enough to put on the test server. pretty much all functionality is there. NOTE: it's recommended to not have x_bows and y_bows installed at the same time
Member

there's still a few minor things i want to implement in y_bows, but i'll probably start working on implementing all our other projectiles next.

there's still a few minor things i want to implement in y_bows, but i'll probably start working on implementing all our other projectiles next.
flux added the
4. step/ready to QA test
label 2024-03-11 18:29:19 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2024-03-29 23:22:00 +00:00
flux removed this from the flux's TODO list project 2024-03-29 23:22:02 +00:00
AliasAlreadyTaken was unassigned by flux 2024-03-29 23:22:04 +00:00
flux removed their assignment 2024-03-29 23:22:04 +00:00
Member

ballistics (and y_bows) are live

ballistics (and y_bows) are live
flux removed a dependency 2024-03-29 23:22:28 +00:00
flux closed this issue 2024-03-29 23:22:32 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Reference: your-land/bugtracker#102
No description provided.