Where's the @ gone?

For AI and campaign script related discussions and questions
Post Reply
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Where's the @ gone?

Post by aubergine »

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.
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Where's the @ gone?

Post by Per »

The console uses '@' to indicate newline and '#' a colour change.
User avatar
aubergine
Professional
Professional
Posts: 3459
Joined: 10 Oct 2010, 00:58
Contact:

Re: Where's the @ gone?

Post by aubergine »

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 :(
"Dedicated to discovering Warzone artefacts, and sharing them freely for the benefit of the community."
-- https://warzone.atlassian.net/wiki/display/GO
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

Re: Where's the @ gone?

Post by Per »

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.
Post Reply