Иконка ресурса

FREE EpicPlugin : 1.0.0 1.0.0

Нет прав для скачивания
C#:
---
layout: forums
title: 'Learning to make plugins'
breadcrumbs:
 - "Plugin Development": "/forums/plugin-development.105/"
 - "Rust Development": "/forums/rust-development.4/"
---
<div class="titleBar">
    <h1>
        <a href="{{ '/threads/learning-to-make-plugins.17130/' | prepend: site.baseurl }}">Learning to make plugins</a>
    </h1>
    <p id="pageDescription" class="muted">Discussion in '<a href="{{ '/forums/rust-development.4/' | prepend: site.baseurl }}">Rust Development</a>' started by <a class="username" dir="auto">boop
            2</a>, <a href="{{ '/threads/learning-to-make-plugins.17130/' | prepend: site.baseurl }}"><span class="DateTime" title="Apr 4, 2016 at 5:03 PM">Apr 4, 2016</span></a>.
    </p>
</div>
<div class="pageNavLinkGroup">
    <div class="linkGroup SelectionCountContainer">
    </div>
    <div class="PageNav" data-page="1" data-range="2" data-start="2" data-end="2" data-last="2" data-sentinel="{sentinel}" data-baseurl="page-{sentinel}">
        <nav>
            <a href="{{ '/threads/learning-to-make-plugins.17130/' | prepend: site.baseurl }}" class="currentPage " rel="start">1</a>
            <a href="{{ '/threads/learning-to-make-plugins.17130/page-2' | prepend: site.baseurl }}" class="">2</a>
            <a href="{{ '/threads/learning-to-make-plugins.17130/page-2' | prepend: site.baseurl }}" class="text">Next &gt;</a>
        </nav>
    </div>
</div>
<ol class="messageList" id="messageList">
    <li id="post-193192" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> I recently decided i wanted to make plugins.<br /> I was reading here: <a
                            href="http://docs.oxidemod.org/rust/?csharp#basic-get-method" target="_blank" class="externalLink" rel="nofollow">Rust</a><br /> And using some of the c# examples, but i
                        get an error<br />
                        <br /> EnqueueCompilation called for an empty compilation<br />
                        <br /> Not sure what this is about but im new to all this so i dont know. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 5:03 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193192/permalink">#1</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193201" class="message staff" data-author="Wulf">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Wulf" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto" itemprop="name">Wulf</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> Please provide your full latest oxide/logs. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Wulf</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193201' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 5:57 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193201' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193201/permalink">#2</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193202" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> You want to see the error<br /> [DOUBLEPOST=1459789720][/DOUBLEPOST]All is says is<br /> EnqueueCompilation
                        called for an empty compilation <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193202' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:01 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193202' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193202/permalink">#3</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193206" class="message staff" data-author="Calytic">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a href="members/calytic.58712/" class="avatar Avm" data-avatarhtml="true"><img src="data/avatars/m/58/58712.jpg?1463423255" width="96" height="96" alt="Calytic" /></a>
                </div>
                <h3 class="userText">
                    <a href="members/calytic.58712/" class="username" dir="auto" itemprop="name">Calytic</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                    <em class="userBanner bannerGreen wrapped" itemprop="title"><span class="before"></span><strong>Community Mod</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> Nope, we can&#039;t say much with that error alone. Like wulf mentioned please upload your log files from
                        oxide/logs (latest files only) <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a href="members/calytic.58712/" class="username author" dir="auto">Calytic</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193206' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:12 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193206' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193206/permalink">#4</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193208" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> All i have in my logs is notifier connections <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193208' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:13 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193208' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193208/permalink">#5</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193214" class="message staff" data-author="Calytic">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a href="members/calytic.58712/" class="avatar Avm" data-avatarhtml="true"><img src="data/avatars/m/58/58712.jpg?1463423255" width="96" height="96" alt="Calytic" /></a>
                </div>
                <h3 class="userText">
                    <a href="members/calytic.58712/" class="username" dir="auto" itemprop="name">Calytic</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                    <em class="userBanner bannerGreen wrapped" itemprop="title"><span class="before"></span><strong>Community Mod</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> Alright, can you provide the plugin code you are using for your example? <div class="messageTextEndMarker">&nbsp;
                        </div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a href="members/calytic.58712/" class="username author" dir="auto">Calytic</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193214' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:29 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193214' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193214/permalink">#6</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193223" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeCode">
                            <div class="type">Code:</div>
                            {% raw %}<pre>using System.Collections.Generic;
