Matrix Games Forums

To End All Wars: Mountain InfantryPandora: Eclipse of Nashira Announced! Deal of the Week: Command Ops goes half price!New Fronts are opening up for Commander: The Great WarCharacters of World War 1Sign of for the Pike and Shot Beta!More Games are Coming to Steam! Return to the Moon on October 31st! Commander: The Great War iPad Wallpapers Generals of the Great War
Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Data Files limits?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: Wacht am Rhein >> Mods and Scenarios >> Data Files limits? Page: [1] 2   next >   >>
Login
Message << Older Topic   Newer Topic >>
Data Files limits? - 2/2/2012 1:14:54 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Hello,
What is the maximum amount for each of the Data pages?
I would really like to increase these considerably and hopefully Not have to find the limits by trial and error.
Thank-You
I.E.
Axs Teams
Als Teams
Vehicles
Soldiers
Weapons
Uniforms
Post #: 1
RE: Data Files limits? - 2/2/2012 4:43:27 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
In most casts there is no real limit on the number of entries you can have in these files. Internally the class is stored as a 16-bit signed value so the only limit there is 32,767 entries.

Uniforms.txt is limited by the maximum number of nations you can have times the styles per nation (8 * 3) to 24 unique uniform styles, with a second set for snow maps.

There is a gadget file limit of 256 unique weapon images.


(in reply to Platoon_Michael)
Post #: 2
RE: Data Files limits? - 2/2/2012 5:29:15 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
So if I understand correctly Uniforms can have up to 48 total different variations with 24 of them being used for Snow Uniforms.And the other 24 being the total amount of Nations WAR can support.

And for Weapons I could realistically have 32,767 different Weapons as long as I only use 256 Weapon Icons?
I.E.
Team 1 could have a weak Weapon effect with Weapon Class 1 and Team 32,767 could have an enormous effect with that same Weapon Class set at 32,767
Conclusion is I could have a 32,767 different effects for any Weapon as long as the total number of Weapon Icons doesn't surpass 256?
I.E 32,767 sets of Data for say the MG 42.


Edit
I currently have my Weapons Class set at 134 for the total amount of Weapons.
Divide 32,767 by 134 = 244 total Weapon Class's (rounded off to the lowest common denominator)
Thus only leaving me 244 different variations of the current Weapons in my Mod?
Correct?
Not taking into account the Hard Codded Weapons of the game,which I assume leaves me at less than 244?

Yes I'm very repetitious in my posts and yes I'm very anal.
I can't help it.
If the Edit part of my post is correct that really only leaves me 48 weapons I can truly edit for each setting of the game.(From Recruit to Elite)
or am I thinking the wrong way?

I enjoy Modding the game,I just don't like making mistakes on something that is already known.

I hope you understand.







< Message edited by Platoon_Michael -- 2/2/2012 5:53:37 PM >

(in reply to Steve McClaire)
Post #: 3
RE: Data Files limits? - 2/3/2012 2:43:38 AM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
Weapon class = unique identifying number. This is the first column after the weapon name in the data file. The values in this column start at 0 and go upwards for each row in the file -- this is not the count of entries at the top of the file. It means you can have 32767 different weapons in your weapons.txt.

There is only space in ScrnGadg.gdg for 256 weapon icons, however. So many of your 32,767 weapons would have to share the same icon (on the Battlegroup and Soldier screens, and in the soldier monitor).


(in reply to Platoon_Michael)
Post #: 4
RE: Data Files limits? - 2/20/2012 2:11:55 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Has anyone tried this out in their GC yet?
How exactly does it work?
What BG's are dropped on what Maps?


# Allied parachute drop days (0 or 1) AB BGs arriving on maps with no off-map exit get random setup area(s)
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
# Axis parachute drop says
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

< Message edited by Platoon_Michael -- 2/20/2012 2:13:11 PM >

(in reply to Steve McClaire)
Post #: 5
RE: Data Files limits? - 2/20/2012 5:36:18 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
That option controls whether Airborne battlegroups (as defined in BGroups.txt) enter the game by air drop or marching onto the map. If an Airborne BG arrives as a reinforcement on an 'air drop' day, and there is a battle on its entry map, the Airborne BG will enter the battle via 1-3 random VLs.

(in reply to Platoon_Michael)
Post #: 6
RE: Data Files limits? - 2/29/2012 10:52:00 PM   
CSO_Talorgan


