Search Unity

Modding and Unity - Possible?

Discussion in 'General Discussion' started by HeadClot, Nov 21, 2011.

  1. HeadClot

    HeadClot

    Joined:
    Jan 23, 2010
    Posts:
    212
    Ok, I am wanting to create a modifiable game for unity3D however I am not sure if unity would be the best option compared to engines such as UDK and Cryengine 3 which allow you to redistribute their editors.

    We just want to release an free user editor alongside our main game as well as expansions (if we make any)

    Would this be possible?

    or would an separate program need to be written from the ground up just to modify the game?
     
    Last edited: Nov 21, 2011
  2. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    Yes. You can do anything you want in that regard.
     
  3. Broken-Toy

    Broken-Toy

    Joined:
    Jan 16, 2010
    Posts:
    455
    Short reply: yes you can.

    Long reply: definitely possible, but you'll need to build the custom modding tools. Depending on the approach you take, you can either open up the game enough that it's moddable using the Unity editor itself (giving modders as much control as you have), or make it happen ingame (Which should make modding possible on more platforms):

    If you go with your own, you can import textures and sounds at runtime from a file path (either local or web!). Two roadbumps you might stumble onto:
    1- 3D models. There is a runtime importer available on the Asset Store for static .OBJ files, but none for animated meshes that I know of.
    2- Scripts. You'll need to make your own external config/xml files or script interpreter. Again, some solutions exist on the Asset Store namely for lua and python.

    Also, unless you encrypt your build somehow, it's entirely possible for someone to decompile your game logic using a .net reflector, so advanced modding/hacking will be 'enabled' that way by default.
     
    Last edited: Nov 21, 2011
  4. HeadClot

    HeadClot

    Joined:
    Jan 23, 2010
    Posts:
    212

    Ok, a little background behind the project -

    We are currently developing it for PC and later on Mac (if the project is successful)

    Now if we use Unity pro would that be a problem?
     
  5. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    Using pro, you may want to look into asset bundles.
     
  6. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,609
    Yes. But I don't think a modder will want to but UnityPro for 1500 dollars just to mod a game.
     
  7. larvantholos

    larvantholos

    Joined:
    Oct 29, 2009
    Posts:
    668
    with unity pro you could develop a c++ plugin to allow the modding to take place.
     
  8. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    Damn right. I didn't think of that lol.
     
  9. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,609
    haha. I would really like my games to have modification capabilities, but do not know how to start from it. :/
     
  10. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    When I have time, I will look into some articles I remember seeing a while ago. They gave some pretty darn good info if I recall.
     
  11. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,609
    Thankyou. I would like to read them. :)
     
  12. HeadClot

    HeadClot

    Joined:
    Jan 23, 2010
    Posts:
    212
    I too would like to see these articles :)
     
  13. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
    Same here. When released, I would like to grow my game with a modding community.
     
  14. TehWut

    TehWut

    Joined:
    Jun 18, 2011
    Posts:
    1,577
    you know what would be the bomb? have the option to package your game with open resources, then they can edit and compile! (out b4 pros smock at theory)
     
  15. HeadClot

    HeadClot

    Joined:
    Jan 23, 2010
    Posts:
    212
    wait do you mean like what the cryengine does with their .pak files you just extract them with winrar or 7zip. Then when you are done you put it back into .pak format?
     
  16. UnknownProfile

    UnknownProfile

    Joined:
    Jan 17, 2009
    Posts:
    2,311
    More like all Source games, I'm assuming, which don't package the assets up at all.
     
  17. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    I can not for the life of me find the articles I remember :(. Terribly sorry for the false hope guys.
     
  18. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246
    If you have Unity pro, perhaps download the C++ fbx sdk.
     
  19. carking1996

    carking1996

    Joined:
    Jun 15, 2010
    Posts:
    2,609
    Where is that at?
     
  20. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    fbx = autodesk proprietary format -> autodesk page :)
     
  21. ColossalDuck

    ColossalDuck

    Joined:
    Jun 6, 2009
    Posts:
    3,246