aliens

Author Topic: Location of Xcom1Ruleset.rul?  (Read 6394 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Location of Xcom1Ruleset.rul?
« on: November 15, 2017, 09:29:42 am »
I'm trying to get into modding OpenXcom and I've found a starting tutorial here:
https://www.ufopaedia.org/index.php/Rulesets_(OpenXcom)#Your_First_Edit_.28Cheat.29

Unfortunately I've immediately run into a snag.

The tutorial mentions the location of "Xcom1Ruleset.rul" to be "Data\Ruleset\Xcom1Ruleset.rul".

However much to my embarrassment I have been unable to locate a Data directory in the "./local/share/openxcom/" directory.

The only directory found there are:
- Mods
- UFO
- TFTD
- xcom1
- xcom2



Could someone please point out the Xcom1Ruleset.rul file location, I'm eager to start tinkering.
^_^

The version of OpenXcom I'm using is the "Nightlies 2017-11-02"  Linux release.

Offline bulletdesigner

  • Commander
  • *****
  • Posts: 685
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #1 on: November 15, 2017, 12:12:42 pm »
The rulesets are located in openxcom/standard/xcom1 for uFo or openxcom/standard/xcom2 for tftd , i dunno why you donĀ“t have the standard folder (maybe  it came when i install original xcom dunno or if openxcom brings it or the other way around)
« Last Edit: November 15, 2017, 12:15:57 pm by bulletdesigner »

Offline Yataka Shimaoka

  • Colonel
  • ****
  • Posts: 284
  • I'm the trouble maker
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #2 on: November 15, 2017, 01:50:58 pm »
The ruleset reference you've read is for the milestone, look for the nightlies

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #3 on: November 16, 2017, 07:59:46 am »
Thank you for pointing out that the tutorial was for a different version of OpenXcom , I'll use the values found on this page instead:
https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)

I've still been unable to figure out where the Linux version of OpenXcom is storing all the *.rul files.


However I may have found a solution:

By downloading the .Zip Windows release of OpenXcom ( openxcom_git_master_2017_11_09_0437.zip ) which does have the "./standard/" directory you mentioned I've been able to gain access to duplicates of the *.rul files.

If I know what the contents of the *.rul files are I can reference the defined variables within them even if I don't actually know their locations on my system.

My theory is that because the
OpenXcom Linux release is using AppImage the files are contained within the executable file itself, thus my inability to locate them.

(If I'm wrong please correct my misunderstanding.)


AppImage is a pretty cool method for release on Linux so I'm glad it's being used. 
« Last Edit: November 16, 2017, 08:01:57 am by The Martian »

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #4 on: November 16, 2017, 02:24:37 pm »
I've still been unable to figure out where the Linux version of OpenXcom is storing all the *.rul files.
find / -iname '*.rul'
It may miss some possible places, but it will display all *.rul files you already have.

This may vary between distributions, but I have them in:

/usr/share/openxcom/ or /usr/games/share/openxcom/
~/.local/share/openxcom/
the directories next to the openxcom binary

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #5 on: November 16, 2017, 02:42:54 pm »
Thank you for posting that useful command.

The only *.rul files that were found by the search are located in the directories of a few Mods I've got installed.

There was no sign of the default X-Com *.rul files.


tkzv are you using the Linux release of
OpenXcom that uses AppImage or a different distribution variant?

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
Re: Location of Xcom1Ruleset.rul?
« Reply #6 on: November 16, 2017, 03:25:55 pm »
tkzv are you using the Linux release of OpenXcom that uses AppImage or a different distribution variant?
I used the Gentoo ebuild for vanilla 1.0 and nightly, and after a version conflict I just compile nightly and OXCE+ from Github, without installing anything to /usr/ .