MantisBT - Soldat Dedicated Server
View Issue Details
0000400Soldat Dedicated ServerScripting Corepublic2013-08-26 03:022014-08-25 22:04
DorkeyDear 
ExHunter 
lowtrivialalways
resolvedfixed 
2.7.5 
 
0000400: TActivePlayer.BigText with layer 0 causes WriteConsole behaviour
Calling TActivePlayer.BigText with the layer as 0 causes WriteConsole behaviour; that is, text is written to the player console.
Call BigText in an instance of TActivePlayer with the layer being 0. Refer to Additional Information for an example code piece.
procedure OnClockTick(const Tick: integer);
begin
    if (Players[1].Active) then
        Players[1].BigText(0, 'Text', 500, $FFFF7F, 0.20, 200, 300);
end;

begin
    Game.OnClockTick := @OnClockTick;
end.
No tags attached.
Issue History
2013-08-26 03:02DorkeyDearNew Issue
2013-08-26 03:05DorkeyDearNote Added: 0001881
2013-09-09 15:45FalconStatusnew => acknowledged
2013-09-12 21:48FalconAssigned To => Falcon
2013-09-12 21:48FalconStatusacknowledged => confirmed
2013-10-05 23:31FalconNote Added: 0001958
2013-10-05 23:32FalconNote Edited: 0001958bug_revision_view_page.php?bugnote_id=1958#r298
2013-12-27 23:35FalconAssigned ToFalcon =>
2014-08-21 12:12ExHunterAssigned To => ExHunter
2014-08-21 12:12ExHunterStatusconfirmed => assigned
2014-08-25 22:04ExHunterNote Added: 0002272
2014-08-25 22:04ExHunterStatusassigned => resolved
2014-08-25 22:04ExHunterResolutionopen => fixed

Notes
(0001881)
DorkeyDear   
2013-08-26 03:05   
There is also similar behavior with using TPlayers.BigText.
(0001958)
Falcon   
2013-10-05 23:31   
(edited on: 2013-10-05 23:32)
Well this is perfectly OK, from internal point of view, as 0 means "draw it in console". I agree it's rather confusing though. Question is what do you prefer:
- 0 LayerID throwing an exception
- 255 LayerID throwing an exception (0 working "as intended")
- Leaving it as is
- Anything else you suggest

(0002272)
ExHunter   
2014-08-25 22:04   
fixed for next version