Author Topic: Custom bind files can't handle path with spaces in  (Read 1755 times)

Suzumebachi

  • Minion
  • **
  • Posts: 24
Custom bind files can't handle path with spaces in
« on: May 01, 2009, 07:11:47 PM »
The files generated from the SetTitle Bindfile Generator ( http://cit.cohtitan.com/settitle) cannot handle paths with a space in.  For instance, I used the path to my CoH data directory (the default folder for bind files) which is F:\City of Heroes\data

The files generated are like:

    t "settitle 38$$settitle 42$$settitle 63$$settitle 64$$settitle 65$$settitle 66$$settitle 67$$
       settitle 68$$settitle 69$$settitle 70$$bindloadfile F:\City of Heroes\data\settitle\1.txt"

And the error the CoH client gives is:
    Usage:bindloadfile takes 1 args, you gave 3. 
    Reads a list of keybinds from a file.
    bindloadfile <string>

In order for them to work the path to the next file needs wrapping in quotes thus:

    t "settitle 38$$settitle 42$$settitle 63$$settitle 64$$settitle 65$$settitle 66$$settitle 67$$
       settitle 68$$settitle 69$$settitle 70$$bindloadfile "F:\City of Heroes\data\settitle\1.txt""

which works nicely.

Hope that helps  :D

Steiner

  • Elite Boss
  • *****
  • Posts: 1,602
    • Steinerd.com
Re: Custom bind files can't handle path with spaces in
« Reply #1 on: May 01, 2009, 07:23:54 PM »
oh wow... didn't realize that, thanks I'll put it in asap

I'm also rolling back to "unbind" at the end of the run, because the restoring of our bind files (as it is set now)is causing things like the default F7 to mess up.
~Steinerd