| View previous topic :: View next topic |
| Author |
Message |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Tue Jun 14, 2005 9:30 am Post subject: Campaign RND, what's Side= and CfgDate= ? |
|
|
I seem to have stumbled while rewriting the RND layer.
I had always essentially ignored the values CfgDate and Side, as it was unclear their purpose. When creating RND groups with the Mission Editor, you can't select Side= and CfgDate seems nonsensical, as it's almost always one of a handful of dates in the actual RND that comes with the game.
| Code: |
123 CfgDate=19391201
125 CfgDate=19400101
167 CfgDate=19411201
363 CfgDate=19390801
2287 CfgDate=19390101
1234 Side=0
2141 Side=1
8 Side=2
|
The only Side=2 RND group entries are the 8 German ships that appear in the RND layer. All other ships are either Side=1 or Side=0, although neither is selectable using the Mission Editor. It's a mystery to me where UBI Soft came up with these. (For example, both British _and_ American ships are considered Side=1 in HX39Convoy, even though the American ships show up as _neutral_ in-game.)
What's more, I can't assertain where the CfgDate entries come from, or if they're relevant.
| Code: |
[RndGroup 61.RndUnit 1]
Class=KLS
Type=102
Origin=British
Side=1
CargoExt=7
CargoInt=0
CfgDate=19390101
No=1
Escort=false
SpawnProbability=100
CrewRating=1
|
If anyone has any insight, let me know.
Thanks! |
|
| Back to top |
|
 |
Wulfmann
Joined: 13 May 2005 Posts: 507 Location: Florida
|
Posted: Tue Jun 14, 2005 12:52 pm Post subject: |
|
|
Having done a complete remake of the RND and SCR.mis files I can safely say, I have no idea. LOL
Seriously, the cfg dates vary for the same ship so I am not sure what the point was. I thought it was t allow a change in ships being in the same convoy when it sailed later in its time allotment. Say a Convoy that runs from 6-40 to 9-41 and some of the 102 had a 11-40cfg date. But, since it has been discussed that ships must be the same or older cfg date as unit 1 or they never show, I miss the point again.
The other problem for reality is the fact Victory Ships enter in 1942 in SH3 when the very first Victory Ship was commissioned in Feb 1944!!!. I changed all Victory ships to liberty ships for convoys that were pre 1944 and changed the VS to 2 1944 in the roster as well.
The big problem is when you commit to correcting such historical inaccuracies you open a Pandora's Box of a multitude of mistakes. How real should it be? How real do you want to take the time to make it and will that drain you of having fun?
I have a long list of corrections that make my version of SH3 the only one like it. I have done enough as it has become too tedious to do more.
The sad thing is every such correction was easily found historical information and no more difficult to do right as was done wrong.
Wulfmann |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Tue Jun 14, 2005 3:48 pm Post subject: |
|
|
Yeah, that's what my guess was for CfgDate as well. All the destroyers in each convoy have a 19390801 or later, so I might switch to use that as my CfgDate for all operations, just as a guess.
I have found Side= where it's neutral for convoys in 1942 and in 1939, so I have no idea what the point of Side= is in a RND layer. It makes sense in SCR layer, though.
I'm having troubl coming up with plausable relationships that I might have gotten incorrect. I don't think I have any invalid cargo configurations. I validate all lead ships such that they exist for GameEntryDate. I am really at a total loss as to what invisible rule I have violated. |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Jun 14, 2005 4:03 pm Post subject: |
|
|
Side=
I always thought it meant enemy, friend, neutral.
No?
TT |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Tue Jun 14, 2005 4:15 pm Post subject: |
|
|
| timetraveller wrote: | Side=
I always thought it meant enemy, friend, neutral.
No?
TT |
In the RND layer it seems to make no sense.
American and British ships in 1939 show up as enemy in the RND layer! Yet, of course, if you sink the American ship you take a hit and it shows up as neutral in the game, based on America's entry date into the war.
So the value seems nonsensical. Since the rule is not obvious or there is no rule for its usage in the RND, I really hope it isn't causing my problem. Such a thing is very hard to debug, when there's no obvious pattern. |
|
| Back to top |
|
 |
timetraveller
Joined: 23 Dec 2004 Posts: 967 Location: Atlantic Shipping Lanes
|
Posted: Tue Jun 14, 2005 4:26 pm Post subject: |
|
|
It might be used in the general sense (enemy, friend, neutral), and then specifically modified depending on the actual dates/data in the data\Roster\DefSide.cfg file.
I.E., America is an enemy unless it appears before such and such a date. ???
That's the only thing I can come up with.
TT |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Tue Jun 14, 2005 6:31 pm Post subject: |
|
|
| timetraveller wrote: | It might be used in the general sense (enemy, friend, neutral), and then specifically modified depending on the actual dates/data in the data\Roster\DefSide.cfg file.
I.E., America is an enemy unless it appears before such and such a date. ???
That's the only thing I can come up with.
TT |
Except I have seen whole convoys that start in 1942 flagged as neutral. Of course all ships are enemy when you encounter it.
Truly confounding. |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Wed Jun 15, 2005 9:06 am Post subject: |
|
|
I can't come up with any rationalization for Side=.
The rules for CfgDate seem to be such that, if you use the mission editor, the date is always the month and year of the mission date, on the first of the month. I think it will always be later than or equal to the mission date. It doesn't seem to actually do anything, though.
Meanwhile I still can't figure out why my processed RND layers crash. I created an identical RND group with the Mission Editor, line for line, entry for entry, and SH3 didn't crash. I then copied my generated entry into the single mission I created and SH3 didn't crash, as it had been. I'm finally out of assumptions. I think I might just reinstall. |
|
| Back to top |
|
 |
Wulfmann
Joined: 13 May 2005 Posts: 507 Location: Florida
|
Posted: Wed Jun 15, 2005 9:39 am Post subject: |
|
|
There are seemingly inconsistencies in stability. I redo the RND file, it crashes, I reinstall and use that same RND file and all is OK. I mod with a bunch of new stuff, all OK, I changed the neutral from 0 to 1 and I got CTD while on patrol for the first time ever..
The nice thing about Combat Flight Simulator 3 is if you screw up a plane it says the cfg file is corrupt, check it, if you leave out an item, it says it can't load that mission because whatever is missing. There was a little more logic to the insanity for modding. Even when it CTD for unknown, you go to SOH and there are a number of people that can pin point it quickly for a new-bee.
SH3 was open to modding but has so many unknowns the best here can be confused.
Installing and reinstalling is no bother to me but it helps if I am not in the dark with the reasoning. I wonder when I do it if I am spinning my wheels but I swear sometimes it acts like new stuff is incompatible but if it is added on a new install it is now one of the boys.
To be on the safe side I redid all the convoys to have the same cfg dates for all ships. I have had no problems with convoys since, well except for increasing the number of escorts and upping the crew rating, which forces me to work hard, get little sunk (no more easy target shoots) and be very cautious. To me, that was more real. I have attempted to attack convoys and never got a shot off because of good escorting. This simply sliding in and blasting 4 or 5 ships and riding off to glory does not duplicate real life. For me (and that does not mean anyone else is wrong for doing it how they enjoy) modding this is to make it simulate what being a U-Boat CO was like. It would be a little easier if this had more clear cut boundaries on the functions and dysfunctions of it attributes.
Wulfmann |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Wed Jun 15, 2005 11:37 am Post subject: |
|
|
| Wulfmann wrote: | There are seemingly inconsistencies in stability. I redo the RND file, it crashes, I reinstall and use that same RND file and all is OK. I mod with a bunch of new stuff, all OK, I changed the neutral from 0 to 1 and I got CTD while on patrol for the first time ever..
|
Interesting. It sounds like you've modified the RND layer heavily yourself. What tools are you using to accomplish this?
I'm using Perl on UNIX. I verified my output is DOS line terminated, so that's not the problem. I was hopeful, though.
| Wulfmann wrote: |
The nice thing about Combat Flight Simulator 3 is if you screw up a plane it says the cfg file is corrupt, check it, if you leave out an item, it says it can't load that mission because whatever is missing. There was a little more logic to the insanity for modding. Even when it CTD for unknown, you go to SOH and there are a number of people that can pin point it quickly for a new-bee.
|
Yes, that would be nice.
| Wulfmann wrote: |
SH3 was open to modding but has so many unknowns the best here can be confused.
Installing and reinstalling is no bother to me but it helps if I am not in the dark with the reasoning. I wonder when I do it if I am spinning my wheels but I swear sometimes it acts like new stuff is incompatible but if it is added on a new install it is now one of the boys.
To be on the safe side I redid all the convoys to have the same cfg dates for all ships.
|
Yes, I might give a reinstall a try and try each version from 1.0 to 1.3. It's worth a shot. It is pretty irritating, since I am almost 100% sure I had a modified RND layer working, once, and I saw the convoy I had created visually in the English Channel before going to bed. But it's never worked again. Crashes out of Brest within 60 seconds, realtime, with 2048x TC, each time I use my modified layer.
What I can't figure is, when I had invalid stuff in my RND once, the game crashed immediately _while_ loading the mission. So I think what I have is at least valid structurally and the option values are all valid. But there might be some internal rule that the Mission Editor doesn't reflect that the game expects and I don't know about.
It's like knowing a + b = 4, and thinking a = 1 and b = 3.
But no one told you both a and b have to be EVEN!!!
I hate not knowing the rules. In the above example, obviously a=1 and b=3 is wrong!
 |
|
| Back to top |
|
 |
Wulfmann
Joined: 13 May 2005 Posts: 507 Location: Florida
|
Posted: Wed Jun 15, 2005 9:44 pm Post subject: |
|
|
One thing I am pretty sure of is any changes to the RND that will cause CTD will not CTD until the date that mistake occurs. I have had no problem into 1941, but 1942 CTD when I tried a new campaign for 42 or 43. I went through the convoys, putting back RUB1.3 versions and starting after each exchange until I found a convoy that CTD. Problem is, I can't see why?????? So I modded the RUB convoy to be compatible with what I am doing and ran a new campaign but CTD when I was nearing Italy for return to port.
?????
I am not sure if the hunt is more the fun as compared to the hunt in the game.
Wulfmann |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Wed Jun 15, 2005 10:44 pm Post subject: |
|
|
| Wulfmann wrote: | One thing I am pretty sure of is any changes to the RND that will cause CTD will not CTD until the date that mistake occurs. I have had no problem into 1941, but 1942 CTD when I tried a new campaign for 42 or 43. I went through the convoys, putting back RUB1.3 versions and starting after each exchange until I found a convoy that CTD. Problem is, I can't see why?????? So I modded the RUB convoy to be compatible with what I am doing and ran a new campaign but CTD when I was nearing Italy for return to port.
?????
I am not sure if the hunt is more the fun as compared to the hunt in the game.
Wulfmann |
Yes, that may be so. I have had the game CTD before in a mission when using crew management buttons, and once it was random back when I first got the game in March or April. So it could be a coincidence. Or not. Tough to tell.
I reduced all my convoys down to 3 ships, two merchants and 1 V&W destroyer. Both merchants have spawn dates in 1938. Still CTD. Must be something else, because that's an extremely simple test case.
So far I am clueless.
:nope:
I'm about ready to give it a reinstall, just because it requires no real thought to reinstall, it makes for some easy debugging work... |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Wed Jun 15, 2005 11:09 pm Post subject: |
|
|
Okay, I have my first 100% verified success which I'll use this board's eternal record as witness to. It works with ColumnsNo=1 for a 3 ship convoy. (Two merchant plus one escort.)
That's all I changed. Based on that, I am going to make the reasonable guess that the game uses the ColumnsNo= entry as authoritative. If you don't have enough ships not marked as Escort (where permissible) to make the number of colums you specify, it dies. (I just confirmed this by changing it back to ColumsNo=3 for 2 merchant ships -- It crashes as it should.)
I do wonder if, for example, the rule is that all columns must come out evenly. (ex. For 10 ships, must it be 2 columns of 5 or 5 columns of 2, or can it be 4 columns with 1 column with 2 extra ships.) I also wonder how the mission editor handles it, when you create missions.
This may only explain my crash when I use small numbers of ships for testing. It's possible I have violated another rule and trying to use very small convoys to detect my error resulted in finding another. A layer of errors. Tough to judge until you find all the causes, assuming there is more than one.
For comparison, the game comes with an HX39Convoy with 11 merchant ships and 4 escorts flagged as escort. That seems to indicate that ColumnsNo= need not evenly divide into the total number of merchant ships. Therefore, it's reasonable to assume there is at least one additional problem with my RND layer changes.
But what could it be?
 |
