|
|
|
|
[VN
Boards Archive] |
Welcome to the Vault Network
forum archive.
This is not a complete archive, time didn't allot us the
opportunity to properly backup the majority of the boards
deemed "expendable". Most boards on this list have at least
20-40 pages archived (non-logged in pages, 15 topics per
page).
Popular boards may have as many as 250 pages archived at 50
topics per page, while others deemed of historical
signifigance may be archived in their entirety.
We may not agree with how the board shutdown was managed, but
we've done what we could to preserve some of its history in
lieu of that.
Please enjoy the archive.
~
Managers, Moderators, VIP's, and regular posters.
|
Author |
Topic: Need help togglign VT options from another plugin
|
mav_sc
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
VI, I'm trying to change some options like enablebuffing, enablelooting, etc.. from another plugin. I'm using commands like: Util.Host.Actions.AddChatText("/vt opt set EnableLooting " + value.ToString(), 0); Using AddChatRaw and InvokeChatParser also doesn't seem to work. How can I add a chat command into the global stream so that other plugins will see and parse it with Core_CommandLineText? Thanks!
-----signature-----
|
Link to this post
|
-lino-
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
You can't (thru Decal methods).
-----signature-----
|
Link to this post
|
mav_sc
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
Ok, figured as much. I guess I'll just send the commands via postmessage. Thanks!
-----signature-----
|
Link to this post
|
Paraduck
Title: quantum mechanic
Posts:
88,652,030
Registered:
Feb 27, '01
Extended Info (if available)
Real Post Cnt: 51,297
User ID: 70,706
|
Subject:
Need help togglign VT options from another plugin
|
Yeah, I've been using PostMessage to send keyboard input, if I want it to be seen by other plugins. I notice that V appears to have plans to allow certain VTank options to be controlled externally (load uTank2.dll in VS and take a look at the object browser), but I haven't seen anything about it yet.
-----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
|
Link to this post
|
mav_sc
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
Ya I remember reading about using V's dll. I completely forgot about that though and did zero investigation before I implemented my postmessage methods though. Oh well. Few tips about using postmessage. You need the proper scan code for your message to work. Using spy++ helps. Also, you can't send enter, then your text message, then enter, all consecutively. AC needs a little space between the enter, middle text, and final enter. Right now I'm using 60ms spacing which seems to work. 40ms spacing failed rarely.
-----signature-----
|
Link to this post
|
Virindi-Inquisitor
Posts:
6,908
Registered:
Nov 18, '01
Extended Info (if available)
Real Post Cnt: 6,646
User ID: 511,923
|
Subject:
Need help togglign VT options from another plugin
|
mav_sc posted: Also, you can't send enter, then your text message, then enter, all consecutively. AC needs a little space between the enter, middle text, and final enter. Right now I'm using 60ms spacing which seems to work. 40ms spacing failed rarely.
A better method for this, if you are writing an actual plugin, would be to wait for the next frame to be processed before sending the key. Paraduck posted: I notice that V appears to have plans to allow certain VTank options to be controlled externally (load uTank2.dll in VS and take a look at the object browser), but I haven't seen anything about it yet.
These methods are mostly locked to prevent use by UCM and DT helper plugins. Their purpose is to allow me (and potentially others) to write utilities such as the vtminiremote (in vhuds) which conform to the design goals of VTank. Plugins and utilities which don't have the special approval needed to use these functions can always just set and get settings through the use of the console commands (http://www.virindi.net/wiki/index.php/Virindi_Tank_Commands) and hotkeys.
-----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
|
Link to this post
|
mav_sc
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
VI, I'm not sure how to detect when the next frame is processed, and am not sure what exactly you mean by frame. GFX frame or net frame? Using the get and set options via postmessage is working for me now, so I'm happy with it.
-----signature-----
|
Link to this post
|
Virindi-Inquisitor
Posts:
6,908
Registered:
Nov 18, '01
Extended Info (if available)
Real Post Cnt: 6,646
User ID: 511,923
|
Subject:
Need help togglign VT options from another plugin
|
Frame, as in, 3d engine frame. If you hook the Host.Underlying.Hooks.RenderPreUI event, it will called once per frame...just don't put a lot of stuff in there, or unhook it when you're done, because if you take time in that event it is easy to decrease your framerate.
-----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
|
Link to this post
|
mav_sc
Posts:
????
Registered:
????
Extended Info (if available)
Real Post Cnt: 0
User ID: 0
|
Subject:
Need help togglign VT options from another plugin
|
Thanks for the tip VI. The event I'm using is: Util.Core.RenderFrame += new EventHandler<EventArgs>(Core_RenderFrame); It seems much more reliable, and WAY faster than using a random ms delay.
-----signature-----
|
Link to this post
|
Virindi-Inquisitor
Posts:
6,908
Registered:
Nov 18, '01
Extended Info (if available)
Real Post Cnt: 6,646
User ID: 511,923
|
Subject:
Need help togglign VT options from another plugin
|
Yes, in Decal.Adapter, the once per frame hook was not present in 2960. It has been added in 2961. If you want your plugin to be public at some point it might be a good idea to use the interop one so that it works with 2960...until 2961 is officially released, at least.
-----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
|
Link to this post
|
|
|
© 2012. All
Rights Reserved. |
|
|
|
|