Misc changes.
This commit is contained in:
parent
f979df89d1
commit
92c5245e79
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
||||
</startup>
|
||||
</configuration>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -9,9 +9,10 @@
|
|||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>BevelGenerator</RootNamespace>
|
||||
<AssemblyName>BevelGenerator</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<TargetFrameworkProfile />
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
@ -33,9 +34,8 @@
|
|||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="RobloxFileFormat, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>Packages\RobloxFileFormat.dll</HintPath>
|
||||
<Reference Include="RobloxFileFormat">
|
||||
<HintPath>..\..\Roblox-File-Format\RobloxFileFormat.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
|
|
|||
|
|
@ -374,6 +374,46 @@ namespace BevelGenerator
|
|||
NumLODs += 1;
|
||||
}
|
||||
|
||||
public void SaveV1(Stream stream)
|
||||
{
|
||||
using (StringWriter writer = new StringWriter())
|
||||
{
|
||||
writer.WriteLine("version 1.00");
|
||||
writer.WriteLine(NumFaces);
|
||||
|
||||
for (int i = 0; i < NumFaces; i++)
|
||||
{
|
||||
var face = Faces[i];
|
||||
|
||||
for (int j = 0; j < 3; j++)
|
||||
{
|
||||
var vert = Verts[face[j]];
|
||||
|
||||
writer.Write('[');
|
||||
writer.Write(vert.Position * 2f);
|
||||
|
||||
writer.Write("][");
|
||||
writer.Write(vert.Normal);
|
||||
|
||||
writer.Write("][");
|
||||
writer.Write(vert.UV.X);
|
||||
|
||||
writer.Write(", ");
|
||||
writer.Write(vert.UV.Y);
|
||||
|
||||
writer.Write(", 0]");
|
||||
}
|
||||
}
|
||||
|
||||
using (BinaryWriter bin = new BinaryWriter(stream))
|
||||
{
|
||||
string file = writer.ToString();
|
||||
byte[] mesh = Encoding.ASCII.GetBytes(file);
|
||||
stream.Write(mesh, 0, mesh.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Save(Stream stream)
|
||||
{
|
||||
const ushort HeaderSize = 16;
|
||||
|
|
@ -491,6 +531,7 @@ namespace BevelGenerator
|
|||
{
|
||||
float[] input = buffer
|
||||
.Skip(1)
|
||||
.Where(str => !string.IsNullOrEmpty(str))
|
||||
.Select(float.Parse)
|
||||
.ToArray();
|
||||
|
||||
|
|
|
|||
|
|
@ -217,7 +217,6 @@ namespace BevelGenerator
|
|||
RenderFidelity = RenderFidelity.Automatic,
|
||||
|
||||
PhysicsData = union.PhysicsData,
|
||||
CollisionFidelity = CollisionFidelity.Box,
|
||||
PhysicalConfigData = union.PhysicalConfigData,
|
||||
};
|
||||
|
||||
|
|
@ -256,7 +255,7 @@ namespace BevelGenerator
|
|||
using (FileStream file = File.OpenWrite(filePath))
|
||||
{
|
||||
file.SetLength(0);
|
||||
mesh.Save(file);
|
||||
mesh.SaveV1(file);
|
||||
}
|
||||
|
||||
return mesh;
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ namespace BevelGenerator.Properties {
|
|||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
|
|
|||
6
core.lua
6
core.lua
|
|
@ -20,6 +20,12 @@ local initMsg = Instance.new("Message")
|
|||
initMsg.Text = "INITIALIZING..."
|
||||
initMsg.Parent = workspace
|
||||
|
||||
spawn(function ()
|
||||
local StarterPlayerScripts = StarterPlayer:WaitForChild("StarterPlayerScripts")
|
||||
local loader = StarterPlayerScripts:WaitForChild("PlayerScriptsLoader")
|
||||
loader.Disabled = true
|
||||
end)
|
||||
|
||||
if not workspace.FilteringEnabled then
|
||||
initMsg.Text = "FATAL: Workspace.FilteringEnabled MUST be set to true!!!"
|
||||
return 0
|
||||
|
|
|
|||
|
|
@ -1,58 +1,53 @@
|
|||
{
|
||||
"name": "SNZ_CORE",
|
||||
"name": "MainModule",
|
||||
|
||||
"tree":
|
||||
{
|
||||
"$className": "Folder",
|
||||
"$path": "core.lua",
|
||||
|
||||
"MainModule":
|
||||
"ReplicatedFirst":
|
||||
{
|
||||
"$path": "core.lua",
|
||||
|
||||
"ReplicatedFirst":
|
||||
"$className": "Folder",
|
||||
|
||||
"JoinScript":
|
||||
{
|
||||
"$className": "Folder",
|
||||
"$path": "join.client.lua",
|
||||
|
||||
"JoinScript":
|
||||
"UI":
|
||||
{
|
||||
"$path": "join.client.lua",
|
||||
|
||||
"UI":
|
||||
{
|
||||
"$path": "UI"
|
||||
}
|
||||
"$path": "UI"
|
||||
}
|
||||
},
|
||||
|
||||
"ReplicatedStorage":
|
||||
{
|
||||
"$path": "Shared"
|
||||
},
|
||||
|
||||
"ServerStorage":
|
||||
{
|
||||
"$path": "Server/Resources",
|
||||
|
||||
"StandardTools":
|
||||
{
|
||||
"$path": "Tools"
|
||||
}
|
||||
},
|
||||
|
||||
"ServerScriptService":
|
||||
{
|
||||
"$path": "Server/Scripts"
|
||||
},
|
||||
|
||||
"StarterCharacterScripts":
|
||||
{
|
||||
"$path": "Player"
|
||||
},
|
||||
|
||||
"StarterPlayerScripts":
|
||||
{
|
||||
"$path": "Client"
|
||||
}
|
||||
},
|
||||
|
||||
"ReplicatedStorage":
|
||||
{
|
||||
"$path": "Shared"
|
||||
},
|
||||
|
||||
"ServerStorage":
|
||||
{
|
||||
"$path": "Server/Resources",
|
||||
|
||||
"StandardTools":
|
||||
{
|
||||
"$path": "Tools"
|
||||
}
|
||||
},
|
||||
|
||||
"ServerScriptService":
|
||||
{
|
||||
"$path": "Server/Scripts"
|
||||
},
|
||||
|
||||
"StarterCharacterScripts":
|
||||
{
|
||||
"$path": "Player"
|
||||
},
|
||||
|
||||
"StarterPlayerScripts":
|
||||
{
|
||||
"$path": "Client"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,45 +1,40 @@
|
|||
{
|
||||
"name": "SNZ_SHARED",
|
||||
"name": "MainModule",
|
||||
|
||||
"tree":
|
||||
{
|
||||
"$className": "Folder",
|
||||
"$path": "shared.lua",
|
||||
|
||||
"MainModule":
|
||||
"ReplicatedStorage":
|
||||
{
|
||||
"$path": "shared.lua",
|
||||
"$className": "Folder",
|
||||
|
||||
"ReplicatedStorage":
|
||||
"ItemData": { "$path": "Shared/ItemData" },
|
||||
"AssetUtil": { "$path": "Shared/AssetUtil.lua" },
|
||||
"BrickColors": { "$path": "Shared/BrickColors.lua" },
|
||||
"PlaceData": { "$path": "Shared/PlaceData.lua" },
|
||||
|
||||
"SharedScripts":
|
||||
{
|
||||
"$className": "Folder",
|
||||
|
||||
"ItemData": { "$path": "Shared/ItemData" },
|
||||
"AssetUtil": { "$path": "Shared/AssetUtil.lua" },
|
||||
"BrickColors": { "$path": "Shared/BrickColors.lua" },
|
||||
"PlaceData": { "$path": "Shared/PlaceData.lua" },
|
||||
"Sky": { "$path": "Client/Sky" },
|
||||
"Moon": { "$path": "Client/Moon" },
|
||||
"SunRays": { "$path": "Client/SunRays" },
|
||||
|
||||
"SharedScripts":
|
||||
{
|
||||
"$className": "Folder",
|
||||
|
||||
"Sky": { "$path": "Client/Sky" },
|
||||
"Moon": { "$path": "Client/Moon" },
|
||||
"SunRays": { "$path": "Client/SunRays" },
|
||||
|
||||
"Mouse": { "$path": "UI/Mouse/Mouse.client.lua" },
|
||||
"FpsCap": { "$path": "Client/FpsCap.client.lua" },
|
||||
"LensFlare": { "$path": "Client/LensFlare.client.lua" }
|
||||
}
|
||||
},
|
||||
"Mouse": { "$path": "UI/Mouse/Mouse.client.lua" },
|
||||
"FpsCap": { "$path": "Client/FpsCap.client.lua" },
|
||||
"LensFlare": { "$path": "Client/LensFlare.client.lua" }
|
||||
}
|
||||
},
|
||||
|
||||
"ServerStorage":
|
||||
{
|
||||
"$className": "Folder",
|
||||
|
||||
"ServerStorage":
|
||||
"PlayerDataStore":
|
||||
{
|
||||
"$className": "Folder",
|
||||
|
||||
"PlayerDataStore":
|
||||
{
|
||||
"$path": "Server/Resources/PlayerDataStore.lua"
|
||||
}
|
||||
"$path": "Server/Resources/PlayerDataStore.lua"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue