Skip to content

Instantly share code, notes, and snippets.

View Kronos11's full-sized avatar

Kyle Kronos11

  • Liberty Mutual
  • Liberty Lake, WA, United States
  • X @KyleGameDev
View GitHub Profile
@Kronos11
Kronos11 / gist:3476844
Created August 26, 2012 10:14
Building deps for SWGANH
download boost 1.49
run bootstrap.bat
run command .\b2 --build-dir=bin toolset=msvc11
modify user-config.jam
# using msvc : 11.0 : : <cxxflags>-D _SECURE_SCL=0 <cxxflags>-D _HAS_ITERATOR_DEBUGGING=0 ;
bjam debug release link=shared threading=multi runtime-link=shared define=_SECURE_SCL=0 define=_HAS_ITERATOR_DEBUGGING=0 toolset=msvc-11.0
@Kronos11
Kronos11 / gist:2009970
Created March 10, 2012 03:41
Test Python Service
#this represents a simple Python Test Service
print('test service')
from py_swganh import BaseService
class TestService(BaseService):
def __init__(self, kernel_):
print('test service initialized')
BaseService.start()
def onStart(self):
print('on start do stuff')
cmake -G"Visual Studio 11" -DVENDOR_PREFIX=$PWD/../../vendor ..
#include "command_filter.h"
#include "swganh/object/creature/creature.h"
#include "swganh/messages/controllers/command_queue_enqueue.h"
using namespace swganh::command;
using namespace swganh::object;
using namespace swganh::object::creature;
using namespace swganh::messages::controllers;
using namespace std;
@Kronos11
Kronos11 / AbstractState.py
Created January 24, 2012 06:16
Different approach to PSM
#-------------------------------------------------------------------------------
# Name: AbstractState
# Purpose:
#
# Author: Kyle
#
# Created: 23/01/2012
# Copyright: (c) Kyle 2012
# Licence: GPL2 ANHSTUDIOS
#-------------------------------------------------------------------------------
@Kronos11
Kronos11 / ActionStateData.py
Created January 24, 2012 00:35
Initial Python for PSM
#-------------------------------------------------------------------------------
# Name: ActionStateData
# Purpose:
#
# Author: Kyle Craviotto
#
# Created: 23/01/2012
# Copyright: (c) SWGANH 2012
# Licence: GPL2 SWGANH
#-------------------------------------------------------------------------------
# All command scripts have a context that contains a reference to
# the object that initiated the command, the target of the command,
# a string containing any parameters, and finally a dictionary containing
# information about the command.
#
# anh.context.object
# anh.context.target
# anh.context.command_string
# anh.context.command_info
@Kronos11
Kronos11 / gist:1126092
Created August 4, 2011 20:01
BaselineDelta
// TANO
BaselineDelta baseline_tano3;
baseline_tano3.name("TANO");
baseline_tano3.number('3');
baseline_map_.insert(&BaselineBuilder::SendCreateTANO3_, std::make_shared<BaselineDelta>(baseline_tano3));
php app/console doctrine:database:drop --force
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load --fixtures=vendor/bundles/Anh/SwgManagerBundle/DataFixtures/ORM --append
php app/console fos:user:create
php app/console swg:players:sync
@Kronos11
Kronos11 / gist:1105923
Created July 26, 2011 03:49
Account Session
<?php
/**
* Represents an account session
*
* Copyright (c) 2011 Kyle Craviotto <kyle@anhstudios.com>
*/
namespace Anh\GalaxyManagerBundle\Entity;
use Doctrine\ORM\Mapping as ORM;