GithubHelp home page GithubHelp logo

Active Texture Management about netkan HOT 12 CLOSED

ksp-ckan avatar ksp-ckan commented on July 19, 2024
Active Texture Management

from netkan.

Comments (12)

rbray89 avatar rbray89 commented on July 19, 2024

I really should do the same thing I'm planning in EVE... Split the Configs from the binaries.

from netkan.

Ippo343 avatar Ippo343 commented on July 19, 2024

I was also thinking that we could use the provides mechanism to have the user select a package. Off to test!

Update: we could have 4 packages, each one providing ActiveTextureManagement. I'm still not sure how we could extract the different downloads from the release though. If someone more skilled than me can take a look, that'd be great :)

from netkan.

DuoDex avatar DuoDex commented on July 19, 2024

Eugh, that's really ugly. I don't know what can be done about this...GitHub doesn't really provide a mechanism for differentiating releases.

from netkan.

Almagnus1 avatar Almagnus1 commented on July 19, 2024

I think what rbray is thinking is mimicking what TACLS did with their configs, so the x86/x64 mods would require a config loaded, and the user would have to choose one.

The only gotcha is writing the metafile so that the x86 and x64 versions of ATM are mutually exclusive.

from netkan.

tips48 avatar tips48 commented on July 19, 2024

I think this is one of the last "big" mods we are missing, so it'd be cool to try and figure this out.

from netkan.

Almagnus1 avatar Almagnus1 commented on July 19, 2024

Taking a note from TACLS, here's a way to get all four variations of the mod up, but allow other mods to point to "Active Texture Management".

This starts by including the following JSON fragments in the x86 and x64 mods:

{
    "identifier"     : "ATM-x86",
    "name"           : "Active Texture Management (32 Bit)",
    "provides"       : [ "ATM" ],
    "conflicts"      : [ { "name" : "ATM" } ],
    "depends"        : [ { "name" : "ATM-Config" } ]
}

{
    "identifier"     : "ATM-x64",
    "name"           : "Active Texture Management (64 Bit)",
    "provides"       : [ "ATM" ],
    "conflicts"      : [ { "name" : "ATM" } ],
    "depends"        : [ { "name" : "ATM-Config" } ]
}

The key here is the provide and conflict values, which allows another mod to specify that they need Active Texture Management, and not care about the specifics.

You would need to use the following fragments for the configs:

{
    "identifier"     : "ATM-config-Basic",
    "name"           : "Active Texture Management Basic Config",
    "provides"       : [ "ATM-config" ],
    "conflicts"      : [ { "name" : "ATM-Config" } ]
}

{
    "identifier"     : "ATM-config-Aggressive",
    "name"           : "Active Texture Management Aggressive Config",
    "provides"       : [ "ATM-config" ],
    "conflicts"      : [ { "name" : "ATM-Config" } ]
}

So pulling it all together, this gives mods flexibility to recommend just Active Texture Management, or go with whichever configuration is needed.

I can't speak to the rest of the settings for the configs as I haven't really looked that deeply into them at the time of writing, but this should help with the CKAN side of things.

from netkan.

pjf avatar pjf commented on July 19, 2024

@Almagnus1 : Thank you! I'm catching up on all things CKAN and your suggestions look very good! Although my understanding is the x64 builds are for Windows-x64 only, so I'd be inclined to have the identifier be ATM-win-x64 or similar so folks running Linux x64 (like myself) don't try to install them by accident. :) (My understanding here may also be wrong, so please correct me if it is!)

We could probably index these manually right now, and @rbray89 has just released ATM 4-0 which looks awesome. Having a separate zipfile contain the config(s) would be nice, but as the files themselves are under 60k in length it's hardly a big deal if we end up downloading an extra file to make the metadata look nicer. (I'm assuming the only difference between x64 and x86 are the binaries, and the config itself is identical in both.)

For full NetKAN indexing, we'll need a way to specify which asset in a release should be indexed, something like #/ckan/github/rbray89/ActiveTextureManagement/asset/x86-Basic-Release.zip.


References:

KSP-CKAN/CKAN#489 also has a proposal whereby we could have the same identifier but different documents based upon architecture, although that wouldn't be in until the v1.4 spec at least.

KSP-CKAN/CKAN#259 is a proposal to extend NetKAN to be able to index source releases. Being able to path to an asset would likely involve similar changes to the code.

from netkan.

madlemur avatar madlemur commented on July 19, 2024

@pjf : I don't think the 64-bit builds are Windows-specific. At least, they don't break in my 64-bit Linux system. They are all OS-agnostic .net code, and should be fine on Win, Linux or OSX of the proper bitty-ness... ;) Looking at the source, the difference is just in which csharp.dll and unity.dll they are built against.

from netkan.

rbray89 avatar rbray89 commented on July 19, 2024

Exactly. I wasn't entirely sure, but I suspect that there may be some difference in the 64-bit dll and went ahead and setup my environment to build against both. Might be a tad overkill, but it is safer.

from netkan.

madlemur avatar madlemur commented on July 19, 2024

Oh, I'm reasonably sure there's a difference in the 32 and 64 bit code, but pjf was talking about the 64-bit being Windows only, which I do not believe is true.

from netkan.

pjf avatar pjf commented on July 19, 2024

I don't think the 64-bit builds are Windows-specific. At least, they don't break in my 64-bit Linux system.

This is good to know. Mainly I was flagging this because winx64 seems to be the problem child at the moment, and because for Linux, the same csharp and unity assemblies are used regardless of whether 32 or 64 bit KSP is used.

I know that both Linux and Windows use unity 4.5.2 for KSP 0.25, but I have no idea if the assemblies are different for the experimental 64-bit Windows build. (It wouldn't surprise me compiling against the different assemblies resulted in the exact same code as I expect all the method signatures to remain the same, but I'm not that knowledgeable with the guts of .NET.)

from netkan.

AlexanderDzhoganov avatar AlexanderDzhoganov commented on July 19, 2024

ATM is now on CKAN, enjoy :)

from netkan.

Related Issues (20)

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.