|
楼主 |
发表于 2003-8-23 19:56:44
|
显示全部楼层
来自 中国–福建–龙岩
4. CHATTING FROM HALF-LIFE
-----------------------------------------------------------------------------------------
Well, you have configured the application and you are ready to play. Remember it´s necessary that the section "HL --> IRC" has been enabled and the game path is correct to be able to send text to IRC from Half-Life. If it is left at the default settings , it has not been configured.
Once the game is running, you must know the main rule: Any text or command you send to IRC must start with 'irc' identifier. It´s very important, because if it isn't the script will not recognize it.
We are going to describe 4 sections:
1.- Sending text to a channel:
To send text to a specific channel, (it must be open):
(Note: ']' character is the console prompt)
]irc #my_channel hi, how are you?
Will send "hi, how are you?" to #my_channel
2.- Sending text to a query:
It works very similar as with channels, although the first message must begin with the /query command and immediatly followed by the nick of person who you would like to chat with.
Example:
]irc /query Fred I was looking for you
will open a query window to Fred and will type "I was looking for you" in it. (Note: Active window will be changed automatically to the query window only if the conversation was started at that moment).
3.- Sending text to active an window:
We can send text to the active window directly, it can be a channel or a query, just type it. (Note: You can see what the active window is with /awin command)
Example:
]irc good morning
will send the text "good morning" to the active window at that moment.
4.- Using commands
We have implemented into the script a few commands to add the funcionality of not having to exit the game to perform basic IRC actions, such as
join/exit a channel, to be away, change nick, active window, etc. To add/del channels from the monitor list is possible from console with /chan command.
You can see a complete list of commands and a short description of what they do in the Configuration Tab of the program. a short description about what they do. You can check this list and the syntax from within the console with the /help command:
]irc /help
will give a possible command list.
]irc /help /awin
It shows specific help of the /awin command. Once we know what it is for and how use it we can test:
]irc /awin #my_channel
This will change mIRC active window to #my_channel channel, and will set the notice telling us that the active channel is now the channel mentioned.
5. FREQUENTLY ASQUED QUESTIONS (FAQ)
-----------------------------------------------------------------------------------------
Q: It does not recognize the 'irc' identifier. It tells me "unknown command".
A: Be sure you have configured the game path correctly, for example: "C:\Sierra\Half-Life\cstrike\" (for Counter-Strike game) and check that the yahirc.cfg file in your game directory exists. Also , check to make sure there is a line that reads "exec yahirc.cfg" in your autoexec.cfg(in the same directory). If everything is in order but it still won't recognize it, try to exec the file manually from the console. Just type 'exec yahirc.cfg'
Q: The keys I have configured for the buffers don´t work.
A: The most frequent cause of this error is the "unbind all" command in the configuration of the game, because it will be executed after autoexec.cfg. A solution to this problem is to manually execute the yahirc.cfg file from your console or add "exec yahirc.cfg" to your own configuration file.
Q: Can YAH be wrongly detected as a cheat?
A: No, because it isn´t a "client hook" (as OGC) and it does not interfere with the game. It only puts text onto the screen with the use of totally legit commands.
Q: Is right everytime I send text to IRC, appears the message "Console dumped to ...\condumpxxx.txt"?
A: Yes, It is part of running mechanism. It is one of the few ways to do it without having problems with anticheats.
Q: Why doesn´t buffer mode work in some servers?
A: Verify that the server doesn't have WWCL installed because this plugin blocks the "developer" command, preventing YAH to show the IRC text in the screen.
6. LANGUAGE FILES
-----------------------------------------------------------------------------------------
YAH is not limited to default languages, you can create your own language file so that you will be more comfortable with the program. Adding a new language is easy, just take one of the language files (.lng) included in the script, make a copy, rename it to your_language.lng and with a text editor translate each line by following these instructions:
- Leave the numeration, spaces in each line and the '=' symbol at the beginning of every line.
- In [credits] section write data that you think is necessary, you can leave some blank register if you wish.
- In [gui] section it is very important that you respect length of phrases. If they are too long, they will get cutoff, so use abbreviations if it´s required.
- [console] section must have no incompatible characters with the Half-Life console (characters that can not be shown correctly). For example, characters of some languages (ñ, Ç, ø, etc). The rest of the sections can be translated without this restriction.
There are some parts can NOT be translated, those who have indentifiers and commands. If you doubt someone, you can compare with other language file included with the script. Are indentifiers:
- Indicators of section: [credits], [gui], [console] y [engine]
- Words beginning with '$' , '/' or '%'. For example: "$1", "$nick", "/chan", "%yahname", "$mircdir $+ YAH\"
- Whole arguments of commands, as: "20=WARNING! Use: /chan [add/del] #channel" where "add/del" must not be translated but #channel may. In other words, those arguments representing a parameter, not containing one, must
not be translated.
It is very important that you try to describe the context of each phrase to a correct translation.
If you have created your own language that has not been included in this YAH version and you want to share it with other people, you can send it to us, and we will publish it on web and/or in next program version. To contact us use the e-mail forum.
7. KNOWN PROBLEMS
-----------------------------------------------------------------------------------------
- Possibly, because of some mIRC's bugs, some situations will show the active window incorrectly.
- The use of Buffer overimpressed on screen can be affected because of buy-scripts or similiar if they use "developer 0" command. If the buffer stops are shown, just type "developer 1" in console or push the recieve buffer key twice.
- This script does not run correctly with external programs used to better prioritize the hl.exe process, for example with WinLauncher XP.
- Use of "Change to active channel" option can cause sometimes mIRC application becomes in active window of desktop, minimizing Half-Life game. We are studing how to solve it. |
|