Skip to content

Instantly share code, notes, and snippets.

Space Engineer/Tourch - Generate WorkshopItems from Steam Workshop Collection

This snippet will generate a list suited for the Tourch SE dedicated server bulk mod import from a Steam Workshop Collection.

This is a modified version of Saturate's Project Zomboid - Generate WorkshopItems from Steam Workshop Collection https://gist.github.com/Saturate/1519244dee074f3b6afdea349580f0e0

How to use:

  1. Navigate to your collection (eg. https://steamcommunity.com/sharedfiles/filedetails/?id=2871262277)
  2. Copy the code in console.js
  3. Open the devtools for your browser (F12)
// RayTracing3D.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#define OLC_PGE_APPLICATION
#include <iostream>
#include <ctime>
#include <cmath>
#include "olcPixelGameEngine.h"
import math
from tkinter import *
root = Tk();
root.title = "Test4"
root.wm_attributes("-topmost", 1);
#CreateCanvas
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
@TheRealNOIG
TheRealNOIG / RubyFighter.rb
Last active May 5, 2016 20:57
A game like ruby warrior
class Player
def initialize(health, damage, position)
@health = health
@damage = damage
@position = position - 1
end
attr_reader :health, :damage, :position;
end
class Enemy
class Player
def play_turn(warrior)
if @shotNextTime == true
warrior.shoot!
if !warrior.look.any? { |space| space.enemy? }
@shotNextTime = false
end
elsif warrior.look(:backward).any? { |space| space.enemy? }
warrior.pivot!
@shotNextTime = true;
@TheRealNOIG
TheRealNOIG / Button.cs
Last active March 1, 2016 20:19
Button class fore pepe goes to prom
using System;
namespace PepeGoesToProm
{
public class Button
{
public Texture2D texture {get; set;}
public Rectangle positionSize {get; set;}
public bool clickedOn {get; set;}
public bool overButton {get; set;}