VaultNetwork.netVault Network Boards
Author Topic: Decal Programming for Idiots (in VB.Net) - Does this guide exist anywhere? Want a new Friends List [Locked]
TheCleaner
Posts: 46
Registered: 2001-6-12 20:26:30
I've been wanting to write a decal plugin but after Paraduck was kind enough to share his code for his chat plugin, I realized that I'm totally lost. I did some more research and found a decal development site but they basically said if you're a beginner don't bother.


I've taught myself enough VB.Net to program my calculator, and I'm pretty good at following directions if they're spelled out, but the decal programming is too complicated to just jump in for me.


I'm hoping there's a step-by-step set of instructions for beginner programmers like myself that could show me how to:


1) Create a decal plugin that intercepts/masks/creates text

2) Put the GUI into the plugin that would look as below


In case anyone is interested, below are the details of what I had in mind:


My hope is to be able to write an expanded friends list that allows an indefinite number of chars and asociates all sub chars with a main and allows a nickname like AKA. Ideally it would even intercept the chat and add the nickname in parentheses next to the character name e.g.:


The Delivery Man (Cleaner) says, "I wish I knew who my main was..."


or:


[General] The Delivery Man (Cleaner) says, "I wish I knew who my main was..."


So that once you know who a character is associated with and you add it in you'll know who's talking to you. It would work by adding and removing people from your actual friends list.


I envision it having a simple box interface with 2 tabs:


1) Who's Online: A list box with 4 columns 1 the nickname, 2 the actual character name, 3 online/offline and 4 Society. The box would be sorted the way current friends list are right now - I.e. alphabetically (by nickname) with the online chars listed up top.


The tab would also have an "Check Now" button so it doesn't constantly need to send checks. The program however would take note of the "XXXX has come online" and "offline" text from the game itself.


The list would look like quest timer and you could delete single lines off the list with a button after each name. At the bottom in addition to the "Check Now" button, there would be a line with 3 text boxes and an "Add Name" button. The 3 text boxes would be for the nickname, character name and Society.


The Society thing would be helpful for identifying PK's who are hiding their Society.


The list would update automatically when you first open the box but would need the button to recheck if you leave it on and people not on the core list, or who are not your patron or direct vassals, were going on- and offline.


2) Core Friends List: This tab will have a list box with all the names from tab 1. It will also allow editing of the list as above. The list however will be a checkbox list like Alinco's mob id list. This will set your core friends list and it will allow the same number of chars as the current AC list. In fact it will be your actual AC list that you see when you check with the native AC interface. This list will be sorted by those included on the list rather than who's online. After a "Check Now" button press, the list will be reset to the Core Friends List. This tab will have a "Set Now" button to make the changes after manipulation in the box.


Anyways, I could do this relatively quickly in regular VB.Net as none of it is really that complicated. The real problem is figuring out how to do it in Decal using VB.Net.


Cleaner

 

-----signature-----
The Cleaner - UA/XBow - Growing Naturally
Phage - Battlemage - Incubating in Col
Retired but lurk occasionally
yaroz_vn  4 stars
Posts: 1,225
Registered: 2002-6-30 20:08:11
As ducky said yesterday... i think.. a plugin such as this would do a lot of taxing on the turbine servers. The way that you make it sound, it'd have to "/friends_add friendname" and "/friends_remove friendname" every time you click on check.


Now.. if you created a separate plugin that logged into a web site and kept track of your friends, based on a common ID, and all of your friends ran it... it could be possible. Say, you have a plugin that prompted you for a common ID (i.e. Yaroz for me), and it would update when I log on and when I log off (or every 5 min).. and your plugin would query the site to see if I were online, when you logged on, if you had Yaroz as one of your friends inside of the plugin.. that could be doable...


I think this is the way that the old meginjarder plugin did it. I'm not sure, since Mayor took over the code and never let anyone look at it.

 

-----signature-----
Proud member of The Knights of Fortune
Mr Adventure - Lil' Pew - Da Noob - Qar
Yaroz - Yanno
http://www.fortunesway.com
Kaltemar
Title: AC & AO Vault Site Manager
Posts: 34
Registered: 2003-5-9 21:20:41
I should warn you, your calculator does not use VB.NET for it's programming interface - it uses a rudimentary form of BASIC (more akin to Commodore BASIC than Visual BASIC). Knowing how to write in that will do you no favours trying to write a Decal plugin, which is a fairly sophisticated task. I should reiterate that if you are a beginner, don't bother. Remember that any plugin you develop, if it crashes, will quite likely take down your AC instance if it fails too.

 

-----signature-----
Site Manager -- Asheron's Call & Anarchy Online Vaults
http://acvault.ign.com ~~ http://aovault.ign.com
The cake is a lie.
Paraduck  2 stars
Title: quantum mechanic
Posts: 484
Registered: 2001-2-27 18:19:03
yaroz_vn posted:

