Cossacks 3 Modding Tools

Discussion in 'Modding' started by egnaro, Sep 28, 2016.

  1. egnaro

    egnaro Member

    Hi everybody!

    Here I'd like to collect all the modding tools for the game.
    I will keep this post updated for any new or update to an existing tool.

    Let's start with the tool I've created ;)

    Cossacks 3 Model Viewer
    With this tool you're able to open any of the Cossacks 3 game model (OSM and OSS).
    You can view it, play the animation and re-save the model as OBJ file to open it in any 3D-modeling package like 3DS Max or Blender.

    Version history:
    * v 0.1
    - Initial release. Opens OSM models only.
    * v 0.2 - Added support for the OSS models.
    * v 0.3 - Added ability to convert OBJ files into OSM game models

    [​IMG]
    [​IMG]
    [​IMG]

    Download link: http://3d-orange.net/files/C3ModelViewer_v03.zip

    !Important!
    If you're experiencing the problem starting this application - please go to https://www.microsoft.com/en-ca/download/details.aspx?id=48145
    And select when prompted "vc_redist.x86.exe" and install it.
    This should fix the issue.

    ********************************************************************************

    Cossacks 3 Language Editor
    With this tol you're able to view and modify any Cossacks 3 localization file (*.LNG)

    Version history:
    * v 0.1
    - Initial release.

    [​IMG]
    [​IMG]

    Download link: 3d-orange.net/files/C3LanguageEditor.zip

    ********************************************************************************

    Cossacks 3 (text)Mod Manager by Lieutenant-Général

    "A little tools to help modding text file.
    It is quite ineffective to replace a file which contain thousand of line in order to change one or two lines... And two mods which replace the same file will be incompatible!"

    Dedicated forum thread - http://www.cossacks3.com/forum/index.php?threads/cossacks-3-text-mod-manager.17753/

    Latest version: 1.3.8
     
    Last edited: Oct 6, 2016
  2. Furious Peasant

    Furious Peasant Active Member

    Awesome! Can't thank you enough for this.:)

    By the way... The Hetman in your screenshot is dismounted. Does that mean that we could also use this modell as a footsoldier/commander on foot?
    And that we can mount other (infatry) units on horses? This would offer us many great possibilities.
     
    Hugojackson18 likes this.
  3. Hugojackson18

    Hugojackson18 Member

    This would be amazing!

    Just noticed one weird thing last night, the frigate.oss gives a pikeman. Don't know why
     
  4. egnaro

    egnaro Member

    I'm still working on the Model Viewer, but in the meantime - here's a tool to view/edit localization files (*.LNG)

    Cossacks 3 Language Editor

    [​IMG]
    [​IMG]

    3d-orange.net/files/C3LanguageEditor.zip
     
  5. Ebel

    Ebel Moderator Staff Member

    Bit confused egnaro, why would you make a tool that already exists?

    Program Files (x86)\Steam\steamapps\common\Cossacks 3\tools\locale\editorlang.exe
     
  6. egnaro

    egnaro Member

    Oh, I didn't even know it exists. Thanks for popping that out!
     
  7. egnaro

    egnaro Member

    Oh, wait. This tool doesn't understand any language that's not based on latin alphabet!
    Is it official? Really weird though.

    So - if anyone is experiencing problems with the official tool - just use mine ;)

    [​IMG]
     
  8. Ebel

    Ebel Moderator Staff Member

    I'll agree, yours looks a bit nicer. :) Can you add the 'remove and add' string functions, save as .txt and search by value/key functions, arrow keys to move in place like theirs has ?

    Edit: I forgot to say:
    If you go into the external editor (not this language editor), but if you start up cossacks , pick the third option ( launch editor), then go to modules -> FormLocaleTableList.
    It sorta the same editor but with some different options. I haven't used them yet but perhaps have a look into those. (Edit main table/optimize tables/Reload)
    [​IMG]
     
    Last edited: Sep 29, 2016
  9. Fimti

    Fimti New Member

    Thanks for this helpful tool! :)

    But after editing a model in Blender I ran into a problem. How do i save/export my new model as the OSS/OSM file it has to be?? Or atleast convert a .obj file to OSS/OSM?
     
    Last edited: Sep 30, 2016
  10. egnaro

    egnaro Member

    Hi!

    You'll be able to do so using the next version of the tool which I'm working on right now ;)
    Will be available soon.
     
    Fimti likes this.
  11. Quevedo

    Quevedo New Member

    GREAT! Thanks for the tools, egnaro. I think we can start working, right now, with the Spanish translation XD.
     
  12. colonelburton

    colonelburton Active Member

    Hello, I have a question :)

    How to change the stats of units and building ?

    Thanks.
     
  13. Fimti

    Fimti New Member

    Steam\steamapps\common\Cossacks 3\data\scripts\lib

    Open the units.scripts file. There you can find some unit stats :)
     
  14. colonelburton

    colonelburton Active Member

  15. egnaro

    egnaro Member

    Good news everyone!

    I just finished version 0.3 of my Cossacks 3 Model Viewer. Now you can import OBJ files into my tool and save them as OSM models!
    Here's a screenshot with Ukrainian church replaced by Mickey ;)

    [​IMG]

    Download link: http://3d-orange.net/files/C3ModelViewer_v03.zip

    Conversion from FBX to OSS will be available in the next version, stay tuned! ;)
     
    Last edited: Oct 1, 2016
    Fimti and andyvandala like this.
  16. A. Soldier

    A. Soldier Active Member

    Very nice, if you keep this up we'll have fully fledged mods even before the Workshop is out.
     
  17. Lieutenant-Général

    Lieutenant-Général Active Member

    Hi!

    A little tools to help modding text file.
    It is quite ineffective to replace a file which contain thousand of line in order to change one or two lines... And two mods which replace the same file will be incompatible!

    So i write this little python script.
    It require python to work.

    Use (modders)
    Create a txt file. For each cossacks file you want modifie:
    -Write *PATH* and the path of the file and go to the line. (path from the repertory "cossacks3")
    -For each replacement type "old text*REPLACE*new text*END*"

    Exemple:
    *PATH*data\scripts\lib\unit.script
    grenadier.slashattack=15
    grenadier.grenadeattack=1000*REPLACE*grenadier.slashattack=150
    grenadier.grenadeattack=10000*END*

    "old text" must unique in the file!

    Use(player)

    Paste the c3mm.py file from pastebin to your cossacks3 folder.
    Paste mod file given by modder to the same folder.
    Click "file" and "open command window".
    Type "python c3mm.py mod.txt" with "mod.txt" is the file given by the modder.

    Hint:The program make a backup of all modded file
    Hint: A cossaks3 update may be unistall all mods.

    Please report me any bug!

    (I hope my english in understandable)


    Edit:
    Version 1.1.1
    Now can use letter and multiple dot in version number.

    Version 1.1.0
    Modification(modder):
    Now, you have to write in top of your modding file "name version version"
    For example : "bigcheat version 1.0".
    Warning : version number can't has more than one dot and can't has letter! Version like "1.0.7.4a" don't work!

    Modification(player):
    Now, you can uninstall a mod with type "python c3mm.py uninstall mod".
    If you don't remember name of command, type "python c3mm.py" or "python c3mm.py help"
    You can't install a mod which is already install.
    If you install a new version of a mod, older version will uninstall by the program.
    If you try to install an older version of an already installed mod, the program asks you a confirmation

    Thank for StriKe jk advice ;)
     
    Last edited: Oct 1, 2016
    StriKe jk and Fimti like this.
  18. StriKe jk

    StriKe jk Member

    Thanks for the script, I may use it for my mods or at least take some inspiration from it. :D

    Could you include:
    1. Reads the ingame version from a file
    2. Stores said information in a seperate file
    3. Checks on program startup if the new version equals the stored one
    4. does nothing if true
    5. gives a warning to reinstall the mods if they aren't equal
    Would be awesome :cool:
     
    Last edited: Oct 1, 2016
  19. Lieutenant-Général

    Lieutenant-Général Active Member

    New version : download

    Modification(modder):
    Now, you have to write in top of your modding file "name version version"
    For example : "bigcheat version 1.0".
    Warning : version number can't has more than one dot and can't has letter! Version like "1.0.7.4a" don't work!

    Modification(player):
    Now, you can uninstall a mod with type "python c3mm.py uninstall mod".
    If you don't remember name of command, type "python c3mm.py" or "python c3mm.py help"
    You can't install a mod which is already install.
    If you install a new version of a mod, older version will uninstall by the program.
    If you try to install an older version of an already installed mod, the program asks you a confirmation

    Thank for StriKe jk advice ;)
     
    Last edited: Oct 1, 2016
  20. Lieutenant-Général

    Lieutenant-Général Active Member

    Little modification: now can use letter and multiple dot in version number.
    Download