饥荒联机版

饥荒联机版

The Medic: The Crusaders Crossbow
70 条留言
Twitchy Tristan  [作者] 2024 年 9 月 12 日 下午 1:53 
You may send me the code and I can upload it as a patch, I'll put you down as a credit here in the description.
Johnny the beer devourer 2024 年 9 月 12 日 上午 8:35 
I looked through the code and made a fix. Tested with my friend and it works fine as far as we could tell. So my questions are, would you like me to send you the fixed version to you or can I upload the fixed version as a separate mod (mentioning you ofc)?
Burwik 2024 年 9 月 10 日 下午 7:42 
Almost a year later and yes, I am still on the sidelines cheering for this mod
FoxKnight64 2024 年 9 月 10 日 下午 6:11 
It's sad cause the medic health dart has a similar issue
Would be cool if you can get it fixed
Twitchy Tristan  [作者] 2024 年 9 月 10 日 下午 2:32 
Won't lie, I have sat on this project because I had hit a roadblock and lack motivation to fix it (as I have said previously.) I know this isn't exactly a great response let alone desired. My endeavors are on a different project not even related to DST. I also had a different project for DST I haven't finished either.

Essentially as far as I know it's a miscommunication between Server and Client failing to serve up the information necessary for the crossbow to "detect" a player as a healable target. This was during my implementation of not letting the crossbow heal targets that can't be healed to begin with (Wanda, Wormwood). If you are in a caveless server and you are host I recall it worked fine, but that is obviously not what y'all want. If anyone knows where I screwed up looking at the code tell me, I dislike DST's Lua Netcode.

It's almost a year since my last excuse to push this off, I'll consider hitting it again soon enough. But that's not a promise.
FoxKnight64 2024 年 9 月 10 日 上午 10:14 
did a test and will not let me target players to heal
FoxKnight64 2024 年 9 月 10 日 上午 9:37 
does this still work?
ColdDead 2024 年 2 月 17 日 上午 2:42 
I try to heal my friend that only can eat vegertabels and it not working with rightklick to heal.
When i press right click on him examine menu opens and he dont get heal
ColdDead 2024 年 2 月 17 日 上午 2:38 
I try to heal my friend that only can eat vegertabels and it not working with rightklick to heal
Burwik 2023 年 10 月 29 日 下午 7:24 
Well let me be your personal cheerleader because I would love to see this mod fully on it's feet

Take all the time you need!
Twitchy Tristan  [作者] 2023 年 10 月 29 日 下午 7:10 
Maybe, but there are bugs i need to fix before i bother with that. I haven't been very motivated to fix this as of yet.
Burwik 2023 年 10 月 29 日 下午 3:39 
Hey I absolutely love this mod and plan on playing with a bunch of my friends using this and other tf2 mods. The only thing I wish that was different with the crossbow was the choice of having a blue or red team version. Is there anyway you can realistically add that?
Void_Kitsune 2023 年 6 月 20 日 上午 1:06 
Hmm. I will try that I have a friend that works as a particle physicist at an experimental fusion reactor. I'm sure he knows java. I'll bother him.
Twitchy Tristan  [作者] 2023 年 6 月 20 日 上午 12:56 
I recommend you learn Java or JavaScript, Lua has "quirks" that makes it not as good of a learning tool. Sticking to Python is okay, but Java in particular will teach you some of the more practical contexts.
Void_Kitsune 2023 年 6 月 20 日 上午 12:53 
ok thanks I was trying to sound awkward for the meme of it. I really do need to learn more c family code stuff.
Twitchy Tristan  [作者] 2023 年 6 月 20 日 上午 12:48 
@fakeness, the script *does not* hinge on line 50 as you suggest. HP has already been defined by self.rate. What line 49 to 51 do is keep track of the mod settings for if we want the heal rate to be a percentile, or a linear rate. If self.rate was 0.5 it is interpreted that we want to heal 50% of the players health. If self.rate is 20 then it will heal a flat 20.

