-
Member
This, most DEFINITELY, needs to be a sticky! Awesome work, Jack!
-
Savvy ? 🐒
Originally Posted by
Buzzy62
This, most DEFINITELY, needs to be a sticky! Awesome work, Jack!
Well, it's a sticky since age now but thanks for the compliment ;p
Originally Posted by
Shisha16
Can someone help me. I cant find the folder or data to change the "greyed" leg items in my inventory. I can open config folder and then there are some ui folder. How can i create this with txt. into xml.
This is no more an xml configuration.
I'm not sure what you want to accomplish, I see two cases :
1) disable the greyed items completly :
PHP Code:
Hud.RunOnPlugin<InventoryAndStashPlugin>(plugin =>
{
// disable sell darkening
plugin.NotGoodDisplayEnabled = false;
});
(see OP for instructions on how to use it ;p)
2) configure the pickit
the configuration file is /config/pickit_sc_70.ini (and I can't help more as I don't master this file format ;p)
-
Post Thanks / Like - 1 Thanks
Megalodon84 (1 members gave Thanks to JackCeparou for this useful post)
-
Member
OK, having some difficulty doing something that I don't even know is possible.
I normally just edit the ItemsPlugin.cs and GoblinPlugin.cs files manually and decided t try making the changes in my PluginEnablerOrDisablerPlugin.cs instead.
What I am getting is exceptions:
(33,30) : error CS1513: } expected
(34,16) : error CS1520: Method must have a return type
(47,4) : error CS1519: Invalid token ')' in class, struct, or interface member declaration
(48,2) : error CS0116: A namespace cannot directly contain members such as fields or methods
(51,17) : error CS1518: Expected class, delegate, enum, interface, or struct
(52,16) : error CS1518: Expected class, delegate, enum, interface, or struct
(55,30) : error CS1518: Expected class, delegate, enum, interface, or struct
(57,10) : error CS0116: A namespace cannot directly contain members such as fields or methods
(58,1) : error CS1022: Type or namespace definition, or end-of-file expected
This is the snippet I inserted for the GoblinPlugin change:
PHP Code:
Hud.RunOnPlugin<GoblinPlugin>(plugin => {
plugin.public GoblinPlugin()
public GoblinPlugin()
{
Enabled = true;
SnoMapping = new Dictionary<uint, WorldDecoratorCollection>();
EnableSpeak = true;
});
};
This is the snippet I inserted for the ItemsPlugin change:
PHP Code:
Hud.RunOnPlugin<ItemsPlugin>(plugin => {
plugin.public ItemsPlugin()
public ItemsPlugin()
{
Enabled = true;
EnableSpeakLegendary = true;
EnableSpeakAncient = true;
EnableSpeakPrimal = true;
EnableSpeakSet = true;
EnableSpeakAncientSet = true;
EnableSpeakPrimalSet = true;
EnableCustomSpeak = false;
CustomSpeakTable = new Dictionary<ISnoItem, string>();
});
};
What am I doing wrong?
Last edited by Buzzy62; 11-03-2017 at 01:46 PM.
-
Savvy ? 🐒
Originally Posted by
Buzzy62
What am I doing wrong?
Many things ;p
A complete file with both of your snippets look like this : /plugins/User/PluginEnablerOrDisablerPlugin2.cs
PHP Code:
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin2 : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin2()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
public void Customize()
{
Hud.RunOnPlugin<GoblinPlugin>(plugin =>
{
plugin.Enabled = true;
plugin.SnoMapping.Clear();
plugin.EnableSpeak = true;
});
Hud.RunOnPlugin<ItemsPlugin>(plugin =>
{
plugin.Enabled = true;
plugin.EnableSpeakLegendary = true;
plugin.EnableSpeakAncient = true;
plugin.EnableSpeakPrimal = true;
plugin.EnableSpeakSet = true;
plugin.EnableSpeakAncientSet = true;
plugin.EnableSpeakPrimalSet = true;
plugin.EnableCustomSpeak = false;
plugin.CustomSpeakTable.Clear();
});
}
}
}
Last edited by JackCeparou; 11-03-2017 at 03:03 PM.
-
Post Thanks / Like - 2 Thanks
-
Member
Originally Posted by
JackCeparou
Many things ;p
Yeah, I guess my dreams of becoming a programmer are done! LOL
Originally Posted by
JackCeparou
A complete file with both of your snippets look like this : /plugins/User/PluginEnablerOrDisablerPlugin2.cs
PHP Code:
...bunch of gobblty-gook...
Geez, Jack. You make it look SO easy. -sigh-
-
Savvy ? 🐒
Originally Posted by
Buzzy62
Yeah, I guess my dreams of becoming a programmer are done!
Learning programming without prior knowledge can be a tough (and very long) process, don't give up, take a break and retry later ; )
Originally Posted by
Buzzy62
Geez, Jack. You make it look SO easy. -sigh-
Well, I wrote my 1st 'software', alone with just a book, 1/4 century ago.. So I have some practice ^^'
-
Originally Posted by
JackCeparou
Learning programming without prior knowledge can be a tough (and very long) process, don't give up, take a break and retry later ; )
Well, I wrote my 1st 'software', alone with just a book, 1/4 century ago.. So I have some practice ^^'
haha, just like me, when I was 8 yo, in 1991
I had only an english C64 book and I didn't understood anything of it
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
-
Savvy ? 🐒
lol ^^
You started younger than me ;p
It was around 12 when I got my first computer : copy/pasting complete game listing from a book by hand..
A bit later I wrote a MasterMind game from what I learned with other listings and the language manual, this took weeks..
All of this on an Amiga500 + 2nd floppy + the 512Ko ram extension (woohoo 1Mo ram!!) with persistent clock xD
Today's beginners don't know the chance they have ;p
Last edited by JackCeparou; 11-03-2017 at 05:36 PM.
-
Active Member
I started in 1981, when I was 5! Basic, then HTML, a little C, C+, and C++. My major hurdle was and is my disability. TI 99 4a, Commodore VIC 20 and 64, and an Apple IIc.
Last edited by Vern1701; 11-03-2017 at 11:30 PM.
-
Member
my god you guys are really making me feel like an old timer, I first started learning how to program in college but I learned COBOL and if even its forerunner if anyone remembers FLOW-MATIC, FORTRAN which is a compiler we used to use, CPL which was something that came before C and then turned into C, then C, C++, visual basic, etc. etc. I'm not going to tell you when but I'm sure you can figure it out. going to find my walker....
-
Contributor
Thank you very much, Jack. This is simply a fantastic post. Cheers, mate. +rep
-
Member
Is the TurboMGR still working ? and where do i activate it ? :O
-
Contributor
Press this , it is better than ever
-
Savvy ? 🐒
I know this thread got out of bounds..
But please, this is a 101 guide to help new comers to cope with basics of C# plugins paradigm, not a general/support help thread.
Keep it clean and ask questions about anything not plugin related in the appropriate sub ;p
-
Member
But thats what i thought i was asking,
is the TurboMgr, you know the thingy where you can see your inventory out of game, not considered a plugin?
Or is support for it discontinued, because i couldnt find it in the plugin folder.