OpenXcom Forum

Modding => Help => Topic started by: The Martian on November 15, 2017, 09:29:42 am

Title: Location of Xcom1Ruleset.rul?
Post by: The Martian 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 (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.
Title: Re: Location of Xcom1Ruleset.rul?
Post by: bulletdesigner 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)
Title: Re: Location of Xcom1Ruleset.rul?
Post by: Yataka Shimaoka on November 15, 2017, 01:50:58 pm
The ruleset reference you've read is for the milestone, look for the nightlies
Title: Re: Location of Xcom1Ruleset.rul?
Post by: The Martian 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) (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 (https://openxcom.org/git_builds/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 (https://appimage.org/) the files are contained within the executable file itself, thus my inability to locate them.

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

AppImage (https://appimage.org/) is a pretty cool method for release on Linux so I'm glad it's being used.  (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)
Title: Re: Location of Xcom1Ruleset.rul?
Post by: tkzv 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
Title: Re: Location of Xcom1Ruleset.rul?
Post by: The Martian on November 16, 2017, 02:42:54 pm
Thank you for posting that useful command. (https://openxcom.org/forum/Themes/InsidiousV1-k/images/post/thumbup.gif)

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 (https://appimage.org/) or a different distribution variant?
Title: Re: Location of Xcom1Ruleset.rul?
Post by: tkzv on November 16, 2017, 03:25:55 pm
tkzv are you using the Linux release of OpenXcom that uses AppImage (https://appimage.org/) 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/ .