/Inspcombine giving error?


Aggelakis

 

Posted

In my default Keybind.txt file, I have these binds set up:

Code:
numpad1 "inspexecname "second wind"$$inspexecname "take a breather"$$inspexecname "catch a breath""

shift+numpad1 "inspcombine insight "catch a breath"$$inspcombine luck "catch a breath"$$inspcombine enrage "catch a breath"$$inspcombine respite "catch a breath"$$inspcombine sturdy "catch a breath"$$inspcombine "break free" "catch a breath"$$inspcombine awaken "catch a breath"$$inspcombine "focused rage" "take a breather"$$inspcombine "keen insight" "take a breather"$$inspcombine "good luck" "take a breather"$$inspcombine "dramatic improvement" "take a breather"$$inspcombine rugged "take a breather"$$inspcombine emerge "take a breather"$$inspcombine "bounce back" "take a breather"$$inspcombine "righteous rage" "second wind"$$inspcombine "phenominal luck" "second wind"$$inspcombine "uncanny insight" "second wind"$$inspcombine resurgence "second wind"$$inspcombine robust "second wind"$$inspcombine escape "second wind"$$inspcombine restoration "second wind""
The idea with these is that by pressing 1 on the numpad, I'll pop a blue, from smallest to largest, and when holding shift and numpad 1, I'll turn any 3 insps I have into the corresponding blue, so that I can then press 1 again and use it. I have similar binds set up on the numpad for 2, 4, 5, 7, 8, 9, for green, yellow, red, purple, orange, and break frees, respectively. However, it actually doesn't work, that way, unfortunately. I keep getting one of two error messages when hitting the "combine" bind:

Quote:
Unknown command: mergeInsp
or

Quote:
Usage:inspcombine takes 2 args, you gave 1.
Combines 3 of same type inspiration into one new type
inspcombine <string> <string>
I initially used Microcosm's binds to create this, where the inspirations were named "catch_a_breath" for example, but found just using the replace command to turn them into "catch a breath" with quotes around each instance to be more effective. So why am I getting these messages? What did I do wrong? Am I hitting some sort of cap for the bind length? If so, how would I go about tweaking it so that it works? I *could* shorten it by dropping the rez and BF from the combination bind, if that would do the trick...

Any and all advice is much appreciated!

~JP


Just my opinion, feel free to disregard...

 

Posted

Looks to me like you have 3 " in your bind. I don't have a CoH install available right now to confirm, but I'm suspecting your problem is the quotes.

Code:
shift+numpad1 "inspcombine insight "catch a breath"


Any and all spelling, grammar and logic errors are intentional so this post will blend seamlessly into the Internet
---------------------------
Unbelievable. You, [subject name here], must be the pride of [subject hometown here]!

 

Posted

Quote:
Originally Posted by Nerfherder View Post
Looks to me like you have 3 " in your bind. I don't have a CoH install available right now to confirm, but I'm suspecting your problem is the quotes.

Code:
shift+numpad1 "inspcombine insight "catch a breath"
The first quote mark combines with the very last one, at the end of the bind, so the key takes the whole chain.


 

Posted

Remove the inner quotes, and replace the spaces in the inspiration names with underlines. Instead of Catch a breath, use Catch_A_Breath.

Quote:
but found just using the replace command to turn them into "catch a breath" with quotes around each instance to be more effective.
If it doesn't work, it's not more effective.

Quote:
Am I hitting some sort of cap for the bind length?
Just saw how long your bind was, so yes, quite possibly.


Global @StarGeek
ParagonWiki.com-The original is still the best!
My Hero Merit rolls
Accuracy needed for 95% ToHit spreadsheet
Forum font change stripper for Firefox/Opera/Chrome. No more dealing with poor color choices, weird fonts or microscopic text
Search Wiki Patch notes, add site:ParagonWiki.com inurl:patch_notes to your Google Search

 

Posted

Quote:
Originally Posted by Shadow State View Post
The first quote mark combines with the very last one, at the end of the bind, so the key takes the whole chain.
No, they don't. Each quote pairs up with the next quote it finds. So it's trying to execute inspcombine insight, which gives the "takes 2 args, you gave one" error.The quotes are most definitely what's giving you grief.


@Roderick

 

Posted

