Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
JOELwindows7 committed May 28, 2024
1 parent 543e90b commit d0cab96
Show file tree
Hide file tree
Showing 18 changed files with 1,115 additions and 7 deletions.
19 changes: 18 additions & 1 deletion CREDIT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7833,4 +7833,21 @@ https://youtu.be/qzhuWRQWK5I?si=PygoI274O32LWD5a
- https://discord.com/channels/410126604237406209/1240763673346183279/1244046443774480428 NAK's trouble of accessing legacy UI text.
- Turns out, mine's because I had to take out the prop off from a GameObject inheritance. This prop must be the most parent in the scene!!! idk man.. wtf??? that's not clear! can you replicate thiis?
- https://discord.com/channels/410126604237406209/1240763673346183279/1244365537484607488 Noachi had found this..
- https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua
- https://github.com/davidm/lua-matrix/blob/master/lua/matrix.lua
- https://discord.com/channels/734976349994876928/734978945858142373/1244819414621098095 TJOC Lukasz Borges
- https://discord.com/channels/410126604237406209/1240763673346183279/1244727826641584128 Raiu made reference lua metatable
- https://pastebin.com/Kf8LxzE9
- https://discord.com/channels/410126604237406209/1237590087781584958/1244840780976099409
- https://discord.com/channels/410126604237406209/1237590087781584958/1244844414699049031
- https://github.com/NotAKidOnSteam/NAK_CVR_Mods/tree/main/RelativeSync
- https://discord.com/channels/1001388809184870441/1001388951099150336/1242564252112388289
- https://discord.com/channels/410126604237406209/797279576459968555/1244693061343383591 fearless7...
- ![spray](https://cdn.discordapp.com/attachments/797279576459968555/1244693061066428507/image.png?ex=66560a3f&is=6654b8bf&hm=4d1a2bfcde5dfa5e8889bc3ebcae8b07ff5dad74f0dd73cc41e47cafc0dd24b9&)
- https://discord.com/channels/410126604237406209/1004342533964439592/1244760880290205817
- https://forum.unity.com/threads/get-parameter-from-the-animator.202938/
- https://docs.unity3d.com/ScriptReference/Animator.GetInteger.html
- https://docs.unity3d.com/Manual/class-Animator.html
- https://techcommunity.microsoft.com/t5/modern-work-app-consult-blog/running-16-bit-applications-on-windows-10-64-bit/ba-p/1671418
- https://youtu.be/vX4398Htp2w?si=QpHiUWWHw73bohwV jiggly pudding Blender Demo
- https://www.blender.org/download/demo-files/#simulation here file
- https://youtube.com/shorts/snC5GfVoiz0?si=fmM_xC4embTYzl-7
55 changes: 53 additions & 2 deletions DiceGlow/Assets/JOELwindows7/AnhaLua/Prefabs/AnhaScript.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ GameObject:
- component: {fileID: 2593186904241057723}
- component: {fileID: 1310377827391953519}
- component: {fileID: 4976762283609963576}
- component: {fileID: 2789124568743652989}
- component: {fileID: 3677132415523780663}
- component: {fileID: 8905448938209665238}
m_Layer: 0
Expand Down Expand Up @@ -346,6 +347,8 @@ MonoBehaviour:
boundThing: {fileID: 8300000, guid: ae6cf6cc2d6be51419c5616bb0a3c21d, type: 3}
- name: PlayBeingSteppedOn
boundThing: {fileID: 8300000, guid: ae6cf6cc2d6be51419c5616bb0a3c21d, type: 3}
- name: OwnSelf
boundThing: {fileID: 2593186904241057722}
--- !u!114 &1310377827391953519
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -379,12 +382,39 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
spawnHeight: 0.74
useAdditionalValues: 0
syncValues: []
useAdditionalValues: 1
syncValues:
- name: randIntTest
startValue: 43453244
updatedBy: 0
updateMethod: 1
animator: {fileID: 2789124568743652989}
animatorParameterName: randIntTest
propPrivacy: 1
subSyncs: []
spawnableType: 0
preGeneratedInstanceId:
--- !u!95 &2789124568743652989
Animator:
serializedVersion: 5
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2593186904241057722}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 48560aca883438547aba5a29d7fd2f40, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!114 &3677132415523780663
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -451,6 +481,27 @@ MonoBehaviour:
m_StringArgument: IdkWhat
m_BoolArgument: 0
m_CallState: 2
- type: 19
targets:
- {fileID: 2593186904241057722}
floatVal: 0
stringVal: randIntTest
stringVal2:
stringVal3:
stringVal4:
boolVal: 0
boolVal2: 0
gameObjectVal: {fileID: 0}
floatVal2: 10000
floatVal3: 0
floatVal4: 0
varBufferVal: {fileID: 0}
varBufferVal2: {fileID: 0}
varBufferVal3: {fileID: 0}
animationVal: {fileID: 0}
customEvent:
m_PersistentCalls:
m_Calls: []
actionType: 3
execType: 1
layerMask:
Expand Down
86 changes: 84 additions & 2 deletions DiceGlow/Assets/JOELwindows7/AnhaLua/Prefabs/NHIEGenerator.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ GameObject:
- component: {fileID: 144212127805233890}
- component: {fileID: 4953290340566104613}
- component: {fileID: 4980243811054788348}
- component: {fileID: 4327080599719326571}
- component: {fileID: 6219260241926149192}
m_Layer: 0
m_Name: NHIEGenerator
m_TagString: Untagged
Expand Down Expand Up @@ -711,6 +713,8 @@ MonoBehaviour:
boundThing: {fileID: 3820129603953507233}
- name: LuaDisabledWarning
boundThing: {fileID: 4324722969678232726}
- name: OwnSelf
boundThing: {fileID: 6137162304381049160}
--- !u!114 &106908113437696888
MonoBehaviour:
m_ObjectHideFlags: 0
Expand Down Expand Up @@ -744,8 +748,20 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
spawnHeight: 1
useAdditionalValues: 0
syncValues: []
useAdditionalValues: 1
syncValues:
- name: SelectQuote
startValue: 0
updatedBy: 0
updateMethod: 1
animator: {fileID: 4327080599719326571}
animatorParameterName: SelectQuote
- name: IsDelaying
startValue: 0
updatedBy: 0
updateMethod: 1
animator: {fileID: 4327080599719326571}
animatorParameterName: IsDelaying
propPrivacy: 1
subSyncs: []
spawnableType: 0
Expand Down Expand Up @@ -780,6 +796,72 @@ BoxCollider:
serializedVersion: 2
m_Size: {x: 0.51, y: 0.05, z: 0.51}
m_Center: {x: 0, y: 0, z: 0}
--- !u!95 &4327080599719326571
Animator:
serializedVersion: 5
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6137162304381049160}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: 5ff736c5abf48a24b9342d15841a3961, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!114 &6219260241926149192
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6137162304381049160}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: a45fb99111d54dba84a8ff33016b93fd, type: 3}
m_Name:
m_EditorClassIdentifier:
tooltip:
actions:
- delay: 0
operations: []
actionType: 3
execType: 1
layerMask:
serializedVersion: 2
m_Bits: 0
floatVal: 10
floatVal2: 0
floatVal3: 0
boolVal: 0
boolVal2: 0
varBufferVal: {fileID: 0}
varBufferVal2: {fileID: 0}
stringVal:
allowedPointer: []
allowedPointerCollapse: 0
allowedTypes: []
allowedTypesCollapse: 0
specificParticleSystems: []
specificParticleSystemsCollapse: 0
interactionFilter: 0
interactionInput: 48
interactionInputModifier: 0
guid:
onEnterSeat:
m_PersistentCalls:
m_Calls: []
onExitSeat:
m_PersistentCalls:
m_Calls: []
--- !u!1 &6137162304978503790
GameObject:
m_ObjectHideFlags: 0
Expand Down
22 changes: 21 additions & 1 deletion DiceGlow/Assets/JOELwindows7/AnhaLua/Scripts/AnhaTest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
https://github.com/NotAKidOnSteam/NAK_CVR_Prefabs/blob/main/LuaExamples/CubeFactory/Script/CubeFactory.lua
https://discord.com/channels/410126604237406209/1240763673346183279/1241233382487228478 to get component according to DDAkebono: `GetComponent("[full class name]")` like `gameObject.GetComponent("UnityEngine.RigidBody")`
https://github.com/NotAKidOnSteam/NAK_CVR_Prefabs/blob/c7d1ce6c5925f2375e7b37f29c4d86be521f8b57/LuaExamples/PlayerWall/PlayerWall.lua#L34
https://forum.unity.com/threads/get-parameter-from-the-animator.202938/
https://docs.unity3d.com/ScriptReference/Animator.GetInteger.html
I got sample snippet from LensError
```
PlrCount.GetComponent("UnityEngine.UI.Text").text = "Player Count:".. playerCount
Expand Down Expand Up @@ -54,13 +56,15 @@ TM = UnityEngine.TextMesh

local DEBUG_MODE = false

local ownSelf
local isSpun = false
local spounThingy
local yikYukThingy
local tmpThingy
local tmpTextItself
local tmThingy
local tmTextItself
local animCompo
local aSpeaker
local aSpeakerCompo
local aAudioStream
Expand Down Expand Up @@ -111,6 +115,9 @@ local quotes = {
local selectQuote = 'haha hihi'
local quoteMovesIn = 10
local quoteTimeRemaining = 10
local randomIntSay = '999999999999'
local refreshRate = .1
local refreshRemains = .1

function DebugPrint(message)
if DEBUG_MODE then
Expand Down Expand Up @@ -142,12 +149,13 @@ function OnCollisionEnter(collision)
end

function UpdateInstallSay()
installSay = title .. "\n" .. selectQuote .. "\n" .. "World: " .. InstancesAPI.InstanceName .. "(" .. InstancesAPI.InstancePrivacy .. ")\n" .. "Rules: " .. ruleSays .. "\n" .. "Connection: " .. areWeOnline .. " (" .. InstancesAPI.Ping .. " ms)\n" .. sayWelcomeHome .. "\n" .. "Players (" .. playerCount .. "):\n" .. sayPlayersFuzzy
installSay = title .. "\n" .. selectQuote .. "\n" .. "World: " .. InstancesAPI.InstanceName .. "(" .. InstancesAPI.InstancePrivacy .. ")\n" .. "Rules: " .. ruleSays .. "\n" .. "Connection: " .. areWeOnline .. " (" .. InstancesAPI.Ping .. " ms)\n" .. sayWelcomeHome .. "\n" .. "Players (" .. playerCount .. "):\n" .. sayPlayersFuzzy .. "\n\nRandom Int Test: " .. randomIntSay
end

-- Start is called before the first frame update
function Start()
print "Hello world!"
ownSelf = BoundObjects.OwnSelf
spounThingy = BoundObjects.Spoun
yikYukThingy = BoundObjects.IyakYikYuk
tmpThingy = BoundObjects.Titler
Expand All @@ -157,6 +165,14 @@ function Start()
aSpeaker = BoundObjects.Speaker
aAudioStream = BoundObjects.PlayThisAudio
aSteppedOnStream = BoundObjects.PlayBeingSteppedOn

if ownSelf then
print('obtain self')
animCompo = ownSelf.GetComponent("UnityEngine.Animator")
else
print('forgor assign this self')
end

if not tmThingy then
print('WERROR! tmThingy not bounded!!!')
else
Expand Down Expand Up @@ -271,4 +287,8 @@ function Update()
-- spounThingy.transform.Rotate(0,angle,0)
spounThingy.transform.localRotation = UnityEngine.Quaternion.Euler(UnityEngine.NewVector3(0,angle,0))
yikYukThingy.transform.localPosition = UnityEngine.NewVector3(.75,toMoveAt,0)

if animCompo then
randomIntSay = tostring(animCompo.GetInteger('randIntTest'))
end
end
10 changes: 10 additions & 0 deletions DiceGlow/Assets/JOELwindows7/AnhaLua/Scripts/NHIEGenerator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
]]--
local UnityEngine = require("UnityEngine")

local ownSelf
local fakeButton
local textOut
local textOutCompo
Expand Down Expand Up @@ -68,10 +69,13 @@ local nhieList = {
'Graduated on college',
}
local selectNhie = 'halo'
local selectNum = 0
local delaysButtonIn = 5
local delayRemains = 5
local isDelaying = false
local luaDisabledWarn
local refreshRate = .1
local refreshRemains = .1

function Regenerate()
selectNhie = nhieList[math.random(#nhieList)]
Expand Down Expand Up @@ -102,6 +106,7 @@ end

-- Start is called before the first frame update
function Start()
ownSelf = BoundObjects.OwnSelf
fakeButton = BoundObjects.GenerateFakeButton
luaDisabledWarn = BoundObjects.LuaDisabledWarning
textOut = BoundObjects.zaza
Expand Down Expand Up @@ -131,6 +136,11 @@ end

-- Update is called once per frame
function Update()
refreshRemains = refreshRemains - UnityEngine.Time.deltaTime
if refreshRemains <= 0 then
refreshRemains = refreshRate
end

if isDelaying then
delayRemains = delayRemains - UnityEngine.Time.deltaTime
if delayRemains <= 0 then
Expand Down
8 changes: 8 additions & 0 deletions DiceGlow/Assets/JOELwindows7/AnhaLua/Sub.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d0cab96

Please sign in to comment.