Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Modifying which bases are malarial

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

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> Modifying which bases are malarial Page: [1]
Login
Message << Older Topic   Newer Topic >>
Modifying which bases are malarial - 10/1/2005 4:11:02 PM   
Andrew Brown


Posts: 5007
Joined: 9/5/2000
From: Hex 82,170
Status: offline
This refers to my WitP map, but could be applied to the official map as well.

Several of the bases in Australia are considered to be malarial in WitP, namely Thursday Island, Wyndham, Derby, Broome, Cairns and Cooktown. In reality, malaria was (and is) not at all common in these locations, or any other locations in Australia. Although there are some tropical diseases in the Australian far north, their effect during the war was tiny compared to the effects in places such as New Guinea.

On the other hand, there are several bases in, and near, New Guinea, that are not malarial, because there is a gap in the areas designated as malarial on the map, and a few bases are located in this gap. The bases in this category, on my map, are: Sarmi, Timoeka, Aru Island, Kai Island and Tenimbar Island. I am not certain about the islands (the last three), but the first two bases at least, and probably at least a couple of the islands, should be malarial.

It is possible to correct both of these things by swapping bases around in the database, as the malarial bases in Australia are made that way using hard coding in the EXE file according to their base slots. A possible fix would be to swap five of the six Australian bases listed above with the five bases in or near PNG, and move the sixth Australian base to a vacant slot.

I am considering doing this for the modded official scenarios, and proposing it for inclusion in CHS.

Does anyone else have an opinion about this? Agree/disagree?

Andrew

(edited - removed a spelling error)


< Message edited by Andrew Brown -- 10/1/2005 4:15:57 PM >


_____________________________

Information about my WitP map, and CHS, can be found on my WitP website

Post #: 1
RE: Modifying which bases are malarial - 10/1/2005 10:00:35 PM   
saj42


Posts: 1125
Joined: 4/19/2005
From: Somerset, England
Status: offline
Makes perfect sense to me.
Would the change be available to an existing game? or will it only affect the the 'virgin' scenario data?

_____________________________


Banner by rogueusmc

(in reply to Andrew Brown)
Post #: 2
RE: Modifying which bases are malarial - 10/2/2005 1:25:27 AM   
Andrew Brown


Posts: 5007
Joined: 9/5/2000
From: Hex 82,170
Status: offline
quote:

ORIGINAL: Tallyho!

Makes perfect sense to me.
Would the change be available to an existing game? or will it only affect the the 'virgin' scenario data?


If the changes are made in the scenario data, then they will only affect new games.


_____________________________

Information about my WitP map, and CHS, can be found on my WitP website


(in reply to saj42)
Post #: 3
RE: Modifying which bases are malarial - 10/2/2005 2:51:56 AM   
Bodhi


Posts: 1267
Joined: 8/26/2003
From: Japan
Status: offline
Sounds reasonable. The only worry I would have is if there are any other, currently unknown, places in the program where bases/hex locations are hard-coded. I guess there's a possibility that at least the AI could affected.

_____________________________

Bodhi

(in reply to Andrew Brown)
Post #: 4
RE: Modifying which bases are malarial - 10/2/2005 1:21:15 PM   
Sardaukar


Posts: 9847
Joined: 11/28/2001
From: Finland/Israel
Status: offline
Very good idea, IMHO.

(in reply to Bodhi)
Post #: 5
RE: Modifying which bases are malarial - 10/2/2005 3:59:28 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Making north Australia a "malaria" zone did not seem correct to me.
So making Cairns and Cooktown available to rest troops in sounds right to me.

Only concern is if these base numbers are hard-coded as Bodhi said.

Michael

(in reply to Andrew Brown)
Post #: 6
RE: Modifying which bases are malarial - 10/2/2005 11:50:07 PM   
Damien Thorn

 

Posts: 1107
Joined: 7/24/2003
Status: offline
Does anyone even know how to change a hex from malaria to non-malaria?

(in reply to michaelm75au)
Post #: 7
RE: Modifying which bases are malarial - 10/3/2005 12:24:19 AM   
Captain Cruft


Posts: 3652
Joined: 3/17/2004
From: England
Status: offline
The general Malaria zone is defined by a range of hex co-ordinates and no Aussie bases fall into that range. However, there is a set of base slots which are hard-wired to be malarial regardless of hex co-ordinate. Most of these slots are currently occupied up by the northern Aussie bases.

At the same time there are a number of slots which are hard-wired to not be malarial, regardless of hex co-ordinate. Rangoon, Bangkok, Saigon, Singapore etc.

Mike Wood posted the actual C code which defines all this a while back (attached below).

AB is proposing moving the northern Aussi bases to standard non-malarial slots and replacing them with, presumably, bases that would be malarial anyway.

I agree with the idea.


Attachment (1)

