Skip to content

Instantly share code, notes, and snippets.

View two-first-names's full-sized avatar

Joe Roberts two-first-names

View GitHub Profile
@two-first-names
two-first-names / engage.lua
Created June 1, 2017 20:57
Dysia's Prae Engage
ai.engage.praenomen = function()
if ps.vitals.class ~= "praenomen" then return false end
local nextVenoms = venom1 or getNextPriority("slash", 1)
local nextWhispers = venom1 and {venom1, venom2} or getNextPriority("whispers", 2)
local claw_or_slash = "claw "
--if pvp.affs.rebounding then claw_or_slash = "claw " end
if not ps.limiters.offense
and ps.bals.both()
self.onmessage = function(e) {
// message from server
if(e.type === "output") {
switch(e.cmdname) {
// text from server
case "text"
return doTrigger(e.args[0]);
break;
}
}
for d in `find . -type d` do
cd "$d"
echo "-----> Running migration for $d."
evennia migrate
echo "-----> Ran migration for $d."
cd ..
done
if [ ! -d game ] then
repo=`cat repo`
git clone $repo game
fi
cd game
git pull
evennia migrate
evennia start
StartingArea:
StartingRoom:
name: A Bland Entry Room
desc: >
This is a very bland room, nothing to see here.
exits:
MorphRoom: n;north
MorphRoom:
name: A Room Filled With Vats
desc: >
> ApplicationCable::Connection
NameError: uninitialized constant ApplicationCable::Connection
from (irb):3
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.4/lib/rails/commands/console.rb:110:in `start'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.4/lib/rails/commands/console.rb:9:in `start'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:68:in `console'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /usr/local/rvm/gems/ruby-2.2.1/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<top (required)>'
from /home/ubuntu/workspace/bin/rails:8:in `<top (required)>'
from /usr/local/rvm/rubies/ruby-2.2.1/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
module ApplicationCable
class ApplicationCable::Connection < ActionCable::Connection::Base
identified_by :current_user
end
end
command :: Controller -> String -> String -> IO ()
command controller "who" args = ...
command controller "say" args = ...
command controller _ args = ...
parseInput :: Connection -> String -> IO ()
parseInput connection buffer = do
buffer' <- hGetChar $ handle connection
let buffer'' = buffer ++ [buffer']
let buffer''' = if (isSuffixOf "\n" buffer'')
then (lines buffer'')
else (init $ lines buffer'')
putStrLn $ "Char received!" ++ (show $ fromEnum buffer')
mapM (parseLine connection) buffer'''
parseInput connection if (isSuffixOf "\n" buffer'')
2014-02-28 03:55:31 [INFO] [STDOUT] ---- Minecraft Crash Report ----
2014-02-28 03:55:31 [INFO] [STDOUT] // Surprise! Haha. Well, this is awkward.
2014-02-28 03:55:31 [INFO] [STDOUT]
2014-02-28 03:55:31 [INFO] [STDOUT] Time: 28/02/14 03:55
2014-02-28 03:55:31 [INFO] [STDOUT] Description: Initializing game
2014-02-28 03:55:31 [INFO] [STDOUT]
2014-02-28 03:55:31 [INFO] [STDOUT] java.lang.NoClassDefFoundError: net/minecraft/client/renderer/EntityRenderer
2014-02-28 03:55:31 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:487)
2014-02-28 03:55:31 [INFO] [STDOUT] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)
2014-02-28 03:55:31 [INFO] [STDOUT] at net.minecraft.client.main.Main.main(SourceFile:101)