Sign in to follow this  
Box

Has anyone solved the Workbench problem?

Recommended Posts

So many of us are familiar with this bug in Kotor 2: when breaking down items from a workbench, instead of the workbench user's Repair skill being used to determine the component value of the items, the main character's Repair skill is used.

 

I recall hearing that this bug was fixed. That doesn't surprise me since I was pretty close to a solution myself. But if anyone has it, I'd like to look at the source code for it. I want to be able to stack this fix with some workbench modifications of my own.

 

Thank you.

Share this post


Link to post
Share on other sites

// k_workbench_bdm
//
// Through Bao-Dur, the player can break down and create items.
// After Mira has been found, the player can make rockets, too
//
// KDS, 08/15/04


#include "k_inc_debug"
#include "k_inc_utility"

void main()
{
    ShowUpgradeScreen(OBJECT_INVALID, GetLastUsedBy( ), FALSE, TRUE, "itemcreatemira");
}
and

// k_workbench_bd
//
// Through Bao-Dur, the player can break down and create items.
//
// KDS, 08/15/04


#include "k_inc_debug"
#include "k_inc_utility"

void main()
{
    ShowUpgradeScreen(OBJECT_INVALID, GetLastUsedBy( ), FALSE, TRUE);
}
(simply use De-NCS loose on the scripts)

Share this post


Link to post
Share on other sites

Thanks. So if I'm reading this correctly, all that needed to be done was to change GetFirstPC() to GetLastUsedBy() in the second argument.

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.

Sign in to follow this