Skip to content

Instantly share code, notes, and snippets.

View apavlinovic's full-sized avatar
☃️

Antonio Pavlinović apavlinovic

☃️
View GitHub Profile
@apavlinovic
apavlinovic / alien-worlds-miner.js
Created April 17, 2021 14:25
Alien Worlds Miner (v0.39.1)
async (_message) => {
const getRand = () => {
const arr = new Uint8Array(8);
for (let i=0; i < 8; i++){
const rand = Math.floor(Math.random() * 255);
arr[i] = rand;
}
return arr;
};
@apavlinovic
apavlinovic / Table-of-Contents-in-Javascript.js
Last active August 1, 2019 10:59
Table of Contents in JavaScript
function buildTableOfContents (targetContainerId, list_type) {
var toc = "";
var list_type = list_type || 'ol';
var current_nesting_level = 0;
var headings = document
.getElementById(targetContainerId)
.querySelectorAll("h1, h2, h3, h4, h5, h6");
headings.forEach(heading => {
heading.setAttribute('id', generate_safe_anchor_id(heading.innerText));
@apavlinovic
apavlinovic / game master 0.89.1
Created February 1, 2018 20:18
game master 0.89.1
This file has been truncated, but you can view the full file.
{
"item_templates": [
{
"template_id": "AVATAR_f_backpack_cute_0",
"pokemon_settings": null,
"item_settings": null,
"move_settings": null,
"move_sequence_settings": null,
"type_effective": null,
"badge_settings": null,
@apavlinovic
apavlinovic / Pocket Camp 0.9.0 Metadata
Created November 1, 2017 16:13
Pocket Camp 0.9.0 Metadata
This file has been truncated, but you can view the full file.
elementattributeTypeType is not derived from System
.Attribute
.Element is not a constructor, method, property, event, type or field
.targetTypeValue is not a System
.Int32sValue is too largeWith AllowHexSpecifier only AllowLeadingWhite and AllowTrailingWhite are permitted
.Not a valid number styleValue too large or too small
.Input string was not in the correct formatValue is not a System
.Int64Input string was not in the correct format: s
.Length==0
.Input string was not in the correct format: Has Negative Sign
@apavlinovic
apavlinovic / Gen 3 added in Pokemon GO
Created August 22, 2017 05:58
Gen 3 added in Pokemon GO
V0252_POKEMON_TREECKO = 252;
V0253_POKEMON_GROVYLE = 253;
V0254_POKEMON_SCEPTILE = 254;
V0255_POKEMON_TORCHIC = 255;
V0256_POKEMON_COMBUSKEN = 256;
V0257_POKEMON_BLAZIKEN = 257;
V0258_POKEMON_MUDKIP = 258;
V0259_POKEMON_MARSHTOMP = 259;
V0260_POKEMON_SWAMPERT = 260;
V0261_POKEMON_POOCHYENA = 261;
@apavlinovic
apavlinovic / Injustice 2 1.3.0 Asset Names Data mine
Created May 13, 2017 15:24
Injustice 2 1.3.0 Asset Names Data mine
This file has been truncated, but you can view the full file.
Engine\Content\Functions\Engine_MaterialFunctions01\Opacity\CameraDepthFade.uasset
Engine\Content\EngineMaterials\T_Default_Material_Grid_M.uasset
Engine\Content\EngineMaterials\T_Default_Material_Grid_N.uasset
Engine\Content\EngineMaterials\DefaultMaterial.uasset
Engine\Content\BasicShapes\Cone.uasset
Engine\Content\BasicShapes\Cylinder.uasset
Engine\Content\EngineMaterials\WorldGridMaterial.uasset
Engine\Content\BasicShapes\Plane.uasset
Engine\Content\EditorLandscapeResources\DataLayer.uasset
Engine\Content\EditorMaterials\GizmoMaterial.uasset
@apavlinovic
apavlinovic / 0610 GM Timestamp changed on May 9th
Created May 9, 2017 11:16
0610 GM Timestamp changed on May 9th
0610 GM Timestamp changed on May 9th, nothing new in GAME MASTER, just a new timestamp:
1494298834
item_templates {
template_id: "AVATAR_f_backpack_cute_0"
avatar_customization {
enabled: true
avatar_type: PLAYER_AVATAR_FEMALE
slot: BACKPACK
bundle_name: "f_backpack_cute_bundle"
asset_name: "f_backpack_cute_0"
group_name: "group_backpack"
sort_order: 78
item_templates {
template_id: "AVATAR_f_backpack_cute_0"
avatar_customization {
enabled: true
avatar_type: PLAYER_AVATAR_FEMALE
slot: BACKPACK
bundle_name: "f_backpack_cute_bundle"
asset_name: "f_backpack_cute_0"
group_name: "group_backpack"
sort_order: 78
@apavlinovic
apavlinovic / 0.61.0 to 0.59.2 diff
Created April 7, 2017 10:59
0.61.0 to 0.59.2 diff
--- C:\Users\anton\Desktop\pokemon-datamining\metadata-reversal\0592.txt
+++ C:\Users\anton\Desktop\pokemon-datamining\metadata-reversal\0610.txt
@@ -1856,7 +1856,7 @@
.113549
.1
.9
-.5PKCS 7 DataContent TypeMessage DigestSigning Time3desSubject Alternative NameNetscape Cert Typemd5sha1Scan method must be implemented in derived classeshowtoo many matches'Current' called before 'MoveNext()'MatchCollection in invalid state'Current' called after 'MoveNext()' returned falseinputstartatreplacement('', [])Iscan only truncate the stackUnexpected end of pattern
+.5PKCS 7 DataContent TypeMessage DigestSigning Time3desSubject Alternative NameNetscape Cert Typemd5sha1Scan method must be implemented in derived classeshowtoo many matches'Current' called before 'MoveNext()'MatchCollection in invalid state'Current' called after 'MoveNext()' returned falseinputstartatevaluatorreplacement('', [])Iscan only truncate the stackUnexpected end of pattern
.invalid stateToo many | in (?()|)
.Bad quantifier