Notes |
|
(0006074)
|
SXX
|
2015-11-08 19:28
|
|
So processCommand is basically problem that cause all "green text" include what appear in battle on Windows too. Though on Windows issue mainly with "532" line.
Considering it's all extremely old debug stuff I'm going comment it out because likely nobody uses it. I don't think any of these functions are useful because chat work in-game now and you can't enter cheats from console anyway.
Of course normal commands to client going to work as fine.
Commit:
https://github.com/vcmi/vcmi/commit/a49950e958d896c02f20cb2332ee748a1a0ca356 [^] |
|
|
|
What do you mean that you can't enter cheats from console? The VCMI Client console certainly allows that. |
|
|
(0006076)
|
SXX
|
2015-11-08 21:36
(edited on: 2015-11-08 21:37) |
|
I mean from "stdin", not in-game chat input. It's what you get when you try to send command from stdin:
Cannot realize cheat, no hero selected!
Player 0 sends a message: vcmiistari
System message: Server encountered a problem: Cannot realize cheat, no hero selected!
So it's clearly wasn't working and I'm decide to just comment it altogether in processCommand instead of adding some filtering, etc.
|
|
|
(0006077)
|
SXX
|
2015-11-08 21:44
|
|
Anyway if this functionality (sending cheats from "stdin") needed then it's need to be fixed and check for input need to be added (substr(0,4) == 'vcmi') so it's not going to accept logs from console. |
|