Page 1 of 5
Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 2:32 pm
by Don Bowen
OK - I've figured out the respawning problems and it is bad. Make that very bad. Or maybe very good.
When a "respawnable" ship is sunk it will respawn into the next empty slot for it's side. If there are no more empty slots for the Japanese the respawned ship will overflow into the next empty Allied Slot. I do not know what will happen once all 9999 ship slots are full but will test this. It will either produce a crash or turn out to be the way to stop respawning.
As an example: Japanese Ship Oh-Oh Maru in slot 1234 is re-spawnable and all Japanese slots are full - next empty slot is 3030 in the Allied Carrier section. Oh-Oh Maru gets sunk, result:
Slot 1234 retains Oh-Oh Maru, marked as sunk
Slot 3030 becomes a re-spawned Oh-Oh Maru, unfortunately in the allied section.
More testing and back to you later.
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 3:57 pm
by bstarr
After the first two problems, an MSW and an AG I haven't had a problem since. If sunk ships create empty slots, I would think the solution would be leave a few empty slots in Jap ship data for those first couple of MSWs or AGs. It may be a problem of deleting a few ships.
. . . but which ones.
Emporer: "The opera would be better if you left out a few notes."
Mozart: "Which few?"
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 5:25 pm
by pad152
One would think the Respawn routine would check it's not putting Japanese ships in Allied slots, and wait until a slot was freed up before respawning. I'll bet the same type of thing can happen with air groups and land units when they are split and reforming if all the slots are filled.
CHS is pushing the limits on Witp, and things are bound to break, the question will Matrix be willing to fix these.
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 6:11 pm
by Don Bowen
OK - I've run some tests and am very happy with the results:
1. Japanese ships will respawn into allied slots - solved by Number 2 (below) and therefore not a problem. The programmers might have made a check for this but it is quite normal to skip a lot of checks for things a programmer does not expect to happen - especially in games when every "if" statement is a little more delay in turn resolution.
2. If there are no more empty slots - respawning stops (pause for cheers from Ron). It appears that re-spawning can be "turned off" by filling all empty slots with "9999" delay ships. This means the programmers have followed good coding techniques and prevented array overflow.
In my tests I filled all empty allied slots with copies of the Penguin at Guam. Missed a couple so a three respawned but then it stopped. I will run another test with the last three slots "filled". I am also going to make a post on the main forum thread and hope for a comment from a programmer.
Don
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 10:03 pm
by pad152
Don
1. Japanese ships will respawn into allied slots
Have you been able to verify that Japanese ships that respawn in allied slots don't end up under allied or AI control?
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 10:05 pm
by Ron Saueracker
ORIGINAL: Don Bowen
OK - I've run some tests and am very happy with the results:
1. Japanese ships will respawn into allied slots - solved by Number 2 (below) and therefore not a problem. The programmers might have made a check for this but it is quite normal to skip a lot of checks for things a programmer does not expect to happen - especially in games when every "if" statement is a little more delay in turn resolution.
2. If there are no more empty slots - respawning stops (pause for cheers from Ron). It appears that re-spawning can be "turned off" by filling all empty slots with "9999" delay ships. This means the programmers have followed good coding techniques and prevented array overflow.
In my tests I filled all empty allied slots with copies of the Penguin at Guam. Missed a couple so a three respawned but then it stopped. I will run another test with the last three slots "filled". I am also going to make a post on the main forum thread and hope for a comment from a programmer.
Don
#2! COOL!!! Guess what's going to happen for the non respawn version?[:D]
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 11:30 pm
by Don Bowen
ORIGINAL: Ron Saueracker
#2! COOL!!! Guess what's going to happen for the non respawn version?[:D]
Yes Sir - though you'd like it. But the question is what happens to the "normal" version. We need to empty enough Japanese slots to let Japanese Minesweepers respawn.
There were 345 empties below 3000 in Scenario 15.
In CHS there is 1 empty plus 20 more "reserved" slots that could be used. There are 131 Minesweepers and those little devils could get lost more than once. We'd have to cull at least 100 ships to make it reasonable - even then Japanese Minesweepers will eventually spill over into allied positions.
Perhaps we should give up and let Ron just take over now and make his long-desired respawn version ....
RE: Respawning Problem - CHS and elsewhere
Posted: Sun Apr 03, 2005 11:36 pm
by Lemurs!
so the slots of sunk ships are never reused? that makes no sense.
I can only see the first ship lost having a problem. Or does the game keep track of sunk ships that way? does not reuse the slot, and that dead slot shows sunk vessels.
Mike
RE: Respawning Problem - CHS and elsewhere
Posted: Mon Apr 04, 2005 1:17 am
by bstarr
I think slots of sunk ships are reused. I ended up with my first MSW spawning as an allied ship while the next two spawned correctly. Seems to have fixed itself once there were a few casualties.
RE: Respawning Problem - CHS and elsewhere
Posted: Mon Apr 04, 2005 1:53 am
by Don Bowen
ORIGINAL: Lemurs!
so the slots of sunk ships are never reused? that makes no sense.
I can only see the first ship lost having a problem. Or does the game keep track of sunk ships that way? does not reuse the slot, and that dead slot shows sunk vessels.
Mike
Yes - the sunk ship remains in it's slot, marked as sunk to support the sunk ship list. The re-spawned ship is created in the first available empty slot as a copy of the original with a delay of 500 days more or less. It seems that the spawn happens forward- that is, if the ship in slot 1234 is sunk the game attempts to put a replacement in the first empty slot after 1234. Have not tested to see what would happen if an empty slot was available higher in the table.
I'm still testing to find out what happens with AGs. These don't show in the sunk ship list and it is possible that they may spawn in place (the little perverts). If AGs work we may be looking at another major overhaul of CHS for non-respawn.
Don the anti-documentor.
RE: Respawning Problem - CHS and elsewhere
Posted: Mon Apr 04, 2005 1:55 am
by Don Bowen
ORIGINAL: bstarr
I think slots of sunk ships are reused. I ended up with my first MSW spawning as an allied ship while the next two spawned correctly. Seems to have fixed itself once there were a few casualties.
This is a bit confusing - I don't understand how it would find a slot unless it is somehow starting back at the beginning. There are a couple dozen empties high in the Japanese OOB that are reserved for expansion.
Don
RE: Respawning Problem - CHS and elsewhere
Posted: Mon Apr 04, 2005 2:32 am
by Don Bowen
Well, here's the bad news. AGs seem to spawn exactly the same way as everything else. Lost barges show in the sunk ship list and appear to need a slot to respawn. More testing needed but it looks kind of bad.
So, if we go to a no-spawn version the Japanese might lose their very wonderful bottomless pit of AGs.
But then .... I ran a test with scenario 15 (which has plenty of empty slots) and a sunk AG performed the same way: Sunk ship left in slot, marked sunk, and appears in Sunk Ship list but no new AG appears to have been respawned to another. I'm going to let the game go computer-vs-computer all night and check in the morning. If the sunken AG's re-appear without requiring a new slot I will be very happy!
RE: Respawning Problem - CHS and elsewhere
Posted: Mon Apr 04, 2005 3:25 am
by Ron Saueracker
Let
Perhaps we should give up and let Ron just take over now and make his long-desired respawn version
's continue to unravel the mysteries of the editor and get the CHS running flawlessly before you unleash me on the poor thing. I have no confidence with myself regarding the editor at the moment. That leader cascade made me a little gunshy.[:(]
What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 2:23 pm
by Don Bowen
Well, with the respawning issue it appears we have two choices:
1. Allow respawn: free up at least 100 slots in the Japanese side and hope to hell we still don't respawn Japanese minesweepers into the allied oob.
2. Go to a full non-respawn version with all empty slots "9999"ed away. This would require that we provide the "missing" allied ships that were previously expected to be taken care of by re-spawn. I know a lot of people have wanted this from the very beginning. I'm starting to warm to this one myself.
I've still not been able to divine the secrets of AG re-spawning. Doesn't appear to require an empty slot but so far, hasn't happened. My tests to date:
1. In all-slots-full version, got three AG damaged enough to scuttle: appear in sunk ship list like any other ship.
2. In standard scenario 15, got an AG damaged enough to scuttle: appears in sunk ships list and did not re-spawn to an emtpy slot!. Perhaps there's some function in the program??
3. Went back to the all-slots-full version and let in run computer-vs-computer all night. Now 4/42 and the three AG still show in the sunk ship list.
4. Will let it run more (whenever I don't need the PC) and see if, after some unknown time period, the AG respawn in place.
If this test shows that AG require a second slot to re-spawn, they may become candidates for removal!
I'd appreciate any opinions.
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 3:08 pm
by Ron Saueracker
ORIGINAL: Don Bowen
Well, with the respawning issue it appears we have two choices:
1. Allow respawn: free up at least 100 slots in the Japanese side and hope to hell we still don't respawn Japanese minesweepers into the allied oob.
2. Go to a full non-respawn version with all empty slots "9999"ed away. This would require that we provide the "missing" allied ships that were previously expected to be taken care of by re-spawn. I know a lot of people have wanted this from the very beginning. I'm starting to warm to this one myself.
I've still not been able to divine the secrets of AG re-spawning. Doesn't appear to require an empty slot but so far, hasn't happened. My tests to date:
1. In all-slots-full version, got three AG damaged enough to scuttle: appear in sunk ship list like any other ship.
2. In standard scenario 15, got an AG damaged enough to scuttle: appears in sunk ships list and did not re-spawn to an emtpy slot!. Perhaps there's some function in the program??
3. Went back to the all-slots-full version and let in run computer-vs-computer all night. Now 4/42 and the three AG still show in the sunk ship list.
4. Will let it run more (whenever I don't need the PC) and see if, after some unknown time period, the AG respawn in place.
If this test shows that AG require a second slot to re-spawn, they may become candidates for removal!
I'd appreciate any opinions.
You know what my opinion is![:D] For my taste, I'd kill respawn aside from the Japanese and USN AGs. I'll post the Allied ships affected by the respawn (missing, renamed, advanced arrivals).
Here is a little known tidbit we might want to add. Australia was unofficially a wee bit pissed at the US for naming a Baltimore class cruiser in honour of HMAS Canberra, perhaps the USN felt obliged to considering that it has been determined that USS Bagley accidentally torpedoed Canberra at Savo Island during that debacle. As a direct result, the third Aussie Tribal Class destroyer, originally to be named HMAS Kurnai, was then renamed Bataan in honour of the battle. Many say the choice of Bataan was less in honour of the battle and more a shot at the US for Canberra's loss and at Douglas MacArthur for his unpopularity in official Aussie military circles and his brilliant strategy leading to Bataan.
I say Bataan be renamed Kurnai for the mod because the USS Canberra will arrive with her originally planned name Pittsburgh.
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 5:23 pm
by Don Bowen
Here is a little known tidbit we might want to add. Australia was unofficially a wee bit pissed at the US for naming a Baltimore class cruiser in honour of HMAS Canberra, perhaps the USN felt obliged to considering that it has been determined that USS Bagley accidentally torpedoed Canberra at Savo Island during that debacle. As a direct result, the third Aussie Tribal Class destroyer, originally to be named HMAS Kurnai, was then renamed Bataan in honour of the battle. Many say the choice of Bataan was less in honour of the battle and more a shot at the US for Canberra's loss and at Douglas MacArthur for his unpopularity in official Aussie military circles and his brilliant strategy leading to Bataan.
Whew - now that's a tidbit.
Bagley did fire a salvo of 4 torpedoes from her port battery at a poorly defined target (and one she had probably lost track of). She originally intended to fire using her starboard battery but the torpedoes were not primed and she had to come about until her port battery bore, then fire. I've read some histories that feel her target was
Furutaka and/or
Kinugasa.
However, the official Australian Navy inquiry found that
Canberra was
not torpedoed. Admiral Crutchley disagreed, noting the sudden and complete loss of power in both engine rooms. However, neither the official Australian History nor any other history I have ever read has made mention of even the possibility of a friendly fire accident by
Bagley.
I'd be very interested in a source for this.
As to Australia being a little pissed at America - that's OK. Everyone seems to be pissed at us and we're quite used to it.
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 5:38 pm
by Ron Saueracker
ORIGINAL: Don Bowen
Here is a little known tidbit we might want to add. Australia was unofficially a wee bit pissed at the US for naming a Baltimore class cruiser in honour of HMAS Canberra, perhaps the USN felt obliged to considering that it has been determined that USS Bagley accidentally torpedoed Canberra at Savo Island during that debacle. As a direct result, the third Aussie Tribal Class destroyer, originally to be named HMAS Kurnai, was then renamed Bataan in honour of the battle. Many say the choice of Bataan was less in honour of the battle and more a shot at the US for Canberra's loss and at Douglas MacArthur for his unpopularity in official Aussie military circles and his brilliant strategy leading to Bataan.
Whew - now that's a tidbit.
Bagley did fire a salvo of 4 torpedoes from her port battery at a poorly defined target (and one she had probably lost track of). She originally intended to fire using her starboard battery but the torpedoes were not primed and she had to come about until her port battery bore, then fire. I've read some histories that feel her target was
Furutaka and/or
Kinugasa.
However, the official Australian Navy inquiry found that
Canberra was
not torpedoed. Admiral Crutchley disagreed, noting the sudden and complete loss of power in both engine rooms. However, neither the official Australian History nor any other history I have ever read has made mention of even the possibility of a friendly fire accident by
Bagley.
I'd be very interested in a source for this.
As to Australia being a little pissed at America - that's OK. Everyone seems to be pissed at us and we're quite used to it.
One source is "Savo in Retrospect" by Bruce Loxton in The RAN in WW2 (Ed by David Stevens)
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 5:55 pm
by jwilkerson
"Ron" I though you'd be interested in the new patch to UV. One of the features in the new patch is as described below ...
other changes make groups of submarines easier to spot
So I guess this means "they don't get it" ... as I would've thought just the opposite would be in order ... make WITP subs LESS easy to spot ... instead of copying the error from WITP over to UV !!!
Oh well ... [:(]
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 5:57 pm
by Don Bowen
ORIGINAL: Ron Saueracker
One source is "Savo in Retrospect" by Bruce Loxton in The RAN in WW2 (Ed by David Stevens)
Can you give me an ISBN?? I have the official history, by Gill and also named The
Royal Australian History in World War II but not the one you mention.
RE: What to do now: Bother, Bother
Posted: Mon Apr 04, 2005 6:05 pm
by Tankerace
ORIGINAL: Don Bowen
As to Australia being a little pissed at America - that's OK. Everyone seems to be pissed at us and we're quite used to it.
That's no lie.
Of course, I find it funny they would be so pissed at us, considering the Aussie generals wanted to sit in Australia and wait for Japan to invade. As much as I don't like Mac (Im a Patton guy myself), he probably helped save Australia by keeping the fight in New Guinea.