乙ᗰᗩᑎ350᙭
乙ᗰᗩᑎ350᙭
CC#
Created by 乙ᗰᗩᑎ350᙭ on 10/20/2023 in #help
✅ Get build output directory at compile time?
you should just be able to clone the repo onto a new device, build the project, anc have it work out of the box
6 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 10/20/2023 in #help
✅ Get build output directory at compile time?
And then added the output BuildDirectory.cs to the gitignore and added some properties to the csproj to make it rebuild automatically
6 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 10/20/2023 in #help
✅ Get build output directory at compile time?
I ended up making a T4 template BuildDirectory.tt containing
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ output extension=".cs" #>
<#
string path = this.Host.ResolvePath("bin\\Output");
#>
namespace PUT_NAMESPACE_OF_PROJECT_HERE
{
public class BuildDirectory
{
public static string path = @"<#= path #>";
}
}
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ output extension=".cs" #>
<#
string path = this.Host.ResolvePath("bin\\Output");
#>
namespace PUT_NAMESPACE_OF_PROJECT_HERE
{
public class BuildDirectory
{
public static string path = @"<#= path #>";
}
}
6 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Text Mesh Pro text not rendering in Unity mod
anyone?
7 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
I mean, I don't think so? I'm already creating/accessing the file from the same assembly, not to mention that I'm storing it in the game's file folder that it should have full access to
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
unifont = new Font("C:\\Program Files(x86)\\Steam\\steamapps\\common\\Human Fall Flat\\BepInEx\\plugins\\unifont.otf");
unifont = new Font("C:\\Program Files(x86)\\Steam\\steamapps\\common\\Human Fall Flat\\BepInEx\\plugins\\unifont.otf");
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
this seems to be an issue with the Unity Font stuff 😦
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
nope, fails with hardcoded path
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
Ok @ReactiveVeina made some changes... Can confirm it creates an actual working .otf file at the path of variable file... But the Font object created from it doesn't seem to work...
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
Why would it make up a path that doesn't exist lol?
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
And even then, there's no otf files in my Temp directory
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
well... ZACKPN-1 isn't a User...
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
lemme check the file contents
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
So we do have a file
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
will do
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
Here, lemme print the value of file
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
40 replies
CC#
Created by 乙ᗰᗩᑎ350᙭ on 7/2/2023 in #help
❔ Loading a Unity Font object from an assembly's Embedded Resource
correct, it's a path
40 replies