Tamino

Swoop race bug in TSL and a failed attempt to fix

Recommended Posts

There is a pretty well known bug with no known solution on The Sith Lord, the one when at the start of the race, the swoop bike goes to the sky and stays there, I've looked around and no recommendations worked, so I tried to look at the game files themselves to see if a fix is possible, however, I had some issues with the tools, and certain files I couldn't open, so here are some details what I found out:

I would guess that the file responsible for that bug is the "onaccelerate.ncs" found in every module that have a swooprace (that is, 207tel_s.rim, 371nar_s.rim, 510ond_s.rim), however, I can't open that file with neither Kotor Tool or DeNCS (Kotor Tools gives the "Error launching nwnnsscomp, Is it installed in the same directory as this program?" error, and deNCS gives "partial-byte code does not match, however,  I can open other files without issues), given those errors, I assume those files can't be decompiled.

Assuming that I'm correct, I though about a workaround, as in, writing a script else where to fix it, looking at those files, I see that I can open "onjump.ncs" without a issue.So maybe I thought I could use some function to force the bike down, with "SWMG_SetPlayerOffset" or with "SWMG_SetJumpSpeed", the problem I encountered with that, is that I can't compile any .ncs file (gives that same error, error launching nwnnsscomp).

So, my question is, would such "workaround" even work, or is there something else preventing such scripts to work?

Some additional details: I did a test and decided to switch the "onaccelerate.ncs" of the narshadda module with the "onaccelerate.ncs" of the Telos module (as I don't have issues in the Telos race), it didn't work, however, the behavior did change (the bugged bike was even higher now), giving me more evidence that the issue is on that script

Share this post


Link to post
Share on other sites
8 hours ago, Tamino said:

partial-byte code does not match

If you get this, right click on the binary code and select View decompiled code in DeNCS. Now you can save the script.

Good luck!

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, bead-v said:

If you get this, right click on the binary code and select View decompiled code in DeNCS. Now you can save the script.

Good luck!

Thanks, that worked, I will read the code and try to find a fix!

Share this post


Link to post
Share on other sites

I couldn't file the cause of the error (I think it's an error in the source code, not in the scripts) but I did came out with an workaround, if anyone is curious, here is what I did:

on the jump file (onjump.ncs), the script checks if the player is already fying, if he is, it returns 0, what I did was changing that behavior to simply accelerate the player downwards.

The issue with that is that a player can cheat that way, as in, interrupting the jump earlier, but, I'd rather not use it that way, and be able to race when it bugs.

IF there is interest, I can polish it and publish a mod of that (or even a better solution)

Edited by Tamino
typo
  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.