< Message edited by Captain Cruft -- 10/3/2005 12:26:19 AM >

(in reply to Damien Thorn)
Post #: 8
RE: Modifying which bases are malarial - 10/3/2005 3:10:27 AM   
Andrew Brown


Posts: 5007
Joined: 9/5/2000
From: Hex 82,170
Status: offline
quote:

ORIGINAL: Captain Cruft
AB is proposing moving the northern Aussi bases to standard non-malarial slots and replacing them with, presumably, bases that would be malarial anyway.


That's right. However I have also proposed to Mike Wood that the malaria zones be tweaked a little in the code, as well as removing the Australian bases from the "hardwired malarial list", so that the right bases will be defined as malarial. If this is done then bases won't need to be swapped in the scenarios, and existing games would also benefit from the update.




< Message edited by Andrew Brown -- 10/3/2005 6:36:08 AM >


_____________________________

Information about my WitP map, and CHS, can be found on my WitP website


(in reply to Captain Cruft)
Post #: 9
RE: Modifying which bases are malarial - 10/3/2005 3:59:00 AM   
Damien Thorn

 

Posts: 1107
Joined: 7/24/2003
Status: offline
// city has drained swamps
if(gPlace[base].size>8) answer=false;


So if the base is size nine or greater then there is no malaria, right? Base size = airfield size plus port size, right?

(in reply to Captain Cruft)
Post #: 10
RE: Modifying which bases are malarial - 10/3/2005 4:50:07 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
It is the maximum normal airfield build size of 9 or more, according to last patch notes.
Michael
quote:

ORIGINAL: Damien Thorn

// city has drained swamps
if(gPlace[base].size>8) answer=false;


So if the base is size nine or greater then there is no malaria, right? Base size = airfield size plus port size, right?


(in reply to Damien Thorn)
Post #: 11
RE: Modifying which bases are malarial - 10/3/2005 5:35:42 AM   
Damien Thorn

 

Posts: 1107
Joined: 7/24/2003
Status: offline
Thanks. That's good to know.

(in reply to michaelm75au)
Post #: 12
RE: Modifying which bases are malarial - 10/3/2005 1:58:54 PM   
Mattremote

 

Posts: 35
Joined: 8/3/2005
Status: offline
Australia has been considered a non-malarial area for some years now, but was it effectively so in 1942?

I know that the Australians were doing extensive malaria research (especially on atebrine) in Cairns during the war; Cairns was considered to have endemic malaria at the time. Couldn't say about Darwin and other N.Coast towns.

(in reply to Damien Thorn)
Post #: 13
RE: Modifying which bases are malarial - 10/3/2005 3:31:33 PM   
Andrew Brown


Posts: 5007
Joined: 9/5/2000
From: Hex 82,170
Status: offline
quote:

ORIGINAL: Mattremote

Australia has been considered a non-malarial area for some years now, but was it effectively so in 1942?

I know that the Australians were doing extensive malaria research (especially on atebrine) in Cairns during the war; Cairns was considered to have endemic malaria at the time. Couldn't say about Darwin and other N.Coast towns.


Good question. Before I started this thread, I did a lot of looking around online (my reference library is almost non-existent) to see what I could find out about malaria in Australia during the war. I coudn't find anything about malaria being a major problem. Some cases did occur, but as I mention far fewer than occurred in PNG, for example.

The only reference I could find of a major outbreak of malaria in Australia near the time of the war was in Fitzroy Crossing (Northern Western Australia) in 1934, which resulted in 160 deaths.

I found a few references describing the treatment of soldiers with malaria in Australia during the war, but all of these mentioned them in the context of having returned from service in PNG and other places. There was no mention of malaria being a problem for local personnel.

I did find this interesting website:

3RD PORTABLE SURGICAL HOSPITAL, USASOS IN AUSTRALIA DURING WW2

This page contains a document titled "History of Activities of the 3rd Portable Surgical Hospital for the period of March 1 to June 30, 1943" which is a report on an American medical unit which was in Australia during the war. Here is a quote from the report about the types of cases it treated while at Portland Roads (North of Cooktown):

quote:


17. Fifty hospital beds were kept open at all times. The average number of patients daily was about twenty, the majority of which were infected wounds with lymphangitis and lymphadenitis, infected tinea, with the occasional acute appendix or fracture. The most frequent fractures in the area were of the skull, one occurring nearly every Sunday in a cricket match. There were occasionally cases off the ships, which passed along the coast, of diarrhea, malaria and minor accidents. On the whole both surgery and medicine was very light and we turned to a training program to fill the time.


The only mention of malaria refers to cases "off the ships". It seems that the greatest danger came, not from malaria, but from playing cricket (!). I realise that this is just anecdotal, but I could not find any evidence that malaria was a major problem in Northern Australia during the war. Remember that in the game it is debilitating, causing very large reduction in the fighting power of entire units. There is no justification for this type of effect on units stationed in Australia.

