Forums » Bugs

Custom aliases and wgaf.cfg

Feb 23, 2006 slime73 link
Ok, here's the deal: I open up the VO Wiki in my browser, navigate to binds, and paste any alias to my wgaf.cfg (in the right place and putting the bind in) in either the production client or the beta 6 client, start up VO, and the binds have dissapeared! When I press the key that I bound the alias to, it does nothing, and when I go into windowed-mode to see if it's in my wgaf.cfg, it's not there!

(I posted this in the custom-binds thread in general chat but it doesn't seem to be getting very much attention)
Feb 23, 2006 MSKanaka link
I see three things that you might be doing that could cause this (at least one of them qualifies as an "Oh hell, I am so STUPID" reason ;)

1) You're not saving wgaf.cfg when you close it.
2) You're leaving the file open when VO loads -- bad idea because the client reads the *saved* version of the file. Also, having the file open means you can't edit it while the game is running.
3) You're writing to the wrong wgaf.cfg file. Very easy to do with 6 beta clients and one real one.
Feb 23, 2006 slime73 link
1) Of course I'm saving it! ;)

2) Nope, I'm closing it every time.

3) Not a chance of that. I only have beta6 and the production one, and I have put the lines in both of the .cfgs and still no luck...
Feb 23, 2006 raybondo link
wacky.
What exactly are you pasting into your wgaf.cfg file?
Does the errors.log have any errors about not being able to load an alias or anything?
Feb 23, 2006 slime73 link
I try to copy the diamond-dodge from the wiki ( http://www.vo-wiki.com/wiki/index.php?title=Diamond_dodge_bind ) and bind dodgeTog to my mmbutton.

This is what I get in my errors.log after starting VO up:

Usage: alias <newcommand> <command>

[Thu Feb 23 17:23:26 2006] 28b4f0Usage: alias <newcommand> <command>

Error: no such command 'feLeft'

[Thu Feb 23 17:23:26 2006] 28b4f0Error: no such command 'feLeft'

[Thu Feb 23 17:23:26 2006] 28b4f0Auto dodge ON
Error: no such command 'dodgeOnD"alias'

[Thu Feb 23 17:23:26 2006] 28b4f0Error: no such command 'dodgeOnD"alias'

Error: no such command 've'

[Thu Feb 23 17:23:26 2006] 28b4f0Error: no such command 've'

Error: no such command 'dodgeOffB"alias'

[Thu Feb 23 17:23:26 2006] 28b4f0Error: no such command 'dodgeOffB"alias'

Error: no such command 't'

[Thu Feb 23 17:23:26 2006] 28b4f0Error: no such command 't'

[Thu Feb 23 17:23:26 2006] 28b4f0Flight-Assist mode enabled.
Error: no such command 'dodgeLeft''

[Thu Feb 23 17:23:33 2006] 28b4f0Error: no such command 'dodgeLeft''
Feb 24, 2006 Cunjo link
eeeheh, I would suggest that you just learn to dodge manually... because if you don't you'll be eaten... or worse.
Feb 24, 2006 slime73 link
I know ;) It was just an example.
Feb 24, 2006 raybondo link
From the errors.log file, it looks like it's not reading the wgaf.cfg properly. Maybe the text wasn't pasted properly into the wgaf.cfg file.
What program are you using to edit the wgaf.cfg file?
Feb 24, 2006 slime73 link
TextEdit, the default Mac Text editor.
Feb 24, 2006 raybondo link
Ok, I tried it on the mac with TextEdit and everything worked fine.
What web browser are you copying from? Safari? Are you using the US character set or are you using a foreign set?
I'm kinda grasping at straws here because I don't know what the problem would be, other than the text is just not being copied properly.

You just highlight the entire set of 12 lines and then Copy and go into TextEdit and Paste, right?

Hmm. Maybe there's another line above where you pasted into wgaf.cfg that has non-matching single or double quotes, or maybe it's wordwrapping. Hmm. that could be it.
Feb 24, 2006 slime73 link
I use Camino, a mac-only browser with the FireFox engine but a mac-like interface. I am using the US character-set, and yes I just copy the entire thing.
I don't have the "Wrap To Page" option set in TextEdit, I will try it with Safari tomorrow (I gotta get some sleep ;) )

EDIT: I went ahead and tried it anyways, and it works with Safari! Yay!
Feb 24, 2006 raybondo link
Ok, I wonder if Camino copies the formatted text instead of the raw text.
Thanks for the info. I'm glad it finally worked, albeit with a different browser.
Feb 25, 2006 Dihelical Synthesis link
hmm, on a related note, I get some really weird behavior when I try to copy/pase and manipulate data from the errors.log. Namely, the last letter of every line seems somehow tied together and has all kinds of displacement issues... also, the insertation point is one character ahead of where you're actually typing. This happens both IN the log, AND after I paste the contents into another editor or the browser. Any idea why that might be?

I'm running Windows.
Feb 27, 2006 raybondo link
Dihelical Synthesis: what editor are you using?
I've never had any problems with notepad, wordpad, visual studio, ultraedit, vi. There is an unprintable character in the color info of the chat text in the errors.log. Maybe your editor is getting confused about it.
Feb 27, 2006 Dihelical Synthesis link
*ANY* editor.

I open the errors.log file in notepad, and the issue persists from editor to editor, transferring the contents via copy/paste. These editors include Microsoft Word and Firefox (like in the forum reply text entry box)
Mar 01, 2006 a1k0n link
It's undoubtedly because of the character 127 in there we use for color codes. Delete the weird box thing and the hex code following it and it will stop. I've noticed the same thing.

We should probably filter out color codes when printing to the log.
Mar 01, 2006 Cunjo link
A1k0n:
if you filter it out completely, wouldn't it be more difficult to differentiate different types of messages? (specifically, sector chat vs echoes, etc...)

How about just knocking out the weird charatcer or replacing it with a friendly # in the log?