Utility --remap

Information and discussion for custom maps and mods.
Post Reply
Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Utility --remap

Post 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...
Last edited by Adrian on Sat Feb 15, 2025 11:14 am, edited 1 time in total.

Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Re: Utility --remap

Post 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.

Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Re: Utility --remap

Post by Adrian »

I still haven't figured it out.
I don't understand, how it works:

Utility --remap

greyfoxy123
Posts: 1
Joined: Tue Feb 25, 2025 2:59 pm

Re: Utility --remap

Post 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!
The essential tool for board games: dés en ligne.

Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Re: Utility --remap

Post 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

Therapist
Posts: 14
Joined: Wed Jun 10, 2020 6:39 am

Re: Utility --remap

Post by Therapist »

so use d2k instead of Dune2000

Adrian
Posts: 135
Joined: Wed Feb 12, 2020 5:44 pm

Re: Utility --remap

Post 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” :)

Post Reply