Andrew



< Message edited by Andrew Brown -- 10/3/2005 3:35:06 PM >


_____________________________

Information about my WitP map, and CHS, can be found on my WitP website


(in reply to Mattremote)
Post #: 14
RE: Modifying which bases are malarial - 10/3/2005 3:37:38 PM   
Gen.Hoepner


Posts: 3645
Joined: 9/4/2001
From: italy
Status: offline

quote:

ORIGINAL: michaelm

It is the maximum normal airfield build size of 9 or more, according to last patch notes.
Michael
quote:

ORIGINAL: Damien Thorn

// city has drained swamps
if(gPlace[base].size>8) answer=false;


So if the base is size nine or greater then there is no malaria, right? Base size = airfield size plus port size, right?




This doesn't seem to work....at least not with games started under 1.5 and upgraded to 1.6/1.62


_____________________________

[image]http://yfrog.com/2m70331348022314716641664j [/image]

(in reply to michaelm75au)
Post #: 15
RE: Modifying which bases are malarial - 10/3/2005 4:27:13 PM   
Captain Cruft


Posts: 3652
Joined: 3/17/2004
From: England
Status: offline
The size variable in the code refers to the airfield SPS only, not the actual size and not including port. I have tested this and it does work.

In stock and CHS campaign scenarios there are no bases in the malaria zone with an airfield SPS of 9, so you won't see the effect normally. In fact the only such bases are in Japan, China, Manchuria (?) and the USA.

I would guess that the reason it only looks at airfield SPS is because there are numerous inland bases defined as "AFs" and which therefore do not have a port component.

(in reply to Gen.Hoepner)
Post #: 16
RE: Modifying which bases are malarial - 10/3/2005 4:34:22 PM   
Mattremote

 

Posts: 35
Joined: 8/3/2005
Status: offline
Andrew: Found this in an Australian Malaria Register report from the 1990's:

"Australia was certified free of malaria by WHO in 1981, but it is believed that environmental conditions in Australia north of latitude 19°S still favour the transmission of malaria were parasites to be reintroduced."

Of course, most of the US eastern seacoast south of New York would be considered malarial by the same definition.

I assume that the use of 'malarial areas' is a general WITP convention for infectious, insect vector, tropical diseases (malaria, dengue, filariasis, etc.). Not sure about info for other diseases in the WITP map area in the 1940's.

(in reply to Gen.Hoepner)
Post #: 17
RE: Modifying which bases are malarial - 10/3/2005 4:35:17 PM   
Captain Cruft


Posts: 3652
Joined: 3/17/2004
From: England
Status: offline
quote:

ORIGINAL: Andrew Brown
That's right. However I have also proposed to Mike Wood that the malaria zones be tweaked a little in the code, as well as removing the Australian bases from the "hardwired malarial list", so that the right bases will be defined as malarial. If this is done then bases won't need to be swapped in the scenarios, and existing games would also benefit from the update.


Good. What would be even better, and not take that long to code, would be to allow the zones to be defined in an external ASCII text config file. No need to modify the database structure.

Problem is that would open up avenues for the Japanese player to cheat. You'd need to read the zones once at game start and then embed them into the save game file. Still doable though ...

(in reply to Andrew Brown)
Post #: 18
RE: Modifying which bases are malarial - 10/3/2005 4:36:48 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
That is how the programmer explained it.
A base is "malaria-free" if the base has Airfield ?(9) or Airfield ?(10). The Port value does not come into it. Not many bases in the malaria zone qualify for this exemption.

From WhatsNew notes:
quote:

Clarification:

Rule Clarification: The rule that says bases in malaria and cold zones are exempt from the penalties applies to bases with a maximum normal airfield build size of 9 or more. Building facilities at bases with smaller maximum normal airfield or port sizes will not negate the penalty, but will somewhat ameliorate the problem.

(in reply to Gen.Hoepner)
Post #: 19
RE: Modifying which bases are malarial - 10/3/2005 4:42:46 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
The ideal place to put the "zone" (cold, temeperate, malaria,etc) information would have been in the pwhex file. That way each hex could be placed in to a zone, rather than use blanket grids of hexes as in the program. And then bases could have an attribute to modify the "zone" - like no malaria.
Michael

quote:

ORIGINAL: Captain Cruft

quote:

ORIGINAL: Andrew Brown
That's right. However I have also proposed to Mike Wood that the malaria zones be tweaked a little in the code, as well as removing the Australian bases from the "hardwired malarial list", so that the right bases will be defined as malarial. If this is done then bases won't need to be swapped in the scenarios, and existing games would also benefit from the update.


Good. What would be even better, and not take that long to code, would be to allow the zones to be defined in an external ASCII text config file. No need to modify the database structure.

