You are not logged in.

  • Login
Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

meNNx

User / Kunde

  • "meNNx" started this thread

Posts: 12

  • Send private message

1

Tuesday, December 29th 2015, 5:26pm

[HILFE] Monument Radiation

Hallo a alle hab wieder mal eine Frage undzwar wollte ich auf meinem Server es so haben das Monumente radioaktiv verseucht sind und habe diese beiden plugins instaliert:
http://oxidemod.org/plugins/rad-line.914/
und
http://oxidemod.org/plugins/monument-radiation.1562/

Jedoch habe ich keine verseuchten zonen, das erste plugin senden nachrichten im chat das zonen für bestimmt zeit nicht aktiv sind jedoch sind keine zonen verseucht und wenn ich wie bei der beschreibung vom 2 plugin steht mr_list in die console schreibe zeigt er immer "none" also das keine zonen da sind wenn ich das plugin reloade kommt immer das ;

Quoted

> load MonumentRadiation
[Oxide] 5:24 PM [Error] Unable to load MonumentRadiation. MonumentRadiation.cs(59,36): error CS0103: The name `ture' does not exist in the current context
[Oxide] 5:24 PM [Info] Previous version of plugin failed to load: MonumentRadiation
Kann mir jedman helfen ? mein zweites Problem ist beim connecten auf den Server kommt immer wenn ich auf website anzeigen gehe(RUST:IO)" http://map.playrust.io/?5.101.164.84:28015" obwohl ich es auf "http://217.198.138.215:28015" geändert habe..
Bitte um hilfe danke im Vorraus :)

This post has been edited 1 times, last edit by "meNNx" (Dec 31st 2015, 1:31pm)


Spikoli1976

User / Kunde

Posts: 31

Location: Neustadt/Weinstraße

Occupation: SysOp

Thanks: 1

  • Send private message

2

Wednesday, December 30th 2015, 10:26am

Moin,

ich denke da hat sich ein Rechtschreibfehler eingeschlichen ... :

[Oxide] 5:24 PM [Error] Unable to load MonumentRadiation.
MonumentRadiation.cs(59,36): error CS0103: The name `ture' does not
exist in the current context

Schau nochmal in das Config-File, ich vermute mal es sollte 'true' heißen ? ;)


LG, Sven.

meNNx

User / Kunde

  • "meNNx" started this thread

Posts: 12

  • Send private message

3

Wednesday, December 30th 2015, 2:35pm

Nach ändern kam dies
[Oxide] 2:34 PM [Debug] Load requested for plugin which is already loading: MonumentRadiation
[Oxide] 2:34 PM [Info] MonumentRadiation was compiled successfully in 2756ms
[Oxide] 2:34 PM [Info] Loaded plugin MonumentRadiation v0.1.2 by k1lly0u
[Oxide] 2:34 PM [Info] [MonumentRadiation] Creating a new config file
[Oxide] 2:34 PM [Info] [MonumentRadiation] ZoneManager is not installed, can not proceed

Kann mann nicht die radioaktivität auch in der config einstellen ?

Spikoli1976

User / Kunde

Posts: 31

Location: Neustadt/Weinstraße

Occupation: SysOp

Thanks: 1

  • Send private message

4

Wednesday, December 30th 2015, 2:57pm

Moin,

da scheint noch das Plugin ZoneManager zu fehlen : http://oxidemod.org/plugins/zones-manager.739/
Das ist ein benötigtes Plugin damit MonumentRadiation funktioniert.

LG, Sven.

meNNx

User / Kunde

  • "meNNx" started this thread

Posts: 12

  • Send private message

5

Wednesday, December 30th 2015, 7:28pm

So habe jetzt
http://oxidemod.org/plugins/zones-manager.739/
und
http://oxidemod.org/plugins/monument-radiation.1562/
instaliert nun ist radtown und airfield radioaktiv aber der rest nicht:/ kann mir jemand helfen wie ich das ändern kann ?

Spikoli1976

User / Kunde

Posts: 31

Location: Neustadt/Weinstraße

Occupation: SysOp

Thanks: 1

  • Send private message

6

Wednesday, December 30th 2015, 8:06pm

