Author Topic: Creating a Custom Troops Tree for the Player Faction  (Read 921 times)

0 Members and 1 Guest are viewing this topic.

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Creating a Custom Troops Tree for the Player Faction
« on: July 31, 2012, 03:27:50 PM »
Sorry to Hanakoganei for such a similar thread but I had a similar question and didn't want to hijack his thread by posting in it

I'm playing Floris mod at the moment and I want to create my own troops for the Player faction so I'll have it when I create my Kingdom. Now I'm not entirely sure how to go about doing that so I thought I should ask here before I tried anything substantial. I think I know how to create the troops themselves and how to connect them in a tree using Morgh's editor for both but I'm not really sure if there is anything else I should do or if there is anything I should know before I start.

Hanakoganei

  • Sergeant at Arms
  • *
  • 立花誾千代
    • View Profile
  • Faction: Sarranid
  • WB
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #1 on: July 31, 2012, 04:44:06 PM »
Morgh's isn't a bad idea, but it's better to create them using the module system. If you're going to use Morgh's to create a completely new troop tree, you're going to have to be editing and borrowing the extra troops from each faction, and I think they only give you 5 of those per faction. Besides, you're going to need to edit some other things in the module system anyway if you want the game to spawn your troops, such as setting up your guard troop, making them available from villages, etc.

Give it a try. :) It isn't really all that hard to learn. Especially the troop-related stuff. You can even add and edit the troops using Morgh's.
« Last Edit: July 31, 2012, 04:52:55 PM by Hanakoganei »
"To me an unnecessary action, or shot, or casualty, was not only waste but sin."
- T.E. Lawrence

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #2 on: July 31, 2012, 05:01:57 PM »
Morgh's isn't a bad idea, but it's better to create them using the module system. If you're going to use Morgh's to create a completely new troop tree, you're going to have to be editing and borrowing the extra troops from each faction, and I think they only give you 5 of those per faction.

Can I not just add new troops in troops.txt?

Quote
Besides, you're going to need to edit some other things in the module system anyway if you want the game to spawn your troops, such as setting up your guard troop, making them available from villages, etc.

This is the kind of thing I wasn't sure about. Damn, I didn't think I've have to go into the module system to do it. I don't have any clue where anything is in the module

Hanakoganei

  • Sergeant at Arms
  • *
  • 立花誾千代
    • View Profile
  • Faction: Sarranid
  • WB
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #3 on: July 31, 2012, 05:18:14 PM »
You can add new troops in troops.txt, but it won't be save compatible. You also have to make sure they're placed before custom_n_recruit (kingdom_troops_end declared in module_constants), or else the game won't qualify them as "kingdom troops". One of the most obvious effects I noticed from this is that you can't talk to them the same way you talk to kingdom troops, and they may get weird/random dialogue options.

The module system is pretty easy to understand and get the hang of. There's more information in the official module system documentation™. :D

The guards are declared in module_scripts. Searching for other instances of trp_custom_n_/trp_custom_r_/trp_custom_e_ stuff will show you other places that you have to replace with your new kingdom troops. You only need to change the version that you actually play. For example, if you only play Expanded and never really touch Native/Reworked, you don't need to edit the custom_n or custom_r stuff.

By default, except for guard troops and reinforcements, Floris sets up the custom troops to use the custom troops as player kingdom troops. There aren't a lot of places to edit, but it's a good idea to replace them all anyway.

You declare your reinforcements in module_party_templates (you can do this in Morgh's). And I think that's about it.
"To me an unnecessary action, or shot, or casualty, was not only waste but sin."
- T.E. Lawrence

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #4 on: July 31, 2012, 05:35:35 PM »
Okay well, I currently have Expanded installed. I suppose I'll have to uninstall it then (to save on space) and then install the Dev Suite?

Hanakoganei

  • Sergeant at Arms
  • *
  • 立花誾千代
    • View Profile
  • Faction: Sarranid
  • WB
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #5 on: July 31, 2012, 05:42:04 PM »
Sure, if you're really short on disk space. o_O You don't need to, though.
"To me an unnecessary action, or shot, or casualty, was not only waste but sin."
- T.E. Lawrence

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #6 on: July 31, 2012, 05:53:47 PM »
Sure, if you're really short on disk space. o_O You don't need to, though.

Well I'm not short on disk space but I wanted to know do I have to install the Dev Suite. I just said I'd uninstall the Expanded version but there's no point of having it just sitting there

Hanakoganei

  • Sergeant at Arms
  • *
  • 立花誾千代
    • View Profile
  • Faction: Sarranid
  • WB
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #7 on: July 31, 2012, 06:04:25 PM »
Yes you have to install the Dev Suite. It contains the module system files that you'll edit. In other words, you won't be using the Native module system.

No need to uninstall the Expanded Version because compiling the module system puts it into the same Expanded folder anyway. That means that choosing to install just the Dev Suite or the Dev Suite + Expanded will not really make a difference.
"To me an unnecessary action, or shot, or casualty, was not only waste but sin."
- T.E. Lawrence

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #8 on: July 31, 2012, 07:43:14 PM »
Yes you have to install the Dev Suite. It contains the module system files that you'll edit. In other words, you won't be using the Native module system.

No need to uninstall the Expanded Version because compiling the module system puts it into the same Expanded folder anyway. That means that choosing to install just the Dev Suite or the Dev Suite + Expanded will not really make a difference.

Ok thanks man. Just got it installed it and found the files there. It installed in it's own folder, seperate from the Expanded foler called "Floris Dev Suite 2.53". Might be a stupid question but is that normal? Do I put the edited files in the Expanded folder when I'm done editing?

I'll mess around with the files now and see if I can get anything done and post back here if I have any questions. Thanks again!

Hanakoganei

  • Sergeant at Arms
  • *
  • 立花誾千代
    • View Profile
  • Faction: Sarranid
  • WB
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #9 on: July 31, 2012, 08:37:33 PM »
Well, compiling it (building the mod using one of the included build programs in the "Build and Update Batch Files" folder) will automatically create and move the files into the new Expanded Folder anyway.
"To me an unnecessary action, or shot, or casualty, was not only waste but sin."
- T.E. Lawrence

ccllnply

  • Sergeant
  • *
    • View Profile
  • Faction: Swadian
Re: Creating a Custom Troops Tree for the Player Faction
« Reply #10 on: August 04, 2012, 07:47:28 PM »
Ok I'm having some trouble with this. I know now how to use the module system. Not everything specifically that I need to do, but I get the general idea of it. However, what I don't get is how I'm suppose to get the changes I make in the Dev Suite folder into my Expanded folder. The "Build and Update Batch Files" folder is totally empty so I've no idea of how to implement my changes. I'm reluctant to do anything substantial until I know that it wouldn't be all pointless but I can't understand the module system

I've read the thread on the first page about the module system and I just don't get it for some reason. Nor do I get the general module system thread in the main forum. Can anyone help me, or am I just hopeless?   :cry: