aliens

Author Topic: Dumb questions from a would-be modder  (Read 15246 times)

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Dumb questions from a would-be modder
« on: August 21, 2015, 07:23:38 am »
Question the first - is there a FAQ for creating and changing rulesets, especially following the mod reorganization following TFTD going live?

What folder do I put the files in?
What's required for a workable mod?
Is there a way to selectively delete/override vanilla rules, such as research or ufopaedia entries?

More newbie questions to come.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2011
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Dumb questions from a would-be modder
« Reply #1 on: August 21, 2015, 07:39:30 am »
Useful Information for Modding:

Ruleset Reference

Ruleset List Order

FloorOb Vanilla

HandOb Vanilla

There are couple more for sounds etc..
« Last Edit: August 21, 2015, 10:19:50 am by hellrazor »

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #2 on: August 21, 2015, 08:45:10 am »
Those are useful - a lot of it I already know from picking over Solarius' FMP mod - but it doesn't really answer my questions about the fundamentals.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2011
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Dumb questions from a would-be modder
« Reply #3 on: August 21, 2015, 10:28:17 am »
Those are useful - a lot of it I already know from picking over Solarius' FMP mod - but it doesn't really answer my questions about the fundamentals.

You can overwrite vanilla definitions.
You just need to use the same name.
You can also delete vanilla definitions with "   - delete: STR_EXAMPLE_STRING"

On further notice:

Case Sensitivity and Naming

Introduction to the new Mod structure

Hope this helps.

Offline hellrazor

  • Commander
  • *****
  • Posts: 2011
  • Deep Ruleset Digger & Bughunter
    • View Profile
    • Github Account
Re: Dumb questions from a would-be modder
« Reply #4 on: August 21, 2015, 11:41:09 am »
You might also wann read Thread here

It should cover most of your questions i presume.

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #5 on: August 21, 2015, 08:59:04 pm »
Yep, that helped!

Another question - is there a way to edit the UFOpaedia categories? Not the articles themselves, that's pretty well documented, but adding, removing or editing the "Aquatic Artifacts" button, for example?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #6 on: August 21, 2015, 11:12:52 pm »
Not the articles themselves, that's pretty well documented, but adding, removing or editing the "Aquatic Artifacts" button, for example?

You can rename the categories through the language files, you can reassign the vanilla articles to different categories but you cannot add new categories (and possibly not remove then also).

Offline chaosshade

  • Colonel
  • ****
  • Posts: 170
  • The Harpy
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #7 on: August 22, 2015, 02:39:44 am »
I think Shoes was renaming things in his medals and honours mod, give that a look.

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #8 on: August 22, 2015, 03:53:29 am »
That..... might work. Any guides to messing with translation strings for mods? I see there's a whole lot of yaml files for the vanilla game, but how to you define and reference overriding ones?

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #9 on: August 22, 2015, 06:38:02 am »
That..... might work. Any guides to messing with translation strings for mods? I see there's a whole lot of yaml files for the vanilla game, but how to you define and reference overriding ones?

Code: [Select]
      STR_XCOM_CRAFT_ARMAMENT: COUNCIL REPORTS
      STR_HEAVY_WEAPONS_PLATFORMS: XCOM CRAFT & ARMAMENT & HWPs
      STR_UFOS: MISCELLANEOUS
      STR_UFO_COMPONENTS: UFOs & UFO COMPONENTS

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #10 on: August 22, 2015, 08:26:38 am »
Can I just throw that in the ruleset? Or do I need to create a separate yml file in the mod folder? If it's the latter, I tried creating a en.yml file in the mod folder that says

Code: [Select]
en:
  STR_XCOM_CRAFT_ARMAMENT: "X-Com Operations"

But that does not seem to have any effect.

Offline AndO3131

  • Colonel
  • ****
  • Posts: 137
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #11 on: August 22, 2015, 09:29:33 am »
Code: [Select]
en:
  STR_XCOM_CRAFT_ARMAMENT: "X-Com Operations"
Maybe it should be
Code: [Select]
en-GB:
  STR_XCOM_CRAFT_ARMAMENT: "X-Com Operations"

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #12 on: August 22, 2015, 06:21:01 pm »
Like this?

Code: [Select]
ufopaedia:
#cleanup
  - delete: STR_CRAFT_GAS_CANNON_UC
  - delete: STR_DUP_HEAD
en-US:
  STR_XCOM_CRAFT_ARMAMENT: "X-Com Operations"

Doesn't seem to work, I'm afraid.
{I have it as en-US because my localization is set to that}

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #13 on: August 22, 2015, 07:42:09 pm »
Code: [Select]
extraStrings:
  - type: en-US
    strings:
      STR_XCOM_CRAFT_ARMAMENT: "X-Com Operations"
« Last Edit: August 22, 2015, 07:43:47 pm by Hobbes »

Offline Quinch

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Dumb questions from a would-be modder
« Reply #14 on: August 23, 2015, 04:44:11 am »
Yay! That works!