Commit Changed

This commit is contained in:
I-Have-An-Issue 2023-01-27 22:11:17 -05:00
parent aee76fbd48
commit 52a8be910a
No known key found for this signature in database
GPG Key ID: E55435DEA0825091
6 changed files with 24 additions and 28 deletions

View File

@ -1,16 +1,16 @@
RCCSERVICE=
ARBITER_TOKEN=
BASE_URL=https://crapblox.cf
BASE_URL=https://sitetest.unexp.xyz
RENDER_FORMAT=PNG
RENDER_BASE64=true
RENDER_BASE64=
RENDER_USER_WIDTH=420
RENDER_USER_HEIGHT=420
RENDER_USER_WIDTH=720
RENDER_USER_HEIGHT=720
RENDER_ASSET_WIDTH=420
RENDER_ASSET_HEIGHT=420
RENDER_ASSET_WIDTH=720
RENDER_ASSET_HEIGHT=720
RENDER_PLACE_WIDTH=720
RENDER_PLACE_WIDTH=854
RENDER_PLACE_HEIGHT=480

View File

@ -8,17 +8,17 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl)
game:GetService("ScriptContext").ScriptsDisabled = true
local Player = game.Players:CreateLocalPlayer(0)
Player.CharacterAppearance = ("%s/v1.1/avatar-fetch/%d"):format(baseUrl, assetId)
Player.CharacterAppearance = ("%s/Character?id=%d"):format(baseUrl, assetId)
Player:LoadCharacter(false)
game:GetService("RunService"):Run()
Player.Character.Animate.Disabled = true
Player.Character.Animate.Disabled = true
Player.Character.Torso.Anchored = true
local gear = Player.Backpack:GetChildren()[1]
if gear then
gear.Parent = Player.Character
local gear = Player.Backpack:GetChildren()[1]
if gear then
gear.Parent = Player.Character
Player.Character.Torso["Right Shoulder"].CurrentAngle = math.rad(90)
end

View File

@ -9,12 +9,14 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl)
game:GetService("ScriptContext").ScriptsDisabled = true
local Player = game.Players:CreateLocalPlayer(0)
Player.CharacterAppearance = ("%s/thumbnail/clothingcharapp/%d"):format(baseUrl, assetId)
Player:LoadCharacter(false)
local asset = game:GetObjects(("%s/asset/?id=%d"):format(baseUrl, assetId))[1]
asset.Parent = Player.Character
game:GetService("RunService"):Run()
Player.Character.Animate.Disabled = true
Player.Character.Animate.Disabled = true
Player.Character.Torso.Anchored = true
print(("[%s] Rendering ..."):format(jobId))

View File

@ -9,7 +9,7 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl)
game:GetService("ScriptContext").ScriptsDisabled = true
local Player = game.Players:CreateLocalPlayer(0)
Player.CharacterAppearance = ("%s/v1.1/avatar-fetch/%d"):format(baseUrl, assetId)
Player.CharacterAppearance = ("%s/Character?id=%d"):format(baseUrl, assetId)
Player:LoadCharacter(false)
game:GetService("RunService"):Run()

View File

@ -11,7 +11,7 @@ game:GetService("ContentProvider"):SetBaseUrl(baseUrl)
game:GetService("ScriptContext").ScriptsDisabled = true
game:GetService("StarterGui").ShowDevelopmentGui = false
game:Load(baseUrl .. "/thumbs/staticimage?r=" .. jobId)
game:Load(("%s/asset/?id=%d"):format(baseUrl, assetId))
game:GetService("ScriptContext").ScriptsDisabled = true
game:GetService("StarterGui").ShowDevelopmentGui = false

View File

@ -1,4 +1,4 @@
local jobId, type, format, x, y, baseUrl, assetId, mannequin = ...
local jobId, type, format, x, y, baseUrl, assetId = ...
print(("[%s] Started RenderJob for type '%s' with assetId %d ..."):format(jobId, type, assetId))
@ -8,18 +8,12 @@ game:GetService("InsertService"):SetAssetVersionUrl(baseUrl .. "/Asset/?assetver
game:GetService("ContentProvider"):SetBaseUrl(baseUrl)
game:GetService("ScriptContext").ScriptsDisabled = true
if mannequin then
local Player = game.Players:CreateLocalPlayer(0)
Player.CharacterAppearance = ("%s/v1.1/asset-render/%d"):format(baseUrl, assetId)
Player:LoadCharacter(false)
else
local asset = game:GetObjects(("%s/Asset/?id=%d"):format(baseUrl, assetId))[1]
asset.Parent = workspace
local asset = game:GetObjects(("%s/asset/?id=%d"):format(baseUrl, assetId))[1]
asset.Parent = workspace
local thumbnailCamera = asset:FindFirstChild("ThumbnailCamera")
if thumbnailCamera ~= nil and thumbnailCamera.ClassName == "Camera" then
workspace.CurrentCamera = thumbnailCamera
end
local thumbnailCamera = asset:FindFirstChild("ThumbnailCamera")
if thumbnailCamera ~= nil and thumbnailCamera.ClassName == "Camera" then
workspace.CurrentCamera = thumbnailCamera
end
print(("[%s] Rendering ..."):format(jobId))