|
| Back to top |
|
 |
Wulfmann
Joined: 13 May 2005 Posts: 507 Location: Florida
|
Posted: Thu Jun 16, 2005 11:03 am Post subject: |
|
|
The worst thing is even if a convoy works it may be defective anyway. That is, the random spawning with some of the ships may cause a later CTD. Notice that some of the ships are not 100% spawn able, they appear 20-50-70% of the time. So if you make the number of columns off by more that required later after you thought that convoy was good, CTD and you looking at the Monitor like a calf looking at a new gate!!!
I do believe if there is a defective ship in any way regarding the SCR or RND file, when this spawns outside your view it may CTD and you are asking huh? all over again because you were sailing along with no contacts and nothing seemingly to cause CTD.
Frankly, there are so many errors in the warships that annoy me I must correct them or I will not be satisfied. I will pay dearly for that attitude, LOL
Wulfmann |
|
| Back to top |
|
 |
jasonb885
Joined: 27 Mar 2002 Posts: 1749
|
Posted: Thu Jun 16, 2005 11:51 am Post subject: |
|
|
| Wulfmann wrote: | The worst thing is even if a convoy works it may be defective anyway. That is, the random spawning with some of the ships may cause a later CTD. Notice that some of the ships are not 100% spawn able, they appear 20-50-70% of the time. So if you make the number of columns off by more that required later after you thought that convoy was good, CTD and you looking at the Monitor like a calf looking at a new gate!!!
|
I don't believe so. As long as you ensure you have at least as many 100% spawnable ships as your ColumnsNo=, it should never crash as a result of that.
The next issue I have encountered is Speed=. If a convoy contains a ship which cannot move at least as fast as the Speed= value, I believe you CTD. I am working on correcting this problem with my RND so I can test again to verify that problem has been resolved.
| Wulfmann wrote: |
I do believe if there is a defective ship in any way regarding the SCR or RND file, when this spawns outside your view it may CTD and you are asking huh? all over again because you were sailing along with no contacts and nothing seemingly to cause CTD.
Frankly, there are so many errors in the warships that annoy me I must correct them or I will not be satisfied. I will pay dearly for that attitude, LOL
Wulfmann |
Yes, that seems to be the case.
It's my understand that at load-time, the game only ensures you have valid options in your RND layer, not that the choices you have are consistent with the game's internal rules. (For example if you specify Class=foobar, it will crash before the mission loads, but not if you specify Class=COFlower when the convoy Speed=14, which a Flower cannot do, resulting in a crash during the mission instead.)
At present I now believe there are three variables which must always be repected within the initial section of a RndGroup. Speed=, ColumnsNo=, and GameEntryDate=. If you screw up the latter, I believe the RndGroup simply does not spawn. (A CTD free failure.) If you screw up either of the former, the game will CTD at convoy spawn time.
ColumsNo= is easy to respect. Speed= is slightly more complex, since you must verify any ships you add have a conforming maximum speed. I can't assertain how any of the other options for a RndGroup will effect individual RndUnits. I don't believe there are any additional elements that need be respected to prevent a crash. The rest all seem to pertain to other things. (I believe CommandUnit= lets you specify some other RndUnit than the first to be the RndGroup leader. NextWP= likely does the same for WPs.)
I'll have to verify the Speed= assertain this evening, but I am highly confident it is accurate. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|