VaultNetwork.netVault Network Boards
Author Topic: My Decal Sample Plugin and the same plugin converted to VVS [Locked]
shontsu
Posts: 20
Registered:
Thanks .
Chazcon  3 stars
Title: FOR THE VITAE!
Posts: 524
Registered: 2001-12-11 13:57:12
What language are Decal and decal plugins written in? C++? C#?

 

-----signature-----
Chazcon - Aluvian swordsman
You say, "FOR THE VITAE!"
Ru tells you, "CHAZ!"
Simply Red tells you, "I am SO not recovering your body!"
-- Good times.
Mag-nus  1 star
Posts: 234
Registered:
Both. You can also write decal plugins in VB6.
Chazcon  3 stars
Title: FOR THE VITAE!
Posts: 524
Registered: 2001-12-11 13:57:12
I know C++, C# and VB not so much. Thank you.

 

-----signature-----
Chazcon - Aluvian swordsman
You say, "FOR THE VITAE!"
Ru tells you, "CHAZ!"
Simply Red tells you, "I am SO not recovering your body!"
-- Good times.
Mag-nus  1 star
Posts: 234
Registered:
Check out the link in my sig, it has C# code.

If your plugin needs a view (views are not required for plugins), personally I think its much easier to just write it straight for Virindi View System (VVS).

Decal Views are very slow and cause client crashes.

Virindi does offer a wrapper to convert decal views to virindi views but its quite complex. If you don't understand how interfaces work then really you're just copying/pasting and hoping all works.

Virindi Views are fast and stable and just about everyone runs them now.

The plugin in my link has code my plugin that uses only virindi views. I think its much easier to understand/follow.

Also, whatever view system you write, your plugin logic shouldn't depend on your view objects. Your view may or may not load, may crash, etc.. Your plugins functionality should work with or without views.

Code your logic and views separately. Then create a view manager object that takes one of your functional objects as a parameter, and your view object as a parameter. This new view manager has the responsibility of updating the view as well as updating your functional objects with user input from the view.

This is proper technique. If you're just learning though, you'll probably just reference your view directly from your logic objects, which for learning, is just fine. You can refactor it later if you have OCD like me.
Hazridi  2 stars
Posts: 411
Registered: 2001-3-15 13:24:12
Or you can just code your logic right into the view handler classes like a real man, instead of needing 14 classes of bullshit... (I don't agree with Magnus on this issue )

 

-----signature-----
Hazridi of WE, VT, HG, SC
Decal Core Dev - http://www.decaldev.com - Beta at http://www.decaldev.com/beta
Move_HG  1 star
Title: Automatic
Posts: 79
Registered: 2001-1-30 06:54:01
Hazridi posted:

Or you can just code your logic right into the view handler classes like a real man, instead of needing 14 classes of bullshit... (I don't agree with Magnus on this issue )



amen - not commenting on VVS or Magnus code, just code in general.

 

-----signature-----
AC FF - Debit, Credit, Heuer, Talk is Cheap
Mag-nus  1 star
Posts: 234
Registered:
*sniff sniff*

but.. but.. but it's good to decouple your logic from your GUI...

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.