Quote:
Originally Posted by Roderick View Post
No, they don't. Each quote pairs up with the next quote it finds. So it's trying to execute inspcombine insight, which gives the "takes 2 args, you gave one" error.The quotes are most definitely what's giving you grief.
If this is so, then why does
Quote:
I "beginchat /send "repeat offenders" [$name, $level]: "
work properly? If what you are saying is correct, it would only read "beginchat /send " and while that is a valid bind command (essentially what enter does. it's sort of redundant though, because beginchat puts the cursor in the chat box and that automatically sends to the current channel), when I use the "I" key in game, it starts the chat with "/send "repeat offenders" [$name, $level]: ".

Unless for some reason the inspcombine aspect doesn't read the quotes correctly, the way I have it should work fine... However, I have since gone in and changed the binds, dropping the changes for mezz and rez insps (if they drop too frequently, I can just change em via the right click menu) and changing all the quoted, multiword insp names into the underscored format, IE "catch a breath" became catch_a_breath. If it was a matter of bind sizes, this should do the trick. Currently can't get into the game yet, but will update whether or not the changes work later on. Till then, thanks for the help, folks!


Just my opinion, feel free to disregard...

 

Posted

Quote:
Originally Posted by Roderick View Post
No, they don't. Each quote pairs up with the next quote it finds. So it's trying to execute inspcombine insight, which gives the "takes 2 args, you gave one" error.The quotes are most definitely what's giving you grief.
Quotes do "nest" correctly as far as I can tell. Like Jay mentioned, many people use them regularly for Global Channel binds where unscores wont work in place of spaces... but I think it actually is pairing with the first quote in this case because the last quote might be truncated off the end of the long bind... making it fail.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
...the last quote might be truncated off the end of the long bind... making it fail.
Nope, I've double and triple checked it. All the quotes are in the proper places. However, as I said before, I swapped out the quoted recipe names for the version with underscores. Assuming the bind system counts spaces as characters, this cuts down the number of spaces needed to do the commands. However, it still isn't working quite like it should be. I think it's randomly cutting bits and pieces out of the binds to fit within the limit. Unfortunately, without some sort of extra bind loading from separate files, I don't see this happening with just shift plus the numpad key. So my next question: Can Ctrl and Alt be used in combination with the numpad keys to create a bind? Could I do this?

Code:
/bind alt+numpad1 "inspcombine insight catch_a_breath"
That's just an example... don't want to type out the full bind again, lol. But would that work? And could I place "alt" with "ctrl"?


Just my opinion, feel free to disregard...

 

Posted

Quote:
Originally Posted by Jay Peace View Post
Nope, I've double and triple checked it. All the quotes are in the proper places...
...
...
I think it's randomly cutting bits and pieces out of the binds to fit within the limit.
That's what I was trying to say... I think your code is fine, but it's being truncated, which means the " at the end (or somewhere else before that point) is being lost, making your code get interpreted differently when it is actually executed, and failing.

Try cutting the bind into just the small insp (for example), and see if works, then work your way up to see when it fails.
Quote:
Originally Posted by Jay Peace View Post
Code:
/bind alt+numpad1 "inspcombine insight catch_a_breath"
That's just an example... don't want to type out the full bind again, lol. But would that work? And could I place "alt" with "ctrl"?
Yes, alt, control, and shift are all chord keys that should work for any programmable key. If you are going to use numpad1, maybe you could cut your bind into 3 smaller binds and use 1, 2, and 3 for small, medium, and large (for example) to make it fit within the bind size limitation. Alt+num1,num2,num3 might be easier to quickly press than than alt+num1, shift+num1, ctrl+num1 would.

But if you expand your question to: Could I use "alt+ctrl+numpad1", that answer would be NO, at least I'm not aware of multiple chords being allowed.

Actually, now that I think of it.. try loading your bind, then immediately do a "/bindsavefile testinglimit.txt" and check that file to see what the game records for that key. Then you can get an idea of what the limit is and why it is failing.


 

Posted

Quote:
Originally Posted by Master-Blade View Post
Actually, now that I think of it.. try loading your bind, then immediately do a "/bindsavefile testinglimit.txt" and check that file to see what the game records for that key. Then you can get an idea of what the limit is and why it is failing.
I just did this for you, and came up with the following results:
(I used F7 just so I could easily /unbind F7 afterward.)

/bindloadfile testfile1.txt
Quote:
F7 "inspcombine insight "catch a breath"$$inspcombine luck "catch a breath"$$inspcombine enrage "catch a breath"$$inspcombine respite "catch a breath"$$inspcombine sturdy "catch a breath"$$inspcombine "break free" "catch a breath"$$inspcombine awaken "catch a breath"$$inspcombine "focused rage" "take a breather"$$inspcombine "keen insight" "take a breather"$$inspcombine "good luck" "take a breather"$$inspcombine "dramatic improvement" "take a breather"$$inspcombine rugged "take a breather"$$inspcombine emerge "take a breather"$$inspcombine "bounce back" "take a breather"$$inspcombine "righteous rage" "second wind"$$inspcombine "phenominal luck" "second wind"$$inspcombine "uncanny insight" "second wind"$$inspcombine resurgence "second wind"$$inspcombine robust "second wind"$$inspcombine escape "second wind"$$inspcombine restoration "second wind""
/bindsavefile testfile2.txt (showing just the F7 key)
Quote:
F7 "inspcombine insight "catch a breath"$$inspcombine luck "catch a breath"$$inspcombine enrage "catch a breath"$$inspcombine respite "catch a breath"$$inspcombine sturdy "catch a breath"$$inspcombine "break free" "catch a breath"$$inspcombine awaken "catch a"
It's apparent I was right, and the truncated version is missing a quotation mark and screwing things up. You'll need more than one bind to do what you want to do. If you want to keep it on one key, you could always create a rotating set of files like this:

blueinsp0.txt
alt+numpad1 "inspcombine insight "catch a breath"$$inspcombine luck "catch a breath"$$inspcombine enrage "catch a breath"$$inspcombine respite "catch a breath"$$inspcombine sturdy "catch a breath"$$inspcombine "break free" "catch a breath"$$bindloadfile blueinsp1.txt"

blueinsp1.txt
alt+numpad1 "inspcombine awaken "catch a breath"$$inspcombine "focused rage" "take a breather"$$inspcombine "keen insight" "take a breather"$$inspcombine "good luck" "take a breather"$$inspcombine "dramatic improvement" "take a breather"$$bindloadfile blueinsp2.txt"

blueinsp2.txt
alt+numpad1 "inspcombine rugged "take a breather"$$inspcombine emerge "take a breather"$$inspcombine "bounce back" "take a breather"$$inspcombine "righteous rage" "second wind"$$inspcombine "phenominal luck" "second wind"$$bindloadfile blueinsp3.txt"

blueinsp3.txt
alt+numpad1 "inspcombine "uncanny insight" "second wind"$$inspcombine resurgence "second wind"$$inspcombine robust "second wind"$$inspcombine escape "second wind"$$inspcombine restoration "second wind"$$bindloadfile blueinsp0.txt"

Notes:
- Each file references the next, and the last file references back to the first.
- You'll have to hit the same key 4 times to execute the full set of binds.
- This was just an example of how it would be done.
- I did not test any of them for syntax or text limits.


 

Posted

I have these binds. I've got them on three keys. Key is "small insps" combine into "small blue". Shift+Key is "medium insps" combine into "medium blue". Alt+Key is "big insps"combine into "big blue".

I also have three other keys for purples.

I left out break frees (and their bigger parts) and wakens (and their bigger parts) because they're so rare, I just delete them if I need space or manually combine if I have enough.


Paragon Wiki: http://www.paragonwiki.com
City Info Terminal: http://cit.cohtitan.com
Mids Hero Designer: http://www.cohplanner.com
Quote:
Originally Posted by Dispari View Post
I don't know why Dink thinks she's not as sexy as Jay was. In 5 posts she's already upstaged his entire career.

 

Posted

Quote:
Originally Posted by Aggelakis View Post
I have these binds. I've got them on three keys. Key is "small insps" combine into "small blue". Shift+Key is "medium insps" combine into "medium blue". Alt+Key is "big insps"combine into "big blue".

I also have three other keys for purples.

I left out break frees (and their bigger parts) and wakens (and their bigger parts) because they're so rare, I just delete them if I need space or manually combine if I have enough.
That's pretty much what I'm going to do. Bind the exec to the key itself, the small combine to shift+key, medium to ctrl+key, and large to alt+key. I've already taken out the escape and awaken variants, just a matter of going into the file and adding the new binds in. Shouldn't be too difficult. I'll let y'all know how it goes. Again, thanks for all the input!


Just my opinion, feel free to disregard...