Problem is that would open up avenues for the Japanese player to cheat. You'd need to read the zones once at game start and then embed them into the save game file. Still doable though ...



(in reply to Captain Cruft)
Post #: 20
RE: Modifying which bases are malarial - 10/3/2005 5:00:31 PM   
rtrapasso


Posts: 22653
Joined: 9/3/2002
Status: offline
quote:

"Australia was certified free of malaria by WHO in 1981, but it is believed that environmental conditions in Australia north of latitude 19°S still favour the transmission of malaria were parasites to be reintroduced."

Of course, most of the US eastern seacoast south of New York would be considered malarial by the same definition.


It seems the WHO stated that parts of Australia with 19 degrees of the equator were vulnerable - no part of continental US, or for that matter Hawaii or Alaska, comes to within 19 degrees of the equator.

Having said that, the US (including parts North of NYC) did (and presumably could again) have endemic malaria (if parasites and the appropriate mosquitoes were reintroduced.) The was an outbreak as recently as the 1990's (on Long Island, NY).

(in reply to Mattremote)
Post #: 21
RE: Modifying which bases are malarial - 10/3/2005 5:17:04 PM   
Bradley7735


Posts: 2073
Joined: 7/12/2004
Status: offline
Hi Andrew,

I like your idea. I think there is one more base for you to look at. Norfolk Is. I seem to remember reading that there is no malaria at that island, IRL. I'm not sure, but I think you were the one who said that. Anyway, if it didn't have malaria IRL, you can add it to your fixes.

bc

_____________________________

The older I get, the better I was.

(in reply to rtrapasso)
Post #: 22
RE: Modifying which bases are malarial - 10/3/2005 6:50:49 PM   
Mattremote

 

Posts: 35
Joined: 8/3/2005
Status: offline
Slightly off-topic to this discussion of game mechanics, but the total number of man-days lost to Malaria in the SWPAC in 1943 alone was accounted to be above 994,0000. (16 Army History, Sum/Fall 2003)

(in reply to Bradley7735)
Post #: 23
RE: Modifying which bases are malarial - 10/3/2005 7:40:37 PM   
Captain Cruft


Posts: 3652
Joined: 3/17/2004
From: England
Status: offline
quote:

ORIGINAL: michaelm
The ideal place to put the "zone" (cold, temeperate, malaria,etc) information would have been in the pwhex file. That way each hex could be placed in to a zone, rather than use blanket grids of hexes as in the program. And then bases could have an attribute to modify the "zone" - like no malaria.
Michael


Well yes, but I was talking about how you could make it configurable given the existing circumstances.

Ideally the whole map structure would just be another table in the database.

BTW if anyone's interested there are some very detailed and illuminating game design discussions occurring on the World in Flames board right now.

(in reply to michaelm75au)
Post #: 24
RE: Modifying which bases are malarial - 10/4/2005 12:04:54 AM   
Andrew Brown


Posts: 5007
Joined: 9/5/2000
From: Hex 82,170
Status: offline
quote:

ORIGINAL: michaelm

The ideal place to put the "zone" (cold, temeperate, malaria,etc) information would have been in the pwhex file. That way each hex could be placed in to a zone, rather than use blanket grids of hexes as in the program. And then bases could have an attribute to modify the "zone" - like no malaria.
Michael


Indeed. Way back when I originally decoded the file I was very disappointed that the malaria zone (or any other zone) was not in there.

The external text file Captain Cruft mentions is also a good idea but I don't expect that it is at all realistic that it would be implemented.

Regarding Norfolk Island: the proposed changes I submitted also result in NI being excluded from the malarial zone, as it should be.



_____________________________

Information about my WitP map, and CHS, can be found on my WitP website


(in reply to michaelm75au)
Post #: 25
RE: Modifying which bases are malarial - 10/4/2005 12:05:28 AM   
Damien Thorn

 

Posts: 1107
Joined: 7/24/2003
Status: offline

quote:

ORIGINAL: Captain Cruft
Mike Wood posted the actual C code which defines all this a while back (attached below).



I can't believe I missed this when it was posted. Have they posted any other piece of code? As a software engineer I always like to see examples of other people's coding style. When it is from a game I enjoy it is doubly appreciated.

(in reply to Captain Cruft)
Post #: 26
RE: Modifying which bases are malarial - 10/4/2005 12:21:49 AM   
Captain Cruft


Posts: 3652
Joined: 3/17/2004
From: England
Status: offline
I remember at least one other code snippet. No idea what it was regarding though since I did not keep it.

If you feel like trawling through all previous posts by Mike Wood and Mr. Frag you might find it ...

(in reply to Damien Thorn)
Post #: 27
Page:   [1]
All Forums >> [Current Games From Matrix.] >> [World War II] >> War In The Pacific - Struggle Against Japan 1941 - 1945 >> Modifying which bases are malarial Page: [1]
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.750