Skip to content

Commit 0ae7e7f

Browse files
authored
Finalised CopyMods and Patches
1 parent 7145ea0 commit 0ae7e7f

File tree

13 files changed

+1212
-185
lines changed

13 files changed

+1212
-185
lines changed

Sonic '06 Mod Manager/ModManager.cs

Lines changed: 860 additions & 184 deletions
Large diffs are not rendered by default.

Sonic '06 Mod Manager/ModStatus.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ private void ModStatus_Load(object sender, EventArgs e)
5454
Width = 288;
5555
Height = 138;
5656
}
57+
else if (ModManager.installState == "patch")
58+
{
59+
Text = "Applying Patches...";
60+
lbl_unpackState.Text = "Applying Patches. Please wait...";
61+
pnl_windowCheck.BackColor = Color.AliceBlue; BackColor = Color.AliceBlue;
62+
Width = 288;
63+
Height = 138;
64+
}
5765
}
5866
}
5967
}

Sonic '06 Mod Manager/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
3535
[assembly: AssemblyVersion("1.0.0.0")]
36-
[assembly: AssemblyFileVersion("1.0.5.0")]
36+
[assembly: AssemblyFileVersion("1.0.6.0")]

Sonic '06 Mod Manager/Properties/Resources.Designer.cs

Lines changed: 70 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sonic '06 Mod Manager/Properties/Resources.resx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,28 @@
130130
<data name="logo_main" type="System.Resources.ResXFileRef, System.Windows.Forms">
131131
<value>..\Resources\logo_main.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
132132
</data>
133+
<data name="originalRenderGamemode" type="System.Resources.ResXFileRef, System.Windows.Forms">
134+
<value>..\Resources\orig_render_gamemode.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
135+
</data>
136+
<data name="originalRenderMain" type="System.Resources.ResXFileRef, System.Windows.Forms">
137+
<value>..\Resources\orig_render_main.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
138+
</data>
139+
<data name="originalRenderTitle" type="System.Resources.ResXFileRef, System.Windows.Forms">
140+
<value>..\Resources\orig_render_title.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
141+
</data>
133142
<data name="unarcphp" type="System.Resources.ResXFileRef, System.Windows.Forms">
134143
<value>..\Resources\unarc.php;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
135144
</data>
145+
<data name="unlub" type="System.Resources.ResXFileRef, System.Windows.Forms">
146+
<value>..\Resources\unlub.jar;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
147+
</data>
148+
<data name="vulkanRenderGamemode" type="System.Resources.ResXFileRef, System.Windows.Forms">
149+
<value>..\Resources\render_gamemode.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
150+
</data>
151+
<data name="vulkanRenderMain" type="System.Resources.ResXFileRef, System.Windows.Forms">
152+
<value>..\Resources\render_main.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
153+
</data>
154+
<data name="vulkanRenderTitle" type="System.Resources.ResXFileRef, System.Windows.Forms">
155+
<value>..\Resources\render_title.lub;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
156+
</data>
136157
</root>
1.91 KB
Binary file not shown.
4.48 KB
Binary file not shown.
1.16 KB
Binary file not shown.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
script.reload("scripts/render/render_utility.lua")
2+
GenerateCSMLevels = 4
3+
GenerateCSMObjects = 3
4+
EnableRasterizeBlur = true
5+
function PrepareColorRender(_ARG_0_)
6+
end
7+
function PostColorRender(_ARG_0_, _ARG_1_, _ARG_2_)
8+
end
9+
function RenderAfterPostprocess(_ARG_0_)
10+
end
11+
function Build(_ARG_0_)
12+
--CreateCSM(_ARG_0_)
13+
--RenderCSM(_ARG_0_, GenerateCSMLevels, GenerateCSMObjects)
14+
ApplySceneParams(_ARG_0_)
15+
RenderReflection(_ARG_0_)
16+
PrepareColorRender(_ARG_0_)
17+
SetFrameBufferObjectOnce(_ARG_0_, "framebuffer0", "depthstencil", "all", 0, 0, 0, 0)
18+
SetViewport(_ARG_0_, 0, 0, GetSurfaceWidth(_ARG_0_, "framebuffer0"), (GetSurfaceHeight(_ARG_0_, "framebuffer0")))
19+
SetCurrentCamera(_ARG_0_, "main")
20+
AutoSetAspect(_ARG_0_)
21+
Zpass(_ARG_0_, "depthbuffer0", "depthstencil", "main")
22+
RenderMain(_ARG_0_, "framebuffer0", "depthstencil")
23+
PostColorRender(_ARG_0_)
24+
Capture(_ARG_0_, "framebuffer0")
25+
MakeBloom(_ARG_0_)
26+
ApplyBloom(_ARG_0_)
27+
SetCurrentCamera(_ARG_0_, "mainglare")
28+
AutoSetAspect(_ARG_0_)
29+
RenderWorld(_ARG_0_, "glare")
30+
RenderPostprocess(_ARG_0_, "framebuffer0")
31+
SetFrameBufferObject(_ARG_0_, "postprocess_output", "depthstencil", "none", 0, 0, 0, 0)
32+
SetCurrentCamera(_ARG_0_, "mainafterpp")
33+
AutoSetAspect(_ARG_0_)
34+
RenderWorld(_ARG_0_, "afterpp", "all", "transparent")
35+
SetFrameBufferObjectOnce(_ARG_0_, "backbuffer", "null", "color", 0, 0, 0, 0)
36+
SetFrameBufferObject(_ARG_0_, "backbuffer", "null", "none", 0, 0, 0, 0)
37+
ResetViewport(_ARG_0_)
38+
if EnableRasterizeBlur then
39+
RasterizeBurnoutBlur(_ARG_0_, "postprocess_output", "main", 1)
40+
else
41+
Rasterize(_ARG_0_, "postprocess_output")
42+
end
43+
RenderAfterPostprocess(_ARG_0_)
44+
Render2D(_ARG_0_)
45+
end
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
WorldContent0 = "sectors"
2+
WorldContent1 = "drawables"
3+
EnableZprepass = false
4+
StencilClearFlag = false
5+
MSAAType = "2x"
6+
function RenderMainForSingle(_ARG_0_, _ARG_1_, _ARG_2_)
7+
--if GetPlatform() == "xbox360" and MSAAType ~= "1x" then
8+
--CreateTexture(_ARG_0_, "framebuffer_hdr", GetSurfaceWidth(_ARG_0_, _ARG_1_), GetSurfaceHeight(_ARG_0_, _ARG_1_), 1, "HDR")
9+
--CreateTexture(_ARG_0_, _ARG_2_ .. "_texture", GetSurfaceWidth(_ARG_0_, _ARG_1_), GetSurfaceHeight(_ARG_0_, _ARG_1_), 1, GetDepthStencilFormat(_ARG_0_))
10+
--end
11+
SetCurrentCamera(_ARG_0_, "main")
12+
AutoSetAspect(_ARG_0_)
13+
if GetPlatform() == "xbox360" then
14+
--if ZpassFlag and MSAAType == "1x" then
15+
--else
16+
--end
17+
SetAutoZPass(_ARG_0_, EnableZprepass)
18+
--SetFrameBufferObject(_ARG_0_, "framebuffer_hdr", _ARG_2_ .. "_texture", "all", 0, 0, 0, 0, MSAAType)
19+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "all", 0, 0, 0, 0)
20+
else
21+
if ZpassFlag then
22+
elseif StencilClearFlag then
23+
else
24+
end
25+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "color_depth", 0, 0, 0, 0)
26+
end
27+
SetZMode(_ARG_0_, "lessequalon")
28+
LockZMode(_ARG_0_, "true")
29+
SetBlendMode(_ARG_0_, "opaque")
30+
LockBlendMode(_ARG_0_, "true")
31+
RenderWorld(_ARG_0_, "main", WorldContent0, "opaque")
32+
RenderWorld(_ARG_0_, "main", WorldContent1, "opaque")
33+
RenderWorld(_ARG_0_, "main", WorldContent0, "punchthrough")
34+
RenderWorld(_ARG_0_, "main", WorldContent1, "punchthrough")
35+
LockZMode(_ARG_0_, "false")
36+
LockBlendMode(_ARG_0_, "false")
37+
SetZMode(_ARG_0_, "lessequaloff")
38+
LockZMode(_ARG_0_, "true")
39+
SetCurrentCamera(_ARG_0_, "mainsky")
40+
AutoSetAspect(_ARG_0_)
41+
RenderWorld(_ARG_0_, "sky")
42+
SetCurrentCamera(_ARG_0_, "mainpsi")
43+
AutoSetAspect(_ARG_0_)
44+
SetBlendMode(_ARG_0_, "add")
45+
LockBlendMode(_ARG_0_, "true")
46+
SetConstantShader(_ARG_0_, "psi", "psi_effect", "DefaultTechnique")
47+
RenderWorld(_ARG_0_, "psi")
48+
SetConstantShader(_ARG_0_, "psi", "null")
49+
LockBlendMode(_ARG_0_, "false")
50+
LockZMode(_ARG_0_, "false")
51+
SetCurrentCamera(_ARG_0_, "mainxp")
52+
AutoSetAspect(_ARG_0_)
53+
RenderWorld(_ARG_0_, "transparent", "sectors")
54+
SetCurrentCamera(_ARG_0_, "main")
55+
AutoSetAspect(_ARG_0_)
56+
RenderWorld(_ARG_0_, "main", "all", "transparent")
57+
if GetPlatform() == "xbox360" then
58+
SetAutoZPass(_ARG_0_, false)
59+
if MSAAType ~= "1x" then
60+
--Resolve(_ARG_0_, "null", _ARG_2_ .. "_texture")
61+
--SetFrameBufferObject(_ARG_0_, "framebuffer_hdr", _ARG_2_ .. "_texture", "none", 0, 0, 0, 0)--, "1x", "not_resolved")
62+
--if StencilClearFlag then
63+
--end
64+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "stencil", 0, 0, 0, 0)
65+
elseif EnableZprepass then
66+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "none", 0, 0, 0, 0)--, "not_restored")
67+
end
68+
end
69+
if GetRegistry(_ARG_0_, "NotUseParticle") == false then
70+
RenderSpanverse(_ARG_0_)
71+
RenderGE1Particle(_ARG_0_, 1)
72+
RenderGE1Particle(_ARG_0_, 2)
73+
RenderGE1Particle(_ARG_0_, 3)
74+
end
75+
SetCurrentCamera(_ARG_0_, "mainxp")
76+
AutoSetAspect(_ARG_0_)
77+
RenderWorld(_ARG_0_, "transparent", "drawables")
78+
BeginBlock(_ARG_0_, "capture0", "stop")
79+
if GetPlatform() == "xbox360" then
80+
Resolve(_ARG_0_, "framebuffer_tile")
81+
else
82+
Capture(_ARG_0_, _ARG_1_, 1)
83+
end
84+
BeginBlock(_ARG_0_, "oc", "stop")
85+
SetCurrentCamera(_ARG_0_, "mainoc")
86+
AutoSetAspect(_ARG_0_)
87+
SetZMode(_ARG_0_, "lessequalon")
88+
SetBlendMode(_ARG_0_, "opaque")
89+
LockZMode(_ARG_0_, "true")
90+
LockBlendMode(_ARG_0_, "true")
91+
SetTexture(_ARG_0_, 0, "enemy/common/en_ocnoise.dds", "wrap", "wrap", "linear")
92+
SetConstantShader(_ARG_0_, "oc", "OpticalCamouflage", "OpticalCamouflage")
93+
RenderWorld(_ARG_0_, "oc", "all", "all", "depth")
94+
SetConstantShader(_ARG_0_, "oc", "null")
95+
LockZMode(_ARG_0_, "false")
96+
LockBlendMode(_ARG_0_, "false")
97+
EndBlock(_ARG_0_)
98+
if GetRegistry(_ARG_0_, "NotUseParticle") == false then
99+
RenderGE1Particle(_ARG_0_, 1)
100+
RenderGE1Particle(_ARG_0_, 2)
101+
RenderGE1Particle(_ARG_0_, 3)
102+
RenderGE1Particle(_ARG_0_, 4)
103+
RenderGE1Particle(_ARG_0_, 5)
104+
end
105+
EndBlock(_ARG_0_)
106+
end
107+
function RenderMainForMulti(_ARG_0_, _ARG_1_, _ARG_2_)
108+
SetCurrentCamera(_ARG_0_, "main")
109+
AutoSetAspect(_ARG_0_)
110+
if GetPlatform() == "xbox360" then
111+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "all", 0, 0, 0, 0)
112+
SetZMode(_ARG_0_, "lessequalon")
113+
elseif GetPlatform() == "ps3" then
114+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "color_depth", 0, 0, 0, 0)
115+
SetZMode(_ARG_0_, "lessequalon")
116+
else
117+
SetFrameBufferObject(_ARG_0_, _ARG_1_, _ARG_2_, "all", 0, 0, 0, 0)
118+
SetZMode(_ARG_0_, "lessequalon")
119+
end
120+
LockZMode(_ARG_0_, "true")
121+
SetBlendMode(_ARG_0_, "opaque")
122+
LockBlendMode(_ARG_0_, "true")
123+
RenderWorld(_ARG_0_, "main", "all", "opaque")
124+
RenderWorld(_ARG_0_, "main", "all", "punchthrough")
125+
LockZMode(_ARG_0_, "false")
126+
LockBlendMode(_ARG_0_, "false")
127+
SetZMode(_ARG_0_, "lessequaloff")
128+
LockZMode(_ARG_0_, "true")
129+
SetCurrentCamera(_ARG_0_, "mainsky")
130+
AutoSetAspect(_ARG_0_)
131+
RenderWorld(_ARG_0_, "sky")
132+
SetCurrentCamera(_ARG_0_, "mainpsi")
133+
AutoSetAspect(_ARG_0_)
134+
SetBlendMode(_ARG_0_, "add")
135+
LockBlendMode(_ARG_0_, "true")
136+
SetConstantShader(_ARG_0_, "psi", "psi_effect", "DefaultTechnique")
137+
RenderWorld(_ARG_0_, "psi")
138+
SetConstantShader(_ARG_0_, "psi", "null")
139+
LockBlendMode(_ARG_0_, "false")
140+
LockZMode(_ARG_0_, "false")
141+
SetCurrentCamera(_ARG_0_, "mainxp")
142+
AutoSetAspect(_ARG_0_)
143+
RenderWorld(_ARG_0_, "transparent")
144+
SetCurrentCamera(_ARG_0_, "main")
145+
AutoSetAspect(_ARG_0_)
146+
RenderWorld(_ARG_0_, "main", "all", "transparent")
147+
if GetRegistry(_ARG_0_, "NotUseParticle") == false then
148+
RenderSpanverse(_ARG_0_)
149+
RenderGE1Particle(_ARG_0_, 1)
150+
RenderGE1Particle(_ARG_0_, 2)
151+
RenderGE1Particle(_ARG_0_, 3)
152+
RenderGE1Particle(_ARG_0_, 4)
153+
RenderGE1Particle(_ARG_0_, 5)
154+
end
155+
end

0 commit comments

Comments
 (0)