Page 1 of 2

Modding Tips, Pitfalls and Miscellaneous Info

Posted: Thu Nov 07, 2019 8:30 pm
by mroyer
Perhaps it will be a useful resource to have an on-going thread to document various "things" we discover about modding. Tips, procedures, pitfalls and any other miscellaneous information that might be helpful to the community.

Recommendation:
If you add an informational post, give it an emboldened title so it's easy to spot among all the other general-conversation posts.

-Mark R.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Thu Nov 07, 2019 8:31 pm
by mroyer
To give an idea of what I mean, I'll start with this.

Units.png template columns:
1 = HQ
2 = Garrison mode
3 = Undefined (Alvaro: probably will be motorized)
4 = Undefined (Alvaro: probably will be heavy unit not sure yet.)
5 = infantry div, corp, or army
6 = Cavalry
7 = Marine
8 = Para/Airborn
9 = Mountain
10 = Mechanized
11 = Armored
12 = Air Superiority Group (typ. fighters)
13 = Ground Attack Group (typ. fighter-bomber/attack bomber/dive bomber)
14 = Tactical Air Group (typ. medium bomber)
15 = Strategic Air Group (typ. strategic bomber)
16 = Submarine fleet
17 = Naval fleet, day
18 = Naval fleet, night
19 = Unknown ground unit
20 = Unknown air unit

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Fri Nov 08, 2019 9:23 am
by mroyer
I compared flags in the units.png template with the nation index numbers from the editor and it appears there is a one-to-one correspondence except there seems a mismatch around index 23-24/Iceland. When I figure this out I will correct this post.

Edit: Okay, I think I've figured it out - in the official campaigns, Iceland occupies slot #24. If you create a new campaign, South Africa occupies slot #24. I think all the rest of the slots are the same, but I've only spot-checked.

Units.png template rows:

1 Britain
2 France
3 USA
4 USSR
5 Nationalist China
6 Germany
7 Italy
8 Japan
9 Algeria
10 Australia
11 Baltic States
12 Belgium
13 Bulgaria
14 Burma
15 Canada
16 Communist China
17 Denmark
18 Dutch East Indies
19 Egypt
20 Finland
23 Free French
22 Greece
23 Hungary
24 Iceland (official campaigns) / South Africa (when creating new campaign)
25 India
26 French Indochina
27 Iraq
28 Ireland
29 Jordan
30 Undefined
31 Luxembourg
32 Malaya
33 Manchuria
34 Mongolia
35 Morocco
36 Netherlands
37 New Zealand
38 Norway
39 Palestine
40 Persia
41 Philippines
42 Poland
43 Portugal
44 Romania
45 Spain
46 Saudi Arabia
47 Sweden
48 Switzerland
49 Syria
50 Thailand
51 Tibet
52 Tunisia
53 Turkey
54 Vichy France
55 Vichy North Africa
56 Vichy Syria
57 Yugoslavia
58 Undefined
59 Undefined
60 Greenland
61 Ethiopia
62 South America
63 Pacific Resources


RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Fri Nov 08, 2019 9:46 am
by Hoyt Burrass
Thank you mroyer!!!!

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Fri Nov 08, 2019 9:49 am
by mroyer

you're welcome - if we all pitch in, we can save each other a lot of time :) ( my ulterior motive... )

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sat Nov 09, 2019 8:26 am
by PHalen
Yeah, THANKS mroyer!!!
Extremely useful!

And perfect timing for me!
I was just wondering why my new Dutch units wouldn’t show up on the map.
Turned out they were in the Dutch East Indies... [:)]

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sat Nov 09, 2019 2:36 pm
by ncc1701e
[&o] Thanks for sharing.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sun Nov 10, 2019 12:12 pm
by jrwsdev69
Is the specialty cost of 100 hard coded or is there somewhere I am missing that you can change that value? I went through the sections in the editor and saw most values used in the game but can't find that one. Is it named something less obvious that doesn't have specialty in the name?

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sun Nov 10, 2019 11:07 pm
by Hairog
Anyone found a way to move the numbers around on the markers or change the colors?

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 11, 2019 12:01 am
by mroyer
ORIGINAL: Hairog

Anyone found a way to move the numbers around on the markers or change the colors?


Nope - or change the font. My guess is you can't.
-Mark R.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 11, 2019 1:17 am
by Hairog
Sounds about right.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 11, 2019 1:47 am
by AlvaroSousa
hard coded.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 11, 2019 8:52 am
by mroyer
ORIGINAL: Alvaro Sousa

hard coded.


Alvaro, could you consider 'hard coding' a white outline to the black text in some future update? It might be fairly easy to code that - Unity might even have the facility built in. (I know... it's probably not easy....).

If it were easy to do and looked okay in the game on smaller text, a light outline would give modders much more color latitude. It makes the text much more visible on dark backgrounds and yet has little effect on light backgrounds.

Image

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sun Nov 17, 2019 10:53 am
by PHalen
I just found this very useful webpage for people interested in air unit roundels:
https://commons.wikimedia.org/wiki/Roundel

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sun Nov 17, 2019 10:18 pm
by mroyer
Websites

In the spirit of PHalen's previous posting of a useful website resource, here's a site I've found to be very useful for silhouettes/drawings of all sorts of WW2 stuff:

War Drawings

-Mark R.


RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 18, 2019 12:11 pm
by AlvaroSousa
ORIGINAL: mroyer
ORIGINAL: Alvaro Sousa

hard coded.


Alvaro, could you consider 'hard coding' a white outline to the black text in some future update? It might be fairly easy to code that - Unity might even have the facility built in. (I know... it's probably not easy....).

If it were easy to do and looked okay in the game on smaller text, a light outline would give modders much more color latitude. It makes the text much more visible on dark backgrounds and yet has little effect on light backgrounds.

Image

Are you talking about unit text or editor text? Please specify.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 18, 2019 12:12 pm
by AlvaroSousa
Good find on these websites

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Mon Nov 18, 2019 9:22 pm
by mroyer
ORIGINAL: Alvaro Sousa
Are you talking about unit text or editor text? Please specify.

I'm talking about text directly on the counters. I'm not sure whether it would work well with such small text or not.

-Mark R.


RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Thu Dec 12, 2019 5:26 pm
by AlvaroSousa
I had a shadow at one point and it was distracting. I can't do an outline.

RE: Modding Tips, Pitfalls and Miscellaneous Info

Posted: Sat Dec 14, 2019 12:49 pm
by PanzerMike
That is too bad. Modding the counters is limited by the hard coded letters/numbers and symbols (and the colors thereof). If we could alter them that would be so great.

By the way, I can not seem to find the yellow AA gun icon anywhere. Hard coded??