Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update kc.nut - fix inconsistent Knife variable name #8

Merged
merged 1 commit into from
Sep 18, 2020

Conversation

sjain882
Copy link
Contributor

@sjain882 sjain882 commented Sep 17, 2020

Referencing #7

As of 17/09/2020 the script fails to load in-game, it just says kc.nut line = (77) column = (9) : error expected '.' in the console.

I'm not very familiar with the Source scripting system, but I tinkered around and played with everything and it seems you have some inconsistent naming of some variable, apparently this is case sensitive too. The variable appears in two different forms, Knife.def, and Knife. All these are registered by the game as separate variables and causes errors throughout the script.

Making them all consistently named as one variable fixed the issue for me, and now the script works perfectly in-game.

@p410n3
Copy link
Owner

p410n3 commented Sep 18, 2020

Thank you for your work!

I will test this pull request once I am at home and will merge it if it has no errors for me.

Much appreciated!

@p410n3
Copy link
Owner

p410n3 commented Sep 18, 2020

Worked fine for me. Thanks a lot @sjain882

@p410n3 p410n3 merged commit bfbb677 into p410n3:master Sep 18, 2020
@sjain882
Copy link
Contributor Author

sjain882 commented Sep 22, 2020

No problem at all! Thanks for responding and checking it so quickly. It wasn't much work honestly, just a bit of experimentation and guessing what referred to what. Nice to see you again, hope you are doing well and as always thanks for this amazing script!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants