|Anonymous | Login||2020-08-04 16:28 CEST|
|Main | My View | View Issues | Change Log | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0000214||Soldat Dedicated Server||Scripting Core||public||2012-05-20 18:18||2015-04-16 00:28|
|Target Version||Fixed in Version||2.7.4|
|Summary||0000214: WriteConsole doesn't write an integer unless there is a written string near it.|
|Description||I'm going to explain this very shortly.|
This line below, doesn't write anything to console.
WriteConsole(ID, INTToSTR(D), GOLD);
D is an integer and has a value of 0".
GOLD is a constant and defined as "$FFD700".
When I change the line as shown below, it works.
WriteConsole(ID, INTToSTR(D)+'asd', GOLD);
This one works but I, of course didn't want that "asd" so I tried the line below.
WriteConsole(ID, INTToSTR(D)+'', GOLD);
This doesn't work too. Then, I put a space there as you can see below.
WriteConsole(ID, INTToSTR(D)+' ', GOLD);
I think it's all clear.
|Steps To Reproduce||Load the script I added here. It won't write anything. But if you do the changes I mentioned, it will. You know what to do of course, just filling the form.|
|Tags||No tags attached.|
|Attached Files||asd.pas [^] (195 bytes) 2012-05-20 18:18|
Soldat only prints text which has at least 2 chars.
Meaning text that has less then 2 chars will not get printed with WriteConsole.
I'm not sure why this restriction is there.
Maybe some of the scripters knows when and why it was added.
Do we need support for printing empty lines?
Or would 1 char limitation be ok?
|It occured after 1.6.0 or maybe 1.6.1 or 1.6.2, I don't know which one but I can say that there was absolutely no such restriction on 1.5.|
|Please reply to all questions not just one.|
Well, 1 charecter limitation would be enough for me, I haven't needed to print an empty line so far. But it's clearly not my decision, that's why I left your last questions unanswered in my first message.
I wonder why such restriction was brought.
|Removed minimum line length restriction.|
|2012-05-20 18:18||utkesmer||New Issue|
|2012-05-20 18:18||utkesmer||File Added: asd.pas|
|2012-05-22 18:58||Shoozza||Status||new => confirmed|
|2012-05-22 19:17||Shoozza||Note Added: 0001504|
|2012-05-22 19:17||Shoozza||Status||confirmed => feedback|
|2012-05-22 19:31||utkesmer||Note Added: 0001505|
|2012-05-22 19:31||utkesmer||Status||feedback => new|
|2012-05-22 19:38||Shoozza||Note Added: 0001507|
|2012-05-22 19:38||Shoozza||Status||new => feedback|
|2012-05-22 19:46||utkesmer||Note Added: 0001508|
|2012-05-22 19:46||utkesmer||Status||feedback => new|
|2012-05-22 20:31||Shoozza||Priority||immediate => low|
|2012-05-22 20:31||Shoozza||Severity||major => tweak|
|2012-05-22 22:59||Shoozza||Note Added: 0001509|
|2012-05-22 22:59||Shoozza||Status||new => resolved|
|2012-05-22 22:59||Shoozza||Fixed in Version||=> 2.7.4|
|2012-05-22 22:59||Shoozza||Resolution||open => fixed|
|2012-05-22 22:59||Shoozza||Assigned To||=> Shoozza|
|Copyright © 2000 - 2020 MantisBT Team|