Also in der config von monument-radiation kann man die entsprechenden Monumente von false auf true setzen...das sollte dann funktionieren.

LG, Sven.

meNNx

User / Kunde

  • "meNNx" started this thread

Posts: 12

  • Send private message

7

Wednesday, December 30th 2015, 8:41pm

steht alles auf true :/


Quoted


//////////////////////////////////////////////////////////////////////////////////////
// Configuration /////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////

static bool radsLighthouse = true;
static bool radsAirfield = true;
static bool radsPowerplant = true;
static bool radsTrainyard = true;
static bool radsWaterplant = true;
static bool radsWarehouse = true;
static bool radsSatellite = true;
static bool radsDome = true;
static bool radsRadtown = true;
static bool radsTunnels = true;

static string sizeLighthouse = "15";
static string sizeAirfield = "85";
static string sizePowerplant = "120";
static string sizeTrainyard = "100";
static string sizeWaterplant = "120";
static string sizeWarehouse = "15";
static string sizeSatellite = "60";
static string sizeDome = "50";
static string sizeRadtown = "60";
static string sizeTunnels = "90";

static int radsAmount = 1;

private void LoadVariables()
{
LoadConfigVariables();
SaveConfig();
}
private void LoadConfigVariables()
{
CheckCfg("Options - Radiation Amount", ref radsAmount);

CheckCfg("Options - Radiation Zones - Lighthouses", ref radsLighthouse);
CheckCfg("Options - Radiation Zones - Airfield", ref radsAirfield);
CheckCfg("Options - Radiation Zones - Powerplant", ref radsPowerplant);
CheckCfg("Options - Radiation Zones - Trainyard", ref radsTrainyard);
CheckCfg("Options - Radiation Zones - Water Treatment Plant", ref radsWaterplant);
CheckCfg("Options - Radiation Zones - Warehouses", ref radsWarehouse);
CheckCfg("Options - Radiation Zones - Satellite", ref radsSatellite);
CheckCfg("Options - Radiation Zones - Sphere Tank", ref radsDome);
CheckCfg("Options - Radiation Zones - Rad-towns", ref radsRadtown);
CheckCfg("Options - Radiation Zones - Military Tunnels", ref radsTunnels);

CheckCfg("Options - Zone Size - Rad-towns", ref sizeRadtown);
CheckCfg("Options - Zone Size - Lighthouses", ref sizeLighthouse);
CheckCfg("Options - Zone Size - Airfield", ref sizeAirfield);
CheckCfg("Options - Zone Size - Powerplant", ref sizePowerplant);
CheckCfg("Options - Zone Size - Trainyard", ref sizeTrainyard);
CheckCfg("Options - Zone Size - Water Treatment Plant", ref sizeWaterplant);
CheckCfg("Options - Zone Size - Warehouses", ref sizeWarehouse);
CheckCfg("Options - Zone Size - Satellite", ref sizeSatellite);
CheckCfg("Options - Zone Size - Sphere Tank", ref sizeDome);
CheckCfg("Options - Zone Size - Military Tunnels", ref sizeTunnels);

}
private void CheckCfg<T>(string Key, ref T var)
{
if (Config[Key] is T)
var = (T)Config[Key];
else
Config[Key] = var;
}
private void CheckCfgFloat(string Key, ref float var)
{

if (Config[Key] != null)
var = Convert.ToSingle(Config[Key]);
else
Config[Key] = var;
}
object GetConfig(string menu, string datavalue, object defaultValue)
{
var data = Config[menu] as Dictionary<string, object>;
if (data == null)
{
data = new Dictionary<string, object>();
Config[menu] = data;
Changed = true;
}
object value;
if (!data.TryGetValue(datavalue, out value))
{
value = defaultValue;
data[datavalue] = value;
Changed = true;
}
return value;
}


Und wenn ich unload mache kommt auch nur

Quoted

> unload MonumentRadiation
[Oxide] 8:41 PM [Info] [MonumentRadiation] Zone radtown_86 removed.
[Oxide] 8:41 PM [Info] [MonumentRadiation] Zone airfield_627 removed.
[Oxide] 8:41 PM [Warning] CallHook 'Unload' on plugin 'MonumentRadiation v0.1.2' took: 995ms
[Oxide] 8:41 PM [Info] Unloaded plugin MonumentRadiation v0.1.2 by k1lly0u

