How to add strategic icons

... or, funtimes with schema

I tried to search, and I couldn't find any answers to this.

 

I am trying to add different strategic icons for different types of stars (giant, dwarf, etc). I can add an existing icon just by changing <StrategicIcon> in StarArtDefs.xml. I needed new ones, so I added a couple cells to GC3_Strategic_Icons.dds. The game balked because new icon names have to be cited in the schema. There is only one "custom" slot in the schema, so I added four new categories to the schema. The game will load, but it crashes when a new game is launched. Did I miss something?

23,878 views 9 replies
Reply #1 Top

You can't change the schema.

Reply #2 Top

Are you sure? I mean, I can take the .xsd file and alter it and put it in the schema folder. Does that not change anything? That never occurred to me...

Reply #3 Top

Well, your game is crashing, right? That's what altering the schema does.

Reply #4 Top

Quoting General, reply 2

Are you sure? I mean, I can take the .xsd file and alter it and put it in the schema folder. Does that not change anything? That never occurred to me...

 

maybe you should try to look into what .xsd s do

Reply #5 Top

The schema just describes how the code requires the XML to be structured in order to understand it. Editing the schema does nothing, since you can't change the code it's based on.

+1 Loading…
Reply #6 Top

 

what's a strategic icon.

Reply #7 Top

Quoting mortili, reply 4


Quoting General Pants,

Are you sure? I mean, I can take the .xsd file and alter it and put it in the schema folder. Does that not change anything? That never occurred to me...



 

maybe you should try to look into what .xsd s do

 

Gosh, I'm so glad to see that the GalCiv forum members are still so committed to a friendly, helpful approach to each other. Thanks everyone for your assistance.

 

(That was sarcasm, just in case you missed it).

 

Seriously, thank you Kryo for providing a genuinely helpful answer. No prize for everyone else.

Reply #8 Top

[delete]

Reply #9 Top

Quoting admiralWillyWilber, reply 6

 

what's a strategic icon.

The strategic icons are the symbols on the game map representing ships, planets, stars, etc. that you see when you are zoomed out far enough that the graphics cut out. The star icons only show up when the area is obscured by Fog of War, btw.

 

For everyone else: I think this is a much more helpful, polite, and useful way of answering a reasonable question. Just FYI...