Solved Some plugins with configs don't work properly

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Did you mention what build you're using? Because I made those changes to the Data class, moving the config file handling into the MagmaPlugin and JintPlugin. I did that because loading plugin configs WASN'T working. So I have to wonder if somehow you got an intermediate build.

Did your build come with Drop++ in the Magma folder? Did Drop++ unpack the drop tables into the Magma\Drop++\Tables folder? If it did, that means it read its config file.

I will talk to Dretax about what he does to prepare the builds he posts.
Talk with me about what? It's 1.0.5 build, Riketta's version. He told me to put it up. Besides It's obvious he is using 1.0.5
 

mikec

Master Of All That I Survey
Retired Staff
Trusted Member
Jul 12, 2014
296
152
28
Los Angeles, California, USA
I am happy to help with improving this build as well and am interested in maybe making plugins myself so you might see some work from me if I get good enough :)
OK, that's cool. Just want to make sure your expectations align with what can be delivered.

Did Drop++ create a Tables subdirectory and populate it with the loot tables on server startup?
 

mikec

Master Of All That I Survey
Retired Staff
Trusted Member
Jul 12, 2014
296
152
28
Los Angeles, California, USA
Talk with me about what? It's 1.0.5 build, Riketta's version. He told me to put it up.
That's what I wanted to know. Thanks. I wonder if I should start posting my builds in a separate thread? As long as I make clear they are my builds, not official Fougerite releases, would that be acceptable?
 

Jeffro

Member
Member
Sep 1, 2014
25
3
8
OK, that's cool. Just want to make sure your expectations align with what can be delivered.

Did Drop++ create a Tables subdirectory and populate it with the loot tables on server startup?
Yes it did :)
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Hi there,

Recently (like 6 hours ago) I've made the switch from Oxide to Fougerite and for now I seem to have 2 plugins which don't work properly.

My server is hosted at Gameservers.com so I had to go through Ticket Support to get Fougerite installed.

The following plugins seem to have issues:

Voter (http://gomagma.org/community/index.php?resources/voter.61/) and FPSBoost (http://fougerite.com/resources/fpsboost.18/)

When I try to use /vote it comes up with "Config does not exist"
And when I try to use /fps it does work but the username is changed to "Config does not exist" as well.

Here is my folder structure in the server: http://puu.sh/biadc.png and http://puu.sh/biaf2.png
As you can see both plugins are already using the exact same name as the plugin is called.

Here are some snippets of the code in the plugins, I think the following call is what is actually failing:
"Data.GetConfigValue"

JavaScript:
var config = "Voter";

function checkReward(set) {
    var rewardsArray = [];
    var x = 0;
    while(true) { //Iterate through the config.
        var rewards = Data.GetConfigValue(config, "RewardSet"+set, "reward"+x); //Read the reward at that particular line.
        if(rewards != null) { //Check to see if you have reached the end of the config for rewards.
            rewardsArray.push(rewards);
            x = x+1;
        } else {
            break;
        }
    }
    return rewardsArray;
}
JavaScript:
var name = Data.GetConfigValue("FPSBoost", "Settings", "name");
        var cooldown = Data.GetConfigValue("FPSBoost", "Settings", "cd");
        var time = Data.GetTableValue("FPSBoost", Player.SteamID);
I would like to hear your thoughts and on what I can do to have these plugins working.
I am also open to any suggestions or any good alternatives to the plugins I am using. I'm trying to have a good user experience for my server :)

With kind regards,
Jeffro

Edit:

It also seems the plugin Rank++ is creating a lot of errors in my console:

Code:
MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
[MagmaPlugin] Error invoking function On_PlayerGathering in Rank++ plugin.
SerializationException: Type UnityEngine.Vector3 is not marked as Serializable.
Any idea if its the plugin or if there's a problem with the way the server is configured?
I just noticed that FPSBoost doesn't create a config by default.