Facebook
From LightspeedNova, 4 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 607
  1. CFA now supports adding more Clans and Nations dynamically!
  2. Regarding how this extends to support for Customs:
  3.  
  4. Due to non-main clans and nations now being listed under the "Other" banner, it is possible to create your own clans and nations without a banner.
  5. To create your own Custom Nation/Clan, please create a text file `Custom Overrides.txt` and place it within your `Text` folder. The contents of the `Custom Overrides.txt` will need to abide by the following format:
  6.  
  7. ```
  8. global.CustomFactionClanId[N] = <CardInClan number>
  9. global.CustomFactionNationId[N] = <DCards number>
  10. global.CustomFactionName[N] = 'Faction Name As String'
  11. global.CustomFactionFile[N] = 'Faction Text File.txt'
  12.  
  13. global.MaxCustomFaction = N(max) + 1
  14. global.AllCard = <Highest card ID>
  15. ```
  16.  
  17. - `N` is the number of Custom Clans/Nations. This value should start from 100 minimum and is incremented by 1 for each Custom Clan/Nation added.
  18. - `CardInClan number` is the ID of your Custom Clan. If you are adding a nation that has no clans associated to it, please set this to `0`.
  19. - `DCards number` is the ID of your Custom Nation. If you are adding a clan that has no nation (such as the Iconic clan of the TH format), please set this to `-1`.
  20. - **To avoid future conflicts with added clans and nations in the TCG, the value for Clan ID and Nation ID for Customs should start from 100 minimum.**
  21. - `Faction Name As String` is the name your Custom Clan/Nation will show up with in the the Deck Editor, under the "Other" banner
  22. - `Faction Text File.txt` is the name of the text file inside of which will be your custom cards.
  23.  
  24. Much like you need to create the `Custom Overrides.txt` text file to add Custom Clans/Nations, you need to create the `Faction Text File.txt`.
  25. You can put your custom text files inside the `Text` folder, but you can also create your own folders inside `Text` for better organization and place your files there. `Custom Overrides.txt` has to be in the `Text` folder and not a subfolder though.
  26.  
  27. - `N(max) +1` is the total number of custom clans/nations added + 1. Refer to the highest value `N` you are using and set this value to be 1 higher than it.
  28. - `Highest card ID` is the ID of the last card inside your `CardSprite` and `CardSpriteMini2` folders, excluding the "n" at the start. **For custom cards, please only use IDs starting from 20000, up to 32000.**
  29.  
  30.  
  31. You can find an example both in the GitHub page linked below, as well as inside of `NoUse.txt`.
  32. Within `NoUse.txt` is also a list of all Clan and Nation IDs currently in use should you wish to add custom cards to existing Clans and Nation.
  33. **However, please keep all custom clans and nations within `Custom Overrides.txt` and all custom cards within your own custom text files. Do not add or remove text inside `NoUse.txt` as it can cause errors.**
  34.  
  35. You can read about the feature further on the Github page:
  36. `https://github.com/uniquekid/cfa-texts/tree/v641?tab=readme-ov-file#custom-clansnations`