Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

Game.WriteToConsole() doesn't work properly

Here you can find all solved gameplay problems and bugs (beginning from Pre-Alpha 1.8.8).
Forum rules
By using the forum you agree to the following rules. For this forum you also need to follow these additional rules.
Locked
User avatar
Motto73
Superfighter
Superfighter
Posts: 316
Joined: Mon May 09, 2016 7:35 am
Title: Lazy ass
SFD Account: Motto73
Started SFD: Multiplayer Test Demo
Location: Sunny City
Gender:
Age: 24

Game.WriteToConsole() doesn't work properly

Post by Motto73 » Fri Oct 06, 2017 7:54 am

Hello.
When that one update disabled the messages like "running method 'mymethod()'" I felt happy because it made using the console much easier. But I've been noticing this problem that calling Game.WriteToConsole() does show only "script: ", but not the message it should show. I think that that update messed up the code in that part a little bit. I'd appreciate highly if it could be fixed because I use the console a lot when debugging since it's a good tool. Thanks in advance if you decide to fix this.

Also, as all bug reports should have at least source map, here's a few picture s and a simple sample map.

Sample map:

https://cdn.discordapp.com/attachments/ ... nsole.sfdm

This is how the code looks like:
Image
This is output:
Image
0 x
Image

User avatar
JakSparro98
Superfighter
Superfighter
Posts: 530
Joined: Fri Jul 15, 2016 7:56 pm
Started SFD: PreAlpha 1.0.5
Location: Rome, Italy
Gender:
Age: 25

Post by JakSparro98 » Fri Oct 06, 2017 9:52 am

Motto73 wrote:
Fri Oct 06, 2017 7:54 am
Hello.
When that one update disabled the messages like "running method 'mymethod()'" I felt happy because it made using the console much easier. But I've been noticing this problem that calling Game.WriteToConsole() does show only "script: ", but not the message it should show. I think that that update messed up the code in that part a little bit. I'd appreciate highly if it could be fixed because I use the console a lot when debugging since it's a good tool. Thanks in advance if you decide to fix this.

Also, as all bug reports should have at least source map, here's a few picture s and a simple sample map.

Sample map:

https://cdn.discordapp.com/attachments/ ... nsole.sfdm

This is how the code looks like:
Image
This is output:
Image
Good news, The next update will solve that, as mentioned here.
0 x

User avatar
Motto73
Superfighter
Superfighter
Posts: 316
Joined: Mon May 09, 2016 7:35 am
Title: Lazy ass
SFD Account: Motto73
Started SFD: Multiplayer Test Demo
Location: Sunny City
Gender:
Age: 24

Post by Motto73 » Fri Oct 06, 2017 12:21 pm

Oh, sorry,I didn't see it. Thanks Jak!
0 x
Image

Locked