Fougerite Official

Fougerite Official 1.9.2

No permission to download

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
@Marcos Just look at it man...
Code:
function On_Chat(Player, ChatMessage) {
    var ini = getVipIni();
    //VIP Prefix + Color : Yellow by default
    if(isVip(Player) && Player.Admin == false ){
    var chStr = ChatMessage.toString();
    var vipcolor = ini.GetSetting("ChatColor","vip_color");
    var preFix = vipcolor;
    var combStr = preFix + chStr;
    var toArr = combStr.split('"');
    var finalChatStr = toArr.join (" ");

    var finalChatStr = toArr.join (" ");
    DataStore.Add("ColorChat", Player.Name, null)
    DataStore.Add("ColorChatC", Player.Name, null)
    Server.BroadcastFrom("[VIP] ☠ " + Player.Name, finalChatStr);
    ChatMessage.NewText = ""
    return;
    }
    //Admin Prefix + Color : red by default
    if(Player.Admin == true){
    var chStr = ChatMessage.toString();
    var admincolor = ini.GetSetting("ChatColor","admin_color");
    var preFix = admincolor;
    var combStr = preFix + chStr;
    var toArr = combStr.split('"');
    var finalChatStr = toArr.join (" ");

    var finalChatStr = toArr.join (" ");
    DataStore.Add("ColorChat", Player.Name, null)
    DataStore.Add("ColorChatC", Player.Name, null)
    Server.BroadcastFrom("[Admin] ♚ " + Player.Name, finalChatStr);
    ChatMessage.NewText = ""
    return;
    }
}
This looks so wrong. Why to write same vars twice. I think there are other plugins for VIPs, please try this: http://fougerite.com/resources/donatorrank.47/
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
@Marcos Just look at it man...
Code:
function On_Chat(Player, ChatMessage) {
    var ini = getVipIni();
    //VIP Prefix + Color : Yellow by default
    if(isVip(Player) && Player.Admin == false ){
    var chStr = ChatMessage.toString();
    var vipcolor = ini.GetSetting("ChatColor","vip_color");
    var preFix = vipcolor;
    var combStr = preFix + chStr;
    var toArr = combStr.split('"');
    var finalChatStr = toArr.join (" ");

    var finalChatStr = toArr.join (" ");
    DataStore.Add("ColorChat", Player.Name, null)
    DataStore.Add("ColorChatC", Player.Name, null)
    Server.BroadcastFrom("[VIP] ☠ " + Player.Name, finalChatStr);
    ChatMessage.NewText = ""
    return;
    }
    //Admin Prefix + Color : red by default
    if(Player.Admin == true){
    var chStr = ChatMessage.toString();
    var admincolor = ini.GetSetting("ChatColor","admin_color");
    var preFix = admincolor;
    var combStr = preFix + chStr;
    var toArr = combStr.split('"');
    var finalChatStr = toArr.join (" ");

    var finalChatStr = toArr.join (" ");
    DataStore.Add("ColorChat", Player.Name, null)
    DataStore.Add("ColorChatC", Player.Name, null)
    Server.BroadcastFrom("[Admin] ♚ " + Player.Name, finalChatStr);
    ChatMessage.NewText = ""
    return;
    }
}
This looks so wrong. Why to write same vars twice. I think there are other plugins for VIPs, please try this: http://fougerite.com/resources/donatorrank.47/
It's not written by him, a guy wrote in back in the days for magma. If i have time i will try to clean it up.
 

Marcos

Member
Trusted Member
Member
Aug 1, 2014
101
0
18
good afternoon
That's right, it was not written by me, I tried using the "donatorRank" the options that exist can not understand so I use the System "VIP ++" is easier to use.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Ye I just wanted to admit that it need to be old and wrote by beginner. Because we will not sit now and try to fix some old plugin :)

Donator have more functionality. It will be really better to just help you understand plugin than use some old thing.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Are servers working for you? I'm disabling more and more plugins and server still crashing it's making me mad for real. I was already thinking of disabling whole fougerite and leaving server without mods, but it's stupid. My admin is still talking to me about installing oxide, and even send me some message about new cheats what is allowing players to teleport to others and kill someone by radiation, what is not working on oxide 2, but on all others mods it is. The funny thing is that I don't have oxide account so I still didn't move to it yet, but god damn! Whenever I pay for server for next month I kicking myself "why the f did you do that?"

Fougerite crashing. Pluton started to crashing. O m g o m g o m g o m g o m g <frustrated-as-hell-or-blah-....-what?>

I tried restarter but I couldn't set it proper so it was restarting only CMD.exe not CMD+rust. Shit shit shit.

Today is pay-day. Almost 20 $ for this VPS. Should I pay or nah?

Maybe it's time to open second C# project and write whole fougerite from start and watch every function? CAn someone send me source and help to set up environment!?
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
I doubt that Fougerite has to do anything with the crashes at this time. I have a rust restarter I might able to release that. Thinking that Oxide wont crash is a bad idea. Besides Fougerite fixed two flood errors, and Oxide doesnt have that. Crash logs?

Sent from my Samsung Galaxy S4
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Yea I will test it. Disabling all mods.
Do you use FAC?

This is what i mostly get from It, but we don't know whats the problem.

Code:
========== OUTPUTING STACK TRACE ==================

(0x1F36ADD4) (Mono JIT code): (filename not available):  (wrapper managed-to-native) UnityEngine.Collider:get_attachedRigidbody () + 0x2c (1F36ADA8 1F36AE11) [01644E70 - Unity Root Domain] + 0x0
(0x1F38F038) (Mono JIT code): (filename not available):  UnityEngine.RaycastHit:get_rigidbody () + 0x30 (1F38F008 1F38F049) [01644E70 - Unity Root Domain] + 0x0
(0x1F38EFA2) (Mono JIT code): (filename not available):  UnityEngine.RaycastHit:get_transform () + 0x12 (1F38EF90 1F38F001) [01644E70 - Unity Root Domain] + 0x0
(0x08D4D323) (Mono JIT code): (filename not available):  nFAC.GlobalChecker:DoDizzyCheck () + 0x44b (08D4CED8 08D4DCFF) [01644E70 - Unity Root Domain] + 0x0
(0x08D4B8E9) (Mono JIT code): (filename not available):  nFAC.Main:InvokeDizzyCheck (string) + 0x39 (08D4B8B0 08D4BC3C) [01644E70 - Unity Root Domain] + 0x0
(0x08D4B616) (Mono JIT code): (filename not available):  Fougerite.Events.TimedEvent:_timer_Elapsed (object,System.Timers.ElapsedEventArgs) + 0x66 (08D4B5B0 08D4B731) [01644E70 - Unity Root Domain] + 0x0
(0x08D4B093) (Mono JIT code): (filename not available):  System.Timers.Timer:Callback (object) + 0x383 (08D4AD10 08D4B0F5) [01644E70 - Unity Root Domain] + 0x0
(0x045200BF) (Mono JIT code): (filename not available):  (wrapper runtime-invoke) object:runtime_invoke_void__this___object (object,intptr,intptr,intptr) + 0x47 (04520078 04520113) [01644E70 - Unity Root Domain] + 0x0
(0x100F0376) (mono): (filename not available): mono_set_defaults + 0x22cb
(0x1005D78C) (mono): (filename not available): mono_runtime_invoke + 0x51
(0x100625E9) (mono): (filename not available): mono_runtime_invoke_array + 0x38b
(0x10062883) (mono): (filename not available): mono_runtime_invoke_array + 0x625
(0x1007A287) (mono): (filename not available): mono_security_set_mode + 0x3517
(0x1007AA7C) (mono): (filename not available): mono_security_set_mode + 0x3d0c
(0x1007DA5B) (mono): (filename not available): mono_thread_interruption_request_flag + 0x406
(0x1010B4D6) (mono): (filename not available): mono_unity_thread_clear_domain_fields + 0x3a4b
(0x760333CA) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
(0x77339ED2) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
(0x77339EA5) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36

========== END OF STACKTRACE ===========
 
Last edited:

hunternope3

Plugin Developer
Plugin Developer
Mar 22, 2015
36
46
8
36
If you have any c# written plugins > recompile them (if you can) with the newest fougerite.dll
Ive noticed that some of my C# plugins prevcnted me from using console commands like suicide.
After recompiling with the new fougerite dll (reference) it all worked fine.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
I'm planning to get the player objects from the cache instead of launching a for cycle to find the player.

And yea I'm also trying to learn how to patch some methods. I'm also sure some other ulink methods could take some try catch
 
  • Agree
Reactions: Snake

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Alright look. I'm using FAC of course and I'm getting those errors in log. But I'm not always receiving crash. In weekend I was restarting server like 3-4 times per day and I have only one crash log in dir. Do you saying that disabling FAC would make it better? I can disable all c# plugins if it will help.... I need to pay for server in hour and I still don't know if it's worth.

Server survived without mods. But no players online. They didn't want to play without plugins. Maybe with 10 players online it would crash anyway, I don't know. I still remember times of 1.0.7 or 1.0.6 when server was just working with like 3 plugins and no crash.

Then I started to install other plugins, fougerite updates came, and I'm asking myself how did I survive 3 months with that?
 

Snake

Moderator
Moderator
Jul 13, 2014
288
174
28
Alright look. I'm using FAC of course and I'm getting those errors in log. But I'm not always receiving crash. In weekend I was restarting server like 3-4 times per day and I have only one crash log in dir. Do you saying that disabling FAC would make it better? I can disable all c# plugins if it will help.... I need to pay for server in hour and I still don't know if it's worth.

Server survived without mods. But no players online. They didn't want to play without plugins. Maybe with 10 players online it would crash anyway, I don't know. I still remember times of 1.0.7 or 1.0.6 when server was just working with like 3 plugins and no crash.

Then I started to install other plugins, fougerite updates came, and I'm asking myself how did I survive 3 months with that?
If you don't want to get crashes by FAC, disable anti dizzy. It's the only anti-hack that uses some methods directly from Unity and there seems to be something wrong with that, that's why it crashes.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
I disabled NavMesh fixer a couple days ago as you said that it's still don't fixed or something like that.

Now:
- FAC
- GlitchFix
- IronPython
- Jint
- Magma plugin
- Restriction zones (don't matter. I have it only from like 3 days)
- RustPP

(I would like to disable Magma and jint if I can, I don't really know)

Plugins:
- Admin locations (nothing what would crash server, it's only teleport)
- ANA
- BannedPeople (not udpated as I don't want to have this console functionality, also server was crashing before I added this plugin)
- Country Blacklist (making errors in console when someone is rejected)
- DeathMSG
- DestroySystem (I had problems with that, don't even know if it's fixed)
- 11 my simply plugins, no timers, mostly only chat commands, I will make them to one in future,
- Highping (this is workung until when timers stopping to work, couple of hours)
- Home System
- IdIdentifier (just realized that this have BIIIG logs and probably need to be cleared)
- Vanish
- Wiper (disabled now)
 

chaochaoq9

Member
Member
Jul 27, 2014
102
4
16
[5/27/2015 9:53:26 PM] [Error] Traceback (most recent call last): File "<string>", line 235, in Decay Callback File "<string>", line 213, in ForceDecay
Exception: Invalid packet size 0; Must be between 1 and NetConfiguration.SendBufferSize - Invalid value: 0
[5/27/2015 9:53:27 PM] [Error] Traceback (most recent call last): File "<string>", line 226, in Wipe Callback
System Error: Object reference not set to an instance of an object
[5/27/2015 9:53:32 PM] [Debug] [CHAT-CMD] "Sky" executed "/home"
[5/27/2015 9:53:32 PM] [Error] Traceback (most recent call last): File "<string>", line 170, in On_Command
SystemError: Object reference not set to an instance of an object
[5/27/2015 9:53:38 PM] [Debug] [CHAT-CMD] "Sky" executed "/home"
[5/27/2015 9:53:38 PM] [Error] Traceback (most recent call last): File "<string>", line 170, in On_Command
SystemError: Object reference not set to an instance of an object


Have been in collapse.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
After I disabled Jint and Magma yea.. server survived to this time. Still many RPC errors, some player stuck on server list (or it's cheat? I can't be sure now).

There was 8 players online and guess what. I logged in because I saw in server console that someone is cheating (facepunch kicks). Lucky for him I got some idiot PC stuck and he got away before I connected 5 minutes later. But?

All others were banned one by one. Some for speedhacks, some for full jacked, one somehow got into closed house. F cking rust. I'm glad that we have this banip plugin but this is all what I can do, be a little bit satisfied when I'm writing "Fuck you piece of shit" and I know that he will not reconnect with name "FuckAdmin".

And one player online on my experimental. What a great waste of money xD. Sorry guys I will probably not make Arena. I was planning 2 plugins Arena, Crazy Arena and Trap, but I will not make them. I'm usually just calm man, but this game is just getting on my nerves. It's only one thing what is making me so mad that I login into game just because I know that cheaters are online, and write to every cheater "fuck you", "piece of shit", "fucking asshole", "you didn't saw warning? 'play fair or fuck yourself offline'" - what my Announcer is writing every 10 minutes with red color.

I will still connect in nearest days to catch up and maybe help with something but I want to finally close this era in my life.

If I can suggest something - I think as fougerite has no proper anticheat it will be just best when you focus on making fun from rust legacy. Something like those HungerGames.
 
  • Agree
Reactions: Snake

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Yeah. Legacy isnt developed at all since a time, but Its so shit to be honest. I mean the gameplay is op but not the code. The best anticheat would be still a client.

Sent from my Samsung Galaxy S4
 
Last edited:
  • Agree
Reactions: Snake

DreTaX

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

Seems like the RPC errors could be caused by plugins before, however It is a rust error as I said It before.

I looked into It and It seems like these two things could cause the error messages:

C#:
  [RPC]
  public void RecieveNetwork(float calories, float water, float rad, float anti, float temp, float poison)
  {
    this.caloricLevel = calories;
    this.waterLevelLitre = water;
    this.radiationLevel = rad;
    this.antiRads = anti;
    this.coreTemperature = temp;
    this.poisonLevel = poison;
    if ((double) temp >= 1.0)
      this._lastWarmTime = Time.time;
    else if ((double) temp < 0.0)
      this._lastWarmTime = -1000f;
    RPOS.MetabolismUpdate();
  }
C#:
  [RPC]
  protected void RecieveNetwork(Vector3 pos, Quaternion rot, uLink.NetworkMessageInfo info)
  {
    if (!this.hasInterp || !(bool) ((UnityEngine.Object) this._interp))
      return;
    PosRot frame;
    frame.position = pos;
    frame.rotation = rot;
    this.rigidbody.isKinematic = true;
    this._interp.SetGoals(frame, info.timestamp);
    this._interp.running = true;
  }
I would say the first one. Since It says errors like "Player Client (43) was not found" I'm kinda sure that the first one is, since that updates metabolism things like hunger. This would need a try catch method I guess and It wouldn't throw more messages. The first method executes this private method:

C#:
  private void DoMetabolismUpdate()
  {
    Metabolism component = RPOS.ObservedPlayer.GetComponent<Metabolism>();
    this.calorieLabel.text = component.GetCalorieLevel().ToString("N0");
    this.radLabel.text = component.GetRadLevel().ToString("N0");
    this._foodProgress.sliderValue = Mathf.Clamp01(component.GetCalorieLevel() / 3000f);
    this._plaqueManager.SetPlaqueActive("PlaqueHunger", (double) component.GetCalorieLevel() < 500.0);
    this._plaqueManager.SetPlaqueActive("PlaqueCold", component.IsCold());
    this._plaqueManager.SetPlaqueActive("PlaqueWarm", component.IsWarm());
    this._plaqueManager.SetPlaqueActive("PlaqueRadiation", component.HasRadiationPoisoning());
    this._plaqueManager.SetPlaqueActive("PlaquePoison", component.IsPoisoned());
    if ((double) component.GetCalorieLevel() < 500.0)
      this.calorieLabel.color = Color.red;
    else
      this.calorieLabel.color = Color.white;
  }
We could even custimize the color of the calorie. I really need to learn how to patch in C#. I would be able to do the hooks too.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Is that possible what I saw on those crackdrustservers website that there is cheat what kills other players by adding them critical amount of radiation? Then someone with cheat like that, what is managing player radiation would make errors?

Something like server want to check rads but jacked or some other shit is denying that.