using System;
using System.Reflection;
using System.Data;
using UnityEngine;
using Oxide.Core;namespace Oxide.Plugins
{
    [Info(&quot;EpicPlugin&quot;, &quot;Unknown&quot;, &quot;1.0.0&quot;)]
    [Description(&quot;A basic chat command.&quot;)]    class EpicPlugin : RustPlugin
    {
      
        [ConsoleCommand(&quot;testing&quot;)]
        void TestCommand(BasePlayer player, string command, string[] args)
        {
            SendReply(player, &quot;Test successful!&quot;);
        }
    }
}</pre>{% endraw %}
                        </div>
                        <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193223' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:42 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193223' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193223/permalink">#7</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193226" class="message staff" data-author="Wulf">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Wulf" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto" itemprop="name">Wulf</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> What filename are you using for your plugin <a href="https://oxidemod.org/members/100099/" class="username"
                            data-user="100099, @boop 2">@boop 2</a>? <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Wulf</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193226' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:44 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193226' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193226/permalink">#8</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193227" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> test.cs <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193227' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:45 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193227' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193227/permalink">#9</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193228" class="message staff" data-author="Wulf">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Wulf" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto" itemprop="name">Wulf</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeQuote" data-author="boop 2">
                            <aside>
                                <div class="attribution type">boop 2 said: <a href="#post-193227" class="AttributionLink">&uarr;</a>
                                </div>
                                <blockquote class="quoteContainer">
                                    <div class="quote">test.cs</div>
                                    <div class="quoteExpand">Click to expand...</div>
                                </blockquote>
                            </aside>
                        </div>Your main class is EpicPlugin, so you&#039;d need to name the file EpicPlugin.cs or change both to match such as Test. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Wulf</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193228' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:49 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193228' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193228/permalink">#10</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193229" class="message" data-author="boop 2">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="boop 2" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">boop 2</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> OMG, hahahah. Im a idiot, sorry! <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">boop 2</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193229' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 6:50 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193229' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193229/permalink">#11</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-193241" class="message" data-author="ツンデレラ">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="ツンデレラ" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">ツンデレラ</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeQuote" data-author="boop 2">
                            <aside>
                                <div class="attribution type">boop 2 said: <a href="#post-193229" class="AttributionLink">&uarr;</a>
                                </div>
                                <blockquote class="quoteContainer">
                                    <div class="quote">OMG, hahahah. Im a idiot, sorry!</div>
                                    <div class="quoteExpand">Click to expand...</div>
                                </blockquote>
                            </aside>
                        </div>Im so sorry i should of asked you that when you asked me <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">ツンデレラ</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193241' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Apr 4, 2016 at 7:31 PM">Apr 4, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-193241' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/193241/permalink">#12</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-224637" class="message" data-author="Shotgun Teddy">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Shotgun Teddy" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">Shotgun Teddy</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> Don&#039;t know if this thread is dead or not, but I&#039;m really interested in making plugins for rust as well.
                        However, I&#039;m just beginning to learn Python. I saw python is indeed supported for Rust game. Could any of you wizard developers point me in a good direction for learning
                        how to program for this game? Any resources, books, etc would be much appreciated. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Shotgun Teddy</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-224637' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Jul 8, 2016 at 7:15 AM">Jul 8, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-224637' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/224637/permalink">#13</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-226238" class="message" data-author="LaserHydra">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="LaserHydra" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">LaserHydra</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeQuote" data-author="Shotgun Teddy">
                            <aside>
                                <div class="attribution type">Shotgun Teddy said: <a href="#post-224637" class="AttributionLink">&uarr;</a>
                                </div>
                                <blockquote class="quoteContainer">
                                    <div class="quote">Don&#039;t know if this thread is dead or not, but I&#039;m really interested in making plugins for rust as well. However, I&#039;m just
                                        beginning to learn Python. I saw python is indeed supported for Rust game. Could any of you wizard developers point me in a good direction for learning how to
                                        program for this game? Any resources, books, etc would be much appreciated.</div>
                                    <div class="quoteExpand">Click to expand...</div>
                                </blockquote>
                            </aside>
                        </div>I recommend looking around in the internet for tutorials. For example where I often learn programming languages:<br /> Click -&gt; <a
                            href="http://tutorialspoint.com/python" target="_blank" class="externalLink" rel="nofollow">Python tutorial</a><br />
                        <br /> I suggest first learning ad much as possible of the language itself and experimening with simple stuff like console applications (not sure how you&#039;d do such in
                        python). Later on move to plugin making and try to learn about Oxide&#039;s API and the game you want to support. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">LaserHydra</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-226238' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Jul 9, 2016 at 10:16 PM">Jul 9, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-226238' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/226238/permalink">#14</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-231366" class="message" data-author="Shotgun Teddy">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Shotgun Teddy" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">Shotgun Teddy</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml"> Was wondering if you could help me figure something out LaserHydra. After sifting through other Python plugins
                        and their code I was able to figure out how to broadcast text based on certain hooks:<br />
                        <br />
                        <img src="https://oxidemod.org/attachments/rust_module-jpg.25041/" alt="rust_module.JPG" class="bbCodeImage LbImage" />
                        <br />
                        <br /> I simply copied and pasted random modules to import based on what other Python codes looked like, because I have no idea where to find these modules or what to import
                        based on what I need. I know its somewhere in the DLL, but my problem is I have no idea how to navigate the DLL, or WHICH DLL to look at for primary definitions etc.<br /> I am
                        currently importing the following:<br />
                        <br /> import <b>BasePlayer</b><br /> import <b>UnityEngine</b><br /> from <b>System</b> import <b>Action</b><br /> import <b>re</b><br /> Obviously ONE of them is allowing the
                        rust.SendChatMessage function to work... and its obviously deriving from the &quot;rust&quot; module/library. Now when I open up the Assembly-CSharp.dll in a decompiler, I see
                        the following:<br />
                        <br />
                        <img src="https://oxidemod.org/attachments/justdecompile-jpg.25043/" alt="justdecompile.JPG" class="bbCodeImage LbImage" />
                        <br /> So I figured, ok &quot;rust.SendChatMessage( )&quot; must be in the Rust module/class. (My assumption is that in this .dll list, these are all the various
                        &quot;Classes&quot; or &quot;Objects&quot;; please tell me if I&#039;m wrong). I open up the Rust module/class and don&#039;t see anything referring to
                        &quot;SendChatMessage&quot; definition/function, I only see the following:<br />
                        <br />
                        <img src="https://oxidemod.org/attachments/rust-jpg.25045/" alt="rust.JPG" class="bbCodeImage LbImage" />
                        <br />
                        <br /> Basically, I&#039;m wondering if someone can help me understand where to look for functions in Rusts and Oxides .dll&#039;s and where to look for the functions etc. Am I
                        looking in the incorrect DLL? Is the &#039;rust&#039; part of &quot;rust.SendChatMessage&quot; referring to a class within a module or a module within a DLL? <div
                            class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Shotgun Teddy</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-231366' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Jul 17, 2016 at 4:03 AM">Jul 17, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-231366' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/231366/permalink">#15</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-231368" class="message staff" data-author="Wulf">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Wulf" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto" itemprop="name">Wulf</a>
                    <em class="userBanner bannerRed wrapped" itemprop="title"><span class="before"></span><strong>Community Admin</strong><span class="after"></span></em>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeQuote" data-author="Shotgun Teddy">
                            <aside>
                                <div class="attribution type">Shotgun Teddy said: <a href="#post-231366" class="AttributionLink">&uarr;</a>
                                </div>
                                <blockquote class="quoteContainer">
                                    <div class="quote">Was wondering if you could help me figure something out LaserHydra. After sifting through other Python plugins and their code I was able to
                                        figure out how to broadcast text based on certain hooks:<br />
                                        <br />
                                        <a href="https://oxidemod.org/attachments/25041/" target="_blank">View attachment 25041</a>
                                        <br />
                                        <br /> I simply copied and pasted random modules to import based on what other Python codes looked like.<br /> I am currently importing the following:<br />
                                        <br /> import BasePlayer<br /> import UnityEngine<br /> from System import Action<br />
                                        <br /> I impored the following modules, obviously ONE of them is allowing the rust.SendChatMessage function to work... and its obviously deriving from the
                                        &quot;rust&quot; module/library. Now when I open up the Assembly-CSharp.dll in a decompiler, I see the following:<br />
                                        <br />
                                        <a href="https://oxidemod.org/attachments/25043/" target="_blank">View attachment 25043</a>
                                        <br /> So I figured, ok &quot;rust.SendChatMessage( )&quot; must be in the Rust module/class. (My assumption is that in this .dll list, these are all the
                                        various &quot;Classes&quot; or &quot;Objects&quot;; please tell me if I&#039;m wrong). I open up the Rust module/class and don&#039;t see anything referring to
                                        &quot;SendChatMessage&quot; definition/function, I only see the following:<br />
                                        <br />
                                        <a href="https://oxidemod.org/attachments/25045/" target="_blank">View attachment 25045</a>
                                        <br />
                                        <br /> Basically, I&#039;m wondering if someone can help me understand where to look for functions in Rusts and Oxides .dll&#039;s and where to look for the
                                        functions etc. Am I looking in the incorrect DLL? Is the &#039;rust&#039; part of &quot;rust.SendChatMessage&quot; referring to a class within a module or a
                                        module within a DLL?</div>
                                    <div class="quoteExpand">Click to expand...</div>
                                </blockquote>
                            </aside>
                        </div>The &quot;rust&quot; library helper is from Oxide, not the game itself. See <a
                            href="https://github.com/OxideMod/Oxide/blob/develop/Games/Unity/Oxide.Game.Rust/Libraries/Rust.cs" target="_blank" class="externalLink">Oxide/Rust.cs at develop ·
                            OxideMod/Oxide · GitHub</a> for all of the library helpers. <div class="messageTextEndMarker">&nbsp;</div>
                    </blockquote>
                </article>
            </div>
            <div class="messageMeta ToggleTriggerAnchor">
                <div class="privateControls">
                    <span class="item muted">
                        <span class="authorEnd"><a class="username author" dir="auto">Wulf</a>,</span>
                        <a href="{{ '/threads/learning-to-make-plugins.17130/#post-231368' | prepend: site.baseurl }}" title="Permalink" class="datePermalink"><span class="DateTime"
                                title="Jul 17, 2016 at 4:04 AM">Jul 17, 2016</span></a>
                    </span>
                </div>
                <div class="publicControls">
                    <a href="{{ '/threads/learning-to-make-plugins.17130/#post-231368' | prepend: site.baseurl }}" title="Permalink" class="item muted postNumber hashPermalink OverlayTrigger"
                        data-href="posts/231368/permalink">#16</a>
                </div>
            </div>
        </div>
    </li>
    <li id="post-231372" class="message" data-author="Shotgun Teddy">
        <div class="messageUserInfo">
            <div class="messageUserBlock">
                <div class="avatarHolder">
                    <span class="helper"></span>
                    <a class="avatar Avm" data-avatarhtml="true"><img src="{{ '/assets/styles/oxide/logo.og.png' | prepend: site.baseurl }}" width="96" height="96" alt="Shotgun Teddy" /></a>
                </div>
                <h3 class="userText">
                    <a class="username" dir="auto">Shotgun Teddy</a>
                </h3>
                <span class="arrow"></span>
            </div>
        </div>
        <div class="messageInfo primaryContent">
            <div class="messageContent">
                <article>
                    <blockquote class="messageText SelectQuoteContainer ugc baseHtml">
                        <div class="bbCodeBlock bbCodeQuote" data-author="Wulf">
                            <aside>
                                <div class="attribution type">Wulf said: <a href="#post-231368" class="AttributionLink">&uarr;</a>
                                </div>
                                <blockquote class="quoteContainer">
                                    <div class="quote">The &quot;rust&quot; library helper is from Oxide, not the game itself. See <a
                                            href="https://github.com/OxideMod/Oxide/blob/develop/Games/Unity/Oxide.Game.Rust/Libraries/Rust.cs" target="_blank" class="externalLink  rel="
                                            nofollow">Oxide/Rust.cs at develop · OxideMod/Oxide · GitHub</a> for all of the library helpers.</div>
                                    <div class="quoteExpand">Click to expand...</div>
                                </blockquote>
                            </aside>
                        </div>Holy shit, ok now I understand what that file is. Sorry Wulf, I know you&#039;ve repeated yourself at least a dozen times, I just couldn&#039;t figure out for the life of
                        me where I was calling things from. Ok so that Rust.cs file comes with the Oxide .zip file you extract into your server, and I&#039;m calling from that. Understood <img
                            src="{{ '/assets/styles/default/xenforo/clear.png' | prepend: site.baseurl }}" class="mceSmilieSprite mceSmilie1" alt=":)" title="Smile    :)" /><br /> Thanks once again Wulf. <div class="messageTextEndMarker">
                            &nbsp;</di
// ... [Code preview truncated due to length. Full source in attached file] ...

Автор
15FPS
Скачиваний
0
Просмотры
1
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху