Skip to content

Instantly share code, notes, and snippets.

View RoccoDev's full-sized avatar
🇮🇹
Working on projects.

Rocco RoccoDev

🇮🇹
Working on projects.
View GitHub Profile
@RoccoDev
RoccoDev / xc3_data_sheet.py
Last active July 24, 2023 22:11
XC3 data_sheet.bin readers
# MIT License
#
# Copyright (c) 2023 RoccoDev
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@RoccoDev
RoccoDev / doc.md
Last active January 15, 2023 16:31
XC3 fusion AI

I'll distinguish the following scenarios:

  • Class art is being used and master art is charged: Use class art (automatically fuses) unconditionally (if the class art ends up being used, the master art will also be used no matter priority and conditions)
  • Master art is being used and class art is charged: Section (A)
  • Either art is being used and the other one is on cooldown: Section (B)

Note that "use the art" means to add it to the priority queue like normal. In all other cases, ignore the art entirely.

Section (A): using master art with charged class art
If Condition.field_760B765B = 1, use the master art. (+ fusion)
If the fusion has been active for less than 5 seconds (10 seconds if Fusion First), use the master art. (+ fusion)

@RoccoDev
RoccoDev / changelog_1_1_1.md
Created September 7, 2022 16:15
XC3 1.1.0 -> 1.1.1 BDAT change log

Item Changes

  • The enemy family that would drop Gogol Olipple in 1.1.0 now drops Gogol Vuaga.
    • Gogol Olipple is no longer referenced and therefore unobtainable.

Source: FLD_AffCollection#46 -> 35

Enemy Changes

  • Perilwing Ryuho can now only be found if your scenario flag is at least 1446.
    • Scenario flag 1446 appears to be right after destroying the Colony Omega flame clock. Here is another cutscene that requires it. (Credits: Alexsey#9211)
  • "DebugName" changed for all enemies (301 -> 305)
@RoccoDev
RoccoDev / bdat_diff_1_1_0_to_1_1_1.diff
Last active September 7, 2022 16:14
XC3 1.1.0->1.1.1 BDAT differences
This file has been truncated, but you can view the full file.
diff --git a/html_1_1_0/BTL_Arts_En.html b/html/BTL_Arts_En.html
index 77f3aa8..cd6ad1c 100755
--- a/html_1_1_0/BTL_Arts_En.html
+++ b/html/BTL_Arts_En.html
@@ -103211,7 +103211,7 @@
<td>0</td>
<td>0</td>
<td>100</td>
- <td>36000</td>
+ <td>30</td>
@RoccoDev
RoccoDev / monthly_yr.js
Last active January 2, 2020 20:33
Bedwars monthlies file merger
// Copyright (C) 2020 RoccoDev
// Licensed under the MIT license.
// <https://opensource.org/licenses/MIT>
"use strict";
const fs = require("fs")
const jsonDir = process.argv[2];
let result = {};
let sortForPlace = {};
@RoccoDev
RoccoDev / hash.rs
Last active May 8, 2023 15:36
Minecraft SHA-1 complement hash calculation in Rust
// Copyright (C) 2019 RoccoDev
// Licensed under the MIT license.
// <https://opensource.org/licenses/MIT>
// Bench results:
// First hash: 152ms
// Second hash: 1ms
// Third hash: 0ms
extern crate crypto; // Tested with 0.2.36
@RoccoDev
RoccoDev / botw-objmap-shrines.js
Created April 7, 2019 17:09
Object map shrine chest scraper
function findHashes() {
let url = `https://radar.zeldamods.org/objs/CDungeon/?q=actor:^%22TBox_%22&withMapNames=false&limit=-1`
let result = []
let xml = new XMLHttpRequest()
function load() {
let json = JSON.parse(this.responseText)
json.forEach(obj => {
@RoccoDev
RoccoDev / programcheck.hpp
Created April 6, 2019 17:30
C++ header to run a command, and return a custom error if the command was not found.
// MIT License
// Copyright (c) 2019 RoccoDev
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@RoccoDev
RoccoDev / NoBarrier.gct
Created March 31, 2019 19:08
No Great Plateau Barrier
# Needs testing as of March 31, 2019.
No Great Plateau Barrier [RoccoDev]
00020000 101E07F8
497423F0 00000000
00020000 101E07FC
497423F0 00000000
00020000 101E0800
497423F0 00000000
00020000 101E0804
@RoccoDev
RoccoDev / botw-objmap-import.js
Created March 30, 2019 12:17
Object map data scraper
function findHashes(query) {
let url = `https://radar.zeldamods.org/objs/MainField/?q=${encodeURI(query)}&withMapNames=false&limit=100000`
let result = []
let xml = new XMLHttpRequest()
function load() {
console.log(this.responseText)
let json = JSON.parse(this.responseText)