Author Topic: Can you save a dump?  (Read 3717 times)

I think you could also do this:

Code: [Select]
new consoleLogger(log, "object_dump.txt", false); your_object.dump(); log.detach(); log.delete();
Tried it. The text file was completely blank.

Tried it. The text file was completely blank.
Well I tried it too and it works

Well I tried it too and it works
Tried on a fresh install of blockland demo, works 100%. We finally have a way to read the console lol, gj

Tried on a fresh install of blockland demo, works 100%. We finally have a way to read the console lol, gj
Well you still can't have a callback for the lines. You'd have to create a logger to a file in config, then like a minute later detach and delete that logger, parse the file, and create a new logger. That's not exactly... efficient.

Well you still can't have a callback for the lines. You'd have to create a logger to a file in config, then like a minute later detach and delete that logger, parse the file, and create a new logger. That's not exactly... efficient.
Still, it's a way.

Still, it's a way.
If it's possible to read that file and send the lines over tcp faster than new lines are created, it would be possible to create a remote admin panel for dedicated servers that does not need external programs!

As long as you don't need a button to start the server, I guess.

I think you could also do this:

Code: [Select]
new consoleLogger(log, "object_dump.txt", false); your_object.dump(); log.detach(); log.delete();
I tried this, it made the file, but it was blank

EDIT: I didn't see there was a second page of posts after that one :v
« Last Edit: July 10, 2014, 06:46:31 PM by Headcrab Zombie »

Tried on a fresh install of blockland demo, works 100%.

Yup, me too. I wonder what's causing it to not work for others.

Also, I think it's cool how sometimes Torque's stupidity (like the ability to have two console loggers running at the same time both logging the same stream) can be beneficial.
« Last Edit: July 10, 2014, 07:16:35 PM by $trinick »

I tried this, it made the file, but it was blank
Can you test it on a fresh install and tell us whether or not it works?

I tried it on mine, wasn't a fresh install, just tossed it in a snip of code and it worked. I used a client-sided object for the test.

FYI using setLogMode(1) seriously reduces performance because the file has to be opened and then closed again for every line.

FYI using setLogMode(1) seriously reduces performance because the file has to be opened and then closed again for every line.
I've had my log mode set to that for a long long time, and I have no performance issues unless there's some form of massive console spam going on.

I've had my log mode set to that for a long long time, and I have no performance issues unless there's some form of massive console spam going on.
What's with you and that font?

What's with you and that font?
I've pledged to only use this font (and the equivalent monospace font) in my posts for one week starting from today

Should use comic sans.