I apologize to those who are still having issues with the mod, I'm familiar with the issue and I have a vague guess as to why but have no motivation to think of a good work around that isn't me lobotomizing how the crossbow is used. I apologize for the lack of support on my part.
Void_Kitsune 2023 年 6 月 19 日 下午 6:53 
Hi I studied python for 2 weeks now and that makes me a verified expert on coding and you have more then a few errors in your code logic. To name one example in the medicrossbow.lua file starting at line 44 your function hinges on line HP = TARGHP * HP but correct me if I'm mistaken shouldn't it be HP = HP + TARGHP ? Sorry for sounding like a dick it was for the meme I don't know jack about this stuff but if I'm right friend me and let me know ok?
CyberJman 2023 年 5 月 22 日 下午 8:02 
Can't get item to work. It won't let me target my friend to "heal" him.

I thought it was because I had the mod "More Actions" installed, but after removing it, I still couldn't "heal" my teamate.

Then, I enabled PvP, which I had disabled to prevent griefers. It allowed me to attack my friend and do 5 damage, but then still no "heal"...

Please fix.
Bonic 2023 年 5 月 14 日 上午 3:05 
I don't have the coding knowledge to know wich mod could impact the crossbows ability to heal so here is the mod list: (also The world settings are standard the caves are on and I'm playing with Wathom)
Achivement and Level System
Adshovel
Advanced Drying
[API] Gem Core
Craftable Gears
Display Attack Range
Don't Drop Everything
DST PickyPickyPicky
Extra Equip Slots
Global Positions
Increased Stack Size
Mineable gems
No Thermal Stone Durability
Show Me (Origin)
Simple Health Bar DST
Uncompromising Mode
Wormhole Marks
Crusaders Crossbow
TF2 MVM Reanimator
The Medic
Twitchy Tristan  [作者] 2023 年 5 月 13 日 下午 1:19 
Very strange, in my testing it works fine but my testing environment doesn't have *real* other players for my to test against... not that it should make a difference. The current implementation checks the health replicated component for if the player has health they need to regain, in testing (caves and without if I still recall correctly) it works fine against the player prefabs.

For my sakes to those that are dealing with this issue: Please explicitly state the conditions of your world, understand there is notable differences in how the game behaves with and without caves, I need to know those variables are present. If the person you are trying to heal has a non-vanilla character, if you have a mod that overhauls the player_common... anything.

I do hate to shove this issue away from work simply because I can't replicate it.
Bonic 2023 年 5 月 13 日 上午 10:59 
I have the problem of the crossbow not being able to heal as well. I don't know if it may be a mod causing it since we play with multiple other mods like uncompromising mod
Twitchy Tristan  [作者] 2023 年 4 月 14 日 下午 4:29 
Testing it myself it still behaves as expected, I really honestly can't find what the issue is. Are you sure you are up to date?
Twitchy Tristan  [作者] 2023 年 4 月 14 日 下午 3:41 
I can't imagine why it is heavy, ill look at it soon.
oblepixa 2023 年 4 月 13 日 上午 4:17 
maybe you can adjust it? that would be great. will stick to heal darts for now i guess :d
oblepixa 2023 年 4 月 13 日 上午 4:14 
okay i just tested it a bit and the reason is that my friend's playing as heavy
Twitchy Tristan  [作者] 2023 年 4 月 12 日 下午 11:11 
I hate being the one to say this especially after being responsible for crashes related to it- I cant replicate the issue on my side with a caves world (that being the most common place for an issue). Are you sure your buddy was lacking health? you can't heal revive penalties nor can you heal certain characters (I.e Wanda as she doesn't have a health bar).
oblepixa 2023 年 4 月 12 日 下午 9:47 
Probably something is messed up since at the time when I was trying to heal my friend he wasn't full on health
Twitchy Tristan  [作者] 2023 年 4 月 12 日 下午 7:44 
You can only heal players that actually have lost health. Have I messed something up again?
oblepixa 2023 年 4 月 12 日 上午 8:53 
this might be kinda stupid question but how exactly do you heal teammates? i dont see any option when hovering over my friend and right clicking don't do anything
Twitchy Tristan  [作者] 2023 年 4 月 4 日 下午 7:05 
As of writing, the error where the crossbow would crash clients in dedicated servers has been patched. I apologize for not figuring it out sooner.
C'venash Vishneri 2022 年 10 月 5 日 下午 12:49 
can i say sex?
Twitchy Tristan  [作者] 2022 年 6 月 17 日 下午 4:16 
I didn't interpret it that way, I in fact appreciate your insight.
Jack 2022 年 6 月 17 日 下午 12:43 
Oh don't get me wrong, i'm not attacking you or your work, i'm just sharing my learning experiences.
Twitchy Tristan  [作者] 2022 年 6 月 17 日 下午 12:13 
It's not like I'm obtusely opposed to testing or anything like that. But I did what I could for now, worst case scenario I recreate the fuel component behavior onto the Medicrossbow component to avoid any such issues in the future. But I will wait for more issues to come in first to find out if that worked or not.
Jack 2022 年 6 月 17 日 上午 7:04 
Every time i work on an update, i make sure it passes on both worlds before starting a regular world and play testing it. I mean its like im producing a game myself each time lol. Alot of people dont have that kind of dedication for such an old game. But for me its more for the funz than the actual end result. More so now that im essentially retired.
Jack 2022 年 6 月 17 日 上午 7:04 
ah the modder's dilemma: How can i recreate a game breaking bug with my mod on my end under the same circumstances that someone else did on their comp under their circumstances. Its a pain, which is why i have a check list of questions to ask anyone reporting a bug. Biggest thing i found is that i have two types of worlds when i create a new mod, one without caves(this is the exact same way code is called when it was just DS), one with caves(this one is DEFINITELY not how code is run on DS). I call no-caves my alpha testing, and the one with caves beta testing world. You would be amazed at what code structure works with one and not the other. I have found most of my bugs doing it this way.
Twitchy Tristan  [作者] 2022 年 6 月 16 日 下午 6:58 
My solution was the most lazy which is to just be sure the fueled component isn't nil before asking for its methods or variables. Worst case scenario the bow would only be unresponsive for a moment, but that being said I haven't had that issue personally in testing the bow so it makes me think something might be inadvertently changing behavior.

