Custom maps in workshop (ingame adding and sorting)

Discussion in 'Modding' started by Johny, Jul 23, 2018.

  1. Johny

    Johny Member

    In past few weeks we gained the knowledge for creating custom map and scenario. Adding your own missions in game is now a available and it can also be added a special folder for them. But the problem is that it's not user friendly and you need to place some filed in folders, six of them rewrite in locale editor and add short structure in .cfg file, and for that you need extra code reader (for example Sublime Text).

    That's not really big deal for adding one mission, but rewriting everything for another one that we want to add is really annoying. So I stared to thing about something that will be able to rewrite these files, create a code structure by itself and sort the mission in camapgin menu where it belongs.

    This topic follow up on the "Random finding about editor" topic, but because it's solving a specific problem, I created a special place fot it.

    The main problem of this is I'm not a professional programmer. I can read a code, I understand some stuctures, I can rewrite some paths etc. but I can't make a mod or solid program by myslef. My programming lessons ended with bacic C and that was three years ago. Now I'm operating with Matlab and that is made for absolute different programing.
    The second complication is I never done a mod and therefore I don't know how the mod files look like and what I actually need for it. I thought that "mods" folder contains some files of downloaded mods but there is only a script allowing them to use.
    And that's why I'm writing this. I would like you to help me with this problem. Advices, samples, images, codes, whole solutions, I take everyting you know better than me.

    First of all I want to retrace what you need for perfect working single mission:

    1) Your own map with scenario, that means:
    - yourmap.map + yourmap.aix files in Cossacks3/dlcs/yourmapfolder/data/maps/missions
    - that map folder must be create for step No.3

    2) Text to everything inside your map and scenario made by locale editor:
    - yourmap.txt + yourmap.lng files filled with @textsinsidemission
    - missions.txt + missions.lng files filled with @camapgin.name + @camapgin.description + @mission.name + @mission.description
    - missionplayers.txt + missionplayers.lng files filled with @mission.player1 etc.
    - all in Cossacks3/data/locale/yourcurrentlanguage/missions

    3) Created folder in menu for your own missions:
    - done by adding a structure in Cossacks3/data/game/var/camagins.cfg, for example:

    Code:
    [*] : struct.begin
          Name = campagin
          Enabled = True
          Visible = False
          RequireToVisible =
          RequireFile = .\dlcs\yourmapfolder\data\maps\missions\yourmap.map
          LocaleName = campagin.name
          LocaleDescr = camapgin.description
          LocalePath = .\data\locale\%lang%\missions\missions.lng
          Missions : struct.begin
             [*] : struct.begin
                Name = mission
                Enabled = True
                Visible = True
                RequireToVisible =
                LocaleName = mission.name
                LocaleDescr = mission.description
                MapPath = .\data\maps\missions\yourmap.map
                MapLocalePath = .\data\locale\%lang%\missions\mission.lng
             struct.end
          struct.end
       struct.end
    All of this must be done for adding your own game and I want to simplify it with creating a program that will be sorting and adding texts, code structures and maps inside the folders.

    Before I will propose a solution I have one simple question. How does exactly mod files look like? I didn't find them in my own PC. Are they distributed directly from Steam? If I want to release a program that directly from Steam can add something inside a file and place another ones in folders, how it should "looked like"?

    Idea
    Now here are my for now basic descriptions of solutions for this problem. Depends on if we want to have this program on:

    1) Steam wokrshop as a part of it
    pros:
    - workshop is wider, more available and more known platform
    - initial file with program would create a place for new missions, everyone would download it
    - then player would only upload all files, and you would donwload them and the program would automaticaly add text with code and place the files where they belong.

    cons:
    - due to lack of knowledge I can't imagine the concept and content of program inside workshop yet
    - everyone need to own the inital program


    2) Forum as a personal program with own GUI
    pros:
    - I can imagine creating a program with simple GUI (as it's in locale editor) with easy commands like: add, create, save etc.
    - player would open it, choose files and the program would place them automatically again

    cons:
    - there is a few active members in this forum, people would not notice this program


    Before this I have another project on my table to this is more like idea then actuall focusment. If you have anything to say for this topic I beg you to do it. I count every advice, idea or opinion.

    Thank you, Johny.
     
    PaFiK1999, Foeurdr and Loner like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice