Raised This Month: $51 Target: $400
 12% 

[TF2] Custom Weapons 3 (Beta 2)


Post New Thread Reply   
 
Thread Tools Display Modes
ScrapEngineer
Member
Join Date: Oct 2016
Location: The fourth worst country
Old 05-26-2020 , 05:48   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #221

Hope there's no issue with posting and sharing this, but I somehow managed to botch some code together to make it so that custom weapons don't glitch out whenever you have Mini-Sentries, it's not flawless as whenever a user has the Gunslinger equipped and uses a custom wrench, the arm is fine for the wrench but anything else will use the Gunslinger arms, but it's a much more minor visual bug compared to the horrendous stretching which would happen otherwise.

The .zip file contains both the compiled and uncompiled versions of cw3model-application, cw2model-application and cw2legacy, this is an example of my first time trying to code, and it took many attempts with fix methods which were very stupid and did not work.
Attached Files
File Type: zip CW3 Gunslinger Fix.zip (64.5 KB, 173 views)
__________________
Amateur coder and sentient lemon.

Last edited by ScrapEngineer; 05-26-2020 at 05:49.
ScrapEngineer is offline
henke50
Junior Member
Join Date: May 2018
Old 05-26-2020 , 16:00   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #222

uhm, sorry to ask, but can anyone give me information about main attribute of the Masterkey that have been used on the official server?

Last edited by henke50; 05-26-2020 at 16:02.
henke50 is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 05-26-2020 , 19:44   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #223

Quote:
Originally Posted by henke50 View Post
uhm, sorry to ask, but can anyone give me information about main attribute of the Masterkey that have been used on the official server?
There are a number of servers that run custom weapons; none are ones I would consider "official".
Anyways, I was paid to write that particular plugin; it's exclusive to CTF2W. Feel free to send me a private message if you need any other information.

I do have other public attributes that I should make a proper post for. Will update this space shortly. It's below.

----

The Custom Attribute Starter Pack

This post will also serve as an informal announcement of my Custom Attribute Starter Pack, which is a collection of dozens of attributes, many of them sponsored by Karma Charger (including ones from his newest videos, which I try to push as soon as the videos are published).

it's actually been public for a while, just haven't posted about it

It depends on my own Custom Attribute framework, which was written because the Custom Weapons attribute system is extremely clunky for developers to use. It does support Custom Weapons however; read over this page, which talks about the interop mechanism.

Both have release builds. While the Custom Attribute framework only depends on TF2Attributes, the starter pack uses a lot of libraries, all of which are listed in the project pages.

Between the project wiki and readme, I've done what I can to document it. I unfortunately don't have the time to guide people through the entirety of the project, so beyond that you're mostly on your own. If there is anything that's unclear and you've read through the resources, I can try to answer specific questions over private message, which will then be used to update documentation.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 05-27-2020 at 09:29.
nosoop is offline
trbz_
Junior Member
Join Date: May 2018
Old 06-18-2020 , 01:02   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #224

Quote:
Originally Posted by nosoop View Post
The Custom Attribute Starter Pack

This post will also serve as an informal announcement...

<cut for space>
I'm trying to use this with the cw3 adapter, and I've installed all the stuff w/ the dependencies, all latest versions, but I keep getting these errors every time I start the server:

Code:
L 06/18/2020 - 00:55:53: [SM] Unable to load plugin "custom-attr-starter-pack\cloak_debuff_time_scale.smx": Required extension "Source Scramble" file("sourcescramble.ext") not running
- 06/18/2020 - 00:55:55: [custom-attr-starter-pack\custom_lunchbox_effect.smx] offsetof(CTFPlayer, m_iTauntAttack) == 0x1F98
L 06/18/2020 - 00:55:58: [SM] Unable to load plugin "custom-attr-starter-pack\generate_rage_on_dmg_patch.smx": Required extension "Source Scramble" file("sourcescramble.ext") not running
L 06/18/2020 - 00:56:01: [SM] Exception reported: Invalid Handle 0
L 06/18/2020 - 00:56:01: [SM] Blaming: custom-attr-starter-pack\keep_disguise_on_attack.smx
L 06/18/2020 - 00:56:01: [SM] Call stack trace:
L 06/18/2020 - 00:56:01: [SM]   [0] DHookEnableDetour
L 06/18/2020 - 00:56:01: [SM]   [1] Line 19, scripting\keep_disguise_on_attack.sp::OnPluginStart
L 06/18/2020 - 00:56:01: [SM] Unable to load plugin "custom-attr-starter-pack\keep_disguise_on_attack.smx": Error detected in plugin startup (see error logs)
L 06/18/2020 - 00:56:02: [SM] Unable to load plugin "custom-attr-starter-pack\lunchbox_override_pickup_type.smx": Required extension "Source Scramble" file("sourcescramble.ext") not running
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "sourcescramble_manager.smx": Required extension "Source Scramble" file("sourcescramble.ext") not running
L 06/18/2020 - 00:56:14: [SM] Exception reported: Could not initialize call to CTFPlayer::AddCustomAttribute
L 06/18/2020 - 00:56:14: [SM] Blaming: tf2attributes.smx
L 06/18/2020 - 00:56:14: [SM] Call stack trace:
L 06/18/2020 - 00:56:14: [SM]   [0] SetFailState
L 06/18/2020 - 00:56:14: [SM]   [1] Line 193, tf2attributes.sp::OnPluginStart
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "tf2attributes.smx": Error detected in plugin startup (see error logs)
L 06/18/2020 - 00:56:14: [SM] Error parsing gameconfig file "c:\users\ethan\desktop\steamcmd\tf2\tf\addons\sourcemod\gamedata\tf2.wearables.txt":
L 06/18/2020 - 00:56:14: [SM] Error 1 on line 0, col 0: Stream failed to open
L 06/18/2020 - 00:56:14: [SM] Exception reported: Unable to open tf2.wearables: File could not be opened: The system cannot find the file specified.

L 06/18/2020 - 00:56:14: [SM] Blaming: tf2wearables.smx
L 06/18/2020 - 00:56:14: [SM] Call stack trace:
L 06/18/2020 - 00:56:14: [SM]   [0] LoadGameConfigFile
L 06/18/2020 - 00:56:14: [SM]   [1] Line 81, tf2wearables.sp::OnPluginStart
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "tf2wearables.smx": Error detected in plugin startup (see error logs)
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "tf_custom_attributes.smx": Could not find required plugin "tf2attributes"
L 06/18/2020 - 00:56:14: [SM] Error parsing gameconfig file "c:\users\ethan\desktop\steamcmd\tf2\tf\addons\sourcemod\gamedata\tf2.econ_data.txt":
L 06/18/2020 - 00:56:14: [SM] Error 1 on line 0, col 0: Stream failed to open
L 06/18/2020 - 00:56:14: [SM] Exception reported: Unable to open tf2.econ_data: File could not be opened: The system cannot find the file specified.

L 06/18/2020 - 00:56:14: [SM] Blaming: tf_econ_data.smx
L 06/18/2020 - 00:56:14: [SM] Call stack trace:
L 06/18/2020 - 00:56:14: [SM]   [0] LoadGameConfigFile
L 06/18/2020 - 00:56:14: [SM]   [1] Line 127, tf_econ_data.sp::OnPluginStart
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "tf_econ_data.smx": Error detected in plugin startup (see error logs)
L 06/18/2020 - 00:56:14: [SM] Error parsing gameconfig file "c:\users\ethan\desktop\steamcmd\tf2\tf\addons\sourcemod\gamedata\tf2.ontakedamage.txt":
L 06/18/2020 - 00:56:14: [SM] Error 1 on line 0, col 0: Stream failed to open
L 06/18/2020 - 00:56:14: [SM] Exception reported: Unable to open tf2.ontakedamage: File could not be opened: The system cannot find the file specified.

L 06/18/2020 - 00:56:14: [SM] Blaming: tf_ontakedamage.smx
L 06/18/2020 - 00:56:14: [SM] Call stack trace:
L 06/18/2020 - 00:56:14: [SM]   [0] LoadGameConfigFile
L 06/18/2020 - 00:56:14: [SM]   [1] Line 91, scripting\tf_ontakedamage.sp::OnPluginStart
L 06/18/2020 - 00:56:14: [SM] Unable to load plugin "tf_ontakedamage.smx": Error detected in plugin startup (see error logs)
I have all the correct .smx files and dependencies for the Starter Pack installed. I am running SourceMod 9, and no I didn't install the SM10+ version of DHooks.
trbz_ is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-18-2020 , 02:06   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #225

Quote:
Originally Posted by trbz_ View Post
I'm trying to use this with the cw3 adapter, and I've installed all the stuff w/ the dependencies, all latest versions, but I keep getting these errors every time I start the server:

<quotes follow>

I have all the correct .smx files and dependencies for the Starter Pack installed. I am running SourceMod 9, and no I didn't install the SM10+ version of DHooks.
Pardon the brief responses; been extremely burnt out lately.

Quote:
[SM] Unable to load plugin "custom-attr-starter-pack\${multiple_plugins}.smx": Required extension "Source Scramble" file("sourcescramble.ext") not running
Source Scramble isn't running. Either you grabbed the wrong build for your server's platform (.zip only contains Windows binaries, .tar.gz only Linux binaries), or there is a completely different load failure, in which case you should try loading it with sm exts load.

Pretty sure Source Scramble works on both 1.9 and 1.10; it doesn't depend on the IBinTools interface that broke between those versions.

Quote:
[SM] Exception reported: Unable to open tf2.{wearables,econ_data,ontakedamage}: File could not be opened: The system cannot find the file specified.
Self-explanatory; those files are all available in their respective release pages.

Quote:
[SM] Exception reported: Could not initialize call to CTFPlayer::AddCustomAttribute
Gamedata mismatch; I suspect you switched from FlaminSarge's build to mine without installing the gamedata specific to my build. Also available in the release page.

