IBControl Remote add buttons

Unofficial support for the creating and editing of metas.
Vali
Posts: 3

IBControl Remote add buttons

Post #1 »

Looking to add a few button to the IBControl mini remote. Things like primary portal recall, navboost off, and a couple attack ranges.

Would it be difficult to do? I've made some minor add/changes to meta, but don't have a lot of experience with it.

Great Meta and plugin BTW. Super handy :D

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #2 »

If you can find the create view (i cant remember what state its in) open it, export it to chat with the p button, copy/paste it into notepad, make your additions, and delete the create view, and create a new one (its way easier than deleting the line) and paste in you modified notepad. just make sure the line is in the same spot.
Immortalbob of MT

Vali
Posts: 3

Post #3 »

Thanks Immortalbob, worked great for the Primary portal recall and turning off NavBoost.

Running into a couple errors on the attackrange buttons. Any suggestions?

Code: Select all

<?xml version="1.0"?>
<view width="168" height="217" title="IBC Remote">
<control type="layout">
<control type="button" name="All On" left="6" top="6" width="75" height="15" text="All On" setstate="Default2" actionexpr="chatbox[\/f \#action all on]" />
<control type="button" name="All Off" left="87" top="6" width="75" height="15" text="All Off" setstate="Default2" actionexpr="chatbox[\/f \#action all off]" />
<control type="button" name="Follow" left="6" top="27" width="75" height="15" text="Follow" setstate="Default2" actionexpr="chatbox[\/f \#action follow]" />
<control type="button" name="Stay" left="87" top="27" width="75" height="15" text="Stay" setstate="Default2" actionexpr="chatbox[\/f \#action stay]" />
<control type="button" name="Nav BOff" left="87" top="48" width="75" height="15" text="Nav BOff" setstate="Default2" actionexpr="chatbox[\/f \#optset navpriorityboost false]" />
<control type="button" name="Forcebuff" left="6" top="48" width="75" height="15" text="Forcebuff" setstate="Default2" actionexpr="chatbox[\/f \#action buff]" />
<control type="button" name="Combat On" left="6" top="69" width="75" height="15" text="Combat On" setstate="Default2" actionexpr="chatbox[\/f \#optset enablecombat true]" />
<control type="button" name="Combat Off" left="87" top="69" width="75" height="15" text="Combat Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablecombat false]" />
<control type="button" name="Nav Off" left="87" top="90" width="75" height="15" text="Nav Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablenav false]" />
<control type="button" name="Nav On" left="6" top="90" width="75" height="15" text="Nav On" setstate="Default2" actionexpr="chatbox[\/f \#optset enablenav true]" />
<control type="button" name="Rares Only" left="87" top="111" width="75" height="15" text="Rares Only" setstate="Default2" actionexpr="chatbox[\/f \#action rares only]" />
<control type="button" name="Loot All" left="6" top="111" width="75" height="15" text="Loot All" setstate="Default2" actionexpr="chatbox[\/f \#action loot all]" />
<control type="button" name="Primary R" left="6" top="132" width="75" height="15" text="Primary R" setstate="Default2" actionexpr="chatbox[\/f \#navto Primary]" />
<control type="button" name="Buff Off" left="87" top="132" width="75" height="15" text="Buff Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablebuffing false]" />
<control type="button" name="Portal" left="6" top="174" width="75" height="15" text="Portal" setstate="Default2" actionexpr="chatbox[\/f \#action ucp]" />
<control type="button" name="Range 15" left="87" top="174" width="75" height="15" text="Range 15" setstate="Default2" actionexpr="chatbox[\/f \#optset attackdistance 0.063]" />
<control type="button" name="Range Max" left="6" top="195" width="75" height="15" text="Range Max" setstate="Default2" actionexpr="chatbox[\/f \#optset attackdistance 0.294]" />
</control>
</view>
Errors

