multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.42k stars 437 forks source link

Add option to trim debugscript output #3742

Open CrosRoad95 opened 2 months ago

CrosRoad95 commented 2 months ago

Is your feature request related to a problem? Please describe.

Often output in debugscript can be large and you see this: image

Describe the solution you'd like

Add option to set in settings option to trim info/warning/error messages separetly, so for example i set "trim info", but not warnings/errors because they are important for me, then message will be displayed like: image

Also, add function to mta that let people know what are user preferences

Describe alternatives you've considered

No response

Additional context

Also, mta debugscript has trouble to print certain characters what clip rest of the content. Maybe in that case you should see at the end of printable characters "[and 123 more non printable characters]" ?? For example if you use iprint(col) - where "col" is content of .col file, you see "COL 3" and nothing else

Security Policy

TracerDS commented 2 months ago

About the raw data; the issue seems to be only in client debug logs. Printing it on the server will print every single byte.