Skip to content

Instantly share code, notes, and snippets.

View kamyker's full-sized avatar
🍉

Kamil Szurant kamyker

🍉
View GitHub Profile
@kamyker
kamyker / rules fn
Created September 12, 2024 14:15
rules fn
The Rules
1. Content Rules & Guidelines
As we work together to ensure Fortnite stays a safe and welcoming environment for everyone, your Fortnite content must follow these rules:
1.1 A Safe Environment - Don’t create, upload, or publish content promoting illegal activities, including the promotion of known real-world gangs or gang violence, the promotion of known real-world terrorist organizations or terrorism, the promotion of real-world violent extremists or extremism, harassment, bullying, assault, doxing, swatting, gambling, illegal drugs, animal cruelty, fraud, hacking, and piracy. Content that depicts, condones, incites, or threatens real-world violence against others is prohibited.
1.2 Keep Personal Info Private - To respect privacy and help combat deceptive practices like phishing and buying/selling account information, do not disclose, gather, exploit, or request personal information of individuals or organizations anywhere in your island. Epic provides ways to share your social handles throughout
@kamyker
kamyker / save.verse
Last active March 19, 2024 20:08
Persistent Player Statistics, Verse doc rewritten (untested)
var PlayerStatsMap:weak_map(player, player_stats_table) = map{}
player_stats_table := class<final><persistable>:
Version:int = 0
Score:player_stat = player_stat{}
Wins:player_stat = player_stat{}
Losses:player_stat = player_stat{}
ClonePlayerStatsTable<constructor>(OldTable:player_stats_table)<transacts> := player_stats_table:
@kamyker
kamyker / Fortnite.digest.verse
Created November 3, 2023 11:22
Fortnite.digest.verse 27.00
# Copyright Epic Games, Inc. All Rights Reserved.
#################################################
# Generated Digest of Verse API
# DO NOT modify this manually!
# Generated from build: ++Fortnite+Release-27.00-CL-29072304
#################################################
using {/Verse.org/Colors}
using {/UnrealEngine.com/Temporary/SpatialMath}
using {/Fortnite.com/Playspaces}
@kamyker
kamyker / Async
Created March 20, 2023 21:31
Async vs Callback example
async UniTask QuickPlayMatchmakingEOSAsync()
{
try
{
var lobby = AccelBytePlugin.GetLobby();
if(!lobby.IsConnected)
lobby.Connect();
string matchPoolName = "quickplay_1v1";
@kamyker
kamyker / HideTitleMenuBar.cs
Created December 23, 2022 23:54
Unity C# hide tool bar and menu bar for light panel in dark mode
#if UNITY_EDITOR
using System;
using System.Runtime.InteropServices;
using System.Text;
using UnityEditor;
using UnityEngine;
public static class HideTitleMenuBar
{
[DllImport("user32.dll")]
@kamyker
kamyker / Unity-hotswapping-notes.md
Created October 4, 2022 11:16 — forked from cobbpg/Unity-hotswapping-notes.md
Unity hotswapping notes

Unity hotswapping notes

Unity has built-in support for hotswapping, which is a huge productivity booster. This feature works not only with graphics assets like bitmaps and meshes, but also with code: if you edit the source and save it, the editor will save the state of the running game, compile and load the new code, then load the saved state and continue where it left off. Unfortunately, this feature is very easy to break, and most available 3rd party plugins have little regard for it.

It looks like there’s a lot of confusion about hotswapping in Unity, and many developers are not even aware of its existence – which is no wonder if their only experience is seeing lots of errors on the console when they forget to stop the game before recompiling... This document is an attempt to clear up some of this confusion.

Nota bene, I’m not a Unity developer, so everything below is based on blog posts and experimentation. Corrections are most welcome!

The basic flow of hotswapping

@kamyker
kamyker / network-tweak.md
Created May 27, 2022 00:00 — forked from mustafaturan/network-tweak.md
Linux Network Tweak for 2 million web socket connections

Sample config for 2 million web socket connection

    sysctl -w fs.file-max=12000500
    sysctl -w fs.nr_open=20000500
    # Set the maximum number of open file descriptors
    ulimit -n 20000000

    # Set the memory size for TCP with minimum, default and maximum thresholds 
 sysctl -w net.ipv4.tcp_mem='10000000 10000000 10000000'
@kamyker
kamyker / GC Benchmark
Last active November 9, 2023 12:06
Unity Mono vs Il2cpp vs NET 6 vs NativeAOT (CoreRT)
using System;
using System.Diagnostics;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
// stopwatch.Restart();
@kamyker
kamyker / Beat Aim SChinese.tsv
Last active June 27, 2021 14:32
Beat Aim Translations
english schinese explanation image back to english more by translator
Play 开始/玩 Play Start/Play
Store 商店 Store
Inventory 物品栏 Inventory
Battle Pass 战斗通行证 Battle Pass
Simple 简单 SIMPLE
Challenges 挑战/任务 Challenges Challenge/Quest
Generator 生成器 Generator
Workshop 创意工坊 Workshop specific for steam workshop
Ranking 排行/排位/排行榜 Ranking Rank/Rank match(such as lol,csgo)/Rank list
@kamyker
kamyker / FindReferencesInProjectEditor.cs
Last active December 4, 2020 02:26
Unity Find References In Project with Quick Search
using Unity.QuickSearch;
using UnityEditor;
public static class FindReferencesInProjectEditor
{
static ISearchView searchView;
[MenuItem( "Assets/Find References In Project", priority = 29 )]
static void FindReferencesInProject()
{