Terasology / LightAndShadow

Light & Shadow is an experimental game type set in a quirky Alice in Wonderland inspired setting
Apache License 2.0
8 stars 22 forks source link

Unable for a player to die if not killed by another player #145

Open stefaniamak opened 4 years ago

stefaniamak commented 4 years ago

Issue

When the player reaches 0 HP alone without being killed by another client (e.g. when they fall from the high ground), they do not die but continue playing normally.

Proposed solution for now

Have the player's death counter increase, without increasing their kills counter.

ezgif-1-60f4ca8066b5

ahv15 commented 4 years ago

Is anybody working on this issue, if not could I give this a try?

Cervator commented 4 years ago

Hey @ahv15 👋 Nope not aware of anybody working on this, feel free!

ahv15 commented 4 years ago

hey @Cervator was hoping to work on some other issue in the mean time, I was actually not able to see any sort of a kill counter or a death counter after I had started the game , am I supposed to enable anything else in singleplayer so that I can see some sort of a kill or death counter My screen is something like this :

Screenshot (355)

Cervator commented 4 years ago

Looks like you got an initial answer on Discord (wise choice to check there!), to add to that a little: the death counter is what you see if you get to where the game ends (after 5 points). I tend to just use hspeed in the game console then dash back and forth a few times.

With this issue resolved the player should be able to die normally and respawn, and for each time that happens their death counter visible on the game over screen should be one higher :-)

ahv15 commented 4 years ago

Ohhk, I was wondering whether I would have to trudge across the map several times just to see the death counter once. Will make use of this handy hack then.

Cervator commented 4 years ago

Yep I can usually do it in 20 seconds or so. There's also a variable holding the number of rounds to win a game, you can drop that from 5 to 1 to make it even faster :-)

stefaniamak commented 4 years ago

@ahv15 hi 👋 thanks for working on the issue! tips to end the game quicker:

Edit: Also! When you get killed in-game, you re-appear on top of your team's platform!

stefaniamak commented 4 years ago

Actually having a K/D count appear within the game might be quite a nice addition 🤔 It really did slip my mind when working on the elements. Indeed it comes to a surprise when you see that there was a counter for that at the end of the game.

ahv15 commented 4 years ago

@stefaniamak Thanks for the tips, actually few of the issues in this module seem to be related to the game over screen, hopefully if I gain a better understanding of how everything works I should be able to fix 2-3 issues in one go.

ahv15 commented 4 years ago

Just wanted to ask if the player gets killed does he normally get teleported back to the base? I got the number of deaths to be updated but the player doesnt seem to get teleported.

ahv15 commented 4 years ago

So is this a problem with the teleportation or does teleportation normally not happen?

ahv15 commented 4 years ago

@stefaniamak Everything else works fine, as all the items are being dropped and the health is being restored and the death counter is also being updated but the teleportation part does not work.

stefaniamak commented 4 years ago

@ahv15 yes in multiplayer you get teleported to the base right away! It actually happens instantly (without a warning/notification like "you died!"), which is kind of odd tbh

stefaniamak commented 4 years ago

You can also test in multiplayer by running multiple builds at the same time :) start a local game and then join with the other builds!

*edit: at least that's how it is with IntelliJ, but I am pretty sure a similar thing exists in other softwares as well!

Screenshot_17
ahv15 commented 4 years ago

So does the teleportation part work only in multiplayer or is it supposed to work out even in singleplayer as I had tested it out in singleplayer?

ahv15 commented 4 years ago

Maybe thats why i wasnt being teleported.

ahv15 commented 4 years ago

I will give the multiple builds thing a try.

stefaniamak commented 4 years ago

I believe it is supposed to work on single-player too, as you can die alone at multy-player too 👍

ahv15 commented 4 years ago

The doubt arised as I saw no problem with the rest of the code , will try checking it out then.

skaldarnar commented 4 years ago

Nice to see such activity on this :blush: @ahv15 @stefaniamak where are we with this issue right now?

ahv15 commented 4 years ago

@skaldarnar I haven't been able to do much for the past few weeks as my laptop is being repaired, but I am hoping to take a look at this and a few other things once it comes back.

skaldarnar commented 4 years ago

Oh noes, hardware failures are always bad 😕 good luck with the repair!