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

[TF2] MakeMeInvisible! v1.3.4


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-16-2011 , 19:10   Re: [TF2] MakeMeInvisible! v1.3.1
Reply With Quote #11

One little thing.

I don't believe that plugin-specific config files are actually executed unless AutoExecConfig() is called. So I believe that plugin.makemeinvis.cfg won't be executed unless sm_makemeinvis_genconfig is called every time it loads.

I'm pretty sure other plugins don't give users a choice. Just stick AutoExecConfig() in OnPluginStart(). If someone doesn't like the custom config file, they can blank it and stick their convars in server.cfg or something.

And also, please supply a precompiled version in addition to the code when you use custom includes. It won't compile on the forums (I just put a link to the Updater file, i.e. http://epicpwnage.co.cc/sm_plugins/p...einvisible.smx in my plugins).
__________________

Last edited by Dr. McKay; 11-16-2011 at 19:12.
Dr. McKay is offline
bobomaster
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 20:37   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #12

Ah, okay. Uploaded the smx, and added an AutoExecConfig(false) into OnPluginStart().

There's still a choice, but now the config will actually run.
bobomaster is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-16-2011 , 20:38   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #13

Quote:
Originally Posted by bobomaster View Post
Ah, okay. Uploaded the smx, and added an AutoExecConfig(false) into OnPluginStart().

There's still a choice, but now the config will actually run.
Ah, yes, don't know why I didn't think of that.

I'd recommend creating sm_makemeinvis_genconfig with RegConsoleCmd as opposed to RegAdminCmd. Management commands like that really only need to be run from the server console or rcon.

Edit: Have you tested sm_makemeinvis_genconfig? I tried using it and no file was generated.
__________________

Last edited by Dr. McKay; 11-16-2011 at 20:41.
Dr. McKay is offline
bobomaster
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 20:42   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #14

Yeah, I don't know why I made it an admin command. I guess I'll bunch it together with the next update, seeing how I really shouldn't have 3+ updates a day.
bobomaster is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-16-2011 , 21:13   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #15

Quote:
Originally Posted by bobomaster View Post
Yeah, I don't know why I made it an admin command. I guess I'll bunch it together with the next update, seeing how I really shouldn't have 3+ updates a day.
Understood. Have you tested the command?
__________________
Dr. McKay is offline
bobomaster
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 21:23   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #16

... the command doesn't work. "OnConfigsExecuted() will not be called until the config file has executed"; the command won't even work if OnConfigsExecuted() is already called. I'm going to remove it. (I didn't test it before-hand because I had no need for it)
bobomaster is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 11-16-2011 , 21:38   Re: [TF2] MakeMeInvisible! v1.3.2
Reply With Quote #17

Quote:
Originally Posted by bobomaster View Post
... the command doesn't work. "OnConfigsExecuted() will not be called until the config file has executed"; the command won't even work if OnConfigsExecuted() is already called. I'm going to remove it. (I didn't test it before-hand because I had no need for it)
Not sure what you're removing. I'd like to see the plugin continue generating a config file.
__________________
Dr. McKay is offline
bobomaster
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 22:39   Re: [TF2] MakeMeInvisible! v1.3.3
Reply With Quote #18

Meh, after reconsidering it, I added AutoExecConfig(true) to OnPluginLoad. I'll probably blank the file out for myself though.
bobomaster is offline
XXXJ.C.XXX
Junior Member
Join Date: Jun 2012
Old 11-24-2013 , 18:19   Re: [TF2] MakeMeInvisible! v1.3.4
Reply With Quote #19

Could you give an example of sm_makemecolored as soon as possible? thanks! Never mind, arguments were just being a pain to me and not willing to work for a second now they do.

Last edited by XXXJ.C.XXX; 11-24-2013 at 18:28. Reason: Working.
XXXJ.C.XXX is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 11-24-2013 , 19:07   Re: [TF2] MakeMeInvisible! v1.3.4
Reply With Quote #20

Why are you using transcolor?
If you render none you can hide particle effects too.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 11:06.


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