Giter Club home page Giter Club logo

Comments (9)

ducakar avatar ducakar commented on August 29, 2024

No, it compiles just fine with KSP 1.12.x. Check that all dependencies point correctly to assemblies in your KSP directory.

And what Reload() function are you talking about? There is no such function in the source.

from texturereplacer.

unquietwiki avatar unquietwiki commented on August 29, 2024

Hey @ducakar sorry for the confusion. I meant the Recreate constructor: it expects a TextureMap, but doesn't get one. I'm also using the correct references, and even tried adding ones that are in the MechJeb project (started messing around with that code too & submitted some stuff). As for Array.Fill, Framework 4.8 it got stuff from the .NET Core 2.x work, but I don't think it got the functions from it.

https://github.com/ducakar/TextureReplacer/blob/master/TextureReplacer/Mapper.cs

https://docs.microsoft.com/en-us/dotnet/api/system.array.fill?view=net-6.0

from texturereplacer.

unquietwiki avatar unquietwiki commented on August 29, 2024

Hey @ducakar I had a chance to revisit this. I applied some research I did trying to figure out how other addons work, and came up with some changes you may want to test out. Regarding my original concerns, I did find the Array.Fill implementation the .NET folks use, and I tried converting the KeyValuePair calls to Dictionary calls; apparently both of those are a part of .NET Standard 2.1 & later; wherein Unity 2019 supports .NET Framework 4.x and Standard 2.0.

https://github.com/unquietwiki/TextureReplacer

from texturereplacer.

ducakar avatar ducakar commented on August 29, 2024

Unity doesn't use .NET Framework but Mono and Array.Fill() works with Mono targeting .NET Framework 4.8 profile.

from texturereplacer.

unquietwiki avatar unquietwiki commented on August 29, 2024

@ducakar are you using Unity, MonoDevelop, VS Studio, or ReSharper to do your work? I can report VS 2022 with .NET 4.8 target doesn't work for the functions after .NET Standard 2.0 or Core 2.0 (there are a bunch of Nugets that have backported functions).

from texturereplacer.

ducakar avatar ducakar commented on August 29, 2024

Arch Linux + Mono 6.13 + Rider 2021.3 (or VS Code + C# plugin). I currently don't have Unity installed, I only need it to build the shaders.

from texturereplacer.

unquietwiki avatar unquietwiki commented on August 29, 2024

from texturereplacer.

ducakar avatar ducakar commented on August 29, 2024

I can replace the two Array.Fill() calls with foreach loops if that's all that's required to build in on Windows.

from texturereplacer.

unquietwiki avatar unquietwiki commented on August 29, 2024

from texturereplacer.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.