28.09.2005, 08:07:41
Quote:Disabling stock maps is done in MPMODESMD.INI, and the PKT is used to support what you did -- simply don't use any of the stock mapfilters -- use only new mapfilters. That's what tmapm is doing for AR2 now btw. The downside is that you also disable fan maps. But this is an advantage for AR2 and not a problem, of course.
I still think you are misinterpreting my words. Or, maybe, I am not reading into all your explanations well enough.
I want to create mpmodes like "Temperate", "Arctic", "Sahara", "Moon", etc. and enable stock maps only from those theatres. I coded the mpmodesmd.ini to match:
Code:
[FreeForAll]
1=GUI:Summer, STT:summer, MPSummerMD.ini, summer, false
2=GUI:Winter, STT:winter, MPWinterMD.ini, winter, false
3=GUI:City, STT:urban, MPCityMD.ini, urban, false
4=GUI:Africa, STT:desert, MPAfricaMD.ini, desert, false
5=GUI:Debug, STT:Debug, MPdebugMD.ini, standard, true
For now, I have hexed the gamemd.exe to read a different file instead of missionsmd.pkt, but obviously this is a dirty solution. My suggestion straight from the start was to allow modders to define the aforementioned filename in the INI, I assumed that would be easier than sifting through pkt parsing code and fixing the duplication bug.