• Хостинг игровых серверов

    Максимальная производительность для ваших игровых серверов!

    Заказать сейчас

Плагин Craft Menu 1.1.62

mEorik

"Alea iacta est, sed a me 'n bato belinum"
23 (100%)
10 Ноя 2023
1,530
6
280
239
Craft Menu + PlaceAnything - craftmenu, workbenchs

Custom crafting panel at player's workbenches.
Craft custom or non-craftable items, create your own blueprints.
No chat commands required!


FEATURES.png.4d28c8b065001905d0728161b202279e.png



  • Create blueprints, modify materials required to craft item, change item names or skins.
    Split blueprints between workbench tiers or create default blueprints.

  • No chat commands! All what players need to do is open...
 
Плагин под моим контролем. Об ошибках писать мне.
Vkontakte
Telegram
Discord - xkrystalll#5962
Нужен фикс под обнову

Failed to call hook 'OnNewSave' on plugin 'CraftMenu v1.1.2' (NullReferenceException: Object reference not set to an instance of an object)
[22:10:27] at Oxide.Plugins.CraftMenu.OnNewSave () [0x00015] in <5f765cd4dc904b8f8372cdd818590cde>:0
[22:10:27] at Oxide.Plugins.CraftMenu.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0008d] in <5f765cd4dc904b8f8372cdd818590cde>:0
[22:10:27] at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <09575a60985045248bcb43b20faeeb99>:0
[22:10:27] at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <bae5f1223fce49c493b01571c99dce02>:0
[22:10:27] at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <bae5f1223fce49c493b01571c99dce02>:0
 
  • Мне нравится
Реакции: xkrystalll
После обновления

Error while compiling: CraftMenu.cs(473,28): error CS1061: Type `Network.Server' does not contain a definition for `write' and no extension method `write' of type `Network.Server' could be found. Are you missing an assembly reference?
 
public static void SendEffectTo ( string effect, BasePlayer player )
{
if ( player == null ) return;
var EffectInstance = new Effect();
EffectInstance.Init(Effect.Type.Generic, player, 0, Vector3.up, Vector3.zero);
EffectInstance.pooledstringid = StringPool.Get(effect);
NetWrite netWrite = Network.Net.sv.StartWrite();
netWrite.PacketID(Message.Type.Effect);
EffectInstance.WriteToStream(netWrite);
netWrite.Send(new SendInfo(player.net.connection));
EffectInstance.Clear();
}
вот этот фрагмент нового рабочего кода
 
в коде найди метод SendEffectTo и замени кодом выше и все заработает
public static void SendEffectTo ( string effect, BasePlayer player )
{
if ( player == null ) return;
var EffectInstance = new Effect();
EffectInstance.Init(Effect.Type.Generic, player, 0, Vector3.up, Vector3.zero);
EffectInstance.pooledstringid = StringPool.Get(effect);
NetWrite netWrite = Network.Net.sv.StartWrite();
netWrite.PacketID(Message.Type.Effect);
EffectInstance.WriteToStream(netWrite);
netWrite.Send(new SendInfo(player.net.connection));
EffectInstance.Clear();
}
 
Безымянный.png
public static void SendEffectTo ( string effect, BasePlayer player )
{
if ( player == null ) return;
var EffectInstance = new Effect();
EffectInstance.Init(Effect.Type.Generic, player, 0, Vector3.up, Vector3.zero);
EffectInstance.pooledstringid = StringPool.Get(effect);
NetWrite netWrite = Network.Net.sv.StartWrite();
netWrite.PacketID(Message.Type.Effect);
EffectInstance.WriteToStream(netWrite);
netWrite.Send(new SendInfo(player.net.connection));
EffectInstance.Clear();
}
 
Активность
Пока никто не печатает сообщение