Jump to content

Recommended Posts

Posted (edited)

 

I had a set up where I rotated insults for use with my taunt. Now it only works inconsistently.

A script ran in the background which periodically change the insult in a single bind text file.
When I executed taunt, the character would say the insult, execute the taunt power, and load the next new insult from the single bind text file which the script periodically edited.


Similar to what is discussed here:

https://forums.homecomingservers.com/topic/14350-coh-bindstxt-v422/#findComment-698374

 

 

When I came back to the game recently, I noticed the process no longer worked.
So, I spent a while playing with the process.

Originally, I was originally loading a small bindfile which has only a single line in it. The bind in the file executed the taunt power, said the taunt aloud in local, and then loaded the next taunt to read aloud.
When I tried this recently, the taunt executes, the insult is said, but the new insult bindfile is rarely loaded.


So, then I tried switching to loading a whole bindfile instead of just a single line file.

 

Then I tried switching everything I was doing over to the default keybinds.txt so I could see if plain old /bindload worked any better than bindloadfile.

It didn't

 

I did notice that turning off logging changed one of the error and debug messages I was gettin when I tried using this rotating insults scrip bind process.

While chat logging was on I received this error / debug message whenever the taunt bind was executed:

Keybinds file loaded: d:/Games/HC/accounts/<toon name>/Logs/chatlog 2025-01-10

 



 

I'd love to get this rotation working again.

I hope the issue is something simple I just haven't tried yet.


If anyone knows what to do to make the rotating dialog option work again,
or if you know the process so broken that I should just give up on the project,
please let me know.

 

thank you for you time.

 

Edited by Cossatot
Posted
14 hours ago, Cossatot said:

Originally, I was originally loading a small bindfile which has only a single line in it. The bind in the file executed the taunt power, said the taunt aloud in local, and then loaded the next taunt to read aloud.

When I tried this recently, the taunt executes, the insult is said, but the new insult bindfile is rarely loaded.

 

...
 

While chat logging was on I received this error / debug message whenever the taunt bind was executed:

Keybinds file loaded: d:/Games/HC/accounts/<toon name>/Logs/chatlog 2025-01-10

 

Lots of us older hands use rotating bind files; and the top method (file1 pointing to file2 pointing to file3 pointing back to file1) should still work fine as long as the syntax is ok.

 

Can you post a few examples to aid troubleshooting?

 

Many of my characters use a ridiculous amount of bindloadfilesilent commands and there is a fair bit that can go wrong. The most annoying recently was a "modifier key" which worked but due to occasionally being released too quickly often appended a new keybind to my character rather than overwriting the existing one (eventually resulting in a "too many binds" error) which was resolved performing a full bind clear/reload each time the modifier key is released!

  • Like 1
Posted

I haven't seen any problem with /bindloadfile.  Every time I create a new character, I load a bindfile that has 58 lines of commands and it's been working fine.  Then, if I edit the file, one of the keybinds in the file reloads the same file that it's part of.  That has worked fine also.

 

I think where you might be having a problem is having multiple commands in a single line.  In theory, that's not a problem.  In practice, I always struggle to get these to work.  I think the parser is extremely particular about the order in which different types of commands are listed.  For example, I use a universal keybind to enter a supergroup base no matter which shard I'm playing on.  I have multiples of the command enterbasefrompasscode set up in a single bind - six commands for six different bases - and it works just fine.  The chat window shows five error messages and then loads the correct base.

 

But when I try to do different commands in a single line, like activating a power and speaking text, it seems that I never can get it to work on the first try.  It's possible that some patch cleaned up the parser and slightly altered its function so that it's either wonky now, or working the way it was always supposed to.

Originally on Infinity.  I have Ironblade on every shard.  -  My only AE arc:  The Origin of Mark IV  (ID 48002)

Link to the story of Toggle Man, since I keep having to track down my original post.

Posted

FWIW; if you're having trouble with two commands not being able to kick in simultaneously on a single button press; you can try something like:

[c:\Temp\cohbind1.txt]
KEY "+down$$-down$$command1$$bind_load_file_silent c:\Temp\cohbind2.txt"

[c:\Temp\cohbind2.txt]
KEY "+down$$-down$$command2$$bind_load_file_silent c:\Temp\cohbind1.txt"


Holding down KEY will activate the first command and load the second bindfile... and releasing KEY will activate the second command and load the first bindfile.
Pressing KEY (holding then releasing) should do both providing the first command doesn't take too long to process/activate (in which case it'll usually just queue it up)

  • Like 1
Posted
On 2/2/2025 at 10:01 AM, Ironblade said:

I haven't seen any problem with /bindloadfile.  Every time I create a new character, I load a bindfile that has 58 lines of commands and it's been working fine.  Then, if I edit the file, one of the keybinds in the file reloads the same file that it's part of.  That has worked fine also.

 

I think where you might be having a problem is having multiple commands in a single line.  In theory, that's not a problem.  In practice, I always struggle to get these to work.  I think the parser is extremely particular about the order in which different types of commands are listed.  For example, I use a universal keybind to enter a supergroup base no matter which shard I'm playing on.  I have multiples of the command enterbasefrompasscode set up in a single bind - six commands for six different bases - and it works just fine.  The chat window shows five error messages and then loads the correct base.

 

But when I try to do different commands in a single line, like activating a power and speaking text, it seems that I never can get it to work on the first try.  It's possible that some patch cleaned up the parser and slightly altered its function so that it's either wonky now, or working the way it was always supposed to.

 

On 2/2/2025 at 4:50 PM, Maelwys said:

FWIW; if you're having trouble with two commands not being able to kick in simultaneously on a single button press; you can try something like:

[c:\Temp\cohbind1.txt]
KEY "+down$$-down$$command1$$bind_load_file_silent c:\Temp\cohbind2.txt"

[c:\Temp\cohbind2.txt]
KEY "+down$$-down$$command2$$bind_load_file_silent c:\Temp\cohbind1.txt"


Holding down KEY will activate the first command and load the second bindfile... and releasing KEY will activate the second command and load the first bindfile.
Pressing KEY (holding then releasing) should do both providing the first command doesn't take too long to process/activate (in which case it'll usually just queue it up)

 


Thank you for your help.
 

Since the process is known to still be functional, I will take a look at the process again when I get a moment.

I will incorporate your suggestions into my testing scenarios.

 

 

____________________________________________

 

 

tangentially related item of curiosity

 

Do either of you use chat logging?

If so, have you noticed any bindload issues while chat logging is turned on?

While chat logging was on I received this error / debug message whenever the taunt bind was executed:

Keybinds file loaded: d:/Games/HC/accounts/<toon name>/Logs/chatlog 2025-01-10

 

 

 

 

 

 

Posted
On 2/9/2025 at 11:28 AM, Cossatot said:

tangentially related item of curiosity

Do either of you use chat logging?

 

Nope.  I used it for a while back on live because it seemed like a good idea.  Some months later, I realized I had not consulted a log even once so I turned if off and deleted the logs.

Originally on Infinity.  I have Ironblade on every shard.  -  My only AE arc:  The Origin of Mark IV  (ID 48002)

Link to the story of Toggle Man, since I keep having to track down my original post.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...