View gist:34627bb4742271bd0d1a56d0b2f9d290
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
Dialogic.set_variable("firstname", npc.get_meta("stats").firstname) | |
Dialogic.set_variable("lasttname", npc.get_meta("stats").lastname) | |
var dlg = Dialogic.start("") | |
dlg.dialog_node.dialog_script = { | |
"events": events, | |
"metadata": { | |
"name": "", | |
"file": "" | |
} |
View gist:6e857015c167f305cb30692285c0bf32
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
var dlg = Dialogic.start("") | |
dlg.dialog_node.dialog_script = { | |
"events": [{"character":"", "event_id":"dialogic_001", "portrait": "", "text":"He is asleep."}], | |
"metadata": { | |
"name": "", | |
"file": "" | |
} | |
} | |
scenario.add_child(dlg) | |
dlg.connect("timeline_end", self, "finish_dialogue", [dlg]) |
View tagged_lines.json
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
{ | |
"talk": [ | |
["{stats:firstname} is asleep.", "", ["sleeping"]], | |
["She is asleep.", "", ["sleeping", "female"]], | |
["He is asleep.", "", ["sleeping", "male"]] | |
], | |
"talk_options": [ | |
["Prank!", "signal:prank", ["sleeping"]], | |
["Wake him up!", "signal:wakeup", ["sleeping", "male"]], | |
["Wake her up!", "signal:wakeup", ["sleeping", "female"]], |
View gist:caabea4d589098670ab31f9c25e27451
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
class NPCDialogue: | |
var db | |
var dialogue_sleeping = {} | |
var rnd | |
func _init(): | |
var fd = File.new() | |
fd.open("res://data/tagged_lines.json", File.READ) | |
var result = JSON.parse(fd.get_as_text()) | |
fd.close() | |
db = result.result |
View meshops.cpp
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
#include "meshops.h" | |
MeshOps *MeshOps::get_singleton() | |
{ | |
static MeshOps *mo = NULL; | |
if (!mo) | |
mo = memnew(MeshOps); | |
return mo; | |
} |
View hips-to-root.py
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
import bpy | |
scene = bpy.context.scene | |
# make a list of strips used in the NLA | |
# strips are found in - | |
# object.animation_data.nla_tracks[TrackName].strips[stripName] | |
nla_strips = [] | |
orig_frame_start = scene.frame_start |
View fix-vrm.py
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
import bpy | |
from mathutils import Vector | |
from math import pi | |
context = bpy.context | |
namelist = [("Root", "root")] | |
fix_ptail = ["LowerLeg_L", "LowerLeg_R"] | |
ik_targets = { | |
"elbow_ik_L": ["LowerArm_L", Vector((0, 0.5, 0)), Vector((0, 0.5, 0.2)), False], | |
"elbow_ik_R": ["LowerArm_R", Vector((0, 0.5, 0)), Vector((0, 0.5, 0.2)), False], | |
"knee_ik_L": ["LowerLeg_L", Vector((0, -0.5, 0)), Vector((0, -0.5, 0.2)), False], |
View graphics_node.gd
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
extends Spatial | |
class GraphicsElement extends MeshInstance: | |
var mi: MeshInstance | |
var work_mesh: ArrayMesh | |
var vertices: = PoolVector3Array() | |
var indices: = PoolIntArray() | |
var uvdata: = PoolVector2Array() | |
var debug : ImmediateGeometry | |
func add_triangle(points:Array, uvs: Array): |
View clothes-test.gd
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
extends Spatial | |
onready var layers = [$base, $panties, $pants] | |
var pairs = [[0, 2], [1, 2], [0, 1]] | |
var cache = [] | |
func cache_data(): | |
for k in range(layers.size()): | |
var arrays = layers[k].mesh.surface_get_arrays(0) | |
var data = {} |
View pine64-error.txt
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
[ 0.0]HELLO! BOOT0 is starting! | |
[ 0.3]boot0 commit : 267600f3b448b722fb13c6de3199a2c040816b6d | |
[ 0.10]boot0 version : 4.0 | |
[ 0.14]rsb_send_initseq: rsb clk 400Khz -> 3Mhz | |
[ 0.20]PMU: AXP81X | |
[ 0.23]set pll start | |
[ 0.29]set pll end | |
[ 0.31]rtc[2] value = 0x00000055 | |
[ 0.35]rtc[3] value = 0x0000b00a |
NewerOlder