Page 1 of 1

Utility --remap

Posted: Tue Jan 21, 2025 1:09 pm
by Adrian
I read in documentation for Utility the next:
--remap SRCMOD:PAL DESTMOD:PAL SRCSHP DESTSHP
Remap SHPs to another palette
May I see working example? If you please.

I am trying to convert shp-file from RA to Dune2000.
But, in general, — any working example...

Re: Utility --remap

Posted: Tue Jan 21, 2025 5:11 pm
by Adrian
I tried different variants...
One of them below (it does not work).

From RA to CNC.
Files temperat.pal, snow.pal, abc.shp are existing. File abc2.shp must be created.

Code: Select all

./utility.sh ra --remap ra:temperat.pal cnc:snow.pal abc.shp abc2.shp
Error output:

Code: Select all

TypeDictionary does not contain instance of type `OpenRA.Mods.Common.Traits.PlayerColorPaletteInfo`
  at OpenRA.Primitives.TypeDictionary.Get (System.Type t, System.Boolean throwsIfMissing) [0x00040] in /home/nikolaos/Dune2024/OpenRA.Game/Primitives/TypeDictionary.cs:73 
  at OpenRA.Primitives.TypeDictionary.Get[T] () [0x00000] in /home/nikolaos/Dune2024/OpenRA.Game/Primitives/TypeDictionary.cs:51 
  at OpenRA.ActorInfo.TraitInfo[T] () [0x00000] in /home/nikolaos/Dune2024/OpenRA.Game/GameRules/ActorInfo.cs:186 
  at OpenRA.Mods.Cnc.UtilityCommands.RemapShpCommand.OpenRA.IUtilityCommand.Run (OpenRA.Utility utility, System.String[] args) [0x0005d] in /home/nikolaos/Dune2024/OpenRA.Mods.Cnc/UtilityCommands/RemapShpCommand.cs:45 
  at OpenRA.Program.Run (System.String[] args) [0x001db] in /home/nikolaos/Dune2024/OpenRA.Utility/Program.cs:118
It will be interesting to see example of right syntaxis.
Unfortunately I cannot understand how to write it right.

Re: Utility --remap

Posted: Sat Feb 15, 2025 11:11 am
by Adrian
I still haven't figured it out.
I don't understand, how it works:

Utility --remap

Re: Utility --remap

Posted: Tue Feb 25, 2025 3:29 pm
by greyfoxy123
Hey Adrian,

Try this command:

Code: Select all

```bash
./utility.sh dune2000 --remap ra:temperat.pal dune2000:snow.pal abc.shp abc2.shp
```
Make sure the mod names, palettes, and SHP files are correct. If it doesn't work, double-check the paths and names. Let us know how it goes!

Re: Utility --remap

Posted: Fri Feb 28, 2025 5:40 pm
by Adrian
Thank you for your answer... but...
are you shure that "dune2000" is right parameter?

Did you test this command in real work?

I got the error:

Code: Select all

The available mods are: ts, modcontent, all, ra, cnc, d2k

Re: Utility --remap

Posted: Sun Mar 16, 2025 8:57 am
by Therapist
so use d2k instead of Dune2000

Re: Utility --remap

Posted: Sun Mar 16, 2025 9:09 pm
by Adrian
Actually this command ("remap") is mysterious for me. :)
It does not work in any variants.
So I am curious already. :)

That's why it is interesting just to see ANY really working example.

Just write: “It works at my computer” :)