Raised This Month: $ Target: $400
 0% 

Plugin not loading, but not showing errors.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 11-07-2014 , 19:26   Plugin not loading, but not showing errors.
Reply With Quote #1

Using latest SM snapshot 4590 (this also happened with 4588). Latest TF2 update. Other plugins on the server all work fine.

sm plugins list shows the name of the broken plugin like this:

"frog.smx" frog.smx
or in rcon
18 "frog.smx"

Despite everything else properly being stuff like "This is my plugin name" (v1.0.3) bla bla

Despite this being in my code below:

Code:
public Plugin:myinfo = {
    name = "Team Fortress Frogger",
    author = "Chdata",
    description = "The hexiest game mode.",
    version = PLUGIN_VERSION,
    url = "http://steamcommunity.com/groups/tf2data"
};
OnPluginStart and OnMapStart aren't being called at all. I have various LogMessages in them that aren't writing to sourcemod/logs despite other plugins being able to do so.

Convars created in OnPluginStart can't be found via sm_cvar
etc

It can't be my compiler. Both 4588 and 4590 don't work "for this plugin" but other stuff I compile does work fine.

What tha eff?

Edit: More details.

I include multiple files like this:

Code:
#define DEBUG
#include "frog/debug.sp"

#include "frog/client.sp"
#include "frog/stocks.sp"
#include "frog/map.sp"
#include "frog/pups.sp"
#include "frog/cmd.sp"
And I guess it's not reading from the includes or something?

This thing was able to compile with weird things in it like...

GetVectorDistance(vPos[iClient], )

Literally with a missing argument - no compile warnings and a .smx was produced.

Also vPos was an array with only 2 indices... not 3 (typo, yet it compiled).

After moving all the unfinished / broken code to a temp file from my project, leaving only stuff that I knew was working beforehand, now it seems like all the commands I have defined in those includes, are undefined and now I get a bunch of compile warnings about them being undefined when in the past they were all fine.

Almost like my includes aren't being read at all now.

Not to mention it's telling me I have errors in the main frog.sp on a line that's in the middle of a comment block /* */

As opposed to telling me the line the error was in another file like pups.sp at line x...???



Edit: Okay. After fixing the particular function that was just really syntax errer'd, I was able to see error lines in other included files just fine.

Man. Wat. Wat. Wat.
__________________

Last edited by Chdata; 11-07-2014 at 20:28.
Chdata 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 02:40.


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