Quote:
L 06/18/2020 - 00:56:01: [SM] Exception reported: Invalid Handle 0
L 06/18/2020 - 00:56:01: [SM] Blaming: custom-attr-starter-pack\keep_disguise_on_attack.smx
Known issue specific to Windows. Currently on the backburner.

If you don't need any of those specific attributes, they can be unloaded. The dependencies do need to be corrected, of course.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 06-18-2020 at 02:26.
nosoop is offline
trbz_
Junior Member
Join Date: May 2018
Old 06-18-2020 , 19:14   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #226

Quote:
Originally Posted by nosoop View Post
Source Scramble isn't running. Either you grabbed the wrong build for your server's platform (.zip only contains Windows binaries, .tar.gz only Linux binaries), or there is a completely different load failure, in which case you should try loading it with sm exts load.

Pretty sure Source Scramble works on both 1.9 and 1.10; it doesn't depend on the IBinTools interface that broke between those versions.
Thanks for the quick response. I've looked into it, and it seems that it is unable to find the ISourceMod interface, which supposedly means that sourcescramble.ext was compiled in SourceMod 1.10 and as a result isn't loading correctly. I have tried compiling sourcescramble_manager.smx with 1.9 but that does not fix the issue, and I don't have the source code to compile sourcescramble.ext in 1.9.

I have fixed all the issues with other missing gamedata files (somehow I just missed those on the release pages like an idiot), but the sourcescramble issue still persists.

Last edited by trbz_; 06-18-2020 at 19:14.
trbz_ is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-19-2020 , 11:31   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #227

Quote:
Originally Posted by trbz_ View Post
I've looked into it, and it seems that it is unable to find the ISourceMod interface, which supposedly means that sourcescramble.ext was compiled in SourceMod 1.10 and as a result isn't loading correctly.
Ah. It looks like the 1.10 codebase was checked out on my Windows instance, and that indeed prevents loading on 1.9.
I should probably keep separate repositories checked out for each revision or figure out how to target 1.9.

I've updated the releases with a 1.9-based Windows package.
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)
nosoop is offline
trbz_
Junior Member
Join Date: May 2018
Old 06-20-2020 , 20:33   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #228

Thanks! I've got it working now. Besides the Windows bugs, the only issue I've found is that "mult basegrenade direct radius" does not seem to be working, as in it loads correctly but the radius multiplier is just never applied, direct hits or otherwise. I tested it with arbitrarily large values just to be sure.
trbz_ is offline
nosoop
Veteran Member
Join Date: Aug 2014
Old 06-20-2020 , 21:25   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #229

Quote:
Originally Posted by trbz_ View Post
Thanks! I've got it working now. Besides the Windows bugs, the only issue I've found is that "mult basegrenade direct radius" does not seem to be working, as in it loads correctly but the radius multiplier is just never applied, direct hits or otherwise. I tested it with arbitrarily large values just to be sure.
Cool, glad to hear that there are few remaining unknown bugs — we can continue the conversation on that last one on the project's issue tracker to keep things organized and avoid cluttering this one up with support messages. Sounds like you're hitting some cases that I didn't personally test.

(You could also send a private message over the forums instead, but the issue tracker is preferred so other people can see that it's known.)
__________________
I do TF2, TF2 servers, and TF2 plugins.
I don't do DMs over Discord -- PM me on the forums regarding inquiries.
AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

Last edited by nosoop; 06-20-2020 at 21:28.
nosoop is offline
enderandrew
Senior Member
Join Date: Jun 2020
Old 06-22-2020 , 02:33   Re: [TF2] Custom Weapons 3 (Beta 2)
Reply With Quote #230

@nosoop

Tried loading your pack. Most of it loads but two plugins didn't.

L 06/22/2020 - 01:15:59: [SM] Exception reported: Invalid Handle 0
L 06/22/2020 - 01:15:59: [SM] Blaming: custom-attr-starter-pack\keep_disguise_on_attack.smx
L 06/22/2020 - 01:15:59: [SM] Call stack trace:
L 06/22/2020 - 01:15:59: [SM] [0] DHookEnableDetour
L 06/22/2020 - 01:15:59: [SM] [1] Line 19, scripting\keep_disguise_on_attack.sp::OnPlugi nStart
L 06/22/2020 - 01:15:59: [SM] Unable to load plugin "custom-attr-starter-pack\keep_disguise_on_attack.smx": Error detected in plugin startup (see error logs)
L 06/22/2020 - 01:16:02: [SM] Exception reported: Invalid Handle 0
L 06/22/2020 - 01:16:02: [SM] Blaming: custom-attr-starter-pack\lunchbox_override_pickup_type.smx
L 06/22/2020 - 01:16:02: [SM] Call stack trace:
L 06/22/2020 - 01:16:02: [SM] [0] DHookEnableDetour
L 06/22/2020 - 01:16:02: [SM] [1] Line 25, scripting\lunchbox_override_pickup_type.sp::O nPluginStart
L 06/22/2020 - 01:16:02: [SM] Unable to load plugin "custom-attr-starter-pack\lunchbox_override_pickup_type.smx": Error detected in plugin startup (see error logs)

I'm using dhooks-2.2.0-detours14-sm110.zip
enderandrew is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode