For some odd reason, console() seems to mysteriously strip the character @ from strings sent to the console.
Is there any way to stop it doing that?
I've tried replacing @ with ﹫ or @ but those just end up getting converted to character codes in the console messages. The same happens when trying various Mongolian characters that look a bit like @.
Any ideas?
EDIT: Currently using ∂ as a temporary replacement.
Where's the @ gone?
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Where's the @ gone?
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: Where's the @ gone?
The console uses '@' to indicate newline and '#' a colour change.
-
aubergine
- Professional

- Posts: 3462
- Joined: 10 Oct 2010, 00:58
Re: Where's the @ gone?
Can scripts do the colour change thing? That would be super awesome!
EDIT: Tried all sorts of colour refs (hex, name, rgba, etc) after a # and couldn't get colour change working
EDIT: Tried all sorts of colour refs (hex, name, rgba, etc) after a # and couldn't get colour change working
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
-- https://warzone.atlassian.net/wiki/display/GO
-
Per
- Warzone 2100 Team Member

- Posts: 3780
- Joined: 03 Aug 2006, 19:39
Re: Where's the @ gone?
As far as I can tell, the colour change thing is not actually being used for anything in the game, and since the port to GLC for text rendering, the actual code used to change colours disappeared, but it still kept swallowing all '#' characters and the documentation was not updated. The reason for its disappearance is probably performance. Maybe someone else knows more.