… Thomas?
Bit of a code snippet of a project I am working on… kinda 2 at this point.
--[[
Runs unit tests for the InjectEnvironmentVariables method to simulate a DataStore error.
--]]
NexusUnitTesting:RegisterUnitTest("InjectEnvironmentVariables_DataStoreSimulatedFailure",function(UnitTest)
local ProperErrorWarned = false
--Create the fake DataStore.
local FakeDataStoreInjector = DependencyInjector.CreateOverrider()
FakeDataStoreInjector:WhenCalled("GetAsync"):ThenCall(function()
error("HTTP Service 503: Simulated error.")
end)
local FakeDataStore = DependencyInjector.Inject({},FakeDataStoreInjector)
--Create the fake DataStoreService.
local DataStoreServiceInjector = DependencyInjector.CreateOverrider()
DataStoreServiceInjector:WhenCalled("GetGlobalDataStore"):ThenReturn(FakeDataStore)
local FakeDataStoreService = DependencyInjector.Inject({},DataStoreServiceInjector)
--Create the fake game.
local GameInjector = DependencyInjector.CreateOverrider()
GameInjector:WhenIndexed("GetService"):ThenReturn(function(_,Index)
if Index == "DataStoreService" then
return FakeDataStoreService
end
end)
local FakeGame = DependencyInjector.Inject({},GameInjector)
--Create the main injector.
local Injector = DependencyInjector.CreateOverrider()
Injector:WhenIndexed("game"):ThenReturn(FakeGame)
Injector:WhenCalled("warn"):ThenCall(function(Warning)
if string.match(Warning,"HTTP Service 503: Simulated error.") then
ProperErrorWarned = true
end
end)
--Create an inject the function.
local function Test()
local Worked,Return = pcall(function()
return game:GetService("DataStoreService"):GetGlobalDataStore():GetAsync("Thing")
end)
if not Worked then
warn("Failed because "..Return)
end
end
DependencyInjector.InjectEnvironmentVariables(Test,Injector)
--Run the assertions.
Test()
UnitTest:AssertTrue(ProperErrorWarned,"Error not warned.")
end)
bye
Is that the inside of a shield, or is that that a camera shutter, or is this a tunnel. Will we ever know??
Jet engine. No. Wheel with a fancy hubcap.
So many different things it could be
Either way it looks very cool
It’s been awhile since I worked on it due to PC problems, but Frostmourne was my latest project on Blender.
Ok so I know I posted this a few days ago but I made a few big updates to my lava
Before:
I was using a default smoke particle and dull lighting for my lava
After:
Used a cooler and more useful texture for my haze and updated a lot of lighting settings both in the beam and the environment, still tweaking it, I hope eventually I will make some of the best looking lava on Roblox for my showcase
(btw those geysers of lava are randomly activated so they don’t all playout at the same time, credit to @UndoneBuilder for providing the script :D)
If you have any recommendations for my lava I would be happy to hear it!
reminds of me of
breath of the wild
I decided to participate in the Roblox Rthro competition.
https://twitter.com/DevBuckette/status/1073002664403836928
If you like the design, please go like the tweet
Stalenhag is a great artist
Physics flinging thingy! You know, just cause.
https://twitter.com/ScriptOnRoblox/status/1073384584807559168
https://twitter.com/ScriptOnRoblox/status/1073389410106785792
https://twitter.com/ScriptOnRoblox/status/1073389539429765120
I see what you did there