Skip to content

Instantly share code, notes, and snippets.

View NavidK0's full-sized avatar

Navid Kabir NavidK0

View GitHub Profile

Unity versions not affected by Unity Runtime Fee

This is information that has been dug up by me and others in the Unity community. It's not official information from Unity (but most of the linked resources are). It is also not legal advise. I am not a lawyer.

TLDR:

Contrary to what Unity themselves are saying, for games made with these Unity versions, developers can elect not to be affected by a newer version of the Terms of Service that introduces the Unity Runtime Fee:

  • Unity 2022.x or earlier
  • Unity 2021.x LTS or earlier
@NavidK0
NavidK0 / ValidSeedFinder.cs
Last active January 18, 2021 09:45
ValidSeedFinder for Dungeon Architect (Unity)
using System.IO;
using DungeonArchitect;
using DungeonArchitect.Builders.Snap;
using Sirenix.OdinInspector;
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
namespace NF.EditorRuntime
{
@NavidK0
NavidK0 / building_nakama_plugin_via_wsl.md
Last active October 20, 2019 16:38
Build a Nakama Go Plugin using Windows Subsystem for Linux

Build a Nakama Go Plugin using Windows Subsystem for Linux

If you're using Windows, you can also build a go plugin using Windows Subsystem for Linux.

The Windows Subsystem for Linux lets developers run a GNU/Linux environment -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a virtual machine.

You can read more about it here.

Setup the Environment

In this guide, we will be using the Nakama server image provided by DigitalOcean on their marketplace, but you may use the Linux binary provided by HeroicLabs and set up your own.

/*
* Copyright (C) 2012 Jacquet Wong
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
#This is an example of a dungeon.yml
options:
name: "&7Abandoned City" #Name of dungeon
resource-pack: "http://server.o2gaming.com/downloads/PSCiv-Dungeon-Abandoned%20City.zip" #Dungeon resource-pack
#All the different music events
music:
init:
start:
preloader:
package com.lastabyss.psciv.util;
import org.bukkit.Bukkit;
import org.bukkit.OfflinePlayer;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import java.io.File;
import java.io.IOException;
@NavidK0
NavidK0 / WorldLoader.java
Created January 16, 2016 00:11
Not mine
package com.lastabyss.psciv.bukkit.util;
import java.io.File;
import java.lang.reflect.Field;
import java.util.Map;
import java.util.logging.Level;
import com.lastabyss.psciv.bukkit.PSCiv;
import net.minecraft.server.v1_8_R3.BlockPosition;
import net.minecraft.server.v1_8_R3.Chunk;
options:
name: "&7Abandoned City"
resource-pack: "http://server.o2gaming.com/downloads/PSCiv-Dungeon-Abandoned%20City.zip"
music:
preloader:
- abandoned.thesealedkingdom
finish-success:
- abandoned.fallout4
boss:
- abandoned.infanticide
package com.lastabyss.psciv.util;
import org.bukkit.ChatColor;
import java.util.Arrays;
import java.util.Collections;
/**
* @author Navid
*/