This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Build placeables into map | |
-- agp8x | |
-- 08.05.2016 | |
-- UserAttributes: | |
-- onCreate: <mapName>.onCreatePlaceable | |
-- xmlFile: <path-to-xml> | |
--[[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--original author [Bayn] | |
--Script reworked 2014-11-18 -JH | |
--Edit 2015-04-22 to Sun on every Time (north of Polarcircle) by böserlöwe | |
EventListener = {}; | |
local dir = g_currentModDirectory; | |
function EventListener:loadMap(name) | |
local env = Environment:new(Utils.getFilename("sky/sky_day_night.i3d", dir), true, 8, true, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Copyright (C) GIANTS Software GmbH, Confidential, All Rights Reserved. | |
-- agp8x | |
AdvertisingPlateMap = {}; | |
local AdvertisingPlateMap_mt = Class(AdvertisingPlateMap); | |
function AdvertisingPlateMap:onCreate(id) | |
g_currentMission:addUpdateable(AdvertisingPlateMap:new(id)) | |
end; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[output: | |
SiloBaler:createBale(): --call getBale() | |
BaleUtil:getBale(9, 1.2, 0.9, 2.4, 1.8, false) | |
BaleUtil:getBale(): --received | |
BaleUtil:getBale(1.2, 0.9, 2.4, 1.8, false, nil) | |
]] | |
local getBale_orig = BaleUtil.getBale |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import itertools | |
orig_csp={ | |
'm': (), | |
'o': ('s','m'), | |
'n': ('e','o'), | |
'e': ('n','r'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
G = { | |
'A': { | |
'Z': 75, | |
'S': 140, | |
'T': 118 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host="www.ls-mods.de/" | |
starturl=$host"scriptDocumentation.php?language=de" | |
extract_lua(){ | |
file="$1" | |
out=${file%.*} | |
cat $file|grep "code-listing-code"|cut -d">" -f5-|sed s/'<[^>]\+>'//g|sed s/'"'/'"'/g|sed s/'>'/'>'/g|sed s/'<'/'<'/g|sed s/'&'/'&'/g > $out | |
grep -E '&.*;' --color -nH $out | |
} | |
iterate_classes(){ |
NewerOlder