Spikoli1976

User / Kunde

Posts: 31

Location: Neustadt/Weinstraße

Occupation: SysOp

Thanks: 1

  • Send private message

8

Thursday, December 31st 2015, 1:05am

Wie sieht es in der config von zone-manager aus ?
sind da nur die radtown und airfield als zone hinterlegt ?

meNNx

User / Kunde

  • "meNNx" started this thread

Posts: 12

  • Send private message

9

Thursday, December 31st 2015, 12:24pm

Habe alles runter geschmissen und neu geladen da kamm das

Quoted

[Oxide] 12:21 PM [Debug] Load requested for plugin which is already loading: ZoneManager
[Oxide] 12:21 PM [Info] ZoneManager was compiled successfully in 2990ms
[Oxide] 12:21 PM [Info] Loaded plugin ZoneManager v2.3.0 by Reneb / Nogrod
[Oxide] 12:21 PM [Warning] Missing plugin name prefix 'zonemanager. for permission 'zone' (by plugin 'ZoneManager')
[Oxide] 12:21 PM [Warning] Missing plugin name prefix 'zonemanager. for permission 'candeploy' (by plugin 'ZoneManager')
[Oxide] 12:21 PM [Warning] Missing plugin name prefix 'zonemanager. for permission 'canbuild' (by plugin 'ZoneManager')
[Oxide] 12:21 PM [Info] [ZoneManager] Loaded 2 Zone definitions


Das ist die config

Quoted

////////////////////////////////////////////
/// Configs
////////////////////////////////////////////
private bool Changed;
private bool Initialized;
private float AutolightOnTime;
private float AutolightOffTime;
private string prefix;

private object GetConfig(string menu, string datavalue, object defaultValue)
{
var data = Config[menu] as Dictionary<string, object>;
if (data == null)
{
data = new Dictionary<string, object>();
Config[menu] = data;
Changed = true;
}
object value;
if (!data.TryGetValue(datavalue, out value))
{
value = defaultValue;
data[datavalue] = value;
Changed = true;
}
return value;
}

private static bool GetBoolValue(string value)
{
if (value == null) return false;
value = value.Trim().ToLower();
switch (value)
{
case "t":
case "true":
case "1":
case "yes":
case "y":
case "on":
return true;
default:
return false;
}
}
private static BasePlayer FindPlayer(string nameOrIdOrIp)
{
foreach (var activePlayer in BasePlayer.activePlayerList)
{
if (activePlayer.UserIDString == nameOrIdOrIp)
return activePlayer;
if (activePlayer.displayName.Contains(nameOrIdOrIp, CompareOptions.OrdinalIgnoreCase))
return activePlayer;
if (activePlayer.net?.connection != null && activePlayer.net.connection.ipaddress == nameOrIdOrIp)
return activePlayer;
}
foreach (var sleepingPlayer in BasePlayer.sleepingPlayerList)
{
if (sleepingPlayer.UserIDString == nameOrIdOrIp)
return sleepingPlayer;
if (sleepingPlayer.displayName.Contains(nameOrIdOrIp, CompareOptions.OrdinalIgnoreCase))
return sleepingPlayer;
}
return null;
}
private void LoadVariables()
{
AutolightOnTime = Convert.ToSingle(GetConfig("AutoLights", "Lights On Time", "18.0"));
AutolightOffTime = Convert.ToSingle(GetConfig("AutoLights", "Lights Off Time", "8.0"));
prefix = Convert.ToString(GetConfig("Chat", "Prefix", "<color=#FA58AC>ZoneManager:</color> "));

if (!Changed) return;
SaveConfig();
Changed = false;
}

protected override void LoadDefaultConfig()
{
Config.Clear();
LoadVariables();
}


  • "sondereinsatzkommando" is male

Posts: 4,140

Thanks: 16

  • Send private message

10

Wednesday, January 20th 2016, 6:29pm

Hallo,

besteht das Problem weiterhin?

Mit freundlichen Grüßen

sondereinsatzkommando
Who will fix me now? Dive in when I'm down?
Save me from myself, DON'T LET ME DROWN :love:

Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net