gscreens Question

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Post Reply
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

gscreens Question

Post by Marching Thru Georgia »

Is there a variable which holds the name of the mini-map that can be accessed in gscreens.csv?
I can make this march and I will make Georgia howl.
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re: gscreens Question

Post by ADukes »

What are you trying to do?
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:gscreens Question

Post by Marching Thru Georgia »

I am trying to place the mini-map as a graphic on the courier message screen. It would be a background behind the left side of the pane. But I need the variable that contains the mini-map name in order to call it. I can easily call it up as a pop-up screen, but it then covers-up the order screen. I don't really want the units displayed, as they cover up the location names, just the map. Thanks.
I can make this march and I will make Georgia howl.
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re:gscreens Question

Post by ADukes »

$ranmapID should be the best choice, but it will work in Sandbox only.
Last edited by ADukes on Mon May 17, 2010 12:59 pm, edited 1 time in total.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:gscreens Question

Post by Marching Thru Georgia »

Will it also work for custom scenarios?
Many thanks.
I can make this march and I will make Georgia howl.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:gscreens Question

Post by Marching Thru Georgia »

$ranmapID only gives the 1st part of the file name. For instance if I am using 4_PPT_MM.dds, the variable only returns 4_PPT. Is there another variable which gives the complete name? Or is there a way to concatenate the _MM.dds onto the variable?
I can make this march and I will make Georgia howl.
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re:gscreens Question

Post by ADukes »

GRAPHIC,,4_PPT_MM.dds,,,,451,97,800,600,800,800,$ranmapID==4_PPT,,,

is what you're looking for, but you have to copy the DDS file to the graphics\screens\ folder.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:gscreens Question

Post by Marching Thru Georgia »

Not exactly. What I am trying to do is
GRAPHIC,,$ranmapID{+_MM.dds},,,,65,200,800,800,,,,,,
where I want to add what is contained in the {}. I can create an if/then tree as you suggest, but then I would have to modify it everytime Norb & Co. makes a new map. :) I would prefer to create a generic method if possible.
I can make this march and I will make Georgia howl.
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re:gscreens Question

Post by norb »

Need an SDK wishlist. Lots of times it's pretty simple to expose stuff that's already supported.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:gscreens Question

Post by Marching Thru Georgia »

it's pretty simple to expose stuff that's already supported.

:blush: Gosh, Norb, didn't know you were into that sort of thing... :blush:
But yes, it would be a good idea to have good exposure. :laugh:
Having the full location of the file would be best. No copying of the files to the graphics folder would then be necessary.
I can make this march and I will make Georgia howl.
Post Reply