Author Topic: SoftInc Modder by amensch [4.02]  (Read 25336 times)

0 Members and 1 Guest are viewing this topic.

December 31, 2015, 03:02:26 PM
Reply #15

Ceraphix

  • *
  • Information
  • Member
  • Posts: 20
    • View Profile
Amensch is pretty trust-worthy in my book.. he's put a lot of time into helping this community already. (Check out his mods, they're great!) And there's still A LOT more to come from Khornel.. so I'm pretty excited to see what Amensch will bring with it.

December 31, 2015, 10:02:52 PM
Reply #16

amensch

  • *
  • Information
  • Member
  • Posts: 149
  • Live a life worth remembering.
    • View Profile
;) Hey, could I have da source code pls ? bous ? plsss ? if not thats fine just want to know how you made it ;) . . .


Yeah, you're going to get it ;)
I'll upload a link to GitHub once I'm done uploading it :)


Link to the Files: https://github.com/mykerbal/SoftInc-Modder
« Last Edit: January 01, 2016, 02:31:06 AM by amensch »

January 02, 2016, 01:08:43 AM
Reply #17

Catley $$

  • *
  • Information
  • Member
  • Posts: 8
  • De Wanna Wanga
    • View Profile
;) Hey, could I have da source code pls ? bous ? plsss ? if not thats fine just want to know how you made it ;) . . .


Yeah, you're going to get it ;)
I'll upload a link to GitHub once I'm done uploading it :)


Link to the Files: https://github.com/mykerbal/SoftInc-Modder

I see you used XML writer :P . . .
Just wondering what everyone does these days . . .

January 02, 2016, 01:10:05 AM
Reply #18

Catley $$

  • *
  • Information
  • Member
  • Posts: 8
  • De Wanna Wanga
    • View Profile
So someone trusted him so much to start it? Maybe you guys got some Screenshots then for the users that dont trust as easy other people? :P

It's fine, I'm pretty sure the installer was made through visual studio . . . Unless Microsoft is giving people viruses !!!!! D:

January 02, 2016, 03:20:12 PM
Reply #19

JJ4824

  • *
  • Information
  • Member
  • Posts: 13
    • View Profile

January 02, 2016, 03:51:16 PM
Reply #20

amensch

  • *
  • Information
  • Member
  • Posts: 149
  • Live a life worth remembering.
    • View Profile
How do i open the program?? :-\


If you can't find it when you search, you can go to the folder where you installed it.
The default folder should be "C:\Program Files x86\Amensch\exe\". ;)

January 03, 2016, 02:36:46 AM
Reply #21

Perfect

  • *
  • Information
  • Newbie
  • Posts: 1
    • View Profile
My AntiVirus claims it is a virus.

January 03, 2016, 02:48:38 AM
Reply #22

amensch

  • *
  • Information
  • Member
  • Posts: 149
  • Live a life worth remembering.
    • View Profile
My AntiVirus claims it is a virus.


If you don't trust me,
just don't use it.
If you know coding, you can go and see the source code for it on GitHub ;)

January 09, 2016, 12:15:13 AM
Reply #23

JJ4824

  • *
  • Information
  • Member
  • Posts: 13
    • View Profile
How do i open the program?? :-\


If you can't find it when you search, you can go to the folder where you installed it.
The default folder should be "C:\Program Files x86\Amensch\exe\". ;)

Thanks !!!!!!!!!!!!!!!!

February 09, 2016, 02:10:31 PM
Reply #24

MyLastSong18

  • *
  • Information
  • Newbie
  • Posts: 4
    • View Profile
Any news on updates for Alpha 7? Would really love to mess around with this.  :)

February 10, 2016, 12:48:48 AM
Reply #25

amensch

  • *
  • Information
  • Member
  • Posts: 149
  • Live a life worth remembering.
    • View Profile
Any news on updates for Alpha 7? Would really love to mess around with this.  :)


I'm trying to update it as soon as possible ;)

March 27, 2016, 02:57:47 AM
Reply #26

jdphenix

  • *
  • Information
  • Member
  • Posts: 19
    • View Profile
If you're interested, I've got a serialization and dto component in my validator that can serialize everything but software types compatible with alpha 8.

I'm not intending to have it output modifications, but we could turn it into a community resource for modding tools if you're interested.

March 27, 2016, 08:00:13 PM
Reply #27

amensch

  • *
  • Information
  • Member
  • Posts: 149
  • Live a life worth remembering.
    • View Profile
If you're interested, I've got a serialization and dto component in my validator that can serialize everything but software types compatible with alpha 8.

I'm not intending to have it output modifications, but we could turn it into a community resource for modding tools if you're interested.


Yeah sure, would be great :)


My Idea would've been either to have one big tool or both separate but in one package.
Your Idea on it?


March 27, 2016, 10:03:59 PM
Reply #28

jdphenix

  • *
  • Information
  • Member
  • Posts: 19
    • View Profile
Cool deal. I'll have to get software type serialization up to snuff but I don't think that should take too long.

Ultimately I would be splitting it out of the validator's code base into a separate project and having a binary you could reference on Nuget (or just publishing the DLL).  https://github.com/jdphenix/SoftwareincValidator/issues/25

Regarding one together application, my intent behind the validator is to be replace the part of the mod making workflow that involves making a change, loading up Software Inc, verifying it loads and it's what you want, and if it's not, going back and repeating the cycle. I would fully support you consuming that program as well and splitting out a list of validations. I'm already planning on doing something like that - https://github.com/jdphenix/SoftwareincValidator/issues/26 and https://github.com/jdphenix/SoftwareincValidator/issues/24.

March 30, 2016, 04:14:59 AM
Reply #29

jdphenix

  • *
  • Information
  • Member
  • Posts: 19
    • View Profile
I have a release ready for preliminary use. Note the API is not 100% stable (primary the raw arrays on the SoftincModification and contained representation).

https://github.com/jdphenix/SoftwareincValidator/releases/tag/v0.2.0005

Here'a a short example of how to use it, which should get you started. I'll probably take a look at your app tomorrow or Thursday and see if I can get it integrated.

    static void Main(string[] args)
    {
        // Get instances to use for loading and saving.
        var serializer = Components.GetSerializer();
        var loader = Components.GetLoader();


        // The load emits events when loading a mod that are the validation. You can add
        // the ValidationResult objects to a collection to display, or print them out,
        // or whatever else you need to do with them.

        // Note that I have a TODO to expose the validation in an API that doesn't require
        // loading to get the validation results. This will primarily help with starting a
        // new modification.
        // https://github.com/jdphenix/SoftwareincValidator/issues/34
        loader.XmlValidation += (s, e) => Console.WriteLine(e);
        loader.ModComponentValidation += (s, e) => Console.WriteLine(e);

        //Load the modification at the argument given to Load().
        var mod = loader.Load(args[0]);

        // Example of add a new component to a modification - in this case a base
        // feature.
        mod.BaseFeatures.Features.Add(new SoftwareTypeFeature
        {
            Name = "Example Base Feature",
            Category = "Oddball Specialization",
            Description = "This is the description of the feature.",
            Stability = 10,
            Usability = 5,
            Innovation = 5,
            DevTime = 2,
            CodeArt = 1,
            Unlock = 1990
        });

        serializer.Serialize(mod, args[1]);


        // Create a new modification
        var newMod = new SoftincModification("NewMod");
        newMod.Scenarios.Add(new Scenario
        {
            Name = "Example Scenario",
            Money = new [] { 5000 },
            // These and other properties on the representation like them
            // will be abstracted away to a more sane representation.
            // Goals are really a set of dictionaries, and the structure should
            // reflect that.
            Goals = new [] { "Money 50000000,Date 1-1990" }
        });

        serializer.Serialize(newMod, args[1]);
    }