Posts: 654
Joined: 3/10/2007
Status: offline

quote:

ORIGINAL: Steve McClaire

In most casts there is no real limit on the number of entries you can have in these files. Internally the class is stored as a 16-bit signed value so the only limit there is 32,767 entries. ... There is a gadget file limit of 256 unique weapon images.


Do these (lack of) limits apply to other re-releases?

.... and what of the base file entries which the .exe uses? Rumour has it that modding them will crash the game, but since we don't know which base file entries the .exe uses there's a crash waiting to ambush every adjustment.

(in reply to Steve McClaire)
Post #: 7
RE: Data Files limits? - 3/1/2012 8:18:27 AM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
Yes, the limits are the same in the all the re-releases from WaR on. Cross of Iron and Modern Tactics were old, and I would have to do some digging to verify, but I suspect they have lower maximum number of entries.

There are some indexes that are used by the EXE for fire support weapons in weapons.txt.

For WaR/TLD, these are:

0 - Hand to hand
1 - Hand grenades
2 - Secondary explosion (from exploding terrain)
19 - Mortar support
126 - Heavy Artillery / Naval Artillery support

For LSA these were all moved down to the front of the weapons.txt file:

0 = Hand to hand
1 = Grenade
2 = Secondary explosion
3 = Mortar support
4 = Artillery support

(in reply to CSO_Talorgan)
Post #: 8
RE: Data Files limits? - 3/1/2012 11:31:11 AM   
CSO_Talorgan


Posts: 654
Joined: 3/10/2007
Status: offline
Thank you very much for this very useful information!

Not so worried about Cross of Iron or Modern Tactics.

The weapons file info is invaluable. Many thanks!

Are any other base files referenced by the .exe?

My (oh-so-cunning) plan was to strip out the base files and start again basically. Obviously I'll have to avoid the lines referenced above. It looks as if it will be easiest with LSA as rows 0 to 4 can just be ring-fenced and bypassed.

Cheers!

(in reply to Steve McClaire)
Post #: 9
RE: Data Files limits? - 3/1/2012 5:16:13 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
The other place where there is significant reliance on indexes into the data files is elements.txt. There's a fair bit of old code that assumes indexes for various terrain analysis / manipulation. I think the best bet is to leave the meaning of the data rows as they are and just tweak the values.

And for all the data files, new things can always be added on to the end.

Here is a list of the elements the game uses directly, and the indexes need to stay constant for:

Dirt
Mud
Shallow Water
Deep Water
Stone Fence
Dirt Road
Paved Road
Stone Wall
Muddy Road
Leaves and Dirt
Leaves and Mud
Branches and Dirt
Branches and Mud
Light Snow
Heavy Snow
Sand
Wreck
Wood Rubble
Stone Rubble
Brick Rubble
Large Hedgerow
Small Hedgerow
Huge Tree 1-4
Destroyed Bridge
Underpass

Steve

(in reply to CSO_Talorgan)
Post #: 10
RE: Data Files limits? - 3/1/2012 7:05:02 PM   
CSO_Talorgan


Posts: 654
Joined: 3/10/2007
Status: offline
OK

I wasn't going to mess with elements.

However, a thought occurred to me today that there may be a link between battlegroup data and their stratmap icons. Would it cause a problem if a battlegroup was deleted while its icon remained?

(in reply to Steve McClaire)
Post #: 11
RE: Data Files limits? - 3/2/2012 7:20:40 AM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
quote:

ORIGINAL: CSO_Talorgan
However, a thought occurred to me today that there may be a link between battlegroup data and their stratmap icons. Would it cause a problem if a battlegroup was deleted while its icon remained?


The BG icon index is set in BGroups.txt, which is the index from the gadget STRBGICONS00 in ScrnGadg.gdg. There's no problem if you don't use a graphic that is in the ScrnGadg.gdg file. If you have one you're not using at all you can even replace it with a 1x1 pixel placeholder.


(in reply to CSO_Talorgan)
Post #: 12
RE: Data Files limits? - 3/5/2012 4:17:03 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
I'm curious as to how many different combinations can be used to fill each setting in the game?
I understand that some graphics have a shorter limit than say the total amount of different teams.

I.E.
How many different variations could one have for example Panzergrenadiere's?

I suppose if you wanted to stick with the allotted amount of 5 based on the settings Recruit/Green/Line/Veteran/Elite you could have 5 completely different Panzergrenadiere Teams.

