jujuadams / snitch Goto Github PK
View Code? Open in Web Editor NEWLogging and crash handling system for GameMaker
Home Page: https://www.jujuadams.com/Snitch/
License: MIT License
Logging and crash handling system for GameMaker
Home Page: https://www.jujuadams.com/Snitch/
License: MIT License
IDE 2.3.2.560
Runtime 2.3.2.426
To reproduce:
change SWITCH_HIJACK_SDM to false,
make a yyc build
Error
In __SnitchSystem, line 69 (nice),
return __SnitchLogString(_string);
Removing the return resolve the yyc compile error.
This causes crash reports to fail to send and leads to incorrect data in payloads. Issue is upstream but we may be able to mitigate it.
https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/
https://github.com/JujuAdams/Snitch/blob/main/scripts/__SnitchConfigPayloadSentry/__SnitchConfigPayloadSentry.gml
I could add this to snitch, if you'd like - Got it working in a local project already
//As per https://www.cryptosys.net/pki/uuid-rfc4122.html
//FIXME - Do this without random()/choose() calls
var _UUID = md5_string_utf8(string(current_time) + string(date_current_datetime()) + string(random(0xFFFFFF)));
_UUID = string_upper(_UUID)
_UUID = string_set_byte_at(_UUID, 13, 0x34);
_UUID = string_set_byte_at(_UUID, 17, choose(0x38, 0x39, 0x41, 0x42));
_UUID = string_insert("-", _UUID, 21)
_UUID = string_insert("-", _UUID, 17)
_UUID = string_insert("-", _UUID, 13)
_UUID = string_insert("-", _UUID, 9)
return _UUID;
}
When calling a debug message directly on a variable (EG show_debug_message(array)
) with SNITCH_HIJACK_SDM
on, the following error occurs:
file_text_write_string argument 2 incorrect type (array) expecting a String (YYGS) at gml_Script___SnitchLogString (line 76) - file_text_write_string(_file, _string); ", "message": "file_text_write_string argument 2 incorrect type (array) expecting a String (YYGS)", "script": "gml_Script___SnitchLogString" }
My own quick workaround was to add if !is_string(_string) _string = string(_string);
to the beginning of __SnitchLogString()
.
Should be as simple as outputting UDP packets of formatted XML for software to pick up. Could also save said formatted XML to files as well for offline processing later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.