[VTank] Error in Button meta expression: True (Operand without intervening operator: "chatbox[\/f \#optset attackdistance 0.063]")
[VTank] Error in Button meta expression: True (Operand without intervening operator: "chatbox[\/f \#optset attackdistance 0.294]")

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #4 »

Code: Select all

This probably:
chatbox[cstr[\/f \#optset attackdistance 0.063]]

This maybe:
cstr[chatbox[\/f \#optset attackdistance 0.063]]
since you have symbols and numbers in that string, you gotta use cstr[] to output to chat


OR!

you gotta escape the numbers and .

Code: Select all

chatbox[\/f \#optset attackdistance \0\.\0\6\3]
Immortalbob of MT

User avatar
Immortalbob
Site Admin
Posts: 676
Contact:

Post #5 »

Also wanted to say, thanks for taking the time to learn about how it functions :)
Immortalbob of MT

Vali
Posts: 3

Post #6 »

Thanks Immortalbob, escape the numbers and . worked :D

Learn something new everyday ;)

Code: Select all

<?xml version="1.0"?>
<view width="168" height="217" title="IBC Remote">
<control type="layout">
<control type="button" name="All On" left="6" top="6" width="75" height="15" text="All On" setstate="Default2" actionexpr="chatbox[\/f \#action all on]" />
<control type="button" name="All Off" left="87" top="6" width="75" height="15" text="All Off" setstate="Default2" actionexpr="chatbox[\/f \#action all off]" />
<control type="button" name="Follow" left="6" top="27" width="75" height="15" text="Follow" setstate="Default2" actionexpr="chatbox[\/f \#action follow]" />
<control type="button" name="Stay" left="87" top="27" width="75" height="15" text="Stay" setstate="Default2" actionexpr="chatbox[\/f \#action stay]" />
<control type="button" name="Nav BOff" left="87" top="48" width="75" height="15" text="Nav BOff" setstate="Default2" actionexpr="chatbox[\/f \#optset navpriorityboost false]" />
<control type="button" name="Forcebuff" left="6" top="48" width="75" height="15" text="Forcebuff" setstate="Default2" actionexpr="chatbox[\/f \#action buff]" />
<control type="button" name="Combat On" left="6" top="69" width="75" height="15" text="Combat On" setstate="Default2" actionexpr="chatbox[\/f \#optset enablecombat true]" />
<control type="button" name="Combat Off" left="87" top="69" width="75" height="15" text="Combat Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablecombat false]" />
<control type="button" name="Nav Off" left="87" top="90" width="75" height="15" text="Nav Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablenav false]" />
<control type="button" name="Nav On" left="6" top="90" width="75" height="15" text="Nav On" setstate="Default2" actionexpr="chatbox[\/f \#optset enablenav true]" />
<control type="button" name="Rares Only" left="87" top="111" width="75" height="15" text="Rares Only" setstate="Default2" actionexpr="chatbox[\/f \#action rares only]" />
<control type="button" name="Loot All" left="6" top="111" width="75" height="15" text="Loot All" setstate="Default2" actionexpr="chatbox[\/f \#action loot all]" />
<control type="button" name="Primary R" left="6" top="132" width="75" height="15" text="Primary R" setstate="Default2" actionexpr="chatbox[\/f \#navto Primary]" />
<control type="button" name="Buff Off" left="87" top="132" width="75" height="15" text="Buff Off" setstate="Default2" actionexpr="chatbox[\/f \#optset enablebuffing false]" />
<control type="button" name="Portal" left="6" top="174" width="75" height="15" text="Portal" setstate="Default2" actionexpr="chatbox[\/f \#action ucp]" />
<control type="button" name="Range 15" left="87" top="174" width="75" height="15" text="Range 15" setstate="Default2" actionexpr="chatbox[\/f \#optset attackdistance \0\.\0\6\3]" />
<control type="button" name="Range Max" left="6" top="195" width="75" height="15" text="Range Max" setstate="Default2" actionexpr="chatbox[\/f \#optset attackdistance \0\.\2\9\4]" />
</control>
</view>