Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
44 user(s) are online (21 user(s) are browsing Forum)

Members: 0
Guests: 44

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +130€

Current balance: 45€
(last updated 01/2020)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 76 users playing Freelancer on 42 servers.
January. 29, 2020

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


How to disable client-side logging?
Quite a regular
Joined:
2008/3/3 8:54
From Pécs, Hungary
Group:
Registered Users
Posts: 117
Offline
Hi there. Does anyone know how to disable client-side logging (FLSpew)? I've tried several things but I cannot disable it. Anyone knows how to? Thanks

Posted on: 2008/11/16 21:06
Top
Re: How to disable client-side logging?
Starport Admin
Joined:
2008/2/10 15:03
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1018
Offline
not a dicky bird. ^^

Posted on: 2008/11/16 21:38
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2008/5/13 8:19
Group:
Registered Users
Senior Members
Posts: 202
Offline
activate the writeprotection on the flspew.txt

Posted on: 2008/11/16 22:56
Top
Re: How to disable client-side logging?
Home away from home
Joined:
2008/6/5 16:18
From Germany
Group:
Banned!
Posts: 546
Offline
why in gods name do you even want to do that?
i cant seem to see a benefit doing that

Posted on: 2008/11/16 23:31
Top
Re: How to disable client-side logging?
Quite a regular
Joined:
2008/3/3 8:54
From Pécs, Hungary
Group:
Registered Users
Posts: 117
Offline
Well write-protecting the file only prevents log from being saved, but FL still logs the things. I have a few things in my mod, which generate tons of error lines (they aren't actually errors), and it greatly decreases performance...

Posted on: 2008/11/16 23:32
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2008/2/17 19:44
From Virginia
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 369
Offline
freelancer.ini, play with these or comment them out:

[Error]
;EMAURER these four should remain as set.
log = $Window,65540 ; alert all asserts
log = $Window,-1,1 ; alert all errors (SEV_ERROR=1)

;EMAURER comment out lines below to vary the amount of output spew.

log = $Text, 65536, 5 ; 65536 means 'don't care' about kind value.
; 5 refers to TRACE_LEVEL_5. means report all messages
; with severity of 5 or less. lower the number, more severe
; the message. WARNINGS are at level 2. reduce for less spew.

;log = $Text, 'I' ; incoming packet transmission
;log = $Text, 'O' ; outgoing packet transmission
;log = $Text, 'i' ; instance creation related messages (mass, MOI, equip)
;log = $Text, 'r' ; significant attitude/reputation events (show results of AdjustAttitude calls)
;log = $Text, 'a' ; detailed info regarding loading/unloading of archetypes.
log = $Text, 'c' ; report server-side events sent to contollers
log = $Text, 'm' ; mission-generated messages
log = $Text, 's' ; log second thread activity
;log = $Text, 'f' ; report file opens/closes
;log = $Text, 'e' ; explosion/fuse messages
log = $Text, 'd' ; damage messages
log = $Text, 'A' ; reload console command messages

Posted on: 2008/11/16 23:51
http://UnderVerse.us
http://FreelancerCommunity.net
Top
Re: How to disable client-side logging?
Quite a regular
Joined:
2008/3/3 8:54
From Pécs, Hungary
Group:
Registered Users
Posts: 117
Offline
They are all commented out at me, and FL keeps logging to FLSpew... what could the problem be?

Posted on: 2008/11/17 1:10
Top
Re: How to disable client-side logging?
Home away from home
Joined:
2008/6/5 16:18
From Germany
Group:
Banned!
Posts: 546
Offline
I guess you mean the shader errors using enb
I dont think that you can turn them off

Posted on: 2008/11/17 1:22
Top
Re: How to disable client-side logging?
Starport Admin
Joined:
2008/6/24 16:40
From http://www.freeworlds-tow.net/dev
Group:
Registered Users
Starport Admin
$$$ Supporters $$$
Posts: 1123
Offline
I think Foxunit disabled the logging you're talking about for the FLAK mod. More details are found in this thread:http://www.memes.no/88flak/forum/viewtopic.php?t=1039 (scroll to the middle of the thread)

I think this is what you're looking for, FK?

Posted on: 2008/11/17 1:46
Open in new window
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2008/5/26 14:24
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 457
Offline
Search freelancer.exe and find "FLSpew.txt", use hex editor replace it to "00" (hex zero zero mean space).

Posted on: 2008/11/17 1:59
Open in new window

The mod is only me working on it.
Top
Re: How to disable client-side logging?
Quite a regular
Joined:
2008/2/18 5:28
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 136
Offline
Quote:

why in gods name do you even want to do that?
i cant seem to see a benefit doing that


That log's file size could get pretty massive depending on the frequency with which the errors get logged, not to mention the performance hit that Firekiss already mentioned.

Posted on: 2008/11/17 3:21
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2008/6/9 1:11
Group:
Registered Users
Senior Members
Posts: 316
Offline
foxUnit01 did this for Flak due to the way a certain version of the ENB series bloom shader works. I did this for Itano Circus as well.

From what I recall, JONG has it spot on. Open Freelancer.exe in a hex editor, search for FLSpew.txt, and replace it with zeroes. Then, you can use these freelancer.ini lines to debug and create a log for errors and stuff.

Code:
log = fl-client-errors.log, -1 ; alert all errors (SEV_ERROR=1)
;log = fl-client-errors.log, 0 ; alert no errors

Posted on: 2008/11/17 9:31
Open in new window
Top
Re: How to disable client-side logging?
Home away from home
Joined:
2008/6/5 16:18
From Germany
Group:
Banned!
Posts: 546
Offline
ok - good reason
but wouldnt the exe-hack cause problems?

Posted on: 2008/11/17 15:00
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2008/5/28 18:04
From Maine, USA
Group:
Registered Users
FLServer Admins
Senior Members
Posts: 457
Offline
Nope. It's simply not supplying a filename to write to - in doing this, Freelancer has nowhere to send the file output stream. If logging is enabled, regardless of rather you're using custom shaders or not, you're wasting a ton of CPU time writing to disk, which is a terrible waste of resources.

I'd highly recommend getting rid of FLSpew logging - client-side logging can still be enabled through freelancer.ini, so if you ever need the client logs to track down a crash you can always turn them on there and then turn 'em back off later.

Posted on: 2008/11/17 20:16
88 Flak for Freelancer
1.27 Betas | Wiki | Forums
Top
Re: How to disable client-side logging?
Just can't stay away
Joined:
2009/1/21 10:12
Group:
Registered Users
Posts: 195
Offline
Just seen this topic, and I know it's a few months out-of-date now. But I am hesistant to believe that simply replacing the filename with zeroes with a simple hex-edit is anywhere close to good enough. The .exe will still run the routine that is supposed to output these errors, although it just won't output. But the processing time is surely still used regardless of whether anything gets dumped to disk or not. Wouldn't it be better to trace to the function that deals with this an alter a compare and force a jump? I have a certain amount of experience with navigating assembly code, so perhaps I'll take a look and find a cleaner solution to this. I will of course post up any finding for use as hex edit offsets

*EDIT* - Ok, so that didn't take as long as I was expecting. Here is the offset you need to change and this will prevent the routine from even running that generates that log file and prevents a few other related bits too. This should save on a little processing overhead/lag (however great or small that may be):

Code:

Offset: 0x1B2819

Change: "74" to: "EB"


Done

Posted on: 2009/2/2 11:58
Top
(1) 2 »