Author Topic: .NET Mod Loader 1.8.8.4b  (Read 21097 times)

0 Members and 1 Guest are viewing this topic.

April 02, 2016, 03:45:03 PM
Read 21097 times

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
.NET Mod Loader
This mod enables you to load .NET DLLs containing Unity code. Examples and FAQs are all included in the download. I'm planning to update it regularly (as soon as I'm able to).
You can write mods both in Visual C# (recommended ) and Visual Basic. The recommended .NET Framework version is 3.5 (other versions may not even work)

Current version: 1.8.8.4b (for Software Inc. Alpha 8.8.4)
Download: MediaFire (1.8.8.4b)

Old Versions:
For Software Inc. Alpha 8.8.4:
1.8.8.4
For Software Inc. Alpha 8.7.3:
1.8.7.3


Available mods:
None yet, the example Cash Mod is included in the download file...

Tutorials/Documentation:
None yet, if you make some, PM me, and I'll post the link here...

If you make a mod and want to share it with us, send me a PM and I'll post the link to your thread here...
« Last Edit: April 02, 2016, 07:03:19 PM by Miporin »

April 02, 2016, 04:23:13 PM
Reply #1

Svamp

  • *
  • Information
  • Member
  • Posts: 34
    • View Profile
Sweet, the current game version is 8.8 tough.
Replacing 8.8 version with this patched 8.7 version crashes my game (Some problems with assets since they have changed since 8.7).
Is the 8.7 game version even accessible on steam?

April 02, 2016, 04:37:02 PM
Reply #2

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
Not sure if it is. As of now, I have some issues with my PayPal account and cannot connect it to Steam, and therefore cannot buy game (yet), so the only version I can access as of now is 8.7.3. However I'm expecting for these to be solved today, so I might create an updated version later today (or tomorrow).

April 02, 2016, 04:48:11 PM
Reply #3

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
Can we test your "CashMod" on the game ? (yes i know, the .dll exists)

(if "yes", where can we find it on the game ?)

April 02, 2016, 04:50:07 PM
Reply #4

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
Shift+K adds 10.000 cash and plays a custom sound. It is mentioned in the code. BTW, besides the DLL, you should also copy both the config and OGG file into the same Mods folder.

April 02, 2016, 04:56:29 PM
Reply #5

Svamp

  • *
  • Information
  • Member
  • Posts: 34
    • View Profile
Good news!
My laptop actually had the 1.8.7.3 version on it, managed to stop Steam from updating it.
The cashmod DLL seems to be working.

April 02, 2016, 04:59:51 PM
Reply #6

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
edit : works fine finally.

i switched my keyboard in QWERTY before launching the game, so it works for me.
« Last Edit: April 02, 2016, 05:16:11 PM by Squalalah »

April 02, 2016, 05:16:11 PM
Reply #7

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
Good news, I managed to update it to 8.8.4. The 8.7.3 is available under Old Versions now.

@Squalalah and Svamp: Thank you both for testing.

April 02, 2016, 05:22:53 PM
Reply #8

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
the mod works on 8.7.3, but when i try on my 8.8.4 (legal steam version), it didn't work (i did the same steps, i didn't see differences between 8.7.3 and 8.8.4's readme.txt)

edit : the mod doesn't load, create Mods folder and debug file.
« Last Edit: April 02, 2016, 05:29:42 PM by Squalalah »

April 02, 2016, 05:28:16 PM
Reply #9

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
Hmmm, maybe I was rushing it out... I noticed when loading a save that the mods will only load after you have clicked the Build button at least once. I'll post a fix when I'm able to find a more reliable solution to this. Till then, this is the only one.

April 02, 2016, 05:34:17 PM
Reply #10

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
as you said, it works for me :

i add some steps (after placing all the files except mod dll for 8.8.4) :

- Launch the game (continue or new game)
- Click on Build Button
- Quit the game
- Place mod dll, xml and sound (if there are) in software_inc data/managed
- launch the game (continue or new game)
- Click on Build button and quit the build mode
- Hold shift & press K (for this mod)
- Enjoy
« Last Edit: April 02, 2016, 05:36:06 PM by Squalalah »

April 02, 2016, 05:50:03 PM
Reply #11

Miporin

  • *
  • Information
  • Member
  • Posts: 12
    • View Profile
Thanks, but I have updated it once more (to version 1.8.8.4b). It should function properly at all times now (without the Build button fix)...

April 02, 2016, 05:54:33 PM
Reply #12

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
thx, i love to rekt myself

float rekt = gameSettings.MyCompany.Money*-1;
gameSettings.MyCompany.MakeTransaction(rekt, Company.TransactionCategory.Royalties);

(you should create a Github repository, it is more usefull for code management and to share your code).


EDIT : your update works fine, doesn't need to click on "Build" button
« Last Edit: April 02, 2016, 05:57:35 PM by Squalalah »

April 02, 2016, 08:14:27 PM
Reply #13

Squalalah

  • *
  • Information
  • Member
  • Posts: 96
    • View Profile
forgot to reply.

You can add this into your mod (in the class)

Code: [Select]
void OnGUI()
{
         GUI.Label(new Rect(Screen.width - 100, 0, 200, 200), modName);
}

this will display the name of your mod (modName is a string, who contains mod's name if you use the same var as the example in the .zip) in the TOP RIGHT of the screen

Utility ? Know directly if the mod loads correctly.
« Last Edit: April 02, 2016, 08:16:15 PM by Squalalah »

April 02, 2016, 08:24:48 PM
Reply #14

Svamp

  • *
  • Information
  • Member
  • Posts: 34
    • View Profile
Sorry for my C# noobiness...
Any way of making something happen every in game month/day/year etc.?
Instead of key press some event fires every month.
How would i access SDateTime or TimeOfDay to read the current date?