What is more confusing is as they said its not from shooting the projectile, its from walking with it equipped. It is quite the headache to have such a problem when I can't recreate it myself!
Jack 2022 年 6 月 15 日 下午 10:15 
if they are shooting a projectile from a weapon that's durability is gone(usually the item that is fueled gets deleted when fuel reaches zero) the moment the projectile is launched and said projectile calls back to the equipped item, that would produce a failed component call such as this. Had something similar happen to scouts baseball and bat when we were in testing with it. Though this might not be the case here, it is still wise to make sure your weapon doesn't put anything out that calls back to it at a later time if certain things like fuel or durability would potentually be zero or nil at that call back time.
Twitchy Tristan  [作者] 2022 年 6 月 15 日 下午 9:44 
I threw out an update to address the bug, I honestly am not sure how some of you are getting this particular error as logically speaking it should never happen. That error implies the game isn't aware your holding the crossbow for some reason.

That being said, the crash should be gone now, however I can't guarantee it will behave properly in instances that it did crash. Consider checking your mods for potential compatibility issues (Anything that changes how items are equipped should be the first thing you check!).
Spookrugbug 2022 年 6 月 15 日 下午 3:04 
I can confirm that the crossbow does crash the game
Here's a screenshot of the crash report: https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2821535119
Twitchy Tristan  [作者] 2022 年 1 月 17 日 下午 1:00 
You would have to show me your crash report, as I am not sure the issue is from my mod. Feel free to make a new mod discussion if you would like to see if this can be fixed.
Twitchy Tristan  [作者] 2022 年 1 月 14 日 上午 3:19 
How so? Last time I left off it was better than ever. Are you sure that DST didn't simply fail to download the update?
oblepixa 2022 年 1 月 14 日 上午 2:10 
not working anymore :(
Jack 2021 年 12 月 23 日 下午 6:30 
We are always watching O.o
Twitchy Tristan  [作者] 2021 年 12 月 23 日 下午 6:29 
Not at all! I didn't think you were still looking at the old mods honestly.
Goat Slice 2021 年 12 月 23 日 下午 6:16 
Impressed by this blast from the past! I've added a link to this in Medic's description, hope you don't mind!
Twitchy Tristan  [作者] 2021 年 12 月 23 日 上午 1:41 
As far as I am aware as of writing, there are no bugs present in the mod anymore. The 2.0 update covered the essentials and more.
GOKU PM 2020 年 12 月 26 日 下午 5:19 
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
demoknight 2019 年 8 月 21 日 上午 6:05 
dont starve its starting to becom a tf2 survival version XD
TheEndangeredCarmine 2019 年 7 月 29 日 下午 11:52 
You think you could modify the Crossbow to actually use the Boost Shots as Ammo?