Skip to content

Instantly share code, notes, and snippets.

@cybersonic
cybersonic / gist:4bebac83cd431147b30d5ac91ebdfaea
Created February 5, 2020 10:32
Error from UE4 when importing and FBX with animation
LoginId:5ef753783a46308f9ac1bb9f513b2399
EpicAccountId:c6786ebb091442f39718707d5abd9d64
Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Core/Public/Containers/Array.h] [Line: 614] Array index out of bounds: 0 from an array of size 0
FGenericPlatformMisc::RaiseException(unsigned int) Address = 0x1087522f7 (filename not found) [in UE4Editor-Core.dylib]
FMacErrorOutputDevice::Serialize(char16_t const*, ELogVerbosity::Type, FName const&) Address = 0x1088b5ed0 (filename not found) [in UE4Editor-Core.dylib]
FOutputDevice::LogfImpl(char16_t const*, ...) Address = 0x1089b4ae9 (filename not found) [in UE4Editor-Core.dylib]
AssertFailedImplV(char const*, char const*, int, char16_t const*, __va_list_tag*) Address = 0x10893ad2d (filename not found) [in UE4Editor-Core.dylib]
FDebug::CheckVerifyFailedImpl(char const*, char const*, int, char16_t const*, ...) Address = 0x10893abb4 (filename not found) [in UE4Editor-Core.dylib]
@cybersonic
cybersonic / BL_SelectFromCameraView.COPY
Created May 8, 2019 15:24
selects all actors from a given camera
Begin Object Class=/Script/Engine.Blueprint Name="BL_SelectFromCameraView"
Begin Object Class=/Script/Engine.EdGraph Name="EventGraph"
Begin Object Class=/Script/BlueprintGraph.K2Node_CustomEvent Name="K2Node_CustomEvent_0"
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_2"
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_CallFunction Name="K2Node_CallFunction_3"
End Object
Begin Object Class=/Script/BlueprintGraph.K2Node_MacroInstance Name="K2Node_MacroInstance_1"
End Object
@cybersonic
cybersonic / compile.cfm
Last active December 13, 2016 10:25
Used to compile files and track obvious syntax errors
<cfscript>
pathtoSourceCode = expandPath("/code");
files= DirectoryList(pathtoSourceCode, true);
passedFiles = [];
failedFiles = [];
failedErrors = {};
for(f in files){
if(ListLast(f, ".").startsWith("cf")){
<cfscript>
mystruct = {};
timer type="inline" label="population"{
loop from="1" to="20000" index="x"{
mystruct[x] = CreateUUID();
}
}
echo("<br>");
Hello!
<cfset session.app1 = Now()>
<cfdump var="#SESSION#">
component {
this.name = "ClusterDemo";
this.sessionType = "application";
this.datasources["sessionData"] = {
class: 'org.gjt.mm.mysql.Driver'
, connectionString: 'jdbc:mysql://localhost:3306/sessionData?useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=true'
, username: ''
, password: ""
@cybersonic
cybersonic / cfelse.cfm
Last active August 29, 2015 14:15
Demo code suggestion
<cfif false>
This will never run
<cfelse>
This will always run
</cfif>
or
<cfscript>
if(false){
{
"selector": "source.js",
"shell":true,
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < $file"]
}
{
"selector": "source.js",
"shell":true,
"cmd": ["/Applications/mongodb-osx-x86_64-2.4.1/bin/mongo < ${file}"]
}
<cfscript>
Items = [];
outer:for(i=1;i<10;i++){
Stuff = ":";
inner:for(x=1;x<3;x++){
if(i IS 5){
continue outer;