emersonrp / bindcontrol

Keybind manager for City of Heroes
GNU General Public License v3.0
3 stars 3 forks source link

Custom Chat Colors Save/Load #43

Closed autobotcoop closed 4 months ago

autobotcoop commented 4 months ago

Where do the Custom Chat Colors get written? I couldn't find it.

I had to manually edit a file I created, Duke-Options.txt to save/load them.

emersonrp commented 4 months ago

Everything is saved into the Profile somewhere. The chat colors from the General tab should be up near the top, and look like:

"ChatBorder": "#000000",
"ChatBackground": "#FFFFFF",
"ChatForeground": "#000000",

If you have chat colors in a custom bind, they'll be down in the "CustomBinds" section, which should have a short chunk of config for each custom bind inside it.

Is that what you were asking?

autobotcoop commented 4 months ago

Yes. For some reason, they weren't loaded into the game though and had to be inputted through the method above.

emersonrp commented 4 months ago

So, ok, it didn't save selected chat colors into the Profile, or didn't write them into the bindfiles? The ones in the General tab, or ones in specific custom powers? Sorry if I'm being slow, still getting coffee in me.

autobotcoop commented 4 months ago

It saved them into the profile, but not the bind files.

emersonrp commented 4 months ago

Can you attach the profile file where this is happening? Trying to make this happen but it seems to be working for me. Thanks!

autobotcoop commented 4 months ago

Duke.zip

Could also be user error. 😅

emersonrp commented 4 months ago

Could be, but let's make sure. So I am not immediately seeing any problems with the reset.txt file this writes out, and it's chock-full of chat colors. Which bind(s) is/are not showing colors like you expect?

autobotcoop commented 4 months ago

Okay, I misunderstood how it works.

What I thought:

Reality:

emersonrp commented 4 months ago

Oh yeah, each of BindControl's text color schemes is per-tell, it doesn't set anything globally. I'm not sure it's possible to set global chat colors in any way except through the options dialog. So yeah, it's part of the "start chat" bind, which needs to have the channel already selected. This could possibly be improved, open to suggestion. Also the part where you have to go to the end of the line manually is irritating but I think it's just how the game handles things.

autobotcoop commented 4 months ago

I'll have to write a FAQ for you. 😂