MoJo JoJo Posted August 17, 2015 Posted August 17, 2015 I heard that the dismemberment issue that I'm having may be due to a programmed cap in the model dismemberment in the code. If there's even any such thing, where would it be at? I thought it wouldn't hurt to ask considering that's the only other thing I know that could be the culprit.
ensiform Posted August 17, 2015 Posted August 17, 2015 I don't really know who gave you the idea that the cap was implemented, evidence from them would be nice.
MoJo JoJo Posted August 18, 2015 Author Posted August 18, 2015 Cerez said it sounded like it was something like that, I never really knew what caused it.
eezstreet Posted August 18, 2015 Posted August 18, 2015 No offense to them, but Cerez doesn't really know what they're talking about. We didn't touch anything involving dismemberment.
MoJo JoJo Posted August 18, 2015 Author Posted August 18, 2015 Oh, well it might be a random thing that probably appeared from nowhere. That could be the case.Have you tried any of the recent builds, and if so have you noticed the problem? Because if you have tried it and not seen the problem then it's only me having this issue and it's probably unable to be fixed.
ensiform Posted August 18, 2015 Posted August 18, 2015 It is possible that just newer compilers / floating point optimizations have caused some sort of issue here? eezstreet likes this
MoJo JoJo Posted August 18, 2015 Author Posted August 18, 2015 Yeah that seems about right. I've always had that problem if using a build I compiled myself.
eezstreet Posted August 18, 2015 Posted August 18, 2015 Wait, what are you saying happens here? Because I've had a freak bug in the past where limbs would spawn into new NPCs and try to fight the player. And uh...yeah, it's about as terrifying as it sounds. Futuza, Tempust85 and Cerez like this
MoJo JoJo Posted August 18, 2015 Author Posted August 18, 2015 Um... I haven't encountered that bug ever, that does sound scary. Mine is just simply the dismemberment failing to work when I g_sabermorerealistic on 3 or debug_subdivison on along with g_dismemberment on 3. I did, however noticed a weird thing in JK2 mode when I use my disruptor rifle and use altfire on a stormtrooper, and then I swing my lightsaber in the exact same spot the stormtrooper was and then limbs would suddenly appear from nowhere.
Cerez Posted August 18, 2015 Posted August 18, 2015 No offense to them, but Cerez doesn't really know what they're talking about. We didn't touch anything involving dismemberment. @@MoJo JoJo mentioned that after spawning and fighting a number of NPCs (7 or more?) the dismemberment suddenly stops functioning until all severed limbs disappear, which sounded to me like a programmed cap on the dismemberment (for safety/performance reasons). But it's true that I know almost nothing of OpenJK development, and very little of coding.
MoJo JoJo Posted August 18, 2015 Author Posted August 18, 2015 My question is, is that why does JK2 only have that problem and not JA? Doesn't make any sense.Whoops got it backwards. Meant to say: why does JA have that problem and not JK2?
Cerez Posted August 18, 2015 Posted August 18, 2015 JKA and JK2 are two very different beasts in terms of their setup/settings. Some things are better handled and updated in JKA, but a lot of good features from JK2 are also missing or only partially implemented. Also, the SP game is completely different beast from the MP game, too. JKA may be a sequel to JK2, and it may be using the same game engine, but they are still two entirely different games. What is it that you are aiming to accomplish? To have model dismemberment happen 100% in the SP game?
eezstreet Posted August 18, 2015 Posted August 18, 2015 JKA and JK2 are two very different beasts in terms of their setup/settings. Some things are better handled and updated in JKA, but a lot of good features from JK2 are also missing or only partially implemented. Also, the SP game is completely different beast from the MP game, too. JKA may be a sequel to JK2, and it may be using the same game engine, but they are still two entirely different games. What is it that you are aiming to accomplish? To have model dismemberment happen 100% in the SP game?Not really. The only major differences are species selection and the differences in sabering.In terms of tech, JK2 actually supports JKA .npc files perfectly fine, this functionality just isn't used in the final game for whatever reason. .str files are just an incremental upgrade from .sp files and they used a different tool for them. JKA supports loading new _humanoids for SP with cutscenes, they did this so that porting to the consoles would be easier. There are no missing features from JK2 as far as I'm aware. The inventory system in JKA still exists and you can use the buttons, they are just hidden in the controls menu.
Archangel35757 Posted August 18, 2015 Posted August 18, 2015 Concerning dismemberment... I think it would be better if dismembering of limbs would not result in death... but rather play a wounded animation instead... where the player could then do a finishing move on the victim. Just like how Anakin did in his duel against Count Dooku. Cerez likes this
Tempust85 Posted August 18, 2015 Posted August 18, 2015 Wait, what are you saying happens here? Because I've had a freak bug in the past where limbs would spawn into new NPCs and try to fight the player. And uh...yeah, it's about as terrifying as it sounds.That is the funniest shit I read for a while
MoJo JoJo Posted August 19, 2015 Author Posted August 19, 2015 Yeah I'm trying to get it to work normally again like it used to. That's the aim. It's supposed to work 100% of the time and that's the problem, it doesn't work. Only very little. If you get the latest build and try it out, you would see what I'm talking about. In fact when you start up SP all you have to do is to start an SP campaign level and then turn on g_saberMoreRealistic to 2 or 3.At that point you know that all bodies are supposed to dismember, but almost NONE of them do at all. Maybe one or two of them will.And just a side note: g_dismemberProbabilities has no effect when g_saberMoreRealistic is on because all limbs fall off and not just one.
Cerez Posted August 19, 2015 Posted August 19, 2015 I've downloaded it, but I can't even get the latest nightly to run on my Mac... Running Jedi Academy Mode ----- Client Initialization ----- ----- Initializing Renderer ---- Trying to load "rdsp-vanilla_x86_64.dylib" from "/Users/Cerez/Games/Jedi Academy.app/Contents/openjk_sp.x86_64.app/Contents/MacOS"... Sys_LoadDll(/Users/Cerez/Games/Jedi Academy.app/Contents/openjk_sp.x86_64.app/Contents/MacOS/rdsp-vanilla_x86_64.dylib) failed: "Failed loading /Users/Cerez/Games/Jedi Academy.app/Contents/openjk_sp.x86_64.app/Contents/MacOS/rdsp-vanilla_x86_64.dylib: dlopen(/Users/Cerez/Games/Jedi Academy.app/Contents/openjk_sp.x86_64.app/Contents/MacOS/rdsp-vanilla_x86_64.dylib, 6): Symbol no" Trying to load "rdsp-vanilla_x86_64.dylib" from "/Users/Cerez/Games/Jedi Academy.app/Contents"... Sys_LoadDll(/Users/Cerez/Games/Jedi Academy.app/Contents/rdsp-vanilla_x86_64.dylib) failed: "Failed loading /Users/Cerez/Games/Jedi Academy.app/Contents/rdsp-vanilla_x86_64.dylib: dlopen(/Users/Cerez/Games/Jedi Academy.app/Contents/rdsp-vanilla_x86_64.dylib, 6): image not found" Failed to load renderer
MoJo JoJo Posted August 19, 2015 Author Posted August 19, 2015 Oh, I didn't know you used a Mac, I use windows 7... I don't know, I'm stumped now.
MoJo JoJo Posted August 24, 2015 Author Posted August 24, 2015 Okay! I just found out the problem and it's actually not a problem, because there's a define in wp_saber.cpp in the jedi academy code and I found a "define MAX_SABER_VICTIMS 16" in it. meaning that I could only dismember 16 at a time in a map if there are only a few entities. I extended it to 32 and I was able to slice and dice more of them up. It seems that Cerez was correct, it IS a programmed cap but it was always in there from the beginning. Even the jedi outcast code had it but it was never active. So there you go. HECTIC MYSTERY SOLVED!!! Cerez and Xycaleth like this
Somoa Posted January 29, 2016 Posted January 29, 2016 Okay! I just found out the problem and it's actually not a problem, because there's a define in wp_saber.cpp in the jedi academy code and I found a "define MAX_SABER_VICTIMS 16" in it. meaning that I could only dismember 16 at a time in a map if there are only a few entities. I extended it to 32 and I was able to slice and dice more of them up. It seems that Cerez was correct, it IS a programmed cap but it was always in there from the beginning. Even the jedi outcast code had it but it was never active. So there you go. HECTIC MYSTERY SOLVED!!! I'm unable to make the dismemberment work since I installed OpenJK. Well, it's like you said.. only one enemy will lose a head or be cut in half every now and then. How should I proceed to do the same thing as you? Edit: The cvars work in Jedi Academy Enhanced.
MoJo JoJo Posted January 29, 2016 Author Posted January 29, 2016 The way I changed it was through changing the MAX_SABER_VICTIMS from 16 to 32 and more of them were able to be diced, but it doesn't have to be 32, it can be a higher number if desired. It wasn't necessary for JK2 or JAMP because dismemberment always works regardless of the saber victims limit. I tried making the limit Q3_INFINITE and boy was the lag enormous!
ensiform Posted January 29, 2016 Posted January 29, 2016 Nothing changed to cause it. And JK:E is using same codebase.
MoJo JoJo Posted January 29, 2016 Author Posted January 29, 2016 Yeah, it's kinda weird how it acts like it's been changed, even though it's not been touched at all.
ensiform Posted January 29, 2016 Posted January 29, 2016 Which function(s) are responsible for determining dismemberment though. Could be rand behavior changed and is more precise now but the code relies on it being shitty, therefore its always rounding to 0 now or something I don't know.
MoJo JoJo Posted January 30, 2016 Author Posted January 30, 2016 That's what makes me think it's a random thing. I mean even the original JASP was kinda like that sometimes, so it's just how the game has always worked. Not really OpenJK related.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now