Now.. if you created a separate plugin that logged into a web site and kept track of your friends, based on a common ID, and all of your friends ran it... it could be possible. Say, you have a plugin that prompted you for a common ID (i.e. Yaroz for me), and it would update when I log on and when I log off (or every 5 min).. and your plugin would query the site to see if I were online, when you logged on, if you had Yaroz as one of your friends inside of the plugin.. that could be doable...

Not sure if we're talking about the same version, but the code when Thor was around was available for other allegiances to install. I had one set up for mine. You are essentially correct with what it did for the friends list. As you mentioned the downside is that it requires your friends to be using the plugin as well.


As for getting started with Decal development, I'd recommend just reading the FAQs and threads on the acdev forums and trying to find a VB.NET plugin source code. That should get you started on making a small scale plugin just to play around with Decal. Then once you get that down, you should be ready to tackle the bigger stuff.

 

-----signature-----
We are like dwarfs sitting on the shoulders of giants. We see more and things that are more distant than they did,
not because our sight is superior or because we are taller than they, but because they raise us up and their
great stature adds to ours
TheCleaner
Posts: 46
Registered: 2001-6-12 20:26:30
Kaltemar: "I should warn you, your calculator does not use VB.NET for it's programming interface - it uses a rudimentary form of BASIC (more akin to Commodore BASIC than Visual BASIC). Knowing how to write in that will do you no favours trying to write a Decal plugin, which is a fairly sophisticated task. I should reiterate that if you are a beginner, don't bother. Remember that any plugin you develop, if it crashes, will quite likely take down your AC instance if it fails too."


OK, now that's news to me since I wrote it in VB.Net on Visual studio, but maybe you're just referring to the complexity of the program... I did say I was self taught and that I'm not a profressional programmer, and I do admit I wasn't born with an innate knowledge of advanced programming, but whatever - thanks for the insult I hope you at least are finding it useful even if it's too primitive for you.


Thanks Yaroz and Paraduck for your replies. Ok so I checked out that site you mentioned Paraduck (ac dev) and not surprisingly I wasn't the first person to think about doing this and everyone's answer was the same - don't do it! All the posts, not surprsingly, also failed to reveal a "person online" function as you suggested Paraduck:


http://forums.acdev.org/phpBB2/viewtopic.php?t=4674&highlight=character+online

http://forums.acdev.org/phpBB2/viewtopic.php?t=1647&highlight=character+online


I did find some VB.Net code in the "Big Post about VB.Net" from the link below though that I'll be looking at just for the sake of learning.


BTW - Paraduck if you see this, I found this post that suggests you had a VB.Net tutorial and sample at one point - you don't still have that do you? Obviously it's not worth rewriting but if you have it saved somewhere that would be great. While I'm sure I'll never be as good a programmer as Kaltemar, I'm still interested in knowledge for the sake of knowledge and would love to see it:


http://forums.acdev.org/phpBB2/viewtopic.php?t=94


Thanks again,

Cleaner

 

-----signature-----
The Cleaner - UA/XBow - Growing Naturally
Phage - Battlemage - Incubating in Col
Retired but lurk occasionally
yaroz_vn  4 stars
Posts: 1,225
Registered: 2002-6-30 20:08:11
paradox != paraduck

 

-----signature-----
Proud member of The Knights of Fortune
Mr Adventure - Lil' Pew - Da Noob - Qar
Yaroz - Yanno
http://www.fortunesway.com
Virindi-Inquisitor  4 stars
Posts: 1,538
Registered: 2001-11-18 22:25:54
>> paradox != paraduck


I think that, based on the subject of this thread, you should have said


paradox <> paraduck

 

-----signature-----
Virindi
---
****Virindi Plugins FAQ**** http://www.virindi.net/wiki/index.php/Virindi_Plugins_FAQ
http://www.virindi.net - Virindi Tank, Follower, Integrator, Reporter, VCS5, XPHelper, Item Tool, HUDs, etc...
Decal Core Dev - http://www.decaldev.com
TheCleaner
Posts: 46
Registered: 2001-6-12 20:26:30
LOL - my bad I didn't notice the different names.

 

-----signature-----
The Cleaner - UA/XBow - Growing Naturally
Phage - Battlemage - Incubating in Col
Retired but lurk occasionally
Lord_Anton  2 stars
Title: Wu Fez 4 Life!
Posts: 340
Registered: 2004-8-27 23:55:24
am I just not seeing it? lol

I didnt see anyone mention paradox, until yaroz said paradox

looks like cleaner was typing it correct, paraduck

 

-----signature-----
They can't deport us all
http://www.btnhboard.com/
Where's Waldorian?
yaroz_vn  4 stars
Posts: 1,225
Registered: 2002-6-30 20:08:11
he referenced a thread in which paradox gave a link to some programming resources. Since they both had Para in the name, I assumed he did not see the difference.

 

-----signature-----
Proud member of The Knights of Fortune
Mr Adventure - Lil' Pew - Da Noob - Qar
Yaroz - Yanno
http://www.fortunesway.com

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.