Author Topic: [DONE] Sharing tag defintions between multiple ruleset files  (Read 7432 times)

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
[DONE] Sharing tag defintions between multiple ruleset files
« on: February 16, 2023, 01:37:53 am »
In OXCE 7.8.9 I added option to share tags definition between files:

Code: [Select]
extended:
  tagsFile: Ruleset/OtherFile.rul

this effective copy `tags` from other file and insert them in current file.
« Last Edit: March 29, 2023, 09:39:09 am by Meridian »

Offline Finnik

  • Commander
  • *****
  • Posts: 508
  • Finnik#0257
    • View Profile
Re: Sharing tag defintions between multiple ruleset files
« Reply #1 on: February 16, 2023, 02:41:02 am »
Nice, thanks!

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Sharing tag defintions between multiple ruleset files
« Reply #2 on: February 16, 2023, 07:20:02 am »
That will make things easier, thank you.

Offline Buscher

  • Colonel
  • ****
  • Posts: 168
    • View Profile
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #3 on: April 02, 2023, 04:30:37 pm »
Can this also be turned into a list of files or is the expected use that there is one file which contains all tags?

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #4 on: April 02, 2023, 04:51:57 pm »
For now its only one value possible.

Offline zee_ra

  • Colonel
  • ****
  • Posts: 213
    • View Profile
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #5 on: April 23, 2023, 06:44:10 pm »
In OXCE 7.8.9 I added option to share tags definition between files:

Code: [Select]
extended:
  tagsFile: Ruleset/OtherFile.rul

this effective copy `tags` from other file and insert them in current file.

Thank you for including this functionality.  Could you please provide more details on how this works?  Currently, there's nothing in the Nightly Ruleset Reference.

I also would like to inquire, how did you overcome a limitation of YAML, that requires every data item to be present explicitly somewhere in the graph corresponding to the parsed file.  Did you define a special naming convention?


Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #6 on: April 24, 2023, 01:33:09 am »
This is simply load of another file and getting part of yaml from it.
Nightly Ruleset Reference was not updated as there was no next version published, probaby in this week Meridian or I will update reference.

Offline 0xEBJC

  • Colonel
  • ****
  • Posts: 180
  • Y'all are awesome! Thankful for this community.
    • View Profile
    • My Projects
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #7 on: December 18, 2023, 05:18:56 pm »
This is simply load of another file and getting part of yaml from it.
Nightly Ruleset Reference was not updated as there was no next version published, probaby in this week Meridian or I will update reference.

Hey Yankes,

I am having trouble seeing how this works, whats the benefit, could you please give an example.  Thank you

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3349
    • View Profile
Re: [DONE] Sharing tag defintions between multiple ruleset files
« Reply #8 on: December 18, 2023, 06:15:11 pm »
To do not duplicate list of script tag definitions. You define them in one file,
and other files that need this too refer to this main file instead of redefining them again.