But what if you then went and changed their characteristics to also be based upon Dates during the Grand campaign one could then have 125 different variations to the Panzergrenadiere Teams correct?.
Assuming you wanted a different Team for each Day and each setting of the game.
You could then have 125 different effects for say the MG 42,this would allow one to have teams in there FP based on Moral and Experiance to have different effects in the game.
I.E.
Day 1 horrible kill ratio (Couldn't hit the side of a Barn and would flee at the slightest shot fired at them )
to
Day 25 Excellent Kill ratio(Kills everything that comes in its path and fears nothing)correct?


But what is considered best when working with the Force Pools?
Whats the best way to have that players attrition effect his Force Pools?
Or is that even possible?
If I say set KG Peiper's amount of Panthers to 10 on day 1 and leave the other dates set to 0 will the game keep the total amount at 10 if he doesn't loose a tank and vice verse subtract each tank he losses in Battle till he ends up with nothing?

Or will he have 10 Panthers on Day 1 and 0 from there on out?

I've kinda started doing just the above mentioned and was wondering who else has,and what possible Ill side effects could occur?


< Message edited by Platoon_Michael -- 3/5/2012 4:33:53 PM >

(in reply to Steve McClaire)
Post #: 13
RE: Data Files limits? - 3/5/2012 4:47:15 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
quote:

ORIGINAL: Platoon_Michael
If I say set KG Peiper's amount of Panthers to 10 on day 1 and leave the other dates set to 0 will the game keep the total amount at 10 if he doesn't loose a tank and vice verse subtract each tank he losses in Battle till he ends up with nothing?

Or will he have 10 Panthers on Day 1 and 0 from there on out?


Assuming you're not using the "Classic CC4 / Refresh FP" switch, the force pool quantities are used to create the force pool when you start playing a scenario. From there are on out you have what you have in the FP. So if you have 10 x Panther on day 1 and 0 the rest of the dates, any scenario that starts on day 1 will have 10 Panthers in the FP. If a scenario starts on day 2+ you will have 0 Panthers in the FP. If you expect to have scenarios starting on days after the first, I'd suggest a more gradual decrease from 10 down to 0 over time.

You could use the FP to model experience and attrition, as you describe, but these things also happen naturally in the game. Teams that survive become more experienced (assuming you keep them in your BG). FP quantities get lower as you lose teams and have to replace them. Managing the data for 125 different versiosn of a Panzergrenadier team might be a bit of a headache, but there's nothing preventing you from experimenting with the system you described if you want to try it out.


(in reply to Platoon_Michael)
Post #: 14
RE: Data Files limits? - 3/5/2012 5:46:44 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Currently I'm only adding 2 sets of data to my current Mod.It is quite the headache but something I want to try out.
1) for Head to Head (Already completed)
2) for playing against the AI.(Currently working on)

I don't think I would go as far as 125 different sets of Data but if it was ever done I can only image it would be interesting to play.

Where is the Data that is used for Teams that do acquire more Experience/Moral is that hard codded in the game?
If my Team starts out weak and progresses to Veterans where and what Data is being effected?
Is it only Experience and Moral or does it effect everything?

< Message edited by Platoon_Michael -- 3/5/2012 5:47:18 PM >

(in reply to Steve McClaire)
Post #: 15
RE: Data Files limits? - 4/3/2012 1:10:47 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
I just cant seem to find whats wrong here.

Data is the same as it was in a previous working version,with only the Class # being changed to 292.
Total teams is 293.
So why isn't it working now?




Attachment (1)

(in reply to Platoon_Michael)
Post #: 16
RE: Data Files limits? - 4/3/2012 3:58:22 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
The format for that item is incorrect.  Probably it is missing a field or missing a tab between fields someplace.  If you attach the file itself I can tell you specifically what the issue is.


(in reply to Platoon_Michael)
Post #: 17
RE: Data Files limits? - 4/3/2012 4:15:04 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
workbook

(in reply to Platoon_Michael)
Post #: 18
RE: Data Files limits? - 4/16/2012 3:26:25 AM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
I still haven't been able to figure this one out.

Any advice?

(in reply to Platoon_Michael)
Post #: 19
RE: Data Files limits? - 4/16/2012 5:43:18 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
You actually only have 292 (0-291) entries in the AxTeams2 sheet, not 293 (0-292).  The class index value is off someplace in the sheet.  So you've probably skipped a value while numbering in the class (Col3) column.

The easiest way I know to fix this in Excel is to put "0" in for the class value in your first row, then "=E5+1" (or whatever the class cell is for the first row, if it's not E5 in your sheet) for the second class value.  Then you can copy & paste this formula into the rest of the column for your whole sheet.  This will guarantee there are no duplicate or missed values.

Steve

(in reply to Platoon_Michael)
Post #: 20
RE: Data Files limits? - 4/16/2012 6:33:36 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
And there you go boys and girls.

Stupid is as stupid does.

While I didn't understand how to do/use the formula for =E5+1 as Steve mentioned I did however go over my class #'s for the thousandth time only to discover that I cant count.


I missed 205

I will correct this when time permits and get back to you later.


Thank-You very much Steve.
I can now resume editing at will.

And please accept this as it is intended.............. Rackin/frackin @%*% GoD D@*^ SOB

FUDGE,I spent weeks looking at this ARRRRRGGGGHHHHHHH,I looked at everything for days,even before asking for Help.




Attachment (1)

< Message edited by Platoon_Michael -- 4/16/2012 6:44:36 PM >

(in reply to Steve McClaire)
Post #: 21
RE: Data Files limits? - 4/16/2012 8:34:19 PM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
I still get the same error

(in reply to Platoon_Michael)
Post #: 22
RE: Data Files limits? - 4/16/2012 9:02:53 PM   
Cathartes

 

Posts: 2139
Joined: 1/5/2001
Status: offline
did you fix your index header # to match the total number of lines?

(in reply to Platoon_Michael)
Post #: 23
RE: Data Files limits? - 4/17/2012 10:24:44 PM   
johnsilver


Posts: 179
Joined: 2/7/2012
From: Florida
Status: offline
Would that correction be under category "E" is and is currently set at 0-250?

Apologies for jumping in here, have only done very simple things to any of the campaign.txt that Platoon_Michael has shown me earlier and am interested in learning some of this other also.

_____________________________

Sailing The 7 Seas...

(in reply to Cathartes)
Post #: 24
RE: Data Files limits? - 4/18/2012 3:53:43 AM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Cathartes is right.
I forgot to change the axsteams# from 293 to 292.

It's all up and running now.

Now I just have the long daunting task of adding the new Soldiers/Vehicles/Weapons.

< Message edited by Platoon_Michael -- 4/18/2012 3:55:54 AM >

(in reply to johnsilver)
Post #: 25
RE: Data Files limits? - 4/18/2012 5:22:43 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline

quote:

ORIGINAL: Platoon_Michael
It's all up and running now.


Excellent. Trust me, I know how it goes. While the game is highly moddable, it's not as forgiving as it could be. Perhaps one day we'll get a chance to make a "Close Combat Campaign Construction Kit" or something like that.



(in reply to Platoon_Michael)
Post #: 26
RE: Data Files limits? - 4/20/2012 3:39:24 AM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
That would be really nice.

While not as great as a Program I've tried my best at Color Codding my workbook and by adding Images from both the ScrnGadg/GameGadg just to make it easier to figure out.
Some of it I even Hyperinked to the proper places.





Attachment (1)

(in reply to Steve McClaire)
Post #: 27
RE: Data Files limits? - 4/30/2012 4:42:09 AM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Hello again,
What is the amount of strategic map movements that WAR can support?

1)How many per map?
2)How many as a whole for the entire strat map?


Thanks

(in reply to Platoon_Michael)
Post #: 28
RE: Data Files limits? - 4/30/2012 3:59:42 PM   
Steve McClaire

 

Posts: 2914
Joined: 11/19/2007
Status: offline
I assume you mean how many connections between maps?

Each map can have 8 outgoing connections.

The total number of connections is limited to 128.

(in reply to Platoon_Michael)
Post #: 29
RE: Data Files limits? - 5/1/2012 1:02:53 AM   
Platoon_Michael


Posts: 1018
Joined: 3/9/2003
Status: offline
Thank-You

whenever time permits I would love to know the same for tLD and LSA.

(in reply to Steve McClaire)
Post #: 30
Page:   [1] 2   next >   >>
All Forums >> [New Releases from Matrix Games] >> Close Combat Series >> Close Combat: Wacht am Rhein >> Mods and Scenarios >> Data Files limits? Page: [1] 2   next >   >>
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.109