Skip to content

Instantly share code, notes, and snippets.

@GhoulofGSG9
GhoulofGSG9 / gist:02a1e1cacde3dfe625a93818cf31d8d6
Created September 20, 2019 00:16
Script error badge selection with too many badges
1576.952] ClientGame::UpdateWorld : Error: lua/menu2/PlayerScreen/Badges/GUIMenuBadgesCustomizer.lua:298: assertion failed!
[Client] Script Error #1: lua/menu2/PlayerScreen/Badges/GUIMenuBadgesCustomizer.lua:298: assertion failed!
Call stack:
#1: assert [C]:-1
#2: callbackFunction lua/menu2/PlayerScreen/Badges/GUIMenuBadgesCustomizer.lua:298
badgeObj = GUIMenuCustomizableBadge { name = level1 }
animationLayerName = "scaleAnim"
customizer = GUIMenuBadgesCustomizer_proper { name = widgetProper }
#3: ProcessEventQueue lua/GUI/GUIEventManager.lua:145
self = GUIEventManager { }
@GhoulofGSG9
GhoulofGSG9 / PhaseGate-Extract.lua
Last active February 19, 2018 16:50
NGZ Phasegate error (nach Bau von 2 Phasegates). Code Auszug von Zeile 378-420
if Server then
function PhaseGate:Update()
self.phase = (self.timeOfLastPhase ~= nil) and (Shared.GetTime() < (self.timeOfLastPhase + 0.3))
local destinationPhaseGate = GetDestinationGate(self)
if destinationPhaseGate ~= nil and GetIsUnitActive(self) and self.deployed and destinationPhaseGate.deployed then
self.destinationEndpoint = destinationPhaseGate:GetOrigin()
[65140.063] Main : Error: lua/IMGameMaster.lua:528: attempt to index local 'blip' (a nil value)
[Server] Script Error #1: lua/IMGameMaster.lua:528: attempt to index local 'blip' (a nil value)
Call stack:
#1: ReportExtractorBeingDamaged lua/IMGameMaster.lua:528
self = IMGameMaster { }
extractor = Extractor-3441 {alive=true, animationBlend=0, animationGraphIndex=4, animationGraphNode=5, animationSequence2=0, animationSequence=1, animationSpeed2=1, animationSpeed=1, animationStart2=150.00810241699, animationStart=153.21029663086, armor=1012.3759765625, attachedId=3913, buildFraction=1, collisionRep=0, constructionComplete=true, dissolveStart=0, flinchIntensity=0, gameEffectsFlags=64, health=2367.7507324219, healthIgnored=false, hotGroupNumber=0, inCombat=false, isCorroded=true, isGhostStructure=false, lastTakenDamageAmount=107, lastTakenDamageOrigin=cdata, lastTakenDamageTime=222.17651367188, lastTargetId=-1, layer1AnimationBlend=0.10000000149012, layer1AnimationGraphNode=7, layer1Animati
@GhoulofGSG9
GhoulofGSG9 / shineplugin.lua
Last active August 27, 2016 07:05
long block comment (?) crashes shine
-- A Shine plugin to enable and disable server mods in-game.
--
-- The config will have a list of mod hexes, each with a string and a boolean attribute.
-- The config will pull mods from MapCycle.json or mods can be manually added to the config.
-- The config list is just so shine's gui has something to pull from.
-- Manually editing true/false will be overwritten at plugin load when it reads from MapCycle.json.
-- TODO: hookup shine's gui admin menu
-- TODO: remove boolean from config as it's useless for the end user
local Shine = Shine
{
"Users": {
"42351847": {
"Group": "mod_group"
},
"106377166": {
"Group": "mod_group"
},
"49750268": {
"Group": "mod_group"
{
"Users": {
"42351847": {
"Group": "mod_group"
}, "106377166": {
"Group": "mod_group"
},"49750268": {
"Group": "mod_group"
}, "841433": {
"Group": "mod_group"
[21:09:37]Error: lua/Table.lua:320: assertion failed!.
stack traceback:
lua/shine/core/shared/hook.lua:71: in function <lua/shine/core/shared/hook.lua:70>
[C]: in function 'assert'
lua/Table.lua:320: in function 'InsertUnique'
lua/shine/extensions/badges.lua:95: in function 'AssignGroupBadge'
lua/shine/extensions/badges.lua:133: in function 'Setup'
lua/shine/extensions/badges.lua:22: in function <lua/shine/extensions/badges.lua:21>
[C]: in function 'xpcall'
lua/shine/core/shared/hook.lua:148: in function 'Call'
{
"maps": [ "ns2_biodome", "ns2_descent", "ns2_docking", "ns2_mineshaft", "ns2_refinery", "ns2_summit", "ns2_tram", "ns2_veil" ],
"time": 30,
"mode": "order"
}
{
"maps": [ "ns2_biodome", "ns2_descent", "ns2_docking", "ns2_mineshaft", "ns2_refinery", "ns2_summit", "ns2_tram", "ns2_veil" ],
"time": 30,
"mode": "order"
}
@GhoulofGSG9
GhoulofGSG9 / gist:7366686
Created November 8, 2013 05:32
main_menu.css adds by the badge mod
image.badge
{
border-color: rgb(1, 1, 1);
width: 32px;
height: 32px;
background-image: path(ui/menu/profile_icons_on.dds) pixelCoords(49, 2, 69, 22);
hover-background-color: rgb(0.6,0.6,0.6,1);
top: 70px;
}