Page 1 of 1

Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Sun Mar 15, 2015 5:16 pm
by JeremyaFr
How to avoid the 99.99km issue in skirmish

When you add custom crafts to the game and play a skirmish mission, a few crafts may appear far away. This happens because the SPEC.RCI file contains invalid/missing data. It is good to regenerate SPEC.RCI each time you make changes to the craft slots.

What is SPEC.RCI

SPEC.RCI is a file that contains the main characteristics of the crafts. It is used by the game engine to avoid to have to read the crafts files each time it needs those informations.

How to generate SPEC.RCI
  1. run XWA from the command line with the "generate" option:

    Code: Select all

    XWingAlliance.exe generate
    
    You can also use the command from the launcher (Alliance.exe).
    Open the launcher, select "Advanced Options" > "Run XWA with Command Line".
    In the input box, enter "generate" and click "OK".
    XwaSpecRciGenerate.png
  2. open the Tech Library
    You do not need to cycle through the crafts. You just need to enter the tech library.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Sun Mar 15, 2015 6:52 pm
by DARoot
Fascinating.

Thanks, JeremyFr.

Most of us have just gotten used to inserting "custom" craft in Skirmish missions BETWEEN "standard" craft (even if they are just Containers).
This new info will be beneficial.

However, Forum Members should be aware that "Spec.RCI" is NOT a text file, so they won't be able to check whether the regenerated file actually does anything, without testing in-game (unless there is something they should be looking for in a hex editor, or something).
Probably not important.

DARoot

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Sun Mar 15, 2015 8:20 pm
by JeremyaFr
Here is a little tool to easily view the content of SPEC.RCI:
XwaSpecRciEditor.zip

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Mon Mar 16, 2015 5:47 am
by Bman
Great find Jeremy. THanks.

Edit: Ok looks like it's just a table that caches the basic stats of all craft models like shield strength etc. The first column (index number of each model) will be helpful when referencing models in the HangarMap.txt files.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Mon Mar 16, 2015 4:29 pm
by Rasalas
Thanks Jeremya! Like Bman said, a great find. :thumbs:
Unfortunately your SpecRciEditor doesn't on my computer. When I try to open a RCI-file (even a newly generated one), I get this error message: "Der Index war außerhalb des Arraybereichs". This should translate as "Index out of range exception". I'm on Windows 7 Home Premium 64 bit, SP1. I also have .NET Framework 4.5.2 and Visual C++ 2013 Runtime 12.0.21005 installed.
Your older SpecRciEditor of XWAStatisticsView (version 1.0.3.11) works fine though.

Edit: This is the whole error message:

Code: Select all

  Problemereignisname:	CLR20r3
  Problemsignatur 01:	XwaSpecRciEditor.exe
  Problemsignatur 02:	1.0.0.0
  Problemsignatur 03:	5505e8c3
  Problemsignatur 04:	System.Core
  Problemsignatur 05:	4.0.30319.34209
  Problemsignatur 06:	53489a70
  Problemsignatur 07:	44a
  Problemsignatur 08:	e
  Problemsignatur 09:	System.ArgumentNullException
  Betriebsystemversion:	6.1.7601.2.1.0.768.3
  Gebietsschema-ID:	1031
  Zusatzinformation 1:	eeb4
  Zusatzinformation 2:	eeb44f5b12eb5824caf689f68f49f7a2
  Zusatzinformation 3:	57d9
  Zusatzinformation 4:	57d91b6f8e31f1201c85f4ce5c6b4634

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Mon Mar 16, 2015 6:12 pm
by JeremyaFr
Rasalas wrote:When I try to open a RCI-file (even a newly generated one), I get this error message: "Der Index war außerhalb des Arraybereichs". This should translate as "Index out of range exception".
Corrected.
Bman wrote:Curious, can that file be used as a back door way to expand the craft table slots ? What if the Spec.RCI file is expanded with extra data records ?
Spec.rci can't be used to expand the craft slot table. Adding new records will not have any effect.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Mon Mar 16, 2015 9:13 pm
by Rasalas
Thank you for the quick fix. It works now.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Tue Nov 08, 2016 6:47 pm
by ChildOfGod32798
Hi. I'm new to this forum. I found your solution but am unclear as to how I am to implement it? Could someone please clarify what it means to "Run from command line"? thank you.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Wed Nov 09, 2016 2:58 pm
by JeremyaFr
Hello,
  1. Open a command prompt
  2. Execute the following command:

    Code: Select all

    XWingAlliance.exe generate
    xwa_cmd_generate.png
  3. Open the Tech Library
    xwa_techlib_generate.jpg
    A file named "SPEC.RCI" is created/updated:
    xwa_spec_rci_generate.png
    For DSUCP, its size is 11 Ko.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Sun Mar 22, 2020 11:38 am
by JeremyaFr
UPDATE

Hello,
I've updated the opt limit hook.

I've added generating the "spec.rci" file.

Now, when the "spec.rci" file is missing, then it will be generated when you launch the game.

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Wed Jun 22, 2022 8:21 am
by Vince T
@JeremyaFr I'll move this over to the new Guides section

Re: Tutorial: How to avoid the 99.99km issue in skirmish

Posted: Wed Jun 22, 2022 9:28 am
by JeremyaFr
Thanks.
I've edited the first post to add infos for the new launcher.