Skip to content

Instantly share code, notes, and snippets.

@RogueYun
RogueYun / Test.py
Last active October 10, 2015 20:47
I'm just trying stuff :D
# I wonder what this does...
print "Howdy!"
# This doesn't seem too bad :D Here is a bunch of random junk to test with.
class Map():
def __init__(self):
pass
name = "Name"
tile_size = (64,64)
@RogueYun
RogueYun / gist:6463ffe5c552712e0b80
Last active October 10, 2015 21:07 — forked from schacon/gist:1
the meaning of gist
This is gist.
There are many like it, but this one is mine.
It is my life.
I must master it as I must master my life.
Without me gist is useless.
Without gist, I am useless.
Like the cotton candy that grows in my belly button.
@RogueYun
RogueYun / compilelog.txt
Created November 25, 2015 16:42
Compile Log Errors for CDDA
||=== Build: Release in Cataclysm (compiler: GNU GCC Compiler) ===|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp||In member function 'long int item::get_remaining_capacity_for_liquid(const item&) const':|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|4310|error: 'L_ERR_NONE' was not declared in this scope|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp||In member function 'item::LIQUID_FILL_ERROR item::has_valid_capacity_for_liquid(const item&) const':|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|4354|error: 'L_ERR_NOT_CONTAINER' was not declared in this scope|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|4358|error: 'L_ERR_FULL' was not declared in this scope|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|4362|error: 'L_ERR_NO_MIX' was not declared in this scope|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|4367|error: 'L_ERR_NOT_CONTAINER' was not declared in this scope|
C:\Users\username\Desktop\Git\Cataclysm-DDA\src\item.cpp|
@RogueYun
RogueYun / water_cart.json
Created November 27, 2015 00:09
Water Cart for Football field. Any Suggestions?
,{
"type" : "vehicle",
"id" : "water_cart",
"name" : "Water Cart",
"blueprint" : "o",
"parts" : [
{"x": 0, "y": 0, "part": "xlframe_vertical_2"},
{"x": 0, "y": 0, "part": "wheel_caster"},
{"x": 0, "y": 0, "part": "water_tank_little"},
{"x": 0, "y": 0, "part": "water_faucet"},
@RogueYun
RogueYun / character.py
Created January 11, 2016 21:43
Help wanted to fix my poor coding.
class Character(object):
def __init__(self):
self.name = "none"
self.race = "none"
self.occ = "none"
#This doesn't seem to work... refer to lower #-tags
def fc_name(self, name="none"):
if name == "none":
self.name = raw_input("What is your name?\n\n>>: ")
@RogueYun
RogueYun / lottery.py
Last active January 13, 2016 09:10
lottery drawing program
#lottery
from random import randint
#I'm trying to come up with a simple/moddable random generator for categories that might be appended.
#The numbers are the amount of arbitrary "lottery tickets" owned by said person/object.
#I now need to create a system to draw the winning lottery ticket and determine the winner...
#pretend this dictionary could be added to and drawn from again later like... lottery["Sam"] = 4
lottery = {"Bob":10, "Ted":5, "Mike":1}
@RogueYun
RogueYun / NPC_gen_outline.txt
Created January 13, 2016 17:34
Just the outline of stuff I was thinking on.
NPC Generator
Gender
Male
Female
Race
Races
Sub-races
Race Bonuses
Class
@RogueYun
RogueYun / tools.py
Created January 13, 2016 17:36
The basic randm generator functions I use
from random import randint
from random import choice
#Die Roll
def d(num, sides):
result = 0
for x in range(num):
result += randint(1, sides)
return result
[
{
"type" : "item_group",
"id" : "workout_food",
"items":[
["protein_powder", 15],
["sports_drink", 20],
["water_clean", 90]
]
},{
New to the game of Don't Starve Together? Keep joining servers and no one is willing to help you? Not having much fun being a ghost on day one? This guide is for you!
How to read this guide? Read this guide however you please! Be aware that this guide is intended to be helpful and not derogatory. Many of the things recommended are things you might have already known/done and if that is the case just skim it or skip it entirely. If you feel you are being criticized for your play style try to take the criticisms as constructive and have an open mind.
CONSIDER PLAYING ALONE
-------------------------------------
Host a game and set the number of players to 1. By playing alone you will be able to learn fun ways to die without the public humiliation of being dead on day one.
CONSIDER PLAYING ENDLESS MODE
--------------------------------------------------