Results 1 to 5 of 5

Thread: Help getting started with DLL mods

  1. #1
    Refugee
    Join Date
    Mar 2018
    Location
    Tennessee
    Posts
    2
    Rep Power
    0

    Help getting started with DLL mods

    Hey guys, first post, just looking for a bit of help getting into the modding scene for 7d2d. I do have experience modding other games. I've written plugins for Minecraft (Java) and Ultima Online, or RunUO (C#). Minecraft had a modding API, Bukkit (now Spigot). From what I am reading 7d2d won't have an official mod API until Beta, but people are making mods anyway somehow. I downloaded the source for Alloc's Server Fixes and opened it in Visual Studio, and noticed that he seems to be making calls to some kind of internal API. I've learned a little about it by peeking around in there, but I was curious if anyone had more information about this mysterious internal API. I've done a lot of searching but real information on the subject is sparse and questionable.

    I'm aware you can change a lot about the game through the XML config files. But I need more than that. I'm looking to play around with chat, perhaps filter or modify it, add in a LCB that prevents any type of damage similar to a trader area, things like that. I don't want to add models or change anything that will require anyone to download any files to connect to the server. I read about the SDX API, but it requires you to turn off EAC and I don't want to do that. I saw that Alloc's mods were just neat little DLLs that went into a mods folder. Those are the type of mods I'm looking to make. If anyone could provide any information about how to get started doing this it would be greatly appreciated. I have Visual Studio 2017 and will download anything else I need.

  2. #2
    Guppycurian Forum Whore Guppycur's Avatar
    Join Date
    Apr 2014
    Location
    Enemy for life
    Posts
    19,309
    Rep Power
    1
    Find bcm (badco manager by stompynz), it's the most advanced api mod and it's open source.

  3. #3
    Leader Tin's Avatar
    Join Date
    Feb 2014
    Location
    In between
    Posts
    5,415
    Rep Power
    1
    Quote Originally Posted by Guppycur View Post
    Find bcm (badco manager by stompynz), it's the most advanced api mod and it's open source.
    I approve!

  4. #4
    Colony Founder StompyNZ's Avatar
    Join Date
    Apr 2015
    Posts
    3,862
    Rep Power
    1
    https://github.com/7days2mod/ModBase/

    that has a basic template for the beginnings of an api mod, and some comments in the api.cs class that explains what the override methods do.

    after that some examples:

    https://github.com/djkrose/7DTD-ScriptingMod
    https://github.com/7days2mod/BadCompanySM
    https://github.com/dmustanger/7dtd-ServerTools/
    https://github.com/Prisma501/CoppisAdditions/releases

    no source on coppis but you can view it in ilspy

  5. #5
    Refugee
    Join Date
    Mar 2018
    Location
    Tennessee
    Posts
    2
    Rep Power
    0
    Thank you so much everyone! I downloaded the Bad Company mod and looked around and saw how you were hooking events. But the mod-base template is exactly what I was looking for! Thank you Stompy! Now to buckle down this weekend and figure all this stuff out. I'm familiar with CIL so I may do some additional poking around for clarity. Thank you all for the great info!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •