SmartMap_mst.py 947 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900
  1. #
  2. # FILE: SmartMap.py
  3. # AUTHOR: Doug McCreary (surt@uga.edu)
  4. # PURPOSE: Allow a finely detailed user control of map generation
  5. #-----------------------------------------------------------------------------
  6. # Copyright (c) 2005-2006 Doug's Software All rights reserved.
  7. #-----------------------------------------------------------------------------
  8. #
  9. # Version History
  10. #
  11. # 9.26 edited by Terkhen - 12.Sep.2016
  12. # Changed, use grid definitions from the active mod instead of using hardcoded ones.
  13. #
  14. # 9.25 edited by Terkhen - 17.Aug.2016
  15. # Fixed, use terrain, feature and improvement definitions from MST.
  16. #
  17. # 9.24 edited by Terkhen - 07.Aug.2016
  18. # Fixed, Certain mods like More Naval AI or ExtraModMod use a Player instead of a Team as a parameter for canHaveImprovement and calculateBestNatureYield.
  19. #
  20. # 9.23 edited by Terkhen - 08.Dic.2014
  21. # Fixed, BONUS_REAGENTS was mispelled.
  22. #
  23. # 9.22 edited by Temudjin - 29.Jul.2011
  24. # Fixed ??, MAC compatibility with key parameter in sort() method
  25. # Fixed [Planetfall], addGoodies() use default generator, which places some pods into water
  26. # Changed, Goody Hut generation process
  27. # - now slightly less Goody Huts, which are no longer adjacent to each other
  28. # - 'Mars Now!' gets only half the goodies
  29. #
  30. # 9.21 edited by Temudjin - 15.Mar.2011
  31. # Fixed, compatibility to Planetfalls 'Scattered Pods' mod option
  32. # Fixed [Mars Now!], team start normalization
  33. # Added, new map option: expanded coastal waters (like Civ5)
  34. # - 'expanded' automatically adds one to continent separation
  35. # Added [Mars Now!], new map option: 'Sands of Mars'/'Terraformed Mars'
  36. # - 'Terraformed Mars' automatically adds one to continent separation
  37. # Added (temporarily) [Planetfall] - 'The Big Dunes' special region
  38. # - just to show how it could be done
  39. # - can be turned off in Global Variables
  40. # Changed, stratified normalization process
  41. # Changed, reorganised function call sequence within map building process
  42. # Changed [Mars Now!], now using dedicated terrain generator
  43. #
  44. # 9.20 edited by Temudjin - 15.Jul.2010 - NOW DEPENDS ON MapScriptTools.py
  45. # Adjusted for MapScriptTools
  46. # BtS compatibility
  47. # - Use both .Civ4WorldBuilderSave and .CivBeyondSwordWBSave files
  48. # - Use MapScriptTools to get Civ4 path
  49. # Planetfall / FFH2 compatibility
  50. # Mars Now! compatibility
  51. # Create Marshes, if mod allows it
  52. # Create Deep Ocean, if mod allows it
  53. # Create Special Regions (Bogs, Dents, Elemental Quarter, Lost Isle)
  54. # Place Kelp, Haunted Lands and Crystal Plains if mod allows for them
  55. # Check for Temudjin's Cool Starting Plots
  56. # Add option for team placement
  57. # Add option for balancing strategic starting-plot ressources
  58. # Adjusted some options
  59. # Adjust option handling - remove some options for Planetfall
  60. # Add reasonable defaults for options not found in config-file
  61. # Adjust latitude calculation --> see unofficial patch for BtS 3.19
  62. # Enable civ4-default peak-removal near starting-plots
  63. # Added some boni into resource handling lists
  64. # Prefixed and adjusted most PythonDbg.log output
  65. # Changed general map sizes slightly and can use additional worldsizes by the mod
  66. # Changed way to calculate map sizes from user override options
  67. #
  68. # # NOTE on overriding map sizes:
  69. # - general map sizes have priority
  70. # - if either width or height are overridden, the other dimension will change in a way
  71. # that the grid area doesn't significally changes
  72. # - if both width and height are overridden, the proportions of the new width/height are
  73. # preserved, but the size will adjusted so that the area will not change beyond 0.75 - 1.33
  74. # - if both width and height are overridden and the biggest map size is choosen, the
  75. # new values are used
  76. # # NOTE on map option menu items:
  77. # - 'Planetfall' and 'Mars Now!' have fewer map options,
  78. # because some of them make no sense on those alien planets
  79. #
  80. # 9.1 edited by Keldath, Mrgenie, TAfirehawk for the ViSa-mod
  81. # Added support for loading and resizing Civ4WorldBuilderSave files (WBS files), you'll
  82. # find them in the 'continents' menu since they define the land shape for the map.
  83. # Added support for loading terrains from map (WBS) see option: 'use map data' in terrain menu.
  84. # This should resolve the 'unrealistic terrain' problem for the BlueMarble based maps as well.
  85. # Sampled terrain from blue marble data for earth based maps.
  86. # Tweaked 'earth' map option to remove useless antarctica.
  87. # Tweaked player placement to be less willing to place players near the poles.
  88. # Changed crazy resource option to place land/water resources only on those tiles.
  89. # Split resource placement rules from resource density controls. The combination of the
  90. # two was creating too much confusion over what option did what to resources. Hopefully
  91. # the resource controls will be both clearer and give you more options now.
  92. ##########################################################################
  93. #the imports required for SmartMap or the borrowed fractal generators
  94. from CvPythonExtensions import *
  95. #import CvUtil
  96. import CvMapGeneratorUtil
  97. import operator
  98. import pickle
  99. import gc # Garbage Collection; is this useful or neccessary?
  100. import glob
  101. from math import sqrt
  102. ################################################################
  103. ## MapScriptTools by Temudjin
  104. ################################################################
  105. import MapScriptTools as mst
  106. balancer = mst.bonusBalancer
  107. DEBUG = True
  108. if DEBUG:
  109. import inspect
  110. global callModule
  111. stackList = inspect.stack()
  112. mst.printList( stackList, "stack:", 1, prefix="[SMap] " )
  113. callModule = ""
  114. if len( stackList ) > 1:
  115. callModule = stackList[1][1]
  116. print "[SMap] callModule: %s" % ( callModule )
  117. cymap = CyMap()
  118. def getVersion():
  119. return "9.26_mst"
  120. def getDescription():
  121. return "Smart MapScript Ver." + getVersion()
  122. # #######################################################################################
  123. # ######## beforeGeneration() - Called from system after user input is finished
  124. # ######## - define your latitude formula, get the map-version
  125. # ######## - create map options info string
  126. # ######## - initialize the MapScriptTools
  127. # ######## - initialize MapScriptTools.BonusBalancer
  128. # ######## - add known strategic resources
  129. # #######################################################################################
  130. def beforeGeneration():
  131. print "[SMap] -- beforeGeneration()"
  132. global resourcesStrategic
  133. # Save user settings
  134. writeConfig()
  135. # Create mapInfo string
  136. mapInfo = ""
  137. # Backup current language
  138. iLanguage = CyGame().getCurrentLanguage()
  139. # Force english language for logs
  140. CyGame().setCurrentLanguage(0)
  141. for opt in range( getNumCustomMapOptions() ):
  142. nam = getCustomMapOptionName( [opt] )
  143. sel = CyMap().getCustomMapOption( opt )
  144. txt = getCustomMapOptionDescAt( [opt,sel] )
  145. mapInfo += "%28s %s\n" % ( nam, txt )
  146. if txt.lower().find("smartmap random pick") > -1:
  147. smartCache = userSelectionCache.get( nam, None )
  148. if smartCache != None:
  149. txt, val = smartCache
  150. mapInfo += "%28s * %s\n" % ( nam, txt )
  151. # Restore current language
  152. CyGame().setCurrentLanguage(iLanguage)
  153. # Initialize MapScriptTools
  154. mst.getModInfo( getVersion(), None, mapInfo )
  155. # Initialize constants from custom options
  156. if mst.bMars:
  157. mst.bSandsOfMars = (getSelectedMapValue("Mars Theme:") == 0)
  158. # Initialize bonus balancing
  159. if mst.bPfall:
  160. balancer.initialize() # balance boni, place missing boni, move minerals
  161. else:
  162. balance = getSelectedMapValue("Bonus Balancing:")
  163. balancer.initialize( balance[0], True, True, balance[1] ) # balance boni, place missing boni, move minerals, wide range
  164. # Try to add known strategic resources
  165. if (not mst.bPfall) and (not mst.bMars):
  166. if mst.ebBauxite: resourcesStrategicList.append( 'BONUS_BAUXITE' )
  167. elif mst.ebAluminum: resourcesStrategicList.append( 'BONUS_ALUMINUM' )
  168. if mst.ebTitanium: resourcesStrategicList.append( 'BONUS_TITANIUM' )
  169. if mst.ebNaturalGas: resourcesStrategicList.append('BONUS_NATURAL_GAS')
  170. if mst.ebRubber: resourcesStrategicList.append('BONUS_RUBBER')
  171. if mst.ebSulphur: resourcesStrategicList.append('BONUS_SULPHUR')
  172. resourcesStrategic = tuple( resourcesStrategicList )
  173. # #######################################################################################
  174. # ######## addRivers() - Called from system
  175. # ######## - THIRD STAGE in 'Generate Map'
  176. # ######## - puts rivers on the map
  177. # #######################################################################################
  178. def addRivers():
  179. print "[SMap] -- addRivers()"
  180. #mst.mapPrint.buildTerrainMap( True, "[SMap] addRivers()_start" )
  181. # Expand coastal waters
  182. if getSelectedMapValue("Coastal Waters:") == 1:
  183. mst.mapPrettifier.expandifyCoast()
  184. if fromMap:
  185. if mst.bMarsh:
  186. cntMarsh = 0
  187. for i in range( CyMap().numPlots() ):
  188. p = CyMap().plotByIndex(i)
  189. if p.getTerrainType() == mst.etMarsh:
  190. cntMarsh += 1
  191. break
  192. if cntMarsh == 0:
  193. # Generate marsh-terrain, but only if there wasn't any on the map before
  194. mst.marshMaker.convertTerrain()
  195. # Build between 0..1 mountain-ranges.
  196. mst.mapRegions.buildBigDents(1)
  197. # Build between 0..1 bog-regions.
  198. mst.mapRegions.buildBigBogs(1)
  199. else:
  200. # Generate marsh-terrain
  201. mst.marshMaker.convertTerrain()
  202. # Build between 0..3 mountain-ranges.
  203. mst.mapRegions.buildBigDents(5)
  204. # Build between 0..3 bog-regions.
  205. mst.mapRegions.buildBigBogs(3)
  206. # Generate DeepOcean-terrain if mod allows for it
  207. mst.deepOcean.buildDeepOcean()
  208. # Prettify the map - create better connected deserts and plains
  209. if not mst.bPfall:
  210. if getSelectedMapValue("Terrain:") != "SmartMap Crazy":
  211. mst.mapPrettifier.lumpifyTerrain( mst.etDesert, mst.etPlains, mst.etGrass )
  212. if not mst.bMars:
  213. mst.mapPrettifier.lumpifyTerrain( mst.etPlains, mst.etDesert, mst.etGrass )
  214. # No rivers on Mars
  215. if not mst.bMars:
  216. # Put rivers on the map.
  217. addRivers2() # call renamed script function
  218. # Put additional rivers on small islands
  219. mst.riverMaker.islandRivers()
  220. # #######################################################################################
  221. # ######## addLakes() - Called from system
  222. # ######## - FOURTH STAGE in 'Generate Map'
  223. # ######## - puts lakes on the map
  224. # #######################################################################################
  225. def addLakes():
  226. print "[SMap] -- addLakes()"
  227. # no lakes on desertified Mars
  228. if not mst.bSandsOfMars:
  229. addLakes2()
  230. # #######################################################################################
  231. # ######## addFeatures() - Called from system after addLakes()
  232. # ######## - FIFTH STAGE in 'Generate Map'
  233. # ######## - puts features on the map
  234. # #######################################################################################
  235. def addFeatures():
  236. print "[SMap] -- addFeatures()"
  237. #mst.mapPrint.buildTerrainMap( True, "[SMap] addFeatures()_start" )
  238. # Prettify map - connect some small adjacent lakes
  239. mst.mapPrettifier.connectifyLakes()
  240. # Sprout rivers from lakes.
  241. mst.riverMaker.buildRiversFromLake( None, 33, 2, 1 ) # all lakes, 33% chance, 2 rivers, size>=1
  242. if mst.bPfall or mst.bMars:
  243. # Planetfall/Mars Now! use default featureGenerator
  244. featuregen = mst.MST_FeatureGenerator()
  245. featuregen.addFeatures()
  246. else:
  247. # Use scripts featureGenerator
  248. addFeatures2() # call renamed script function
  249. # Prettify the map - transform coastal volcanos; default: 66% chance
  250. mst.mapPrettifier.beautifyVolcanos()
  251. # Mars Now!: lumpify sandstorms
  252. if mst.bMars: mst.mapPrettifier.lumpifyTerrain( mst.efSandStorm, FeatureTypes.NO_FEATURE )
  253. # Planetfall: handle shelves and trenches
  254. if mst.bPfall: mst.planetFallMap.buildPfallOcean()
  255. # FFH: build ElementalQuarter; default: 5% chance
  256. if mst.bFFH: mst.mapRegions.buildElementalQuarter()
  257. # #######################################################################################
  258. # ######## addBonuses() - Called from system after addFeatures()
  259. # ######## - SIXTH STAGE in 'Generate Map'
  260. # ######## - puts boni on the map
  261. # #######################################################################################
  262. def addBonuses():
  263. print "[SMap] -- addBonuses()"
  264. #mst.mapPrint.buildFeatureMap( True, "[SMap] addBonuses()_start" )
  265. if mst.bPfall or mst.bMars:
  266. CyPythonMgr().allowDefaultImpl()
  267. else:
  268. addBonuses2() # call renamed script function
  269. # #######################################################################################
  270. # ######## addGoodies() - Called from system after addBonuses()
  271. # ######## - SEVENTH STAGE in 'Generate Map'
  272. # ######## - puts Goody Huts on the map
  273. # #######################################################################################
  274. # strangely FFH mods call this three times ?
  275. def addGoodies():
  276. print "[SMap] -- addGoodies()"
  277. if mst.bPfall: # Planetfall has it's own way
  278. CyPythonMgr().allowDefaultImpl()
  279. else:
  280. addGoodies2() # call renamed script function
  281. iGoody = 0
  282. for inx in range( cymap.numPlots() ):
  283. pPlot = cymap.plotByIndex( inx )
  284. if pPlot.getImprovementType() == mst.eiGoody:
  285. iGoody += 1
  286. print "[SMap] Goody Huts now on the map: %i" % (iGoody)
  287. # ############################################################################################
  288. # ######## normalizeStartingPlotLocations() - Called from system after starting-plot selection
  289. # ######## - FIRST STAGE in 'Normalize Starting-Plots'
  290. # ######## - change assignments to starting-plots
  291. # ############################################################################################
  292. def normalizeStartingPlotLocations():
  293. print "[SMap] -- normalizeStartingPlotLocations()"
  294. #mst.mapPrint.buildRiverMap( True, "[SMap] normalizeStartingPlotLocations()_0" )
  295. # build Lost Isle
  296. # - this region needs to be placed after starting-plots are first assigned
  297. mst.mapRegions.buildLostIsle( chance=33, minDist=7, bAliens=mst.choose(33,True,False) )
  298. if mst.bMars:
  299. # Mars Now! uses no teams
  300. CyPythonMgr().allowDefaultImpl()
  301. else:
  302. op = getSelectedMapValue("Team Placement:")
  303. if op == 0:
  304. # by default civ places teams near to each other
  305. CyPythonMgr().allowDefaultImpl()
  306. elif op == 1:
  307. # shuffle starting-plots to separate teams
  308. mst.teamStart.placeTeamsTogether( False, True )
  309. else:
  310. # randomize starting-plots to ignore teams
  311. mst.teamStart.placeTeamsTogether( True, True )
  312. mst.mapPrint.buildRiverMap( True, "[SMap] normalizeStartingPlotLocations()_end" )
  313. # ############################################################################################
  314. # ######## normalizeAddRiver() - Called from system after normalizeStartingPlotLocations()
  315. # ######## - SECOND STAGE in 'Normalize Starting-Plots'
  316. # ######## - add some rivers if needed
  317. # ############################################################################################
  318. def normalizeAddRiver():
  319. print "-- normalizeAddRiver()"
  320. return None
  321. # ############################################################################################
  322. # ######## normalizeRemovePeaks() - Called from system after normalizeAddRiver()
  323. # ######## - THIRD STAGE in 'Normalize Starting-Plots'
  324. # ######## - remove some peaks if needed
  325. # ############################################################################################
  326. def normalizeRemovePeaks():
  327. print "-- normalizeRemovePeaks()"
  328. return None
  329. # ############################################################################################
  330. # ######## normalizeAddLakesRiver() - Called from system after normalizeRemovePeaks()
  331. # ######## - FOURTH STAGE in 'Normalize Starting-Plots'
  332. # ######## - add some lakes if needed
  333. # ############################################################################################
  334. def normalizeAddLakes():
  335. print "-- normalizeAddLakes()"
  336. return None
  337. # ############################################################################################
  338. # ######## normalizeRemoveBadFeatures() - Called from system after normalizeAddLakes()
  339. # ######## - FIFTH STAGE in 'Normalize Starting-Plots'
  340. # ######## - remove bad features if needed
  341. # ############################################################################################
  342. def normalizeRemoveBadFeatures():
  343. print "-- normalizeRemoveBadFeatures()"
  344. return None
  345. # ############################################################################################
  346. # ######## normalizeRemoveBadTerrain() - Called from system after normalizeRemoveBadFeatures()
  347. # ######## - SIXTH STAGE in 'Normalize Starting-Plots'
  348. # ######## - change bad terrain if needed
  349. # ############################################################################################
  350. def normalizeRemoveBadTerrain():
  351. print "-- normalizeRemoveBadTerrain()"
  352. return None
  353. # ############################################################################################
  354. # ######## normalizeAddFoodBonuses() - Called from system after normalizeRemoveBadTerrain()
  355. # ######## - SEVENTH STAGE in 'Normalize Starting-Plots'
  356. # ######## - add food if needed
  357. # ############################################################################################
  358. def normalizeAddFoodBonuses():
  359. print "-- normalizeAddFoodBonuses()"
  360. if mst.bMars:
  361. CyPythonMgr().allowDefaultImpl()
  362. # ############################################################################################
  363. # ######## normalizeAddGoodTerrain() - Called from system after normalizeAddFoodBonuses()
  364. # ######## - EIGHTH STAGE in 'Normalize Starting-Plots'
  365. # ######## - add good terrain if needed
  366. # ############################################################################################
  367. def normalizeAddGoodTerrain():
  368. print "-- normalizeAddGoodTerrain()"
  369. return None
  370. # ############################################################################################
  371. # ######## normalizeAddExtras() - Called from system after normalizeAddGoodTerrain()
  372. # ######## - NINTH and LAST STAGE in 'Normalize Starting-Plots'
  373. # ######## - last chance to adjust starting-plots
  374. # ######## - called before startHumansOnSameTile(), which is the last map-function so called
  375. # ############################################################################################
  376. def normalizeAddExtras():
  377. print "[SMap] -- normalizeAddExtras()"
  378. # Balance boni, place missing boni, move minerals
  379. balancer.normalizeAddExtras()
  380. # Do the default housekeeping
  381. CyPythonMgr().allowDefaultImpl()
  382. # Make sure marshes are on flatlands
  383. mst.marshMaker.normalizeMarshes()
  384. # Give extras to special regions
  385. mst.mapRegions.addRegionExtras()
  386. # Place special features on map
  387. mst.featurePlacer.placeFeatures()
  388. # Kill ice on warm edges
  389. mst.mapPrettifier.deIcifyEdges()
  390. # Preserve user options
  391. global initFirstTimeDone
  392. global hasReadConfig
  393. global worldBuilderMapData
  394. initFirstTimeDone = False
  395. hasReadConfig = False
  396. worldBuilderMapData = []
  397. # Print maps and stats
  398. mst.mapStats.statPlotCount( "" )
  399. # Print plotMap
  400. mst.mapPrint.buildPlotMap( True, "normalizeAddExtras()" )
  401. # Print areaMap
  402. mst.mapPrint.buildAreaMap( True, "normalizeAddExtras()" )
  403. # Print terrainMap
  404. mst.mapPrint.buildTerrainMap( False, "normalizeAddExtras()" )
  405. # Print featureMap
  406. mst.mapPrint.buildFeatureMap( False, "normalizeAddExtras()" )
  407. # Print bonusMap
  408. mst.mapPrint.buildBonusMap( False, "normalizeAddExtras()" )
  409. # Print manaMap if FFH
  410. if mst.bFFH: mst.mapPrint.buildBonusMap( False, "normalizeAddExtras():Mana", None, mst.mapPrint.manaDict )
  411. # Print riverMap
  412. mst.mapPrint.buildRiverMap( False, "normalizeAddExtras()" )
  413. # Print mod and map statistics
  414. mst.mapStats.mapStatistics()
  415. # ############################################################################
  416. # ######## minStartingDistanceModifier() - Called from system at various times
  417. # ######## - FIRST STAGE in 'Select Starting-Plots'
  418. # ######## - adjust starting-plot distances
  419. # ############################################################################
  420. def minStartingDistanceModifier():
  421. if mst.bPfall: return -25
  422. elif mst.bMars: return -15
  423. return 0
  424. # ############################################################################
  425. # ######## User configurable constants - adjusted by Temudjin
  426. # ############################################################################
  427. #these are the resources you find only in water tiles
  428. resourcesWater = ('BONUS_CLAM', 'BONUS_FISH', 'BONUS_WHALE', 'BONUS_CRAB', 'BONUS_PEARLS', 'BONUS_SHRIMP')
  429. #these resources should be given more often than others
  430. resourcesCommon = ('BONUS_CORN', 'BONUS_COW', 'BONUS_DEER', 'BONUS_PIG', 'BONUS_RICE',
  431. 'BONUS_SHEEP', 'BONUS_WHEAT', 'BONUS_SALT', 'BONUS_SUGAR', 'BONUS_BARLEY',
  432. 'BONUS_PAPYRUS', 'BONUS_POTATO', 'BONUS_FUR')
  433. #these resources are important early on, and will place extras unless using one of the 'stricter' options
  434. if mst.bFFH:
  435. resourcesImportantEarly = ('BONUS_STONE', 'BONUS_MARBLE', 'BONUS_COPPER', 'BONUS_IRON', 'BONUS_HORSE', 'BONUS_IVORY', 'BONUS_MANA')
  436. else:
  437. resourcesImportantEarly = ('BONUS_STONE', 'BONUS_MARBLE', 'BONUS_COPPER', 'BONUS_IRON', 'BONUS_HORSE', 'BONUS_IVORY', 'BONUS_SULPHUR')
  438. #these are the strategic resources restricted by the 'restricted' settings
  439. if mst.bPfall:
  440. resourcesStrategicList = []
  441. elif mst.bMars:
  442. resourcesStrategicList = ['BONUS_URANIUM', 'BONUS_IRON', 'BONUS_STONE', 'BONUS_IVORY', 'BONUS_WHEAT' ]
  443. elif mst.bFFH:
  444. resourcesStrategicList = ['BONUS_IRON', 'BONUS_MANA', 'BONUS_REAGENTS', 'BONUS_MITHRIL']
  445. else:
  446. resourcesStrategicList = ['BONUS_IRON', 'BONUS_OIL', 'BONUS_URANIUM', 'BONUS_COAL']
  447. # ############################################################################
  448. # ######## Global Variables
  449. # ############################################################################
  450. noBigDunes = False # create Big Dunes landmark in Planetfall
  451. wrapX = False #is map wrapped on x
  452. wrapY = False #is map wrapped on y
  453. centralPole = False #a central pole means the point at the center of the map is a pole
  454. width = 0 #width of the map in plots
  455. height = 0 #height of the map in plots
  456. mapDimensionSize = 0
  457. #the eight tiles that immediately surround a given tile
  458. cardinalDirs = [(-1,0),(0,-1),(0,1),(1,0)]
  459. #the eight tiles that immediately surround a given tile
  460. nearDirs = [(-1,-1),(-1,0),(-1,1),(0,-1),(0,1),(1,-1),(1,0),(1,1)]
  461. #the set of tiles that can be used by a given tile if a city is built there
  462. playerStartCross = [(-1,-1),(-1,0),(-1,1),(0,-1),(0,1),(1,-1),(1,0),(1,1),
  463. (-2,-1),(-2,0),(-2,1),(2,-1),(2,0),(2,1),(-1,2),(0,2),(1,2),(-1,-2),(0,-2),(1,-2)]
  464. #a list of lists: of the continents, and all their land tiles
  465. postContinentLists = []
  466. #remember how many total land tiles we have
  467. totalLandCount = 0
  468. #remember how many coastal tiles there are
  469. totalCoastCount = 0
  470. #pre-computed altitude of all plots
  471. preComputedAltitude = []
  472. #which map size was selected
  473. sizeSelected = 0
  474. #pre-computed wetness of all plots
  475. preComputedWetness = []
  476. #spiral search support vars
  477. spiralCenterX = 0
  478. spiralCenterY = 0
  479. spiralStep = 0
  480. spiralSign = 0
  481. spiralX = 0
  482. spiralY = 0
  483. spiralQueue = []
  484. #spatial hash data
  485. spaceHash = []
  486. #type used to fill empty tiles, allowing for ocean filled or land filled maps
  487. fillType = PlotTypes.PLOT_OCEAN
  488. landPlotTypes = [PlotTypes.PLOT_LAND,PlotTypes.PLOT_HILLS,PlotTypes.PLOT_PEAK]
  489. crazyResources = False
  490. insaneResources = False
  491. didWrap = False
  492. initFirstTimeDone = False
  493. hasReadConfig = False
  494. worldBuilderMapData = []
  495. #minx, miny, maxx, maxy
  496. earthPcts = (0,0,100,100)
  497. northAmericaPcts = (2,50,40,100)
  498. southAmericaPcts = (24,0,42,55)
  499. africaPcts = (44,12,66,74)
  500. asiaPcts = (68,44,100,100)
  501. australiaPcts = (76,8,95,55)
  502. europePcts = (45,60,65,100)
  503. minXPct, minYPct, maxXPct, maxYPct = (0,0,100,100)
  504. mapTerrainData = []
  505. # ############################################################################
  506. # ######## Determine Map Type
  507. # ############################################################################
  508. #this is an advanced map, only shows up if you do custom map
  509. def isAdvancedMap():
  510. "This map should not show up in simple mode"
  511. return 1
  512. #this map uses the sea level option to determine continent separation minimum
  513. def isSeaLevelMap():
  514. return True
  515. #this map may or may not obey the climate selector depending on which
  516. #terrain and feature gen is chosen
  517. def isClimateMap():
  518. return True
  519. ##########################################################################
  520. #Step 0: the map grid size is determined. your map will contain 4 tiles
  521. # for every grid size, so an 8x4 grid size is 32x16 tiles
  522. def getGridSize(argsList):
  523. print "[SMap] -- STEP 0 - getGridSize()"
  524. if (argsList[0] == -1): return [] # (-1,) is passed to function on loads
  525. # get wrap and pole stats
  526. global wrapX, wrapY, centralPole
  527. wrapX, wrapY, centralPole = getSelectedMapValue("Wrap:")
  528. maxWorld = CyGlobalContext().getNumWorldInfos()
  529. [eWorldSize] = argsList
  530. width = CyGlobalContext().getWorldInfo(eWorldSize).getGridWidth()
  531. height = CyGlobalContext().getWorldInfo(eWorldSize).getGridHeight()
  532. sprint = "[SMap] Selected gridsize: width %3r, height %3r, area %5r, worldsize %r/%r\n" % (width, height, width*height, int(eWorldSize), maxWorld-1)
  533. #allow for overrides of the width and height
  534. overrideWidth = getSelectedMapValue("Override Width:")
  535. overrideHeight = getSelectedMapValue("Override Height:")
  536. oWidth, oHeight = 0, 0
  537. if overrideWidth > 0:
  538. oWidth = overrideWidth
  539. elif overrideWidth < -1:
  540. oWidth = mst.chooseNumber( overrideWidth * (-2), overrideWidth * (-8) + 1 )
  541. if overrideHeight > 0:
  542. oHeight = overrideHeight
  543. elif overrideHeight < -1:
  544. oHeight = mst.chooseNumber( overrideHeight * (-2), overrideHeight * (-8) + 1 )
  545. sprint += "[SMap] Override gridsize: width %3r, height %3r, area %5r\n" % (oWidth, oHeight, oWidth*oHeight)
  546. # adjust for overrides
  547. if (overrideWidth != -1) and (overrideHeight != -1):
  548. # stretch both sides
  549. size = width * height * 1.0
  550. oSize = oWidth * oHeight * 1.0
  551. if int(eWorldSize) == (maxWorld - 1):
  552. size = oSize
  553. else:
  554. if (size / oSize) < 0.75:
  555. size = 1.33 * size
  556. elif (size / oSize) > 1.33:
  557. size = 0.75 * size
  558. else:
  559. size = oSize
  560. # get right proportions
  561. q = oWidth * 1.0 / oHeight
  562. oWidth = int( sqrt( size * q ) )
  563. if mst.odd( oWidth ): oWidth += 1
  564. oHeight = int( sqrt( size / q ) )
  565. if mst.odd( oHeight ): oHeight += 1
  566. width, height = checkMapDimensions( oWidth, oHeight, int(eWorldSize) )
  567. elif (overrideWidth == -1) and (overrideHeight != -1):
  568. # override height
  569. oWidth = int( (height * width * 1.0) / oHeight )
  570. if mst.odd( oWidth ): oWidth += 1
  571. width, height = checkMapDimensions( oWidth, oHeight, int(eWorldSize) )
  572. elif (overrideWidth != -1) and (overrideHeight == -1):
  573. # override width
  574. oHeight = int( (height * width * 1.0) / oWidth )
  575. if mst.odd( oHeight ): oHeight += 1
  576. width, height = checkMapDimensions( oWidth, oHeight, int(eWorldSize) )
  577. sprint += "[SMap] Final gridsize: width %3r, height %3r, area %5r" % (width, height, width*height)
  578. print sprint
  579. OutputMessage("Python: SmartMap: Step 0 Getting the Grid Size: complete")
  580. collectGarbage()
  581. return (width, height)
  582. # check if fx,fy have the correct proportions for the map
  583. def checkMapDimensions( fx, fy, iSize ):
  584. x, y = fx, fy
  585. # max height to width quotient is 3.14
  586. if ((fy * 1.0) / fx) > 3.14:
  587. x = int( sqrt( (fx * fy * 1.0) / 3.14 ) )
  588. if mst.odd( x ): x += 1
  589. y = int( sqrt( fx * fy * 3.14 ) )
  590. if mst.odd( y ): y -= 1
  591. # max width to height quotient is 5.0
  592. elif ((fx * 1.0) / fy) > 5.0:
  593. y = int( sqrt( (fx * fy * 1.0) / 5.0 ) )
  594. if mst.odd( y ): y += 1
  595. x = int( sqrt( fx * fy * 5.0 ) )
  596. if mst.odd( x ): x -= 1
  597. # minimum height or width is 6 + 2*eWorldSize
  598. if fx < (6 + 2*iSize):
  599. x = 6 + 2*iSize
  600. y = int( (fx * fy * 1.0) / x )
  601. if mst.odd( y ): y += 1
  602. elif fy < (6 + 2*iSize):
  603. y = 6 + 2*iSize
  604. x = int( (fx * fy * 1.0) / y )
  605. if mst.odd( x ): x += 1
  606. return x, y
  607. ##########################################################################
  608. #Callback functions for deciding whether or not to wrap on x and/or y
  609. #You must override neither or both, and SmartMap must do so because it uses
  610. #a user-selected option to control map wrapping
  611. def getWrapX():
  612. lwrapX, lwrapY, centralPole = getSelectedMapValue("Wrap:")
  613. print "[SMap] -- getWrapX: %r " % lwrapX
  614. return lwrapX
  615. def getWrapY():
  616. lwrapX, lwrapY, centralPole = getSelectedMapValue("Wrap:")
  617. print "[SMap] -- getWrapY: %r " % lwrapY
  618. return lwrapY
  619. #####################################################################################
  620. #Step 1: lay out the plot types, which is a sort of broad view of the map tiles
  621. #basically telling you if you are looking at ocean, land, hill, or mountain
  622. # ###################################################################################
  623. # ######## generatePlotTypes() - Called from system
  624. # ######## - FIRST STAGE in building the map
  625. # ######## - creates an array of plots (ocean,hills,peak,land) in the map dimensions
  626. # ###################################################################################
  627. def generatePlotTypes():
  628. print "[SMap] -- STEP 1 - generatePlotTypes()"
  629. beforeStepTwo()
  630. global wrapX
  631. global wrapY
  632. global width
  633. global height
  634. global fillType
  635. global sizeSelected
  636. global didWrap
  637. global worldBuilderMapData
  638. global earthPcts
  639. global northAmericaPcts
  640. global southAmericaPcts
  641. global africaPcts
  642. global asiaPcts
  643. global australiaPcts
  644. global europePcts
  645. global minXPct, minYPct, maxXPct, maxYPct
  646. global mapTerrainData
  647. global fromMap
  648. ### Configuration
  649. cgc = CyGlobalContext()
  650. cymap = CyMap()
  651. dice = cgc.getGame().getMapRand()
  652. widthLimit = width-1 #range of array is 0..width-1
  653. heightLimit = height-1 #range of array is 0..height-1
  654. players = cgc.getGame().countCivPlayersEverAlive()
  655. #helpful information
  656. halfWidth = int(width/2)
  657. halfHeight = int(height/2)
  658. #get the user entered climate info
  659. climate = cymap.getClimate()
  660. climateArid = cgc.getInfoTypeForString("CLIMATE_ARID")
  661. climateRocky = cgc.getInfoTypeForString("CLIMATE_ROCKY")
  662. # Sea Level adjustment (from user input), transformed into width of sea separating continents
  663. sea = cgc.getSeaLevelInfo(cymap.getSeaLevel()).getSeaLevelChange()
  664. seaWidth = 4 #default width for ocean separation of continents
  665. if (sea > 0):
  666. seaWidth = 7 #high sea level means extra separation
  667. if (sea < 0):
  668. seaWidth = 0 #low sea level means continents are permitted to merge
  669. overrideSeparation = getSelectedMapValue("Override Separation:")
  670. if overrideSeparation >= 0:
  671. seaWidth = overrideSeparation
  672. ########## Temudjin START
  673. if getSelectedMapValue("Coastal Waters:") == 1:
  674. seaWidth += 1
  675. if mst.bMars and (not mst.bSandsOfMars):
  676. seaWidth += 1
  677. ########## Temudjin END
  678. print "[SMap] Seawidth %r" % seaWidth
  679. #Number of continents
  680. fromMap = False
  681. singleTiles = False
  682. minXPct = 0
  683. minYPct = 0
  684. maxXPct = 0
  685. maxYPct = 0
  686. mapTileData = blueMarbleHeightData
  687. continentCount = getSelectedMapValue("Continents:")
  688. if isinstance(continentCount,list):
  689. try:
  690. if loadWorldBuilderMapData(continentCount):
  691. print "[SMap] Loaded map data successfully from map %r" % continentCount[0]
  692. fromMap = True
  693. mapTileData = worldBuilderMapData
  694. minXPct, minYPct, maxXPct, maxYPct = (0,0,100,100)
  695. continentCount = 0
  696. else:
  697. print "[SMap] ERROR! - WBS load failed from map %r" % continentCount[0]
  698. continentCount = 4
  699. except:
  700. print "[SMap] ERROR! - WBS load failed from map %r" % continentCount[0]
  701. continentCount = 3
  702. elif continentCount < 0:
  703. if continentCount == -1:
  704. continentCount = 1 + dice.get(6, "Python: SmartMap: Dice: Random Continent Count 1-6")
  705. elif continentCount == -2:
  706. continentCount = 2 + dice.get(4, "Python: SmartMap: Dice: Random Continent Count 2-5")
  707. elif continentCount == -3:
  708. continentCount = 3 + dice.get(6, "Python: SmartMap: Dice: Random Continent Count 3-8")
  709. elif continentCount == -4:
  710. continentCount = 4 + dice.get(8, "Python: SmartMap: Dice: Random Continent Count 4-12")
  711. elif continentCount == -5:
  712. continentCount = 2 + dice.get(6, "Python: SmartMap: Dice: Random Continent Count 2-7")
  713. elif continentCount == -6:
  714. continentCount = 1 + dice.get(12, "Python: SmartMap: Dice: Random Continent Count 1-12")
  715. elif continentCount == -7:
  716. continentCount = players
  717. elif continentCount == -8:
  718. continentCount = int(players/2)
  719. elif continentCount == -9:
  720. continentCount = int(players/3)
  721. elif continentCount == -10:
  722. continentCount = int(players/4)
  723. elif continentCount == -11:
  724. continentCount = players * 2
  725. elif continentCount == -12:
  726. continentCount = players * 3
  727. elif continentCount == -13:
  728. continentCount = players * 4
  729. elif continentCount == -20:
  730. singleTiles = True
  731. continentCount = int(players/2)
  732. #the whole earth
  733. elif continentCount == -30:
  734. fromMap = True
  735. mapTileData = blueMarbleHeightData
  736. mapTerrainData = blueMarbleTerrainData
  737. minXPct, minYPct, maxXPct, maxYPct = earthPcts
  738. #north america
  739. elif continentCount == -31:
  740. fromMap = True
  741. mapTileData = blueMarbleHeightData
  742. mapTerrainData = blueMarbleTerrainData
  743. minXPct, minYPct, maxXPct, maxYPct = northAmericaPcts
  744. #south america
  745. elif continentCount == -32:
  746. fromMap = True
  747. mapTileData = blueMarbleHeightData
  748. mapTerrainData = blueMarbleTerrainData
  749. minXPct, minYPct, maxXPct, maxYPct = southAmericaPcts
  750. #africa
  751. elif continentCount == -33:
  752. fromMap = True
  753. mapTileData = blueMarbleHeightData
  754. mapTerrainData = blueMarbleTerrainData
  755. minXPct, minYPct, maxXPct, maxYPct = africaPcts
  756. #asia
  757. elif continentCount == -34:
  758. fromMap = True
  759. mapTileData = blueMarbleHeightData
  760. mapTerrainData = blueMarbleTerrainData
  761. minXPct, minYPct, maxXPct, maxYPct = asiaPcts
  762. #australia
  763. elif continentCount == -35:
  764. fromMap = True
  765. mapTileData = blueMarbleHeightData
  766. mapTerrainData = blueMarbleTerrainData
  767. minXPct, minYPct, maxXPct, maxYPct = australiaPcts
  768. #europe
  769. elif continentCount == -36:
  770. fromMap = True
  771. mapTileData = blueMarbleHeightData
  772. mapTerrainData = blueMarbleTerrainData
  773. minXPct, minYPct, maxXPct, maxYPct = europePcts
  774. if continentCount < 0:
  775. continentCount = 1
  776. print "[SMap] continentCount %r" % continentCount
  777. #find out the land style
  778. (roundFactor,fragPPT) = getSelectedMapValue("Land Style:")
  779. print "[SMap] roundFactor %r, fragPPT %r" % (roundFactor,fragPPT)
  780. #figure out how much of the map is supposed to be ocean
  781. noLakes = False
  782. fillType = PlotTypes.PLOT_OCEAN
  783. percentOcean = getSelectedMapValue("Ocean:")
  784. if percentOcean == -1:
  785. percentOcean = 50 + dice.get(26, "Python: SmartMap: Dice: Random Ocean %")
  786. if percentOcean == -2:
  787. percentOcean = 80 + dice.get(16, "Python: SmartMap: Dice: Random Ocean %")
  788. if percentOcean == -3:
  789. percentOcean = 65 + dice.get(21, "Python: SmartMap: Dice: Random Ocean %")
  790. if climate == climateArid:
  791. percentOcean -= 10
  792. if climate == climateRocky:
  793. percentOcean -= 5
  794. if percentOcean == -4:
  795. fillType = PlotTypes.PLOT_LAND
  796. percentOcean = 1
  797. if percentOcean == -5:
  798. fillType = PlotTypes.PLOT_LAND
  799. percentOcean = 1
  800. noLakes = True
  801. cornerSea = False
  802. edgeSea = False
  803. centralSea = False
  804. greatLakes = False
  805. numLakes = -1
  806. if percentOcean == -6:
  807. fillType = PlotTypes.PLOT_LAND
  808. percentOcean = 14
  809. noLakes = False
  810. centralSea = True
  811. if percentOcean == -7:
  812. fillType = PlotTypes.PLOT_LAND
  813. percentOcean = 14
  814. noLakes = False
  815. cornerSea = True
  816. if percentOcean == -8:
  817. fillType = PlotTypes.PLOT_LAND
  818. percentOcean = 14
  819. noLakes = False
  820. edgeSea = True
  821. if percentOcean == -9:
  822. fillType = PlotTypes.PLOT_LAND
  823. percentOcean = 14
  824. noLakes = False
  825. centralSea = True
  826. edgeSea = True
  827. cornerSea = True
  828. if percentOcean == -10:
  829. fillType = PlotTypes.PLOT_LAND
  830. percentOcean = 12
  831. numLakes = 4
  832. greatLakes = True
  833. if percentOcean == -11:
  834. fillType = PlotTypes.PLOT_LAND
  835. percentOcean = 14
  836. numLakes = 8
  837. greatLakes = True
  838. if percentOcean == -12:
  839. fillType = PlotTypes.PLOT_LAND
  840. percentOcean = 16
  841. numLakes = 12
  842. greatLakes = True
  843. print "[SMap] percentOcean %r" % percentOcean
  844. percentHills = getSelectedMapValue("Hills:")
  845. if percentHills == -1:
  846. percentHills = 10 + dice.get(8, "Python: SmartMap: Dice: few Random Hills %")
  847. if percentHills == -2:
  848. percentHills = 18 + dice.get(20, "Python: SmartMap: Dice: many Random Hills %")
  849. if percentHills == -3:
  850. percentHills = 14 + dice.get(14, "Python: SmartMap: Dice: normal Random Hills %")
  851. if climate == climateRocky:
  852. percentHills += 6
  853. print "[SMap] percentHills %r" % percentHills
  854. percentPeaks = getSelectedMapValue("Peaks:")
  855. noBlockPeaks = False
  856. if percentPeaks == -1:
  857. percentPeaks = 2 + dice.get(6, "Python: SmartMap: Dice: Random Peaks %")
  858. if percentPeaks == -2:
  859. percentPeaks = 6 + dice.get(10, "Python: SmartMap: Dice: Random Peaks %")
  860. if percentPeaks == -3:
  861. percentPeaks = 4 + dice.get(9, "Python: SmartMap: Dice: Random Peaks %")
  862. if percentPeaks == -4:
  863. percentPeaks = 2 + dice.get(6, "Python: SmartMap: Dice: Random Peaks %")
  864. noBlockPeaks = True
  865. if percentPeaks == -5:
  866. percentPeaks = 6 + dice.get(10, "Python: SmartMap: Dice: Random Peaks %")
  867. noBlockPeaks = True
  868. if percentPeaks == -6:
  869. percentPeaks = 4 + dice.get(9, "Python: SmartMap: Dice: Random Peaks %")
  870. noBlockPeaks = True
  871. if climate == climateRocky:
  872. percentPeaks += 4
  873. print "[SMap] percentPeaks %r" % percentPeaks
  874. (riverPct,lakePct) = getSelectedMapValue("Rivers/Lakes:")
  875. print "[SMap] riverPct %r, lakePct %r" % (riverPct,lakePct)
  876. if percentOcean == -4:
  877. lakePct += 100
  878. lakePct *= 4
  879. ### Data
  880. plotTypes = [fillType] * (width*height)
  881. ownerContinents = [-1] * (width*height)
  882. continentLists = []
  883. canBeLandLists = []
  884. restoreLake = 0
  885. #total number of useful plots on the map, this factors in staying away from the edges
  886. usefulPlotCount = int((width-4)*(height-4))
  887. extraLandFactor = 104
  888. if fillType == PlotTypes.PLOT_LAND:
  889. usefulPlotCount = width*height
  890. extraLandFactor = 100
  891. expectedLandPlotCount = int(((100-percentOcean) * usefulPlotCount) / 100)
  892. landToPlace = int((extraLandFactor*expectedLandPlotCount)/100)
  893. fragLandCount = int((landToPlace*fragPPT)/1000)
  894. landToPlace -= fragLandCount
  895. landPlaced = 0
  896. if continentCount == 0:
  897. fragLandCount += landToPlace
  898. landToPlace = 0
  899. continentLists = []
  900. continentLists.append([])
  901. canBeLandLists = []
  902. canBeLandLists.append([])
  903. setupSpaceHash()
  904. print "[SMap] landToPlace %r, fragLandCount %r, expectedLandPlotCount %r, from total tiles: %r" % (landToPlace, fragLandCount, expectedLandPlotCount, usefulPlotCount)
  905. ### Generate continents
  906. #make a list for each continent
  907. continent = 0
  908. while (continent < continentCount):
  909. #print "[SMap] Add Continent List",continent
  910. continent += 1
  911. continentLists.append([])
  912. canBeLandLists.append([])
  913. if fillType != PlotTypes.PLOT_LAND and not fromMap:
  914. #create a starting plot for each continent
  915. tries = 0
  916. extraSpace = int( ((width*height)**0.5) / (continentCount+1))
  917. for contIndex in range(len(continentLists)):
  918. continentList = continentLists[contIndex]
  919. conflict = True
  920. while (tries < 5000 and conflict):
  921. tries += 1
  922. initX = int(width/8) + dice.get((width-int(2*width/8)), "Python: SmartMap: Dice: Random Continent X")
  923. initY = int(height/8) + dice.get((height-int(2*height/8)), "Python: SmartMap: Dice: Random Continent Y")
  924. #always grow a pangea from the center
  925. if continentCount == 1 and tries < 2:
  926. initX = int(width/2)
  927. initY = int(height/2)
  928. conflict = False
  929. for otherList in continentLists:
  930. if continentList != otherList:
  931. for otherPlot in otherList:
  932. diffX,diffY = getWrapDistanceXY((initX,initY),otherPlot)
  933. #continents must start with a certain minimum spacing
  934. if diffX <= seaWidth+5+extraSpace and diffY <= seaWidth+5+extraSpace:
  935. conflict = True
  936. break
  937. extraSpace -= 1
  938. if extraSpace < 0:
  939. extraSpace = 0
  940. if not conflict:
  941. indexA = getTileIndexAtXY(initX,initY)
  942. if plotTypes[indexA] == PlotTypes.PLOT_OCEAN:
  943. continentList.append((initX,initY))
  944. plotTypes[indexA] = PlotTypes.PLOT_LAND
  945. spaceHashItem(initX,initY,contIndex)
  946. ownerContinents[indexA] = contIndex
  947. print "[SMap] Initial tile addition %r,%r" % (continentList,indexA)
  948. for nearDir in nearDirs:
  949. usablePlotX,usablePlotY = getTileCoordXYWithWrap((initX,initY),nearDir)
  950. usableIndex = getTileIndexAtXY(usablePlotX,usablePlotY)
  951. if plotTypes[usableIndex] == PlotTypes.PLOT_OCEAN:
  952. canBeLandLists[contIndex].append((usablePlotX,usablePlotY))
  953. print "[SMap] canbeland %r" % canBeLandLists[contIndex]
  954. break
  955. #remove any continent that couldn't be placed
  956. done = False
  957. while not done:
  958. done = True
  959. indexLength = len(continentLists)
  960. for indexB in range(0,indexLength):
  961. continentList = continentLists[indexB]
  962. if len(continentList) <= 0:
  963. done = False
  964. del continentLists[indexB]
  965. del canBeLandLists[indexB]
  966. break
  967. print "[SMap] Placed continents: %r" % (len(continentLists))
  968. #generate land plots
  969. #tries is used to ensure that this can't loop forever
  970. tries = 0
  971. while (landPlaced < landToPlace and tries < 7 * landToPlace):
  972. for contIndex in range(len(continentLists)):
  973. #print "[SMap] cont, canbeland: %r, %r" % (contIndex, canBeLandLists[contIndex])
  974. tries+=1
  975. if canBeLandLists[contIndex] == []:
  976. continue
  977. indexListA = dice.get(len(canBeLandLists[contIndex]), "Python: SmartMap: Dice: Random Continent listIndex backup")
  978. newX, newY = canBeLandLists[contIndex][indexListA]
  979. index = getTileIndexAtXY(newX,newY)
  980. if plotTypes[index] != PlotTypes.PLOT_OCEAN:
  981. del canBeLandLists[contIndex][indexListA]
  982. continue
  983. #print "[SMap] cont, canbeland: %r, %r considering: (%r,%r)" % (contIndex, canBeLandLists[contIndex],newX,newY)
  984. dropProb = 0
  985. anyMatch = False
  986. #low probability of allowing approach to x-pole if not wrapping
  987. if not anyMatch: #I know this is always going to pass, but I do it for code symmetry
  988. if not wrapX:
  989. xFromEdge = newX - 2
  990. if newX > halfWidth:
  991. xFromEdge = (widthLimit - newX) - 2
  992. if xFromEdge < 20:
  993. edgeVal = dice.get(10000, "Python: SmartMap: Dice: Random Continent x-edge bending")
  994. #print "[SMap] xFromEdge %r, edgeVal %r" % (xFromEdge,edgeVal)
  995. if edgeVal < (25 * (20-xFromEdge) * (20-xFromEdge)):
  996. dropProb = (10 * (20-xFromEdge) * (20-xFromEdge))
  997. #print "[SMap] dropProb: %r" % dropProb
  998. anyMatch = True
  999. #print "[SMap] drop due to x-edge: (%r,%r) - %r,%r,%r" % (newX,newY,edgeVal,xFromEdge,width)
  1000. #low probability of allowing approach to y-pole if not wrapping
  1001. if not anyMatch:
  1002. if not wrapY:
  1003. yFromEdge = newY - 2
  1004. if newY > halfHeight:
  1005. yFromEdge = (heightLimit - newY) - 2
  1006. if yFromEdge < 20:
  1007. edgeVal = dice.get(10000, "Python: SmartMap: Dice: Random Continent y-edge bending")
  1008. edgeProb = (25 * (20-yFromEdge) * (20-yFromEdge))
  1009. #print "[SMap] yFromEdge %r, edgeProb %r, edgeVal %r" % (yFromEdge,edgeProb,edgeVal)
  1010. if edgeVal < edgeProb:
  1011. dropProb = (10 * (20-yFromEdge) * (20-yFromEdge))
  1012. #print "[SMap] dropProb: %r" % dropProb
  1013. anyMatch = True
  1014. #print "[SMap] drop due to y-edge: (%r,%r) - %r,%r,%r" % (newX,newY,edgeVal,yFromEdge,height)
  1015. #make sure this ocean plot doesn't touch a different continent's land
  1016. if not anyMatch and len(continentLists) > 1 and seaWidth > 0:
  1017. newXY = (newX,newY)
  1018. #another method: spatial hash
  1019. targets = listNearSpaceHash(newX, newY, seaWidth+2)
  1020. #print "[SMap] TARGETS: %r" % (len(targets))
  1021. for target in targets:
  1022. otherX, otherY, otherCont = target
  1023. if otherCont == contIndex:
  1024. continue
  1025. otherIndex = getTileIndexAtXY(otherX,otherY)
  1026. if plotTypes[otherIndex] == PlotTypes.PLOT_OCEAN:
  1027. continue
  1028. if ownerContinents[otherIndex] == contIndex:
  1029. continue
  1030. #print "[SMap] Found land on other continent"
  1031. diffX, diffY = getWrapDistanceXY(newXY, (otherX,otherY))
  1032. #this is much faster than doing an iteration through the dirs
  1033. if (diffX+diffY) <= seaWidth or (diffX <= seaWidth and diffY <= seaWidth):
  1034. anyMatch = True
  1035. #print "[SMap] Drop due to seawidth: (%r,%r) %r - too close to cont %r,%r,%r" % (newX,newY,edgeVal,otherContIndex,otherList,otherPlot)
  1036. dropProb = 10001
  1037. break
  1038. #this is much faster than doing an iteration through the dirs
  1039. separation = int(((diffX*diffX) + (diffY*diffY))**0.5)
  1040. beyondSeaWidthTest = 2000 - (100 * (separation - seaWidth) * (separation - seaWidth))
  1041. edgeVal = dice.get(10000, "Python: SmartMap: Dice: Random Continent sea edge bending")
  1042. #print "near test edgeval",edgeVal,"edgeProb",edgeProb,"diffSum",diffSum,"nearVal",seaWidthNearVal
  1043. if edgeVal < beyondSeaWidthTest:
  1044. dropProb = max(dropProb, int(beyondSeaWidthTest/2))
  1045. anyMatch = True
  1046. if dropProb >= 10001:
  1047. break
  1048. #print "[SMap] Drop due to seawidth margin: (%r,%r) %r,%r - too close to cont %r, otherXY: (%r,%r)" % (newX,newY,edgeVal,beyondSeaWidthTest,otherIndex,otherX,otherY)
  1049. continue
  1050. if anyMatch:
  1051. drop = dice.get(10000, "Python: SmartMap: Dice: random canbeland drop")
  1052. if drop < dropProb:
  1053. del canBeLandLists[contIndex][indexListA]
  1054. continue
  1055. #this land plot is not going to touch any other continent so place
  1056. #print "[SMap] Place land @ (%r,%r) - width %r, height %r, index %r" % (newX,newY,width,height,index)
  1057. if (index < 0 or index > (width*height)-1):
  1058. print "[SMap] WARNING! - possibly illegal place land at (%r,%r) index: %r" % (newX,newY,index)
  1059. plotTypes[index] = PlotTypes.PLOT_LAND
  1060. ownerContinents[index] = contIndex
  1061. continentLists[contIndex].append((newX,newY))
  1062. spaceHashItem(newX, newY, contIndex)
  1063. del canBeLandLists[contIndex][indexListA]
  1064. landPlaced += 1
  1065. roundChance = 1001 - roundFactor
  1066. for nearDir in nearDirs:
  1067. usablePlotX,usablePlotY = getTileCoordXYWithWrap((newX,newY),nearDir)
  1068. usableIndex = getTileIndexAtXY(usablePlotX,usablePlotY)
  1069. if plotTypes[usableIndex] == PlotTypes.PLOT_OCEAN and not ((usablePlotX,usablePlotY) in canBeLandLists[contIndex]):
  1070. if ((usablePlotX,usablePlotY) in canBeLandLists[contIndex]):
  1071. roundChance -= roundFactor
  1072. roundTest = dice.get(1000, "Python: SmartMap: Dice: Random Continent growth bending")
  1073. if roundTest < roundChance:
  1074. canBeLandLists[contIndex].append((usablePlotX,usablePlotY))
  1075. #print "[SMap] Land tile addition: %r" % continentList
  1076. print "[SMap] -- placed %r initial land" % landPlaced
  1077. #fill in any one tile lakes caused by wierd growth patterns
  1078. print "[SMap] -- remove single tile lakes"
  1079. for x in range(width):
  1080. for y in range(height):
  1081. countNearLand = 0
  1082. ownerCont = 0
  1083. tileIndex = getTileIndexAtXY(x,y)
  1084. if plotTypes[tileIndex] != PlotTypes.PLOT_OCEAN:
  1085. continue
  1086. for nearDir in cardinalDirs:
  1087. ox,oy = getTileCoordXYWithWrap((x,y),nearDir)
  1088. oIndex = getTileIndexAtXY(ox,oy)
  1089. oType = plotTypes[oIndex]
  1090. if ((ox != x) or (oy != y)) and oType == PlotTypes.PLOT_LAND:
  1091. countNearLand += 1
  1092. ownerCont = ownerContinents[oIndex]
  1093. if countNearLand == 4:
  1094. plotTypes[tileIndex] = PlotTypes.PLOT_LAND
  1095. restoreLake += 1
  1096. ownerContinents[tileIndex] = ownerCont
  1097. continentLists[ownerCont].append((x,y))
  1098. continue
  1099. countNearLand = 0
  1100. for nearDir in nearDirs:
  1101. ox,oy = getTileCoordXYWithWrap((x,y),nearDir)
  1102. oIndex = getTileIndexAtXY(ox,oy)
  1103. oType = plotTypes[oIndex]
  1104. if ((ox != x) or (oy != y)) and oType == PlotTypes.PLOT_LAND:
  1105. countNearLand += 1
  1106. if countNearLand >= 7:
  1107. plotTypes[tileIndex] = PlotTypes.PLOT_LAND
  1108. restoreLake += 1
  1109. ownerContinents[tileIndex] = ownerCont
  1110. continentLists[ownerCont].append((x,y))
  1111. continue
  1112. print "[SMap] Removed %r single tile lakes" % restoreLake
  1113. #place some random land fragments
  1114. print "[SMap] Try to place %r land fragment tiles" % fragLandCount
  1115. #tries is used to ensure that this can't loop forever
  1116. tries=0
  1117. fragPlaced = 0
  1118. usedLakeLocs = []
  1119. fragCount = 0
  1120. while (fragPlaced < fragLandCount and tries < 16 * fragLandCount):
  1121. tries+=1
  1122. fragX = dice.get(width, "Python: SmartMap: Dice: Random land Fragment X")
  1123. fragY = dice.get(height, "Python: SmartMap: Dice: Random land Fragment Y")
  1124. if tooCloseToPole(fragX,fragY,6):
  1125. continue
  1126. fragIndex = getTileIndexAtXY(fragX,fragY)
  1127. if plotTypes[fragIndex] == PlotTypes.PLOT_LAND:
  1128. continue
  1129. #find nearest land plot, and consider this frag as part of that land
  1130. spiralSearchSetup(fragX,fragY)
  1131. landFound = False
  1132. searchTries = 0
  1133. listToAddIndex = 0
  1134. while not landFound and searchTries < 400:
  1135. searchTries += 1
  1136. nearX, nearY = spiralSearchNextStep()
  1137. nearIndex = getTileIndexAtXY(nearX,nearY)
  1138. if ownerContinents[nearIndex] > -1:
  1139. listToAddIndex = ownerContinents[nearIndex]
  1140. landFound = True
  1141. spiralSearchSetup(fragX,fragY)
  1142. #if we didn't find a nearby land, assign to a random continent
  1143. if not landFound:
  1144. listToAddIndex = dice.get(len(continentLists), "Python: SmartMap: Dice: Random Continent frag growth cont assignment")
  1145. continentLists[listToAddIndex].append((fragX,fragY))
  1146. plotTypes[fragIndex] = PlotTypes.PLOT_LAND
  1147. ownerContinents[fragIndex] = listToAddIndex
  1148. fragCount += 1
  1149. fragPlaced += 1
  1150. fragSize = 1
  1151. growFrag = dice.get(100, "Python: SmartMap: Dice: Random Continent frag growth")
  1152. gx,gy = fragX,fragY
  1153. passes = 0
  1154. while growFrag < 99+int((fragPlaced*sizeSelected)/20)-int(passes/4) and fragPlaced < fragLandCount:
  1155. passes+=1
  1156. growFrag = dice.get(100, "Python: SmartMap: Dice: Random Continent frag growth")
  1157. dirIndex = dice.get(len(nearDirs), "Python: SmartMap: Dice: Random Continent lake growth")
  1158. gx, gy = getTileCoordXYWithWrap((gx,gy), nearDirs[dirIndex])
  1159. if tooCloseToPole(gx,gy,4):
  1160. continue
  1161. gIndex = getTileIndexAtXY(gx,gy)
  1162. if plotTypes[gIndex] != PlotTypes.PLOT_OCEAN:
  1163. continue
  1164. tries+=1
  1165. #make sure this ocean plot doesn't touch a different continent's land
  1166. newXY = (gx,gy)
  1167. #alternative (maybe faster) method: see if any plot in -seawidth to +seawidth in x and y
  1168. #is land and also belongs to another continent, then give further consideration
  1169. anyMatch = False
  1170. #don't have to do this logic if any other thing matched (nothing currently implemented though),
  1171. # or if there is only one continent, or if the user didn't want a seawidth separation
  1172. if not anyMatch and len(continentLists) > 1 and seaWidth > 0:
  1173. targets = listNearSpaceHash(newX, newY, seaWidth+2)
  1174. #print "[SMap] Targets: %r" % (len(targets))
  1175. for target in targets:
  1176. otherX, otherY, otherCont = target
  1177. if otherCont == contIndex:
  1178. continue
  1179. otherIndex = getTileIndexAtXY(otherX,otherY)
  1180. if plotTypes[otherIndex] == PlotTypes.PLOT_OCEAN:
  1181. continue
  1182. if ownerContinents[otherIndex] == contIndex:
  1183. continue
  1184. #print "[SMap] Found land on other continent"
  1185. diffX, diffY = getWrapDistanceXY(newXY, (otherX,otherY))
  1186. #this is much faster than doing an iteration through the dirs
  1187. if (diffX+diffY) <= seaWidth or (diffX <= seaWidth and diffY <= seaWidth):
  1188. anyMatch = True
  1189. #print "[SMap] Drop due to seawidth: (%r,%r) %r - too close to cont %r,%r,%r" % (newX,newY,edgeVal,otherContIndex,otherList,otherPlot)
  1190. dropProb = 10001
  1191. break
  1192. if anyMatch:
  1193. continue
  1194. plotTypes[gIndex] = PlotTypes.PLOT_LAND
  1195. ownerContinents[gIndex] = listToAddIndex
  1196. fragPlaced += 1
  1197. fragSize += 1
  1198. continentLists[listToAddIndex].append((gx,gy))
  1199. print "[SMap] Placed %r frag tiles, out of required %r, in %r chunks in %r tries" % (fragPlaced,fragLandCount,fragCount,tries)
  1200. else:
  1201. continentLists = []
  1202. continentLists.append([])
  1203. for x in range(width):
  1204. for y in range(height):
  1205. continentLists[0].append((x,y))
  1206. #generate hills on land plots
  1207. allLandList = getPlotsOfTypes(plotTypes, [PlotTypes.PLOT_LAND])
  1208. hillPlotCount = int((percentHills * len(allLandList)) / 100)
  1209. print "[SMap] hillPlotCount %r, from land tiles: %r" % (hillPlotCount,len(allLandList))
  1210. firstPlotCount = int((3*hillPlotCount)/4)
  1211. #first portion of hills are placed randomly
  1212. tries=0
  1213. #tries is used to ensure that this can't loop forever
  1214. hillPlaced = 0
  1215. hillsSoFar = []
  1216. print "[SMap] Place initial hills"
  1217. while (hillPlaced < firstPlotCount and tries < 5 * firstPlotCount):
  1218. tries+=1
  1219. indexListB = dice.get(len(allLandList), "Python: SmartMap: Dice: Random Continent listIndex")
  1220. existingX, existingY = allLandList[indexListB]
  1221. if tooCloseToPole(existingX, existingY, 2):
  1222. continue
  1223. index = getTileIndexAtXY(existingX,existingY)
  1224. if plotTypes[index] != PlotTypes.PLOT_LAND:
  1225. continue
  1226. #first XXX hills are required to be well separated
  1227. if tries < 100:
  1228. tooClose = False
  1229. for existingHill in hillsSoFar:
  1230. distX,distY = getWrapDistanceXY(existingHill,(existingX, existingY))
  1231. if (distX+distY) < 4:
  1232. tooClose = True
  1233. break
  1234. if tooClose:
  1235. continue
  1236. plotTypes[index] = PlotTypes.PLOT_HILLS
  1237. hillPlaced += 1
  1238. hillsSoFar.append((existingX, existingY))
  1239. print "[SMap] Placed %r initial hills" % hillPlaced
  1240. #second portion of hills must touch a hill
  1241. tries=0
  1242. #tries is used to ensure that this can't loop forever
  1243. secondPlotCount = int(1*hillPlotCount/4)
  1244. secondHillPlaced = 0
  1245. print "[SMap] Place neighbor hills"
  1246. while (secondHillPlaced < secondPlotCount and tries < 5 * secondPlotCount):
  1247. tries+=1
  1248. indexListC = dice.get(len(allLandList), "Python: SmartMap: Dice: Random Continent listIndex")
  1249. existingX, existingY = allLandList[indexListC]
  1250. if tooCloseToPole(existingX, existingY, 2):
  1251. continue
  1252. existingIndex = getTileIndexAtXY(existingX, existingY)
  1253. if plotTypes[existingIndex] != PlotTypes.PLOT_LAND:
  1254. continue
  1255. for nearDir in nearDirs:
  1256. testX,testY = getTileCoordXYWithWrap((existingX,existingY),nearDir)
  1257. if not tooCloseToPole(testX, testY, 2):
  1258. testIndex = getTileIndexAtXY(testX,testY)
  1259. if plotTypes[testIndex] == PlotTypes.PLOT_HILLS:
  1260. plotTypes[existingIndex] = PlotTypes.PLOT_HILLS
  1261. secondHillPlaced += 1
  1262. break #don't have to look any further
  1263. print "[SMap] Placed %r neighbor hills" % secondHillPlaced,
  1264. totalHillsPlaced = hillPlaced + secondHillPlaced
  1265. print "[SMap] Placed %r hills, out of max: %r" % (totalHillsPlaced,hillPlotCount)
  1266. #generate peaks near hills
  1267. peakPlotCount = int((percentPeaks) * len(allLandList) / 100)
  1268. print "[SMap] peakPlotCount %r from land tiles: %r" % (peakPlotCount, len(allLandList))
  1269. #peaks must touch a hill
  1270. tries=0
  1271. #tries is used to ensure that this can't loop forever
  1272. peakPlaced = 0
  1273. while (peakPlaced < peakPlotCount and tries < 6 * peakPlotCount):
  1274. tries+=1
  1275. indexListD = dice.get(len(allLandList), "Python: SmartMap: Dice: Random Continent listIndex")
  1276. existingX, existingY = allLandList[indexListD]
  1277. if tooCloseToPole(existingX, existingY, 2):
  1278. continue
  1279. existingIndex = getTileIndexAtXY(existingX,existingY)
  1280. if plotTypes[existingIndex] != PlotTypes.PLOT_LAND and plotTypes[existingIndex] != PlotTypes.PLOT_HILLS:
  1281. continue
  1282. for nearDir in nearDirs:
  1283. testX, testY = getTileCoordXYWithWrap((existingX,existingY),nearDir)
  1284. if not tooCloseToPole(testX,testY,2):
  1285. testIndex = getTileIndexAtXY(testX,testY)
  1286. if plotTypes[testIndex] == PlotTypes.PLOT_HILLS:
  1287. plotTypes[existingIndex] = PlotTypes.PLOT_PEAK
  1288. peakPlaced += 1
  1289. break #don't have to consider any more dirs
  1290. # print "[SMap] Land tile addition: %r" % continentList
  1291. print "[SMap] Placed %r peaks, out of max: %r" % (peakPlaced,peakPlotCount)
  1292. #place some random lakes
  1293. lakePlotCount = int((1+int(sizeSelected)) * len(allLandList) / 600)
  1294. lakePlotCount = 1+int((lakePlotCount*lakePct)/100)
  1295. lakePlotCount += int(restoreLake/5)
  1296. if len(allLandList) - lakePlotCount < expectedLandPlotCount:
  1297. lakePlotCount = len(allLandList) - expectedLandPlotCount
  1298. print "[SMap] Try to place %r lake tiles" % lakePlotCount
  1299. #tries is used to ensure that this can't loop forever
  1300. tries=0
  1301. lakePlaced = 0
  1302. usedLakeLocs = []
  1303. lakeCount = 0
  1304. largestLake = 0
  1305. if noLakes:
  1306. lakePlotCount = 0
  1307. while (lakePlaced < lakePlotCount and tries < 8 * lakePlotCount):
  1308. tries+=1
  1309. for continentList in continentLists:
  1310. indexListE = dice.get(len(continentList), "Python: SmartMap: Dice: Random Continent listIndex")
  1311. existingX, existingY = continentList[indexListE]
  1312. if tooCloseToPole(existingX,existingY,4):
  1313. continue
  1314. existingIndex = getTileIndexAtXY(existingX,existingY)
  1315. if plotTypes[existingIndex] == PlotTypes.PLOT_LAND:
  1316. #is there is a lake too close already
  1317. tooClose = False
  1318. for usedLakeLoc in usedLakeLocs:
  1319. distX,distY = getWrapDistanceXY((existingX, existingY),usedLakeLoc)
  1320. if distX < 3 and distY < 3:
  1321. tooClose = True
  1322. break
  1323. if tooClose:
  1324. continue
  1325. nearHillPeak = False
  1326. allLand = True
  1327. for nearDir in nearDirs:
  1328. testX, testY = getTileCoordXYWithWrap((existingX,existingY),nearDir)
  1329. if not tooCloseToPole(testX,testY,2):
  1330. testIndex = getTileIndexAtXY(testX,testY)
  1331. if plotTypes[testIndex] == PlotTypes.PLOT_OCEAN:
  1332. allLand = False
  1333. break
  1334. if plotTypes[testIndex] == PlotTypes.PLOT_HILLS or plotTypes[testIndex] == PlotTypes.PLOT_PEAK:
  1335. nearHillPeak = True
  1336. break
  1337. if allLand and nearHillPeak:
  1338. plotTypes[existingIndex] = PlotTypes.PLOT_OCEAN
  1339. lakeSize = 1
  1340. lakePlaced += 1
  1341. lakeCount += 1
  1342. if lakeSize > largestLake:
  1343. largestLake = lakeSize
  1344. growLake = dice.get(100, "Python: SmartMap: Dice: Random Continent lake growth")
  1345. lakeList = [(existingX,existingY)]
  1346. usedLakeLocs.append((existingX,existingY))
  1347. gx,gy = existingX,existingY
  1348. passes = 0
  1349. while growLake < (55 + int(lakePlaced/5) + (2*sizeSelected) - int(passes/3)) and lakePlaced < lakePlotCount:
  1350. passes += 1
  1351. growLake = dice.get(100, "Python: SmartMap: Dice: Random Continent lake growth")
  1352. dirIndex = dice.get(len(cardinalDirs), "Python: SmartMap: Dice: Random Continent lake growth")
  1353. gx, gy = getTileCoordXYWithWrap((gx,gy), cardinalDirs[dirIndex])
  1354. if tooCloseToPole(gx,gy,4):
  1355. continue
  1356. gIndex = getTileIndexAtXY(gx,gy)
  1357. if plotTypes[gIndex] != PlotTypes.PLOT_LAND:
  1358. continue
  1359. nearLandCount = 0
  1360. for nearDir in nearDirs:
  1361. testX, testY = getTileCoordXYWithWrap((gx,gy),nearDir)
  1362. if not tooCloseToPole(testX,testY,2):
  1363. testIndex = getTileIndexAtXY(testX,testY)
  1364. if plotTypes[testIndex] != PlotTypes.PLOT_OCEAN:
  1365. nearLandCount += 1
  1366. elif (testX,testY) in lakeList:
  1367. nearLandCount += 1
  1368. #only grow if we are touching all land or existing parts of lake
  1369. if nearLandCount == 8:
  1370. plotTypes[gIndex] = PlotTypes.PLOT_OCEAN
  1371. lakeSize += 1
  1372. lakePlaced += 1
  1373. lakeList.append((gx,gy))
  1374. usedLakeLocs.append((gx,gy))
  1375. if lakeSize > largestLake:
  1376. largestLake = lakeSize
  1377. #print "[SMap] lake %r grew to size %r" % (lakePlaced, lakeSize)
  1378. print "[SMap] Placed %r lake tiles, out of required %r in %r lakes, with largest %r" % (lakePlaced, lakePlotCount, lakeCount, largestLake)
  1379. #central or other sea option placed here
  1380. if centralSea or cornerSea or edgeSea or greatLakes:
  1381. positionSet = []
  1382. if centralSea or greatLakes:
  1383. positionSet.append((int(width/2), int(height/2)))
  1384. if cornerSea:
  1385. positionSet.append((int(width-3), int(height-3)))
  1386. positionSet.append((int(width-3), int(3)))
  1387. positionSet.append((int(3), int(height-3)))
  1388. positionSet.append((int(3), int(3)))
  1389. if edgeSea:
  1390. positionSet.append((int(width/2), int(3)))
  1391. positionSet.append((int(width/2), int(height-3)))
  1392. positionSet.append((int(3), int(height/2)))
  1393. positionSet.append((int(width-3), int(height/2)))
  1394. positionIndex = dice.get(len(positionSet), "Python: SmartMap: Dice: sea position index")
  1395. seaPositions = [positionSet[positionIndex]]
  1396. seaPlotCount = int((percentOcean*len(allLandList))/100)
  1397. numGreatLakes = 1
  1398. if greatLakes:
  1399. numGreatLakes = numLakes + dice.get(numLakes, "Python: SmartMap: Dice: Number of great lakes")
  1400. for lake in range(numGreatLakes):
  1401. lx = 8+dice.get(width-8, "Python: SmartMap: Dice: position of great lakes")
  1402. ly = 8+dice.get(height-8, "Python: SmartMap: Dice: position of great lakes")
  1403. seaPositions.append((lx,ly))
  1404. #fixme
  1405. seaPlotCount = int(seaPlotCount / numGreatLakes)
  1406. for seaPosition in seaPositions:
  1407. print "[SMap] Try to place central sea with %r lake tiles at (%r,%r)" % (seaPlotCount,seaPosition)
  1408. #tries is used to ensure that this can't loop forever
  1409. tries=0
  1410. seaPlaced = 0
  1411. usedSeaLocs = [seaPosition]
  1412. while (seaPlaced < seaPlotCount and tries < 8 * seaPlotCount):
  1413. tries+=1
  1414. indexListSea = dice.get(len(usedSeaLocs), "Python: SmartMap: Dice: Random Sea listIndex")
  1415. existingX, existingY = usedSeaLocs[indexListSea]
  1416. growthIndex = dice.get(len(nearDirs), "Python: SmartMap: Dice: Random Sea listIndex")
  1417. growDir = nearDirs[growthIndex]
  1418. growX, growY = getTileCoordXYWithWrap((existingX,existingY),growDir)
  1419. growIndex = getTileIndexAtXY(growX,growY)
  1420. if centralSea and tooCloseToPole(growX, growY, int(width/6)):
  1421. continue
  1422. if plotTypes[growIndex] != PlotTypes.PLOT_OCEAN:
  1423. plotTypes[growIndex] = PlotTypes.PLOT_OCEAN
  1424. seaPlaced += 1
  1425. usedSeaLocs.append((growX,growY))
  1426. print "[SMap] Placed %r sea tiles, out of required: %r" % (seaPlaced,seaPlotCount)
  1427. #correct the ocean percentage since we may have placed too many land earlier
  1428. print "[SMap] Fix ocean percentage"
  1429. #recalculate land count
  1430. allLandList = getPlotsOfTypes(plotTypes, landPlotTypes)
  1431. currentLandPlotCount = len(allLandList)
  1432. landRemovalTries = 0
  1433. print "[SMap] Remove extra land - currentLandPlotCount: %r, expectedLandPlotCount: %r" % (currentLandPlotCount,expectedLandPlotCount)
  1434. while currentLandPlotCount > expectedLandPlotCount and landRemovalTries < expectedLandPlotCount * 2048:
  1435. landRemovalTries += 1
  1436. rmIndex = dice.get(len(allLandList), "Python: SmartMap: Dice: Land removal X")
  1437. rmX,rmY = allLandList[rmIndex]
  1438. rmTileIndex = getTileIndexAtXY(rmX,rmY)
  1439. if plotTypes[rmTileIndex] != PlotTypes.PLOT_LAND:
  1440. continue
  1441. for nearDir in cardinalDirs:
  1442. ox,oy = getTileCoordXYWithWrap((rmX,rmY),nearDir)
  1443. oIndex = getTileIndexAtXY(ox,oy)
  1444. if plotTypes[oIndex] == fillType:
  1445. plotTypes[rmTileIndex] = PlotTypes.PLOT_OCEAN
  1446. allLandList.remove((rmX,rmY))
  1447. currentLandPlotCount -= 1
  1448. break
  1449. print "[SMap] Remove extra land completed - currentLandPlotCount: %r, expectedLandPlotCount: %r" % (currentLandPlotCount,expectedLandPlotCount)
  1450. if fromMap:
  1451. minX = int((minXPct * len(mapTileData[0]))/100)
  1452. minY = int((minYPct * len(mapTileData))/100)
  1453. maxX = int((maxXPct * len(mapTileData[0]))/100)
  1454. maxY = int((maxYPct * len(mapTileData))/100)
  1455. xRange = maxX - minX
  1456. yRange = maxY - minY
  1457. yBase = 0
  1458. if wrapX:
  1459. yBase = 4
  1460. xBase = 0
  1461. if wrapY:
  1462. xBase = 4
  1463. # for y in range(height):
  1464. # for x in range(width):
  1465. # yPct = float(y) / float(height)
  1466. # xPct = float(x) / float(width)
  1467. # earthX = int(xPct*(len(earthTileData[y])-1))
  1468. # earthY = int(yPct*(len(earthTileData)-1))
  1469. # print "[SMap] xypct: %r,%r - earthXY: %r,%r - lenXY: %r,%r" % (xPct,yPct, earthX,earthY, len(earthTileData[0],len(earthTileData))
  1470. # earthVal = earthTileData[earthY][earthX]
  1471. # plotType = ((earthVal >> 2) & int('1111',2))
  1472. # tileIndex = getTileIndexAtXY(x,y)
  1473. # plotTypes[tileIndex] = plotType
  1474. #
  1475. for y in range(yBase,height-yBase,1):
  1476. for x in range(xBase,width-xBase,1):
  1477. yPct = float(y-yBase) / float(height-(yBase*2))
  1478. xPct = float(x-xBase) / float(width-(xBase*2))
  1479. mapX = minX + int(xPct*float(xRange))
  1480. mapY = minY + int(yPct*float(yRange))
  1481. # print "[SMap] xypct: %r,%r - earthXY: %r,%r - lenXY: %r,%r" % (xPct,yPct, earthX,earthY, len(earthTileData[0],len(earthTileData))
  1482. mapVal = mapTileData[mapY][mapX]
  1483. plotType = mapVal # & int('11',2)#((earthVal >> 2) & int('1111',2))
  1484. tileIndex = getTileIndexAtXY(x,y)
  1485. plotTypes[tileIndex] = plotType
  1486. if singleTiles:
  1487. print "[SMap] Make all land into single tile isles"
  1488. print "[SMap] Processing %r plots of land" % (len(allLandList))
  1489. while len(allLandList) > 0:
  1490. landIndex = dice.get(len(allLandList), "Python: SmartMap: Dice: Random Sea listIndex")
  1491. lx, ly = allLandList[landIndex]
  1492. tileIndex = getTileIndexAtXY(lx,ly)
  1493. if plotTypes[tileIndex] != PlotTypes.PLOT_OCEAN:
  1494. for xd in range(-seaWidth,seaWidth+1):
  1495. for yd in range(-seaWidth,seaWidth+1):
  1496. ox,oy = getTileCoordXYWithWrap((lx,ly),(xd,yd))
  1497. if ox != lx or oy != ly:
  1498. otherTileIndex = getTileIndexAtXY(ox,oy)
  1499. plotTypes[otherTileIndex] = PlotTypes.PLOT_OCEAN
  1500. allLandList.remove((lx,ly))
  1501. if noBlockPeaks:
  1502. print "[SMap] Flatten blocking peaks to hills"
  1503. flattened = 0
  1504. for x,y in allLandList:
  1505. tileIndex = getTileIndexAtXY(x,y)
  1506. if plotTypes[tileIndex] != PlotTypes.PLOT_PEAK:
  1507. continue
  1508. bothOcean = True
  1509. for diff in ((-1,0),(1,0)):
  1510. ox,oy = getTileCoordXYWithWrap((x,y),diff)
  1511. otherIndex = getTileIndexAtXY(ox,oy)
  1512. if plotTypes[otherIndex] != PlotTypes.PLOT_OCEAN:
  1513. bothOcean = False
  1514. if bothOcean:
  1515. plotTypes[tileIndex] = PlotTypes.PLOT_HILLS
  1516. flattened += 1
  1517. continue
  1518. bothOcean = True
  1519. for diff in ((0,-1),(0,1)):
  1520. ox,oy = getTileCoordXYWithWrap((x,y),diff)
  1521. otherIndex = getTileIndexAtXY(ox,oy)
  1522. if plotTypes[otherIndex] != PlotTypes.PLOT_OCEAN:
  1523. bothOcean = False
  1524. if bothOcean:
  1525. plotTypes[tileIndex] = PlotTypes.PLOT_HILLS
  1526. flattened += 1
  1527. continue
  1528. print "[SMap] Flattened %r peaks" % flattened
  1529. if not centralSea and not cornerSea and not edgeSea and not greatLakes and not fromMap:
  1530. didWrap = True
  1531. #insert a transformation to put the widest vertical ocean on the x-wrap
  1532. transPlotTypes = plotTypes[:]
  1533. if wrapX:
  1534. print "[SMap] Execute x-wrap transformation"
  1535. maxVerticalOcean = 0
  1536. verticalOceanLocation = [1]
  1537. for x in range(width):
  1538. oceanForX = 0
  1539. for xtally in (-2,-1,0,1,2):
  1540. for y in range(height):
  1541. checkX,checkY = getTileCoordXYWithWrap((x,y),(xtally,0))
  1542. plotIndex = getTileIndexAtXY(checkX,checkY)
  1543. if plotTypes[plotIndex] == PlotTypes.PLOT_OCEAN:
  1544. oceanForX += 1
  1545. if oceanForX > maxVerticalOcean:
  1546. maxVerticalOcean = oceanForX
  1547. verticalOceanLocation = [x]
  1548. elif oceanForX == maxVerticalOcean:
  1549. verticalOceanLocation.append(x)
  1550. firstHalfLocs = []
  1551. secondHalfLocs = []
  1552. for loc in verticalOceanLocation:
  1553. if loc < int(width/2):
  1554. firstHalfLocs.append(loc)
  1555. else:
  1556. secondHalfLocs.append(loc)
  1557. usedLocs = firstHalfLocs
  1558. if len(secondHalfLocs) > len(usedLocs):
  1559. usedLocs = secondHalfLocs
  1560. usedLocs.sort()
  1561. actualWrapLocation = usedLocs[int(len(usedLocs)/2)]
  1562. actualWrapLocation += 1
  1563. print "[SMap] Wrap X at %r chosen from %r" % (actualWrapLocation,usedLocs)
  1564. #transform the resultplottypes by x
  1565. for x in range(width):
  1566. for y in range(height):
  1567. readX, readY = getTileCoordXYWithWrap((x,y),(actualWrapLocation,0))
  1568. readIndex = getTileIndexAtXY(readX,readY)
  1569. writeIndex = getTileIndexAtXY(x,y)
  1570. transPlotTypes[writeIndex] = plotTypes[readIndex]
  1571. plotTypes = transPlotTypes
  1572. #insert a transformation to put the widest horizontal ocean on the y-wrap
  1573. transPlotTypes = plotTypes[:]
  1574. if wrapY:
  1575. print "[SMap] Execute y-wrap transformation"
  1576. maxHorizontalOcean = 0
  1577. horizontalOceanLocation = [1]
  1578. for y in range(height):
  1579. oceanForY = 0
  1580. for ytally in (-2,-1,0,1,2):
  1581. for x in range(width):
  1582. checkX,checkY = getTileCoordXYWithWrap((x,y),(0,ytally))
  1583. plotIndex = getTileIndexAtXY(checkX,checkY)
  1584. if plotTypes[plotIndex] == PlotTypes.PLOT_OCEAN:
  1585. oceanForY += 1
  1586. if oceanForY > maxHorizontalOcean:
  1587. maxHorizontalOcean = oceanForY
  1588. horizontalOceanLocation = [y]
  1589. elif oceanForY == maxHorizontalOcean:
  1590. horizontalOceanLocation.append(y)
  1591. firstHalfLocs = []
  1592. secondHalfLocs = []
  1593. for loc in horizontalOceanLocation:
  1594. if loc < int(height/2):
  1595. firstHalfLocs.append(loc)
  1596. else:
  1597. secondHalfLocs.append(loc)
  1598. usedLocs = firstHalfLocs
  1599. if len(secondHalfLocs) > len(usedLocs):
  1600. usedLocs = secondHalfLocs
  1601. usedLocs.sort()
  1602. actualWrapLocation = usedLocs[int(len(usedLocs)/2)]
  1603. actualWrapLocation += 1
  1604. print "[SMap] Wrap Y at %r chosen from %r" % (actualWrapLocation,usedLocs)
  1605. #transform the resultplottypes by y
  1606. for x in range(width):
  1607. for y in range(height):
  1608. readX, readY = getTileCoordXYWithWrap((x,y),(0,actualWrapLocation))
  1609. readIndex = getTileIndexAtXY(readX,readY)
  1610. writeIndex = getTileIndexAtXY(x,y)
  1611. transPlotTypes[writeIndex] = plotTypes[readIndex]
  1612. plotTypes = transPlotTypes
  1613. #require all plot types near poles obey filltype restrictions because checkforbadplots is SLOW
  1614. for x in range(width):
  1615. for y in range(height):
  1616. if tooCloseToPole(x,y,1):
  1617. index = getTileIndexAtXY(x,y)
  1618. plotTypes[index] = fillType
  1619. OutputMessage("Python: SmartMap: Step 1 Setting Plot Types: complete")
  1620. collectGarbage()
  1621. # Finished generating plots!
  1622. return plotTypes
  1623. #########################################################################################
  1624. #Step 2: now generate the fine terrain, in particular, need to decide if
  1625. #any land or hill tile is desert, plains, grass, tundra, or snow
  1626. # #######################################################################################
  1627. # ######## generateTerrainTypes() - Called from system
  1628. # ######## - SECOND STAGE in 'Generate Map'
  1629. # ######## - creates an array of terrains (desert,plains,grass,...) in the map dimensions
  1630. # #######################################################################################
  1631. def generateTerrainTypes():
  1632. ########## Temudjin START
  1633. print "[SMap] -- STEP 2 - generateTerrainTypes()"
  1634. mst.mapPrint.buildPlotMap( True, "[SMap] generateTerrainTypes()_start" )
  1635. # Planetfall: more highlands
  1636. mst.planetFallMap.buildPfallHighlands()
  1637. # Prettify map: Connect small islands
  1638. mst.mapPrettifier.bulkifyIslands()
  1639. # Prettify map: most coastal peaks -> hills
  1640. # mst.mapPrettifier.hillifyCoast()
  1641. # Choose terrainGenerator
  1642. if mst.bPfall:
  1643. terrainGen = mst.MST_TerrainGenerator()
  1644. terrainData = terrainGen.generateTerrain()
  1645. return terrainData
  1646. elif mst.bMars:
  1647. # There are two possible scenarios for 'Mars Now!':
  1648. # either water is converted to desert or not
  1649. iDesert = mst.iif( mst.bSandsOfMars, 10, 32 )
  1650. terrainGen = mst.MST_TerrainGenerator_Mars( iDesert )
  1651. terrainData = terrainGen.generateTerrain()
  1652. return terrainData
  1653. ########## Temudjin END
  1654. global width
  1655. global height
  1656. global mapTerrainData
  1657. global minXPct, minYPct, maxXPct, maxYPct
  1658. cgc = CyGlobalContext()
  1659. cymap = CyMap()
  1660. dice = cgc.getGame().getMapRand()
  1661. global totalLandCount
  1662. global landPlotTypes
  1663. totalLandCount = 0
  1664. for x in range(width):
  1665. for y in range(height):
  1666. plotType = cymap.plot(x,y).getPlotType()
  1667. if plotType in landPlotTypes:
  1668. totalLandCount += 1
  1669. preComputeAltitude()
  1670. global preComputedAltitude
  1671. computeContinents()
  1672. global postContinentLists
  1673. #recalculate land count
  1674. totalLandCount = 0
  1675. totalPlotCount = 0
  1676. for x in range(width):
  1677. for y in range(height):
  1678. totalPlotCount += 1
  1679. pPlot = cymap.plot(x,y)
  1680. if not pPlot.isWater():
  1681. totalLandCount += 1
  1682. pctLand = int((100*totalLandCount)/totalPlotCount)
  1683. print "[SMap] totalLandCount: %r, from total: %r - pct land: %r, pct ocean: %r" % (totalLandCount,totalPlotCount,pctLand,100-pctLand)
  1684. #find out the user selected terrain method
  1685. terrainMethod = getSelectedMapValue("Terrain:")
  1686. print "[SMap] terrainMethod %r" % terrainMethod
  1687. useMapData = False
  1688. if terrainMethod == "standard":
  1689. terraingen = mst.MST_TerrainGenerator()
  1690. terrainTypes = terraingen.generateTerrain()
  1691. OutputMessage("Python: SmartMap: Step 2 Generate Terrain: complete standard")
  1692. return terrainTypes
  1693. if terrainMethod == "great plains":
  1694. terraingen = GreatPlainsTerrainGenerator()
  1695. terrainTypes = terraingen.generateTerrain()
  1696. OutputMessage("Python: SmartMap: Step 2 Generate Terrain: complete great plains")
  1697. return terrainTypes
  1698. if terrainMethod == "oasis":
  1699. terraingen = OasisTerrainGenerator()
  1700. terrainTypes = terraingen.generateTerrain()
  1701. OutputMessage("Python: SmartMap: Step 2 Generate Terrain: complete oasis")
  1702. return terrainTypes
  1703. if terrainMethod == "use map data":
  1704. useMapData = True
  1705. noSnow = False
  1706. noDesert = False
  1707. noTundra = False
  1708. allPlains = False
  1709. allGrass = False
  1710. crazyTerrain = False
  1711. plainsAdjust = 0
  1712. if terrainMethod == "SmartMap no snow":
  1713. noSnow = True
  1714. if terrainMethod == "SmartMap no desert":
  1715. noDesert = True
  1716. if terrainMethod == "SmartMap no snow/desert":
  1717. noSnow = True
  1718. noDesert = True
  1719. if terrainMethod == "SmartMap no snow/desert/tundra":
  1720. noSnow = True
  1721. noDesert = True
  1722. noTundra = True
  1723. if terrainMethod == "SmartMap only plains":
  1724. allPlains = True
  1725. if terrainMethod == "SmartMap only grass":
  1726. allGrass = True
  1727. if terrainMethod == "SmartMap extra grass":
  1728. plainsAdjust = -15
  1729. if terrainMethod == "SmartMap extra plains":
  1730. plainsAdjust = 15
  1731. if terrainMethod == "SmartMap Crazy":
  1732. crazyTerrain = True
  1733. #otherwise, smartmap
  1734. #get the user entered climate info
  1735. climate = cymap.getClimate()
  1736. climateTemperate = cgc.getInfoTypeForString("CLIMATE_TEMPERATE")
  1737. climateTropical = cgc.getInfoTypeForString("CLIMATE_TROPICAL")
  1738. climateArid = cgc.getInfoTypeForString("CLIMATE_ARID")
  1739. climateCold = cgc.getInfoTypeForString("CLIMATE_COLD")
  1740. extraRiverPct = 100
  1741. if climate == climateTropical:
  1742. extraRiverPct += 36
  1743. #arid games need rivers to be playable
  1744. if climate == climateArid:
  1745. extraRiverPct += 26
  1746. (riverPct,lakePct) = getSelectedMapValue("Rivers/Lakes:")
  1747. extraRiverPct = 1+int((extraRiverPct*riverPct)/100)
  1748. print "[SMap] Generate rivers"
  1749. #first pass: place rivers. if you don't place rivers first
  1750. #then oasis and floodplains are impossible
  1751. #1 in 1000 hills or 1 in 200 peaks spawns a river in a random direction
  1752. riverDirTypes = [CardinalDirectionTypes.CARDINALDIRECTION_NORTH,
  1753. CardinalDirectionTypes.CARDINALDIRECTION_EAST,
  1754. CardinalDirectionTypes.CARDINALDIRECTION_SOUTH,
  1755. CardinalDirectionTypes.CARDINALDIRECTION_WEST]
  1756. #each continent gets at least one river from its highest point
  1757. for continentList in postContinentLists:
  1758. #no automatic river for continents of less than N land tiles
  1759. if len(continentList) < int( ((totalLandCount+1) * 2) / 100):
  1760. continue
  1761. maxContAltitude = -1
  1762. initialRandomIndex = dice.get(len(continentList), "Python: SmartMap: Dice: High River Initial Placement")
  1763. cx,cy = continentList[initialRandomIndex]
  1764. bestPlot = cymap.plot(cx,cy)
  1765. for plot in continentList:
  1766. plotX,plotY = plot
  1767. pPlot = cymap.plot(plotX,plotY)
  1768. #rivers only generate from the tallest peak or hill
  1769. if not (pPlot.isHills() or pPlot.isPeak()):
  1770. continue
  1771. plotIndex = getTileIndexAtXY(plotX,plotY)
  1772. altitude = preComputedAltitude[plotIndex]
  1773. if altitude > maxContAltitude:
  1774. maxContAltitude = altitude
  1775. bestPlot = pPlot
  1776. riverDirIndex = dice.get(len(riverDirTypes), "Python: SmartMap: Dice: High River Route")
  1777. CyMapGenerator().doRiver(bestPlot, riverDirTypes[riverDirIndex])
  1778. #CyEngine().addLandmark(bestPlot,"Mount Doom")
  1779. #we need to add more rivers to maps when the peak count is low relative to the hill count
  1780. peakCount = 0
  1781. hillCount = 0
  1782. for rx in range(width):
  1783. for ry in range(height):
  1784. pPlot = cymap.plot(rx,ry)
  1785. if pPlot.isHills():
  1786. hillCount += 1
  1787. if pPlot.isPeak():
  1788. peakCount += 1
  1789. peakHillRatioPct = int(((peakCount+1)*100)/(hillCount+1))
  1790. hillBonus = 100-peakHillRatioPct
  1791. #additional random rivers
  1792. for rx in range(width):
  1793. for ry in range(height):
  1794. pPlot = cymap.plot(rx,ry)
  1795. if pPlot.isRiver() or isCoastalPlot(rx,ry) or pPlot.isFreshWater():
  1796. continue
  1797. badSpot = False
  1798. #check for another river too nearby
  1799. for rNearDir in nearDirs:
  1800. rnewX, rnewY = getTileCoordXYWithWrap((rx,ry), rNearDir)
  1801. otherPlot = cymap.plot(rnewX,rnewY)
  1802. #too close to another river
  1803. if otherPlot.isRiver():
  1804. badSpot = True
  1805. break
  1806. #too close to lake
  1807. if otherPlot.isLake():
  1808. badSpot = True
  1809. break
  1810. if badSpot:
  1811. continue
  1812. plotIndex = getTileIndexAtXY(rx,ry)
  1813. plotAltitude = int(preComputedAltitude[plotIndex]/10) #range is 0 to 100
  1814. percentFromEquatorXY = percentFromEquator(rx,ry)
  1815. percentFromPoleXY = percentFromPole(rx,ry)
  1816. riverOdds = dice.get(10000, "Python: SmartMap: Dice: River Placement Odds")
  1817. if ( (pPlot.isHills() and riverOdds < int(((400+(3*hillBonus)+(5*extraRiverPct)+(2*percentFromEquatorXY)+(2*percentFromPoleXY)+(3*int(plotAltitude*plotAltitude/20)))*extraRiverPct)/100)) or
  1818. (pPlot.isPeak() and riverOdds < int(((2400+extraRiverPct+(10*percentFromEquatorXY)+(10*percentFromPoleXY)+(12*int(plotAltitude*plotAltitude/20)))*extraRiverPct)/100))
  1819. ):
  1820. riverDirIndex = dice.get(len(riverDirTypes), "Python: SmartMap: Dice: River Placement")
  1821. CyMapGenerator().doRiver(pPlot, riverDirTypes[riverDirIndex])
  1822. extraDesert = 0
  1823. extraCold = 0
  1824. grassFactor = 0
  1825. if climate == climateArid:
  1826. extraDesert += 20
  1827. extraCold -= 5
  1828. grassFactor -= 10
  1829. if climate == climateCold:
  1830. extraDesert -= 10
  1831. extraCold += 20
  1832. grassFactor -= 5
  1833. if climate == climateTemperate:
  1834. extraDesert -= 0
  1835. extraCold -= 0
  1836. grassFactor += 5
  1837. if climate == climateTropical:
  1838. extraDesert -= 16
  1839. extraCold -= 16
  1840. grassFactor += 10
  1841. extraForest,extraJungle = getSelectedMapValue("Forest/Jungle:")
  1842. if extraForest > 0:
  1843. extraDesert -= 3
  1844. if extraJungle > 0:
  1845. extraDesert += 3
  1846. if extraForest < 0:
  1847. extraDesert -= 3
  1848. if extraJungle < 0:
  1849. extraDesert += 3
  1850. print "[SMap] Generate terrain"
  1851. #default generation method: SmartMap terrain
  1852. terrainData = [TerrainTypes.NO_TERRAIN]*(width*height)
  1853. terrainDesert = mst.etDesert
  1854. terrainPlains = mst.etPlains
  1855. terrainGrass = mst.etGrass
  1856. terrainTundra = mst.etTundra
  1857. terrainSnow = mst.etSnow
  1858. preComputeWetness()
  1859. global preComputedWetness
  1860. #compute the map base and scale
  1861. minX, minY, maxX, maxY, xRange, yRange, xBase, yBase = (0,0,0,0,0,0,0,0)
  1862. if useMapData:
  1863. if len(mapTerrainData) > 0:
  1864. minX = int((minXPct * len(mapTerrainData[0]))/100)
  1865. minY = int((minYPct * len(mapTerrainData))/100)
  1866. maxX = int((maxXPct * len(mapTerrainData[0]))/100)
  1867. maxY = int((maxYPct * len(mapTerrainData))/100)
  1868. xRange = maxX - minX
  1869. yRange = maxY - minY
  1870. yBase = 0
  1871. if wrapX:
  1872. yBase = 4
  1873. xBase = 0
  1874. if wrapY:
  1875. xBase = 4
  1876. #can't use map data if none available
  1877. else:
  1878. useMapData = False
  1879. #for every terrain we need to consider in x,y
  1880. for x in range(width):
  1881. for y in range(height):
  1882. pPlot = cymap.plot(x,y)
  1883. index = getTileIndexAtXY(x,y)
  1884. #make sure every plot has a default set
  1885. terrainData[index] = pPlot.getTerrainType()
  1886. #water tiles, peaks, and hills should always take their default terrain type
  1887. if pPlot.isWater():
  1888. terrainData[index] = pPlot.getTerrainType()
  1889. continue
  1890. if pPlot.isPeak():
  1891. terrainData[index] = pPlot.getTerrainType()
  1892. continue
  1893. if useMapData and len(mapTerrainData) > 0:
  1894. yPct = float(y-yBase) / float(height-(yBase*2))
  1895. xPct = float(x-xBase) / float(width-(xBase*2))
  1896. mapX = minX + int(xPct*float(xRange))
  1897. mapY = minY + int(yPct*float(yRange))
  1898. mapVal = mapTerrainData[mapY][mapX]
  1899. terrainType = mapVal# & int('11',2)#((earthVal >> 2) & int('1111',2))
  1900. terrainData[index] = terrainType
  1901. # print "[SMap] xypct: %r,%r - earthXY: %r,%r - lenXY: %r,%r - terrain %r" % (xPct,yPct, mapX,mapY, len(mapTerrainData[mapY],len(mapTerraindata), terrainType)
  1902. continue
  1903. if crazyTerrain:
  1904. pickVal = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1905. if pickVal < 10:
  1906. terrainData[index] = terrainSnow
  1907. elif pickVal < 30:
  1908. terrainData[index] = terrainTundra
  1909. elif pickVal < 50:
  1910. terrainData[index] = terrainDesert
  1911. elif pickVal < 75:
  1912. terrainData[index] = terrainPlains
  1913. else:
  1914. terrainData[index] = terrainGrass
  1915. continue
  1916. if allPlains:
  1917. terrainData[index] = terrainPlains
  1918. continue
  1919. if allGrass:
  1920. terrainData[index] = terrainGrass
  1921. continue
  1922. #land and hill tiles actually have choices in what type of tile to be
  1923. plotType = pPlot.getPlotType()
  1924. if plotType == PlotTypes.PLOT_LAND or plotType == PlotTypes.PLOT_HILLS:
  1925. #note that height is at the top of the map (northmost), when you might expect bottom
  1926. #this allows 10% snow only near the very furthest north or south strip of land
  1927. percentFromPoleXY = percentFromPole(x,y)
  1928. percentFromEquatorXY = percentFromEquator(x,y)
  1929. # print "[SMap] equPct %r, polePct %r @ (%r,%r)" % (percentFromEquatorXY,percentFromPoleXY,x,y)
  1930. #when very close to the pole, you get either snow, tundra, or plains
  1931. plotAltitudeFactor = -10 + int(preComputedAltitude[index]/100) #range is -10 to 10
  1932. #water content of this tile
  1933. waterFactor = int(preComputedWetness[index] / 10)
  1934. isWater = False
  1935. if pPlot.isFreshWater() or pPlot.isRiver():
  1936. isWater = True
  1937. snowRand = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1938. tundraRand = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1939. if not noSnow and percentFromPoleXY<(35+extraCold+plotAltitudeFactor) and snowRand < 6*(35+extraCold-percentFromPoleXY+plotAltitudeFactor):
  1940. terrainData[index] = terrainSnow
  1941. continue
  1942. if not noTundra and percentFromPoleXY<(35+extraCold+plotAltitudeFactor) and tundraRand < 70+plotAltitudeFactor:
  1943. terrainData[index] = terrainTundra
  1944. continue
  1945. if percentFromPoleXY<(35+extraCold+plotAltitudeFactor):
  1946. terrainData[index] = terrainPlains
  1947. continue
  1948. #near the poles, but further out, tundra or plains
  1949. if not noTundra and percentFromPoleXY<(55+extraCold+plotAltitudeFactor) and tundraRand < 5*(55+extraCold-percentFromPoleXY+plotAltitudeFactor):
  1950. terrainData[index] = terrainTundra
  1951. continue
  1952. if percentFromPoleXY<(55+extraCold+plotAltitudeFactor):
  1953. terrainData[index] = terrainPlains
  1954. continue
  1955. #in central portion of map, get desert
  1956. desertRand = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1957. plainsRand = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1958. desertSign = 1
  1959. if extraDesert < 0:
  1960. desertSign = -1
  1961. desertWidthFactor = dice.get(abs(extraDesert)+1, "Python: SmartMap: Dice: Random Terrain")
  1962. desertWidthFactor *= desertSign
  1963. desertWaterFactor = waterFactor/3
  1964. if climate == climateTropical:
  1965. desertWaterFactor = waterFactor
  1966. if not noDesert and (percentFromEquatorXY<(42+desertWidthFactor+plotAltitudeFactor) and
  1967. desertRand < 60+plotAltitudeFactor-desertWaterFactor+extraDesert-percentFromEquatorXY+desertWidthFactor):
  1968. terrainData[index] = terrainDesert
  1969. continue
  1970. if percentFromEquatorXY<(42+desertWidthFactor) and ((plainsRand<50+plainsAdjust) or ((plainsRand<80+plainsAdjust) and not isWater)):
  1971. terrainData[index] = terrainPlains
  1972. continue
  1973. if percentFromEquatorXY<(42+desertWidthFactor):
  1974. terrainData[index] = terrainGrass
  1975. continue
  1976. #grass, particularly near water
  1977. grassRand = dice.get(100, "Python: SmartMap: Dice: Random Terrain")
  1978. if grassRand < (50 + waterFactor + grassFactor -plainsAdjust):
  1979. # print "[SMap] Grass: equPct %r, polePct %r @ (%r,%r)" % (percentFromEquatorXY,percentFromPoleXY,x,y)
  1980. terrainData[index] = terrainGrass
  1981. continue
  1982. #everything else plains
  1983. terrainData[index] = terrainPlains
  1984. continue
  1985. #second pass: clumpify terrain by giving each plot a chance to match its neighbors
  1986. allLandPlots = []
  1987. for x in range(width):
  1988. for y in range(height):
  1989. pPlot = cymap.plot(x,y)
  1990. plotType = pPlot.getPlotType()
  1991. if plotType == PlotTypes.PLOT_LAND:
  1992. allLandPlots.append((x,y))
  1993. while (len(allLandPlots) > 0):
  1994. pickIndex = dice.get(len(allLandPlots), "Python: SmartMap: Dice: Random Terrain Plot Pick")
  1995. (x,y) = allLandPlots[pickIndex]
  1996. del allLandPlots[pickIndex]
  1997. #print "[SMap] Flip plot (%r,%r)" % (x,y)
  1998. desertN=0
  1999. snowN=0
  2000. tundraN=0
  2001. grassN=0
  2002. plainsN=0
  2003. for nearDir in nearDirs:
  2004. otherX, otherY = getTileCoordXYWithWrap((x,y), nearDir)
  2005. otherPlot = cymap.plot(otherX,otherY)
  2006. otherPlotType = otherPlot.getPlotType()
  2007. if otherPlotType == PlotTypes.PLOT_LAND:
  2008. otherIndex = getTileIndexAtXY(otherX,otherY)
  2009. otherTerrain = terrainData[otherIndex]
  2010. if otherTerrain == terrainDesert:
  2011. desertN += 1
  2012. elif otherTerrain == terrainPlains:
  2013. plainsN += 1
  2014. elif otherTerrain == terrainGrass:
  2015. grassN += 1
  2016. elif otherTerrain == terrainTundra:
  2017. tundraN += 1
  2018. elif otherTerrain == terrainSnow:
  2019. snowN += 1
  2020. scores = [desertN,snowN,tundraN,grassN,plainsN]
  2021. maxScore = max(scores)
  2022. if maxScore < 3:
  2023. continue
  2024. skipVal = dice.get(1000, "Python: SmartMap: Dice: Random Terrain Plot Pick")
  2025. if maxScore < 6 and skipVal > 100:
  2026. continue #only flip a certain % of plots
  2027. if grassN == maxScore:
  2028. terrainData[index] = terrainGrass
  2029. elif plainsN == maxScore:
  2030. terrainData[index] = terrainPlains
  2031. elif desertN == maxScore:
  2032. terrainData[index] = terrainDesert
  2033. elif tundraN == maxScore:
  2034. terrainData[index] = terrainTundra
  2035. elif snowN == maxScore:
  2036. terrainData[index] = terrainSnow
  2037. #third pass: no desert within one step of fresh water on tropical
  2038. if climate == climateTropical:
  2039. for x in range(width):
  2040. for y in range(height):
  2041. pPlot = cymap.plot(x,y)
  2042. index = getTileIndexAtXY(x,y)
  2043. plotType = pPlot.getPlotType()
  2044. pickedTerrainType = terrainData[index]
  2045. if (plotType == PlotTypes.PLOT_LAND or plotType == PlotTypes.PLOT_HILLS) and pickedTerrainType == terrainDesert:
  2046. for nearDir in nearDirs:
  2047. otherX, otherY = getTileCoordXYWithWrap((x,y), nearDir)
  2048. otherPlot = cymap.plot(otherX,otherY)
  2049. if otherPlot.isFreshWater():
  2050. terrainData[index] = terrainPlains
  2051. break
  2052. #fourth pass: set all hills to match most common touching terrain
  2053. for x in range(width):
  2054. for y in range(height):
  2055. pPlot = cymap.plot(x,y)
  2056. index = getTileIndexAtXY(x,y)
  2057. plotType = pPlot.getPlotType()
  2058. if (plotType == PlotTypes.PLOT_HILLS):
  2059. desertN=0
  2060. snowN=0
  2061. tundraN=0
  2062. grassN=0
  2063. plainsN=0
  2064. for nearDir in nearDirs:
  2065. otherX, otherY = getTileCoordXYWithWrap((x,y), nearDir)
  2066. otherPlot = cymap.plot(otherX,otherY)
  2067. otherPlotType = otherPlot.getPlotType()
  2068. if otherPlotType == PlotTypes.PLOT_LAND:
  2069. otherIndex = getTileIndexAtXY(otherX,otherY)
  2070. otherTerrain = terrainData[otherIndex]
  2071. if otherTerrain == terrainDesert:
  2072. desertN += 1
  2073. elif otherTerrain == terrainPlains:
  2074. plainsN += 1
  2075. elif otherTerrain == terrainGrass:
  2076. grassN += 1
  2077. elif otherTerrain == terrainTundra:
  2078. tundraN += 1
  2079. elif otherTerrain == terrainSnow:
  2080. snowN += 1
  2081. scores = [desertN,snowN,tundraN,grassN,plainsN]
  2082. maxScore = max(scores)
  2083. if maxScore < 3:
  2084. continue
  2085. skipVal = dice.get(1000, "Python: SmartMap: Dice: Random Terrain Plot Pick")
  2086. if maxScore < 5 and skipVal > 600:
  2087. continue #only flip a certain % of plots
  2088. if grassN == maxScore:
  2089. terrainData[index] = terrainGrass
  2090. elif plainsN == maxScore:
  2091. terrainData[index] = terrainPlains
  2092. elif desertN == maxScore:
  2093. terrainData[index] = terrainDesert
  2094. elif tundraN == maxScore:
  2095. terrainData[index] = terrainTundra
  2096. elif snowN == maxScore:
  2097. terrainData[index] = terrainSnow
  2098. else:
  2099. terrainData[index] = terrainPlains
  2100. #add some rivers to desert plots in temperate/tropical
  2101. #additional random rivers
  2102. for rx in range(width):
  2103. for ry in range(height):
  2104. pPlot = cymap.plot(rx,ry)
  2105. if pPlot.isRiver() or isCoastalPlot(rx,ry) or pPlot.isFreshWater() or not pPlot.isHills():
  2106. continue
  2107. badSpot = False
  2108. nearDesert = False
  2109. #check for another river too nearby
  2110. for rNearDir in nearDirs:
  2111. rnewX, rnewY = getTileCoordXYWithWrap((rx,ry), rNearDir)
  2112. otherPlot = cymap.plot(rnewX,rnewY)
  2113. #too close to another river
  2114. if otherPlot.isRiver():
  2115. badSpot = True
  2116. break
  2117. #too close to lake
  2118. if otherPlot.isLake():
  2119. badSpot = True
  2120. break
  2121. otherIndex = getTileIndexAtXY(rnewX,rnewY)
  2122. if terrainData[otherIndex] == terrainDesert:
  2123. nearDesert = True
  2124. if badSpot or not nearDesert:
  2125. continue
  2126. plotIndex = getTileIndexAtXY(rx,ry)
  2127. desertBonus = 0
  2128. if terrainData[plotIndex] == terrainDesert:
  2129. desertBonus = 1000
  2130. plotAltitude = int(preComputedAltitude[plotIndex]/10) #range is 0 to 100
  2131. percentFromEquatorXY = percentFromEquator(rx,ry)
  2132. percentFromPoleXY = percentFromPole(rx,ry)
  2133. riverOdds = dice.get(10000, "Python: SmartMap: Dice: River Placement Odds")
  2134. if ( (pPlot.isHills() and riverOdds < int(((3500+desertBonus+(4*hillBonus)+(5*extraRiverPct)+(2*percentFromEquatorXY)+(2*percentFromPoleXY)+(3*int(plotAltitude*plotAltitude/20)))*extraRiverPct)/100))):
  2135. riverDirIndex = dice.get(len(riverDirTypes), "Python: SmartMap: Dice: River Placement")
  2136. CyMapGenerator().doRiver(pPlot, riverDirTypes[riverDirIndex])
  2137. OutputMessage("Python: SmartMap: Step 2 Generate Terrain: complete")
  2138. collectGarbage()
  2139. # Finished generating terrain!
  2140. return terrainData
  2141. #############################################################################
  2142. #Step 3: add rivers. since smartmap handles this elsewhere we must override
  2143. def addRivers2():
  2144. print "[SMap] -- STEP 3 - addRivers2"
  2145. # 'Planetfall' uses default method
  2146. if mst.bPfall:
  2147. CyPythonMgr().allowDefaultImpl()
  2148. OutputMessage("Python: SmartMap: Step 3 rivers: complete standard")
  2149. return
  2150. #find out the user selected terrain method
  2151. terrainMethod = getSelectedMapValue("Terrain:")
  2152. print "[SMap] riverMethod: %r" % terrainMethod
  2153. standardRiverMethods = ["standard","great plains","oasis"]
  2154. if terrainMethod in standardRiverMethods:
  2155. CyPythonMgr().allowDefaultImpl()
  2156. OutputMessage("Python: SmartMap: Step 3 rivers: complete standard")
  2157. else:
  2158. OutputMessage("Python: SmartMap: Step 3 rivers: complete")
  2159. return
  2160. ############################################################################
  2161. #Step 4: add lakes. since smartmap handles this elsewhere we must override
  2162. def addLakes2():
  2163. print "[SMap] -- STEP 4 - addLakes2"
  2164. # 'Planetfall' uses default method
  2165. if mst.bPfall:
  2166. CyPythonMgr().allowDefaultImpl()
  2167. OutputMessage("Python: SmartMap: Step 4 lakes: complete standard")
  2168. return
  2169. #find out the user selected terrain method
  2170. terrainMethod = getSelectedMapValue("Terrain:")
  2171. print "[SMap] lakeMethod: %r" % terrainMethod
  2172. standardLakeMethods = ["standard","great plains","oasis"]
  2173. if terrainMethod in standardLakeMethods:
  2174. CyPythonMgr().allowDefaultImpl()
  2175. OutputMessage("Python: SmartMap: Step 4 lakes: complete standard")
  2176. else:
  2177. OutputMessage("Python: SmartMap: Step 4 lakes: complete")
  2178. return
  2179. ############################################################################
  2180. #Step 5: add features to your terrain
  2181. #this is responsible for things like oasis, ice floes on the ocean, floodplains
  2182. def addFeatures2():
  2183. print "[SMap] -- STEP 5 - addFeatures2"
  2184. global wrapX
  2185. global wrapY
  2186. global width
  2187. global height
  2188. cgc = CyGlobalContext()
  2189. cymap = CyMap()
  2190. dice = cgc.getGame().getMapRand()
  2191. #find out the user selected terrain method
  2192. featureMethod = getSelectedMapValue("Features:")
  2193. print "[SMap] featureMethod: %r" % featureMethod
  2194. #we have to recompute wetness in case we used standard river or lake methods
  2195. preComputeWetness()
  2196. global preComputedWetness
  2197. global featuregen
  2198. if featureMethod == "standard":
  2199. featuregen = mst.MST_FeatureGenerator()
  2200. featuregen.addFeatures()
  2201. OutputMessage("Python: SmartMap: Step 5 Feature Generation: complete standard")
  2202. return
  2203. if featureMethod == "great plains":
  2204. featuregen = GreatPlainsFeatureGenerator()
  2205. featuregen.addFeatures()
  2206. OutputMessage("Python: SmartMap: Step 5 Feature Generation: complete great plains")
  2207. return
  2208. if featureMethod == "oasis":
  2209. featuregen = OasisFeatureGenerator()
  2210. featuregen.addFeatures()
  2211. OutputMessage("Python: SmartMap: Step 5 Feature Generation: complete oasis")
  2212. return
  2213. #defaults to SmartMap mode
  2214. strict = False #determines whether to allow things like floodplains/plains
  2215. if featureMethod == "SmartMap Strict":
  2216. strict = True
  2217. crazyFeatures = False
  2218. if featureMethod == "SmartMap Crazy":
  2219. crazyFeatures = True
  2220. #get the user entered climate info
  2221. climate = cymap.getClimate()
  2222. climateTemperate = cgc.getInfoTypeForString("CLIMATE_TEMPERATE")
  2223. climateTropical = cgc.getInfoTypeForString("CLIMATE_TROPICAL")
  2224. climateArid = cgc.getInfoTypeForString("CLIMATE_ARID")
  2225. climateCold = cgc.getInfoTypeForString("CLIMATE_COLD")
  2226. extraForest,extraJungle = getSelectedMapValue("Forest/Jungle:")
  2227. extraCold = 0
  2228. extraOasis = 0
  2229. if climate == climateTropical:
  2230. extraJungle += 60
  2231. extraForest += 30
  2232. extraOasis += 3
  2233. if climate == climateTemperate:
  2234. extraForest += 60
  2235. extraJungle += 30
  2236. if climate == climateCold:
  2237. extraForest += 120
  2238. extraCold += 2
  2239. if climate == climateArid:
  2240. extraJungle -= 100
  2241. extraForest -= 50
  2242. extraOasis -= 2
  2243. featIce = mst.efIce
  2244. featJungle = mst.efJungle
  2245. featOasis = mst.efOasis
  2246. featFlood = mst.efFloodPlains
  2247. featForest = mst.efForest
  2248. terrainDesert = mst.etDesert
  2249. terrainTundra = mst.etTundra
  2250. lastFeature = featForest
  2251. print "[SMap] Generate smartmap features"
  2252. for x in range(width):
  2253. for y in range(height):
  2254. #force ice at poles
  2255. pPlot = cymap.plot(x,y)
  2256. if tooCloseToPole(x,y,1):
  2257. pPlot.setFeatureType(featIce,-1)
  2258. continue
  2259. if crazyFeatures:
  2260. baseOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2261. if baseOdds < 900 and pPlot.isWater():
  2262. continue
  2263. if baseOdds < 400:
  2264. continue
  2265. pick = dice.get(10000, "Python: SmartMap: Dice: Feature Placement Odds")
  2266. #little bit of ice
  2267. if pick < 100 or pPlot.isWater():
  2268. pPlot.setFeatureType(featIce,-1)
  2269. elif pick < 1000:
  2270. pPlot.setFeatureType(featOasis,-1)
  2271. elif pick < 2000:
  2272. pPlot.setFeatureType(featFlood,-1)
  2273. elif pick < 6000:
  2274. pPlot.setFeatureType(featJungle,-1)
  2275. else:
  2276. pPlot.setFeatureType(featForest,-1)
  2277. percentFromPoleXY = percentFromPole(x,y)
  2278. percentFromEquatorXY = percentFromEquator(x,y)
  2279. terrainType = pPlot.getTerrainType()
  2280. plotIndex = getTileIndexAtXY(x,y)
  2281. #get the water level and altitude scaled to 0..100 range
  2282. waterFactor = int(preComputedWetness[plotIndex]/10)
  2283. altitudeFactor = int(preComputedAltitude[plotIndex]/10)
  2284. #ice at the poles, for whatever poles this planet has
  2285. iceOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2286. if pPlot.isWater() and percentFromPoleXY<=13+extraCold and pPlot.canHaveFeature(featIce) and iceOdds < 100*(13-percentFromPoleXY+extraCold):
  2287. pPlot.setFeatureType(featIce,-1)
  2288. lastFeature = featIce
  2289. continue
  2290. #no other features exist on water
  2291. if pPlot.isWater():
  2292. lastFeature = featIce
  2293. continue
  2294. #oasis don't ask if it canHaveFeature oasis because that always returns False
  2295. oasisOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2296. oasisBonus = 0
  2297. if terrainType == terrainDesert:
  2298. oasisBonus += 15
  2299. if (pPlot.isFlatlands() and not pPlot.isFreshWater() and oasisOdds<5+extraOasis+oasisBonus and
  2300. (terrainType == terrainDesert or terrainType == terrainTundra)):
  2301. if not strict or pPlot.canHaveFeature(featOasis):
  2302. pPlot.setFeatureType(featOasis,-1)
  2303. lastFeature = featOasis
  2304. continue
  2305. #flood same issue as oasis, always False for some reason
  2306. floodOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2307. floodBonus = waterFactor
  2308. if extraJungle > 0:
  2309. floodBonus += 3*extraJungle
  2310. if terrainType == terrainDesert:
  2311. floodBonus += 700
  2312. if strict:
  2313. floodBonus += 400 #apparently in strict maps, desert rivers always flood
  2314. if pPlot.isFreshWater() and floodOdds<floodBonus:
  2315. if not strict or pPlot.canHaveFeature(featFlood):
  2316. pPlot.setFeatureType(featFlood,-1)
  2317. lastFeature = featFlood
  2318. continue
  2319. #jungle
  2320. jungleBonus = 0
  2321. if lastFeature == featJungle:
  2322. jungleBonus = 50
  2323. jungleOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2324. extraReachFactor = dice.get(int(waterFactor / 4), "Python: SmartMap: Dice: Extra Water Reach")
  2325. if extraJungle > 0:
  2326. extraReachFactor += dice.get(1+int(extraJungle / 4), "Python: SmartMap: Dice: Extra Forest Reach")
  2327. if (percentFromEquatorXY < 50+extraReachFactor and pPlot.canHaveFeature(featJungle) and
  2328. jungleOdds < (jungleBonus + extraJungle + 2*waterFactor + 2*(100 - altitudeFactor) + 2*(100-percentFromEquatorXY)) ):
  2329. pPlot.setFeatureType(featJungle,-1)
  2330. lastFeature = featJungle
  2331. continue
  2332. #forest
  2333. forestBonus = 0
  2334. if lastFeature == featForest:
  2335. forestBonus = 50
  2336. extraReachFactor = dice.get(int(waterFactor / 4), "Python: SmartMap: Dice: Extra Water Reach")
  2337. if extraForest > 0:
  2338. extraReachFactor += dice.get(1+int(extraForest / 4), "Python: SmartMap: Dice: Extra Forest Reach")
  2339. forestOdds = dice.get(1000, "Python: SmartMap: Dice: Feature Placement Odds")
  2340. if (percentFromEquatorXY > (40-extraReachFactor) and pPlot.canHaveFeature(featForest) and
  2341. forestOdds < (250 + forestBonus + extraForest + waterFactor + 2*altitudeFactor + 2*percentFromEquatorXY)):
  2342. pPlot.setFeatureType(featForest,-1)
  2343. lastFeature = featForest
  2344. continue
  2345. lastFeature = featIce
  2346. OutputMessage("Python: SmartMap: Step 5 Feature Generation: complete")
  2347. collectGarbage()
  2348. # Finished generating features!
  2349. return
  2350. ############################################################################
  2351. #Step 6: add bonuses to your map
  2352. #this method puts down the tile bonuses, such as iron, whale, rice, oil, etc.
  2353. def addBonuses2():
  2354. print "[SMap] -- STEP 6 - addBonuses2"
  2355. global width
  2356. global height
  2357. global crazyResources
  2358. global insaneResources
  2359. global postContinentLists
  2360. global sizeSelected
  2361. global totalLandCount
  2362. global totalCoastCount
  2363. cgc = CyGlobalContext()
  2364. cymap = CyMap()
  2365. dice = cgc.getGame().getMapRand()
  2366. #find out the user selected terrain method
  2367. sprint = ""
  2368. bonusMethod = getSelectedMapValue("Bonus Placement:")
  2369. sprint += "[SMap] bonusMethod: %r" % bonusMethod
  2370. densityStrategic, densityHappy, densityOther = getSelectedMapValue("Bonus Density:")
  2371. sprint += "[SMap] densityStrategic %r, densityHappy %r, densityOther %r" % (densityStrategic,densityHappy,densityOther)
  2372. print sprint
  2373. if bonusMethod == "standard":
  2374. CyPythonMgr().allowDefaultImpl()
  2375. OutputMessage("Python: SmartMap: Step 6 Add bonuses: complete standard")
  2376. return
  2377. #this placement option places no resources
  2378. if bonusMethod == "None":
  2379. OutputMessage("Python: SmartMap: Step 6 Add bonuses: None")
  2380. return
  2381. #all other cases require resource placement, these are defaults for SmartMap Normal
  2382. clumpHappy = False
  2383. clumpHealth = False
  2384. strict = False
  2385. crazyResources = False
  2386. if bonusMethod == "SmartMap Insane":
  2387. insaneResources = True
  2388. if bonusMethod == "SmartMap Crazy":
  2389. crazyResources = True
  2390. if bonusMethod == "SmartMap Clump Happy":
  2391. clumpHappy = True
  2392. strict = True
  2393. if bonusMethod == "SmartMap Clump Health":
  2394. clumpHealth = True
  2395. strict = True
  2396. if bonusMethod == "SmartMap Clump Both":
  2397. clumpHappy = True
  2398. clumpHealth = True
  2399. strict = True
  2400. #print "[SMap] totalLandCount %r" % totalLandCount
  2401. players = cgc.getGame().countCivPlayersEverAlive()
  2402. # Set plot eligibility for current bonus.
  2403. # Begin by initiating the list of lists, into which eligible plots will be recorded.
  2404. eligible = []
  2405. for bonusId in range(cgc.getNumBonusInfos()):
  2406. eligible.append([])
  2407. #find all eligible plots for each bonus
  2408. for x in range(width):
  2409. for y in range(height):
  2410. if tooCloseToPole(x,y,3):
  2411. continue
  2412. pPlot = cymap.plot(x,y)
  2413. if pPlot.isWater():
  2414. nearestLand = pPlot.getNearestLandPlot()
  2415. nx = nearestLand.getX()
  2416. ny = nearestLand.getY()
  2417. #assumption: resources cannot be more than 3 tiles from land
  2418. if abs(nx-x) + abs(ny-y) > 6:
  2419. continue
  2420. # Check plot type and features for eligibility.
  2421. for bonusId in range(cgc.getNumBonusInfos()):
  2422. # This method will tell us if the plot can have this bonus
  2423. if isPlotLegalForBonus(pPlot, bonusId, strict):
  2424. eligible[bonusId].append((x,y))
  2425. bonusIdsAndOrder = []
  2426. for bonusId in range(cgc.getNumBonusInfos()):
  2427. bonusInfoXML = cgc.getBonusInfo(bonusId)
  2428. if bonusInfoXML.getPlacementOrder() >= 0:
  2429. bonusIdsAndOrder.append((bonusId,bonusInfoXML.getPlacementOrder()))
  2430. bonusIdsAndOrder = sorted(bonusIdsAndOrder, key=operator.itemgetter(1))
  2431. # mst.printList( bonusIdsAndOrder, "bonusIdsAndOrder:", rows = 1, prefix = "[SMap] " )
  2432. setupSpaceHash()
  2433. allAddedLocs = []
  2434. for bonusIdAndOrder in bonusIdsAndOrder:
  2435. added = 0
  2436. addedLocs = []
  2437. bonusId, order = bonusIdAndOrder
  2438. bonusInfoXML = cgc.getBonusInfo(bonusId)
  2439. type_string = bonusInfoXML.getType()
  2440. sprint = ""
  2441. sprint += "[SMap] Place bonus %r\n" % type_string
  2442. if bonusInfoXML.getHappiness() > 0 and clumpHappy:
  2443. addBonusType([bonusId])
  2444. sprint += "[SMap] Using standard placement due to clump happy\n"
  2445. print sprint
  2446. continue
  2447. if bonusInfoXML.getHealth() > 0 and clumpHealth:
  2448. addBonusType([bonusId])
  2449. sprint += "[SMap] Using standard placement due to clump health\n"
  2450. print sprint
  2451. continue
  2452. sprint += "[SMap] Using smartmap placement\n"
  2453. #find out how many players in game, and make sure there are some for each
  2454. playerFactor = int(players/6) #one per six players
  2455. areaFactor = int(totalLandCount/360) #base rate of 1 of each resource for every XXX land tiles
  2456. extraSeparation = 0
  2457. #the bountiful ocean - I add extra resources to water tiles because there
  2458. #is a lot of coastal land in this map design
  2459. if type_string in resourcesWater:
  2460. playerFactor += 1 + players
  2461. areaFactor = int(totalCoastCount / 250)
  2462. extraSeparation -= int((3*sizeSelected)/2)
  2463. #some resources are meant to be a bit more common
  2464. if type_string in resourcesCommon:
  2465. playerFactor += 1 + int(players/3)
  2466. areaFactor += int(totalLandCount / 200)
  2467. extraSeparation -= sizeSelected
  2468. #you get extra of the 'early' resources if you are not using one of the strict options
  2469. if not strict and type_string in resourcesImportantEarly:
  2470. playerFactor += 1 + int(players/4)
  2471. areaFactor += int(totalLandCount / 300)
  2472. areaFactor = int((2*areaFactor)/3) + dice.get(int(areaFactor/3), "Python: SmartMap: Dice: Bonus ExtraFactor")
  2473. #total is based on: size of map, num players, random extra per player, extra for water types
  2474. count = 1 + int(((1 + playerFactor + areaFactor)))
  2475. if type_string in resourcesStrategic:
  2476. count = int((densityStrategic*count)/100)
  2477. elif bonusInfoXML.getHappiness() > 0 or bonusInfoXML.getHealth() > 0:
  2478. count = int((densityHappy*count)/100)
  2479. else:
  2480. count = int((densityOther*count)/100)
  2481. sprint += "[SMap] For bonus type %r, expecting to place a total of: %r of this bonus\n" % (type_string, count)
  2482. #compute the fair shares of each resource each continent is due
  2483. #first, decide which continents will participate, including only continents that are sufficiently big
  2484. if (not type_string in resourcesWater):
  2485. fairShareContinents = []
  2486. for continentList in postContinentLists:
  2487. continentLandPct = int( (100 * len(continentList)) / totalLandCount)
  2488. if continentLandPct > 9:
  2489. fairShareContinents.append(continentList)
  2490. #if there are no continents big enough for this, skip fair sharing
  2491. sprint += "[SMap] Fair share over %r continents\n" % (len(fairShareContinents))
  2492. if len(fairShareContinents) > 0:
  2493. shares = []
  2494. smallestFairShareContinent = len(fairShareContinents[0])
  2495. for continentList in fairShareContinents:
  2496. if len(continentList) < smallestFairShareContinent:
  2497. smallestFairShareContinent = len(continentList)
  2498. totalSharesNeeded = 0
  2499. for continentList in fairShareContinents:
  2500. share = int((len(continentList)+1) / (smallestFairShareContinent+1))
  2501. shares.append(share)
  2502. totalSharesNeeded += share
  2503. multiplier = 1
  2504. while totalSharesNeeded < int(count/4):
  2505. totalSharesNeeded = (((multiplier+1)*totalSharesNeeded)/multiplier)
  2506. multiplier += 1
  2507. #if there are enough of this resource to apply the expected shares
  2508. if totalSharesNeeded < count:
  2509. #this tries to give each continent a fair share of each resource
  2510. sprint += "[SMap] Attempting to fair-share %r, out of %r of %r over %r continents\n" % (totalSharesNeeded, count, type_string, len(fairShareContinents))
  2511. for contIndex in range(len(fairShareContinents)):
  2512. contShare = multiplier * shares[contIndex]
  2513. continentList = fairShareContinents[contIndex]
  2514. #print "[SMap] Try to put %r of %r on %r" % (contShare, type_string, contIndex)
  2515. for shareNum in range(contShare):
  2516. tries = 0
  2517. while tries < 200:
  2518. tries += 1
  2519. tileIndex = dice.get(len(continentList), "Python: SmartMap: Dice: Continent Bonus Placement")
  2520. tx,ty = continentList[tileIndex]
  2521. pPlot = cymap.plot(tx,ty)
  2522. #this shouldn't happen, but just in case
  2523. if pPlot.isWater():
  2524. continue
  2525. if not isPlotLegalForBonus(pPlot, bonusId, strict):
  2526. continue
  2527. tooClose = False
  2528. for usedLoc in addedLocs:
  2529. distX,distY = getWrapDistanceXY((tx,ty),usedLoc)
  2530. if distX + distY < 6 + sizeSelected + extraSeparation:
  2531. tooClose = True
  2532. break
  2533. if tooClose:
  2534. continue
  2535. denseCount = 0
  2536. toBeCounted = listNearSpaceHash(tx,ty,5 + sizeSelected + extraSeparation)
  2537. denseCount = len(toBeCounted)
  2538. denseTest = dice.get(1000, "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2539. density = min(65000,(denseCount*15))
  2540. densityFactor = dice.get(density, "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2541. #if too dense, continue
  2542. if denseTest < densityFactor:
  2543. continue
  2544. # print "[SMap] Fair share put 1 of %r on continent %r for %r on try %r" % (type_string, contIndex, shareNum, tries)
  2545. pPlot.setBonusType(bonusId)
  2546. added += 1
  2547. addedLocs.append((tx,ty))
  2548. allAddedLocs.append((tx,ty))
  2549. spaceHashItem(tx,ty,bonusId)
  2550. break
  2551. # Now we assign the bonuses to eligible plots chosen completely at random
  2552. # from among the valid plots found above
  2553. #if the eligible list is too big, filter it down some
  2554. if len(eligible[bonusId]) > 5 * (count-added):
  2555. altEligible = []
  2556. for sample in range(5 * (count-added)):
  2557. subsetIndex = dice.get(len(eligible[bonusId]), "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2558. altEligible.append(eligible[bonusId][subsetIndex])
  2559. eligible[bonusId] = altEligible
  2560. #remove all used plots from eligible list
  2561. removeUsed = True
  2562. while removeUsed:
  2563. removeUsed = False
  2564. for index in range(len(eligible[bonusId])):
  2565. px,py = eligible[bonusId][index]
  2566. pPlot = cymap.plot(px,py)
  2567. if pPlot.getBonusType(-1) != -1:
  2568. del eligible[bonusId][index] # Remove this plot from the eligible list, it already had a bonus
  2569. removeUsed = True
  2570. break
  2571. tries = 0
  2572. sprint += "[SMap] Fair share added %r - now place remaining %r of %r on %r tiles\n" % (added,count-added,type_string,len(eligible[bonusId]))
  2573. while added < count and tries < 100:
  2574. tries += 1
  2575. if eligible[bonusId] == []:
  2576. break # No eligible plots left!
  2577. subsetEligible = []
  2578. if len(eligible[bonusId]) < 12:
  2579. subsetEligible = eligible[bonusId][:]
  2580. else:
  2581. for sample in range(12):
  2582. subsetIndex = dice.get(len(eligible[bonusId]), "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2583. subsetEligible.append(eligible[bonusId][subsetIndex])
  2584. lowScore = []
  2585. lowScore.append(subsetEligible[0])
  2586. leastScore = bonus_score(subsetEligible[0])
  2587. for plot in subsetEligible:
  2588. plotScore = bonus_score(plot)
  2589. if plotScore < leastScore:
  2590. leastScore = plotScore
  2591. lowScore = []
  2592. lowScore.append(plot)
  2593. if plotScore == leastScore:
  2594. lowScore.append(plot)
  2595. index = dice.get(len(lowScore), "Python: SmartMap: Dice: Bonus Placement")
  2596. px,py = lowScore[index]
  2597. pPlot = cymap.plot(px,py)
  2598. if pPlot.getBonusType(-1) != -1:
  2599. eligible[bonusId].remove(lowScore[index]) # Remove this plot from the eligible list, it already had a bonus
  2600. continue
  2601. #don't place resources touching each other, not much point
  2602. tooClose = False
  2603. for usedLoc in addedLocs:
  2604. distX,distY = getWrapDistanceXY((px,py),usedLoc)
  2605. if distX + distY < 3:
  2606. tooClose = true
  2607. break
  2608. if tooClose:
  2609. eligible[bonusId].remove(lowScore[index]) # Remove this plot from the eligible list, it was too close to another bonus
  2610. continue
  2611. #if there are enough remaining eligible spots, prefer not to place resources to close to others
  2612. if (3*(count-added)) < len(eligible[bonusId]):
  2613. bonusInfoXML = cgc.getBonusInfo(bonusId)
  2614. minAreaSize = int(bonusInfoXML.getMinAreaSize()/2)
  2615. tooClose = False
  2616. for usedLoc in addedLocs:
  2617. distX,distY = getWrapDistanceXY((px,py),usedLoc)
  2618. if distX + distY < 2 + minAreaSize + sizeSelected + extraSeparation:
  2619. tooClose = true
  2620. break
  2621. if tooClose:
  2622. eligible[bonusId].remove(lowScore[index]) # Remove this plot from the eligible list, it was too close to another bonus
  2623. continue
  2624. denseCount = 0
  2625. toBeCounted = listNearSpaceHash(px,py,3 + sizeSelected + extraSeparation)
  2626. denseCount = len(toBeCounted)
  2627. denseTest = dice.get(1000, "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2628. density = min(65000,int(denseCount*denseCount*sizeSelected))
  2629. densityFactor = dice.get(density, "Python: SmartMap: Dice: Bonus Placement Density Rule")
  2630. #print "[SMap] denseTest %r, denseCount %r" % (denseTest,denseCount)
  2631. #if density factor is too high, can't place at this tile
  2632. if denseTest < densityFactor and not pPlot.isWater():
  2633. eligible[bonusId].remove(lowScore[index]) # Remove this plot from the eligible list, it was too close to another bonus
  2634. continue
  2635. #this actually places the bonus
  2636. pPlot.setBonusType(bonusId)
  2637. added += 1
  2638. addedLocs.append((px,py))
  2639. allAddedLocs.append((px,py))
  2640. spaceHashItem(px,py,bonusId)
  2641. eligible[bonusId].remove(lowScore[index]) # Remove this plot from the eligible list, we used it
  2642. if added == 0:
  2643. sprint += "[SMap] ERROR! - Failed to add type %r from count %r\n" % (type_string, count)
  2644. elif added > 0 and count-added > 0:
  2645. sprint += "[SMap] WARNING! - Added %r of type %r and failed remaining %r\n" % (added, type_string, count-added)
  2646. elif added > 0:
  2647. sprint += "[SMap] SUCCESS: Added all %r of type %r successfully\n" % (added, type_string)
  2648. # This bonus type is done.
  2649. print sprint
  2650. OutputMessage("Python: SmartMap: Step 6 Add bonuses: complete")
  2651. collectGarbage()
  2652. # Finished generating boni!
  2653. return
  2654. ##########################################################################
  2655. #Step 5B: override addBonusType so that it can pass through
  2656. def addBonusType(argsList):
  2657. "Can override to control where a type of bonus is added on the map"
  2658. """WARNING: If addBonuses() is overriden then this function will not automatically be called."""
  2659. [iBonusType] = argsList
  2660. CyPythonMgr().allowDefaultImpl()
  2661. #########################################################################################
  2662. #Step 7: place goody huts
  2663. def addGoodies2():
  2664. print "[SMap] -- STEP 7 - addGoodies2()"
  2665. if DEBUG:
  2666. stackList = inspect.stack()
  2667. mst.printList( stackList, "stack:", 1, prefix="[SMap] " )
  2668. callModule = ""
  2669. if len( stackList ) > 1:
  2670. callModule = stackList[1][1]
  2671. print "[SMap] callModule: %s" % ( callModule )
  2672. cgc = CyGlobalContext()
  2673. cymap = CyMap()
  2674. #dice = cgc.getGame().getMapRand()
  2675. #find out the user selected terrain method
  2676. bonusMethod = getSelectedMapValue("Goodies:")
  2677. print "[SMap] goodiestMethod (uses bonusMethod) %r" % bonusMethod
  2678. if bonusMethod == "standard":
  2679. CyPythonMgr().allowDefaultImpl()
  2680. OutputMessage("Python: SmartMap: Step 7 Goody Huts: complete standard")
  2681. return
  2682. #SmartMap goodies
  2683. if bonusMethod == "None":
  2684. OutputMessage("Python: SmartMap: Step 7 Goody Huts: None")
  2685. return
  2686. bonusPct = 100
  2687. if bonusMethod == "SmartMap Few":
  2688. bonusPct = 75
  2689. if bonusMethod == "SmartMap Many":
  2690. bonusPct = 133
  2691. ########## Temudjin START
  2692. """
  2693. #the continent lists computed in step 5
  2694. global postContinentLists
  2695. #goody huts
  2696. impGoodyHut = cgc.getInfoTypeForString("IMPROVEMENT_GOODY_HUT")
  2697. players = cgc.getGame().countCivPlayersEverAlive()
  2698. plotsForGoodies = []
  2699. for px in range(width):
  2700. for py in range(height):
  2701. if tooCloseToPole(px,py,2):
  2702. continue
  2703. pPlot = cymap.plot(px,py)
  2704. #record all plots that are potential goody locations
  2705. if pPlot.canHaveImprovement(impGoodyHut, TeamTypes.NO_TEAM, False):
  2706. ########## Temudjin START
  2707. # don't use plots with boni
  2708. if pPlot.getBonusType(-1) > -1: continue
  2709. ########## Temudjin END
  2710. plotsForGoodies.append(pPlot)
  2711. #add randomly placed goody huts, 6 per player overall, plus some extra to make them common enough
  2712. #if you play with only a few players on a big map
  2713. ########## Temudjin START
  2714. #goodyHutCount = 1+ int(((7 * players + int(len(plotsForGoodies)/40)) * bonusPct) / 100)
  2715. goodyHutCount = 1+ int(((6 * players + int(len(plotsForGoodies)/50)) * bonusPct) / 100)
  2716. ########## Temudjin END
  2717. addedLocs = []
  2718. while (goodyHutCount > 0):
  2719. if len(plotsForGoodies) <= 0:
  2720. break
  2721. index = dice.get(len(plotsForGoodies), "Python: SmartMap: Dice: GoodyHut Placement")
  2722. pPlot = plotsForGoodies[index]
  2723. x = pPlot.getX()
  2724. y = pPlot.getY()
  2725. tooClose = False
  2726. for usedLoc in addedLocs:
  2727. distX,distY = getWrapDistanceXY((x,y),usedLoc)
  2728. if distX + distY < 4:
  2729. tooClose = true
  2730. break
  2731. if tooClose:
  2732. del plotsForGoodies[index] # Remove this plot from the eligible list, it was too close to another goody
  2733. continue
  2734. addedLocs.append((x,y))
  2735. pPlot.setImprovementType(impGoodyHut)
  2736. goodyHutCount -= 1
  2737. del plotsForGoodies[index]
  2738. """
  2739. ##########
  2740. def isNearRiverOrLake( pPlot ):
  2741. if pPlot.isRiver(): return True
  2742. x, y = mst.coordByIndex( inx )
  2743. for nearDir in nearDirs:
  2744. newX, newY = getTileCoordXYWithWrap((x,y), nearDir)
  2745. if newX == x and newY == y: continue
  2746. if pPlot.isLake(): return True
  2747. return False
  2748. ##########
  2749. # get shuffled list of possible plots
  2750. plotsForGoodies = []
  2751. cnt = 0
  2752. for inx in mst.randomList.randomCountList( cymap.numPlots() ): # randomize all plot numbers
  2753. pPlot = cymap.plotByIndex( inx )
  2754. if mst.canHaveImprovement(pPlot, mst.eiGoody, False):
  2755. plotsForGoodies.append(inx)
  2756. cnt += 1
  2757. # bigger chance if near river or lake
  2758. if isNearRiverOrLake( pPlot ):
  2759. plotsForGoodies.append(inx)
  2760. # bigger chance if on plains near big forest/jungle
  2761. if pPlot.getTerrainType() == mst.etPlains:
  2762. x, y = mst.coordByIndex( inx )
  2763. if mst.numFeatureNeighbors(x, y, [mst.efForest, mst.efJungle], dist=1, bCardinal=True) > 1:
  2764. plotsForGoodies.append(inx)
  2765. print "[SMap] Possible plots for Goody Huts: %i" % ( cnt )
  2766. # calc target number of goodies
  2767. players = cgc.getGame().countCivPlayersEverAlive()
  2768. goodyHutCount = 2 + 6*players + int( len(plotsForGoodies)/75.0 * bonusPct/100.0 )
  2769. # less goodies on Mars
  2770. if mst.bMars: goodyHutCount = goodyHutCount / 2
  2771. # FFH calls addGoodies() several times and adjusts between those calls
  2772. if mst.bFFH: goodyHutCount = goodyHutCount * 2 / 3
  2773. print "[SMap] Target Goody Huts: %i" % (goodyHutCount)
  2774. # place goody huts
  2775. while (goodyHutCount > 0) and (len(plotsForGoodies) > 0):
  2776. inx = mst.chooseListPop( plotsForGoodies )
  2777. # make sure there isn't already an improvement on the plot
  2778. pPlot = cymap.plotByIndex( inx )
  2779. if pPlot.getImprovementType() > -1: continue
  2780. # make sure no near neighbors are here
  2781. x, y = mst.coordByIndex( inx )
  2782. if mst.numTypeNeighbors( x, y, 'IMPROVEMENT', mst.eiGoody, dist=2 ) == 0:
  2783. pPlot.setImprovementType( mst.eiGoody )
  2784. goodyHutCount -= 1
  2785. ########## Temudjin END
  2786. if goodyHutCount > 0:
  2787. print "[SMap] Failed to place %r goody huts" % goodyHutCount
  2788. OutputMessage("Python: SmartMap: Step 7 Goody Huts:complete")
  2789. collectGarbage()
  2790. ############################################################################################
  2791. #Step 8: place all the players
  2792. # ##########################################################################################
  2793. # ######## assignStartingPlots() - Called from system
  2794. # ######## - assign starting positions for each player after the map is generated
  2795. # ######## - Planetfall has GameOption 'SCATTERED_LANDING_PODS' - use default implementation
  2796. # ##########################################################################################
  2797. def assignStartingPlots():
  2798. print "[SMap] -- STEP 8 - assignStartingPlots()"
  2799. #find out the user selected placement method
  2800. placeMethod = getSelectedMapValue("Start Placement:")
  2801. print "[SMap] placeMethod %r" % placeMethod
  2802. if mst.bPfall or (placeMethod == "standard"):
  2803. CyPythonMgr().allowDefaultImpl()
  2804. else:
  2805. global width
  2806. global height
  2807. global centralPole
  2808. cgc = CyGlobalContext()
  2809. cymap = CyMap()
  2810. dice = cgc.getGame().getMapRand()
  2811. newWorld = False
  2812. playerInlandStart = False
  2813. playerCoastalStart = False
  2814. preferInland = False
  2815. preferCoastal = False
  2816. if placeMethod == "SmartMap New World":
  2817. newWorld = True
  2818. if placeMethod == "SmartMap New World Coastal":
  2819. newWorld = True
  2820. playerCoastalStart = True
  2821. preferCoastal = True
  2822. if placeMethod == "SmartMap New World Inland":
  2823. newWorld = True
  2824. playerInlandStart = True
  2825. preferInland = True
  2826. if placeMethod == "SmartMap Player Inland":
  2827. playerInlandStart = True
  2828. preferInland = True
  2829. if placeMethod == "SmartMap Player Coastal":
  2830. playerCoastalStart = True
  2831. preferCoastal = True
  2832. if placeMethod == "SmartMap All Inland":
  2833. preferInland = True
  2834. if placeMethod == "SmartMap All Coastal":
  2835. preferCoastal = True
  2836. #the continent lists
  2837. global postContinentLists
  2838. ########## Temudjin START
  2839. computeContinents() # things might have changed since first call
  2840. ########## Temudjin END
  2841. #now we know how the players get distributed per continent
  2842. #so we just have to pick the particular starting plot on each continent per player
  2843. print "[SMap] Start pre-computing plot scores"
  2844. #pre-compute plot scores for all land plots
  2845. plotScores = [0]*(width*height)
  2846. baseScores = [0]*(width*height)
  2847. for px in range(width):
  2848. for py in range(height):
  2849. nearbyBonusTypes = []
  2850. pickedPlot = cymap.plot(px,py)
  2851. if pickedPlot.isWater():
  2852. continue
  2853. if pickedPlot.isPeak():
  2854. continue
  2855. ########## Temudjin START
  2856. # do not start on bonus
  2857. if pickedPlot.getBonusType(-1) > -1:
  2858. continue
  2859. # check Temudjin's Cool Starting Plots
  2860. if not okLandPlots(px,py,10):
  2861. continue
  2862. if not okMapEdge(px,py,3):
  2863. continue
  2864. ########## Temudjin END
  2865. pindex = getTileIndexAtXY(px,py)
  2866. pickedScore = 0
  2867. #the value of food etc on the actual plot tends not to matter because of the automatic city minimums
  2868. pickedScore += 10 * int(pickedPlot.getYield(YieldTypes.YIELD_FOOD) + pickedPlot.getYield(YieldTypes.YIELD_PRODUCTION) + pickedPlot.getYield(YieldTypes.YIELD_COMMERCE))
  2869. #other bonuses for the plot's score
  2870. if pickedPlot.isFreshWater():
  2871. pickedScore += 1800
  2872. #extra points for the defensive bonus of landing on a hill
  2873. if pickedPlot.isHills():
  2874. pickedScore += 1200
  2875. #a coastal start tends to be far from other players, and advantageous (can build ocean-only
  2876. #buildings, etc), and a hill can be a big production boost
  2877. nearOneHill = False
  2878. nearOneOcean = False
  2879. for nearDir in nearDirs:
  2880. newX, newY = getTileCoordXYWithWrap((px,py), nearDir)
  2881. if newX == px and newY == py:
  2882. continue
  2883. pTouchPlot = cymap.plot(newX,newY)
  2884. #typically an ocean touching start is highly desireable
  2885. if not preferInland and pTouchPlot.isWater() and not pTouchPlot.isLake() and not nearOneOcean:
  2886. nearOneOcean = True
  2887. pickedScore += 1800
  2888. continue
  2889. if preferCoastal and isCoastalPlot(px,py):
  2890. pickedScore += 1800
  2891. if preferInland and not isCoastalPlot(px,py):
  2892. pickedScore += 1800
  2893. # a lot of players like to start with a hill for production and defense
  2894. if pTouchPlot.isHills() and not nearOneHill:
  2895. nearOneHill = True
  2896. pickedScore += 600
  2897. continue
  2898. #starting too close to the pole can hamper your growth
  2899. poleCheck1 = max(int(width/8), int(height/8))
  2900. poleCheck2 = max(int(width/10), int(height/10))
  2901. poleCheck3 = max(int(width/12), int(height/12))
  2902. poleCheck4 = max(int(width/14), int(height/14))
  2903. if not tooCloseToPole(px,py,poleCheck1):
  2904. pickedScore += 2800 # 3600
  2905. elif not tooCloseToPole(px,py,poleCheck2):
  2906. pickedScore += 2400 # 3000
  2907. elif not tooCloseToPole(px,py,poleCheck3):
  2908. pickedScore += 2000 # 2400
  2909. elif not tooCloseToPole(px,py,poleCheck4):
  2910. pickedScore += 1600 # 1800
  2911. elif not tooCloseToPole(px,py,12):
  2912. pickedScore += 1200
  2913. if pickedPlot.isGoody():
  2914. pickedScore -= 100
  2915. ########## Temudjin START
  2916. # bonusType = pickedPlot.getBonusType(-1)
  2917. # if bonusType != BonusTypes.NO_BONUS and bonusType not in nearbyBonusTypes:
  2918. # nearbyBonusTypes.append(bonusType)
  2919. # pickedScore += 200
  2920. # bonusInfoXML = cgc.getBonusInfo(bonusType)
  2921. # type_string = bonusInfoXML.getType()
  2922. # if type_string in resourcesImportantEarly:
  2923. # pickedScore += 200
  2924. # if type_string in resourcesStrategic:
  2925. # pickedScore += 400
  2926. ########## Temudjin END
  2927. pickedScore = max(1,pickedScore)
  2928. baseScores[pindex] = pickedScore
  2929. for nearDir in playerStartCross:
  2930. newX, newY = getTileCoordXYWithWrap((px,py), nearDir)
  2931. if newX == px and newY == py:
  2932. continue
  2933. pTouchPlot = cymap.plot(newX,newY)
  2934. pickedScore += 4 * (6*int(pTouchPlot.getYield(YieldTypes.YIELD_FOOD))) + (3*int(pTouchPlot.getYield(YieldTypes.YIELD_PRODUCTION))) + (2*int(pTouchPlot.getYield(YieldTypes.YIELD_COMMERCE)))
  2935. if pTouchPlot.isFreshWater():
  2936. pickedScore += 40
  2937. if pTouchPlot.isFlatlands():
  2938. pickedScore += 40
  2939. if pTouchPlot.isGoody():
  2940. pickedScore += 200
  2941. if pTouchPlot.isHills():
  2942. pickedScore += 50
  2943. if pTouchPlot.isPeak():
  2944. pickedScore -= 80
  2945. if pTouchPlot.isWater():
  2946. if pTouchPlot.isLake():
  2947. pickedScore += 40
  2948. else:
  2949. pickedScore -= 60
  2950. if preferInland:
  2951. pickedScore -= 100
  2952. bonusType = pTouchPlot.getBonusType(-1)
  2953. if bonusType != BonusTypes.NO_BONUS and bonusType not in nearbyBonusTypes:
  2954. nearbyBonusTypes.append(bonusType)
  2955. pickedScore += 200
  2956. bonusInfoXML = cgc.getBonusInfo(bonusType)
  2957. type_string = bonusInfoXML.getType()
  2958. if type_string in resourcesImportantEarly:
  2959. pickedScore += 200
  2960. if type_string in resourcesStrategic:
  2961. pickedScore += 400
  2962. plotScores[pindex] = pickedScore
  2963. print "[SMap] Finished pre-computing plot scores"
  2964. #mst.printList( plotScores, "Plot Scores:", prefix="[SMap] ")
  2965. #now for each continent, figure out the total score of all the land tiles it owns
  2966. print "[SMap] Score continents"
  2967. postContinentScores = []
  2968. for postContinentList in postContinentLists:
  2969. totalYield = int(((len(postContinentList)) * 1000) / (width*height))
  2970. for plotPos in postContinentList:
  2971. plotX, plotY = plotPos
  2972. pindex = getTileIndexAtXY(plotX,plotY)
  2973. totalYield += baseScores[pindex]
  2974. postContinentScores.append(totalYield)
  2975. #print "[SMap] continent length: %r - scored: %r" % (len(postContinentList), totalYield)
  2976. mst.printList( postContinentScores, "postContinentScores:", rows=1, prefix="[SMap] " )
  2977. players = cgc.getGame().countCivPlayersEverAlive()
  2978. #in new world mode, drop any continent list in the western hemisphere
  2979. if newWorld:
  2980. foundContinentToDelete = True
  2981. while foundContinentToDelete and len(postContinentScores) > 1:
  2982. foundContinentToDelete = False
  2983. for index in range(len(postContinentScores)):
  2984. conList = postContinentLists[index]
  2985. countInEast = 0
  2986. totalTiles = len(conList)
  2987. for conTile in conList:
  2988. tileX, tileY = conTile
  2989. if tileX > int(width/2)+1:
  2990. countInEast += 1
  2991. if countInEast > int(totalTiles/10):
  2992. continue
  2993. del postContinentScores[index]
  2994. del postContinentLists[index]
  2995. foundContinentToDelete = True
  2996. break
  2997. #drop the lowest scoring continents over the min # of players because we won't use them
  2998. while len(postContinentScores) > players:
  2999. for index in range(len(postContinentScores)):
  3000. if postContinentScores[index] == min(postContinentScores):
  3001. del postContinentScores[index]
  3002. del postContinentLists[index]
  3003. break
  3004. #pair continent lists with their scores, and sort by the scores
  3005. listsScoresPlayers = []
  3006. for index in range(len(postContinentLists)):
  3007. listsScoresPlayers.append((postContinentLists[index], postContinentScores[index], 0))
  3008. listsScoresPlayers = sorted(listsScoresPlayers, key=operator.itemgetter(1))
  3009. listsScoresPlayers.reverse()
  3010. mst.printList( listsScoresPlayers, "listsScoresPlayers:", rows=1, prefix = "[SMap] " )
  3011. #assign initial players to continents, just round robbin, conveniently this will
  3012. #automatically weight the early list entries higher
  3013. playerContinent = 0
  3014. for playerIndex in range(players):
  3015. # print "[SMap] playerContinent %r" % (playerContinent)
  3016. contList, score, numPlayers = listsScoresPlayers[playerContinent]
  3017. numPlayers += 1
  3018. listsScoresPlayers[playerContinent] = (contList, score, numPlayers)
  3019. playerContinent += 1
  3020. if playerContinent >= len(listsScoresPlayers):
  3021. playerContinent = 0
  3022. for setIndex in range(len(listsScoresPlayers)):
  3023. contList, score, numPlayers = listsScoresPlayers[setIndex]
  3024. scorePP = score
  3025. tileCount = len(contList)
  3026. tileCountPP = tileCount
  3027. if numPlayers > 1:
  3028. scorePP = int(scorePP/numPlayers)
  3029. tileCountPP = int(tileCountPP/numPlayers)
  3030. sprint = "[SMap] Final Cont: %r, Score: %r, numPlayers: %r, Tiles: %r\n" % (setIndex,score,numPlayers,len(contList))
  3031. sprint += "[SMap] ScorePP: %r, TileCountPP: %r" % (scorePP,tileCountPP)
  3032. print sprint
  3033. #while any imbalance in the per-continent score divided by the number of
  3034. #players placed on that continent exists, rebalance players by moving them
  3035. #from a lower scoring position to a higher scoring position
  3036. anyImbalance = True
  3037. tries = 0
  3038. tryLimit = int(2*players+2)
  3039. while anyImbalance and tries < tryLimit:
  3040. tries += 1
  3041. anyImbalance = False
  3042. #first step: find out the min/max existing scores
  3043. minScore = -1
  3044. maxScore = 0
  3045. minScoreIndex = len(listsScoresPlayers)-1
  3046. maxScoreIndex = 0
  3047. for index in range(len(listsScoresPlayers)):
  3048. contList, score, numPlayers = listsScoresPlayers[index]
  3049. if numPlayers > 0:
  3050. avgScore = int(score / numPlayers)
  3051. if avgScore < minScore or minScore == -1:
  3052. minScore = avgScore
  3053. minScoreIndex = index
  3054. if avgScore > maxScore:
  3055. maxScore = avgScore
  3056. maxScoreIndex = index
  3057. #find out if there is even possible room to place another player on the largest continent
  3058. #we'll say that each player requires more than 4x4 tiles, at a minimum
  3059. maxContList, maxContScore, maxContPlayers = listsScoresPlayers[maxScoreIndex]
  3060. sprint = "[SMap] maxContScore: %r, maxContPlayers: %r, len: %r\n" % (maxContScore, maxContPlayers, len(listsScoresPlayers[maxScoreIndex]))
  3061. if len(maxContList) > ((maxContPlayers+1) * 17):
  3062. alternativeTheory = []
  3063. altminScore = -1
  3064. altmaxScore = 0
  3065. for index in range(len(listsScoresPlayers)):
  3066. contList, score, numPlayers = listsScoresPlayers[index]
  3067. if index == maxScoreIndex:
  3068. numPlayers += 1
  3069. if index == minScoreIndex:
  3070. numPlayers -= 1
  3071. if numPlayers < 0:
  3072. numPlayers = 0
  3073. if numPlayers > 0:
  3074. avgScore = int(score / numPlayers)
  3075. if avgScore < altminScore or altminScore == -1:
  3076. altminScore = avgScore
  3077. if avgScore > altmaxScore:
  3078. altmaxScore = avgScore
  3079. alternativeTheory.append((contList,score,numPlayers))
  3080. sprint += "[SMap] minScore: %r, maxScore: %r, theory altminScore: %r, theory altmaxScore %r\n" % (minScore, maxScore, altminScore, altmaxScore)
  3081. for setIndex in range(len(alternativeTheory)):
  3082. contList, score, numPlayers = alternativeTheory[setIndex]
  3083. scorePP = score
  3084. tileCount = len(contList)
  3085. tileCountPP = tileCount
  3086. if numPlayers > 1:
  3087. scorePP = int(scorePP/numPlayers)
  3088. tileCountPP = int(tileCountPP/numPlayers)
  3089. sprint += "[SMap] Theory Cont: %r, Score: %r, numPlayers: %r, Tiles: %r\n" % (setIndex,score,numPlayers,len(contList))
  3090. sprint += "[SMap] ScorePP: %r, TileCountPP: %r\n\n" % (scorePP,tileCountPP)
  3091. #if the alternative theory has better min score, or equal minscore with reduced variance (lower maxscore)
  3092. #then we accept the alternative theory, and go through the loop again to see if we can do any better
  3093. if altminScore > minScore:
  3094. listsScoresPlayers = alternativeTheory
  3095. anyImbalance = True
  3096. sprint += "[SMap] Theory succeeds on minScore"
  3097. elif altminScore == minScore and altmaxScore < maxScore:
  3098. listsScoresPlayers = alternativeTheory
  3099. anyImbalance = True
  3100. sprint += "[SMap] Theory succeeds on maxScore"
  3101. else:
  3102. sprint += "[SMap] Theory fails"
  3103. print sprint
  3104. #now we know how many players will be placed on each continent
  3105. for setIndex in range(len(listsScoresPlayers)):
  3106. contList, score, numPlayers = listsScoresPlayers[setIndex]
  3107. scorePP = score
  3108. tileCount = len(contList)
  3109. tileCountPP = tileCount
  3110. if numPlayers > 1:
  3111. scorePP = int(scorePP/numPlayers)
  3112. tileCountPP = int(tileCountPP/numPlayers)
  3113. sprint = "[SMap] Final Cont: %r, Score: %r, numPlayers: %r, Tiles: %r\n" % (setIndex,score,numPlayers,len(contList))
  3114. sprint += "[SMap] ScorePP: %r, TileCountPP: %r" % (scorePP,tileCountPP)
  3115. print sprint
  3116. #knowing the continents each player will start on, we must pick a starting plot on that continent
  3117. #for the player
  3118. finalPlots = []
  3119. for index in range(len(listsScoresPlayers)):
  3120. contList, score, numPlayers = listsScoresPlayers[index]
  3121. if numPlayers <= 0:
  3122. continue
  3123. print "[SMap] Find placements for continent %r, with %r players" % (index, numPlayers)
  3124. #keep track of the best scoring plots (the winner we'll use)
  3125. bestScore = 0
  3126. bestSeparation = 0
  3127. bestPickedPlotsXY = []
  3128. #keep track of the best separated plots, to require that the
  3129. #finally chosen plots must come reasonably close to maximum separation
  3130. bestMinSeparation = 0
  3131. print " Estimate continent separation for continent %r" % index
  3132. #calculate a base expected separation
  3133. maxPossibleSeparation = 0
  3134. for tries in range(128 * numPlayers):
  3135. plotIndexA = dice.get(len(contList), "Python: SmartMap: Dice: continent size estimator")
  3136. plotIndexB = dice.get(len(contList), "Python: SmartMap: Dice: continent size estimator")
  3137. plotA = contList[plotIndexA]
  3138. plotB = contList[plotIndexB]
  3139. distX, distY = getWrapDistanceXY(plotA,plotB)
  3140. separation = int(((distX*distX) + (distY*distY))**0.5)
  3141. if separation > maxPossibleSeparation:
  3142. maxPossibleSeparation = separation
  3143. demandSeparation = int(65*(maxPossibleSeparation/(numPlayers+2))/100)
  3144. demandSeparation = max(demandSeparation, 5)
  3145. print "[SMap] continent %r, estimated initial separation %r, with total tiles %r" % (index, demandSeparation, len(contList))
  3146. tryLimit = 50 + (250 * numPlayers * (numPlayers-1))
  3147. for tries in range(tryLimit):
  3148. pickedPlotsXY = []
  3149. while len(pickedPlotsXY) < numPlayers:
  3150. plotPickIndex = dice.get(len(contList), "Python: SmartMap: Dice: Player Placement Plot Pick")
  3151. pickedPlot = contList[plotPickIndex]
  3152. if not pickedPlot in pickedPlotsXY:
  3153. pickedPlotsXY.append(pickedPlot)
  3154. tooClose = False
  3155. for plotA in pickedPlotsXY:
  3156. for plotB in pickedPlotsXY:
  3157. if plotA != plotB:
  3158. distX,distY = getWrapDistanceXY(plotA, plotB)
  3159. dist = int(((distX*distX) + (distY*distY))**0.5)
  3160. if dist < demandSeparation:
  3161. tooClose = True
  3162. break
  3163. if tooClose:
  3164. break
  3165. if tooClose:
  3166. continue
  3167. #print "[SMap] Found Plots: %r - needed: %r" % (len(pickedPlotsXY), numPlayers)
  3168. if len(pickedPlotsXY) < numPlayers:
  3169. continue
  3170. altPlotsXY = []
  3171. for plot in pickedPlotsXY:
  3172. givenPlotX, givenPlotY = plot
  3173. altPlotX=-1
  3174. altPlotY=-1
  3175. givenPlotIndex = getTileIndexAtXY(givenPlotX,givenPlotY)
  3176. bestNearScore = plotScores[givenPlotIndex]
  3177. for nearDir in playerStartCross:
  3178. altX,altY = getTileCoordXYWithWrap(plot, nearDir)
  3179. altPlot = cymap.plot(altX,altY)
  3180. if not (altPlot.isFlatlands() or altPlot.isHills()):
  3181. continue
  3182. altScoreIndex = getTileIndexAtXY(altX,altY)
  3183. if altPlotX == -1 or altPlotY == -1 or plotScores[altScoreIndex] > bestNearScore:
  3184. bestNearScore = plotScores[altScoreIndex]
  3185. altPlotX = altX
  3186. altPlotY = altY
  3187. if altPlotX == -1 or altPlotY == -1:
  3188. altPlotsXY.append(plot)
  3189. else:
  3190. altPlotsXY.append((altPlotX,altPlotY))
  3191. for plotSet in [pickedPlotsXY,altPlotsXY]:
  3192. #print "[SMap] Considering plots %r" % plotSet
  3193. totalScore = 0
  3194. for picked in plotSet:
  3195. plotX,plotY = picked
  3196. pickedIndex = getTileIndexAtXY(plotX,plotY)
  3197. totalScore += plotScores[pickedIndex]
  3198. #find the minimum separation among the starting positions on this continent
  3199. minSeparation = -1
  3200. for firstIndex in range(len(plotSet)):
  3201. firstPlot = plotSet[firstIndex]
  3202. for secondIndex in range(firstIndex, len(plotSet)):
  3203. if secondIndex != firstIndex:
  3204. secondPlot = plotSet[secondIndex]
  3205. distX, distY = getWrapDistanceXY(firstPlot,secondPlot)
  3206. dist = int(((distX*distX) + (distY*distY))**0.5)
  3207. if dist < minSeparation or minSeparation == -1:
  3208. minSeparation = dist
  3209. #this helps push starting positions away from positions on other continents
  3210. for anotherPlot in finalPlots:
  3211. distX, distY = getWrapDistanceXY(firstPlot,anotherPlot)
  3212. dist = int(160*((((distX*distX) + (distY*distY))**0.5))/100)
  3213. if dist < minSeparation or minSeparation == -1:
  3214. minSeparation = dist
  3215. totalScore += minSeparation * int(bestScore / 100)
  3216. #we require that the final placement have at least XX% of the best separation ever found
  3217. if minSeparation > bestMinSeparation:
  3218. bestMinSeparation = minSeparation
  3219. demandSeparation = bestMinSeparation-2
  3220. #print "[SMap] bestMinSeparation %r - demandSeparation %r - tries %r for tiles %r" % (bestMinSeparation,demandSeparation,tries,plotSet)
  3221. #if empty list, or better score exceeding demand separation, or old score doesn't exceed demand but this one does
  3222. if (bestPickedPlotsXY==[] or (totalScore > bestScore and minSeparation >= demandSeparation)
  3223. or (totalScore > bestScore and minSeparation >= bestSeparation)
  3224. or (bestSeparation < demandSeparation and minSeparation >= demandSeparation) ):
  3225. bestScore = totalScore
  3226. bestSeparation = minSeparation
  3227. bestPickedPlotsXY = plotSet
  3228. print "[SMap] New bestPickedPlotsXY %r, separation: %r, score: %r, demand %r, numPlayers %r, tries %r" % (bestPickedPlotsXY, bestSeparation, bestScore, demandSeparation, numPlayers, tries)
  3229. demandSeparation += 1
  3230. print "[SMap] Found placements for continent: %r, with %r players: %r" % (index, numPlayers, bestPickedPlotsXY)
  3231. for plotXY in bestPickedPlotsXY:
  3232. if not plotXY in finalPlots:
  3233. finalPlots.append(plotXY)
  3234. minDist = -1
  3235. for plotA in finalPlots:
  3236. for plotB in finalPlots:
  3237. if plotA != plotB:
  3238. distX, distY = getWrapDistanceXY(plotA,plotB)
  3239. dist = int(((distX*distX) + (distY*distY))**0.5)
  3240. if minDist == -1 or dist < minDist:
  3241. minDist = dist
  3242. print "[SMap] Tentative player Plots %r, minimum distance is %r" % (finalPlots, minDist)
  3243. #now that we have very good plots, check nearby and make sure we didn't make a close miss
  3244. altFinalPlots = []
  3245. for plot in finalPlots:
  3246. givenPlotX, givenPlotY = plot
  3247. givenPlotIndex = getTileIndexAtXY(givenPlotX,givenPlotY)
  3248. altPlotX = givenPlotX
  3249. altPlotY = givenPlotY
  3250. bestNearScore = plotScores[givenPlotIndex]
  3251. for nearDir in playerStartCross:
  3252. altX,altY = getTileCoordXYWithWrap(plot, nearDir)
  3253. otherPlot = cymap.plot(altX,altY)
  3254. if not (otherPlot.isFlatlands() or otherPlot.isHills()):
  3255. continue
  3256. scoreIndex = getTileIndexAtXY(altX,altY)
  3257. if plotScores[scoreIndex] > bestNearScore:
  3258. bestNearScore = plotScores[scoreIndex]
  3259. altPlotX = altX
  3260. altPlotY = altY
  3261. if not (altPlotX,altPlotY) in altFinalPlots:
  3262. altFinalPlots.append((altPlotX,altPlotY))
  3263. #these are the finalized plots which will be assigned to the players
  3264. minAltDist = -1
  3265. for plotA in altFinalPlots:
  3266. for plotB in altFinalPlots:
  3267. if plotA != plotB:
  3268. distX, distY = getWrapDistanceXY(plotA,plotB)
  3269. dist = int(((distX*distX) + (distY*distY))**0.5)
  3270. if minAltDist == -1 or dist < minAltDist:
  3271. minAltDist = dist
  3272. print "[SMap] Final Player Plots: %r - Minimum distance is %r" % (finalPlots, minDist)
  3273. if minAltDist >= minDist or minAltDist > 4:
  3274. finalPlots = altFinalPlots
  3275. #maybe there was an error: we didn't find enough plots, so we'll let the standard
  3276. #placement algorithm take care of it for us
  3277. if len(finalPlots) < players or minDist < 4:
  3278. OutputMessage("Python: SmartMap: Step 8 Assign starting plots: failed smartmap so complete standard")
  3279. CyPythonMgr().allowDefaultImpl()
  3280. else:
  3281. #finally, we can actually assign the final plots to the players
  3282. for playerIndex in range(players):
  3283. whichStartIndex = dice.get(len(finalPlots), "Python: SmartMap: Dice: Player Placement Plot Pick Place")
  3284. #start player 0 (human in single player) near the middle IF wrapping
  3285. if playerIndex == 0 and (wrapX or wrapY) and not centralPole and didWrap:
  3286. nearestMidScore = 0
  3287. nearestMidIndex = 0
  3288. for startIndex in range(len(finalPlots)):
  3289. plotScore = 0
  3290. startPlotX,startPlotY = finalPlots[startIndex]
  3291. if playerCoastalStart and not isCoastalPlot(startPlotX,startPlotY):
  3292. continue
  3293. if playerInlandStart and isCoastalPlot(startPlotX,startPlotY):
  3294. continue
  3295. if wrapX:
  3296. distFromCenterFactor = (width*width) - (abs(startPlotX-int(width/2))*abs(startPlotX-int(width/2)))
  3297. plotScore += distFromCenterFactor
  3298. if wrapY:
  3299. distFromCenterFactor = (height*height) - (abs(startPlotY-int(height/2))*abs(startPlotY-int(height/2)))
  3300. plotScore += distFromCenterFactor
  3301. if plotScore > nearestMidScore:
  3302. nearestMidScore = plotScore
  3303. nearestMidIndex = startIndex
  3304. whichStartIndex = nearestMidIndex
  3305. #pick one of the final placement plots at random
  3306. startX,startY = finalPlots[whichStartIndex]
  3307. del finalPlots[whichStartIndex]
  3308. startPlot = cymap.plot(startX,startY)
  3309. #assign the player to it
  3310. startPlot.setStartingPlot(True) #I believe this helps the post-processor improve map fairness
  3311. pPlayer = cgc.getPlayer(playerIndex)
  3312. pPlayer.setStartingPlot(startPlot,True)
  3313. playerName = pPlayer.getName()
  3314. print "[SMap] Player %2r, @ %r,%r - Coastal: %r" % (playerName, startX, startY, isCoastalPlot(startX,startY))
  3315. OutputMessage("Python: SmartMap: Step 8 Assign starting plots: complete")
  3316. #should unlink all memory
  3317. initGlobalVars()
  3318. #should garbage collect the unlinked memory
  3319. collectGarbage()
  3320. # ------------------------------
  3321. # Temudjins Cool Starting Plots
  3322. # ------------------------------
  3323. # ensures that there are more than 3 land/hill plots within the central 3x3 grid
  3324. # and more than ok land/hill plots in the 5x5 grid around the starting-plot
  3325. def okLandPlots(xCoord, yCoord, ok=10):
  3326. land1 = 0
  3327. if ok >= 0:
  3328. for x in range( -2, 3 ):
  3329. for y in range( -2, 3 ):
  3330. plot = plotXY( xCoord, yCoord, x, y )
  3331. if not plot.isNone():
  3332. if plot.isHills() or plot.isFlatlands():
  3333. land1 += 1
  3334. if land1 > ok:
  3335. land2 = 0
  3336. for x in range( -1, 2 ):
  3337. for y in range( -1, 2 ):
  3338. plot = plotXY( xCoord, yCoord, x, y )
  3339. if not plot.isNone():
  3340. if plot.isHills() or plot.isFlatlands():
  3341. land2 += 1
  3342. if land2 > 3:
  3343. return True
  3344. return False
  3345. # ensures that plot isn't within ok plots from edge of the world
  3346. def okMapEdge( x, y, ok=3 ):
  3347. if not CyMap().isWrapX():
  3348. if ( x < ok ) or ( x > (mst.iNumPlotsX-1-ok) ):
  3349. return False
  3350. if not CyMap().isWrapY():
  3351. if ( y < ok ) or ( y > (mst.iNumPlotsY-1-ok) ):
  3352. return False
  3353. return True
  3354. # ----------------------------------
  3355. # END Temudjin's Cool Starting Plots
  3356. # ----------------------------------
  3357. ########## Temudjin START - quite a few changes here, not all specifically documented
  3358. ###########################################################################
  3359. # Stuff associated with menus
  3360. ###########################################################################
  3361. def menu_stuff():
  3362. global hasReadConfig
  3363. global selections
  3364. global selection_titles
  3365. global selection_defaults
  3366. global selection_names_and_values
  3367. global userSelectionCache
  3368. hasReadConfig = False
  3369. userSelectionCache = {}
  3370. # Custom Options - Name: [ Option#, isFFH, isPlanetfall, isMars ]
  3371. selections = {
  3372. "Continents:" : [ 0, True, True, True],
  3373. "Terrain:" : [ 1, True, False, True],
  3374. "Features:" : [ 2, True, False, True],
  3375. "Bonus Placement:" : [ 3, True, False, False],
  3376. "Bonus Density:" : [ 4, True, False, False],
  3377. "Bonus Balancing:" : [ 5, True, False, True],
  3378. "Goodies:" : [ 6, True, False, True],
  3379. "Ocean:" : [ 7, True, True, True],
  3380. "Coastal Waters:" : [ 8, True, False, True],
  3381. "Hills:" : [ 9, True, True, True],
  3382. "Peaks:" : [10, True, True, True],
  3383. "Forest/Jungle:" : [11, True, False, False],
  3384. "Rivers/Lakes:" : [12, True, True, False],
  3385. "Land Style:" : [13, True, True, True],
  3386. "Start Placement:" : [14, True, False, False],
  3387. "Team Placement:" : [15, True, True, False],
  3388. "Mars Theme:" : [16, False, False, True],
  3389. "Wrap:" : [17, True, True, True],
  3390. "Override Width:" : [18, True, True, True],
  3391. "Override Height:" : [19, True, True, True],
  3392. "Override Separation:" : [20, True, True, True],
  3393. }
  3394. selection_defaults = {
  3395. "Continents:" : "3 large lands",
  3396. "Terrain:" : "SmartMap",
  3397. "Features:" : "SmartMap",
  3398. "Bonus Placement:" : "SmartMap Normal",
  3399. "Bonus Density:" : "few strat, norm happy, few other",
  3400. "Bonus Balancing:" : "balanced, wider range",
  3401. "Goodies:" : "SmartMap Normal",
  3402. "Ocean:" : "70% ocean",
  3403. "Coastal Waters:" : "expanded",
  3404. "Hills:" : "16% hills",
  3405. "Peaks:" : "8% peaks",
  3406. "Forest/Jungle:" : "normal forest, normal jungle",
  3407. "Rivers/Lakes:" : "normal rivers, normal lakes",
  3408. "Land Style:" : "somewhat round, some fragments",
  3409. "Start Placement:" : "SmartMap Player Coastal",
  3410. "Team Placement:" : "Team Neighbors",
  3411. "Mars Theme:" : "Sands of Mars",
  3412. "Wrap:" : "wrap x",
  3413. "Override Width:" : "don't override",
  3414. "Override Height:" : "don't override",
  3415. "Override Separation:" : "5 no coastal crossing",
  3416. }
  3417. # fewer custom options for Planetfall / Mars Now!
  3418. selection_titles = {}
  3419. items = selections.items()
  3420. #items.sort( key = lambda test: test[1][0] ) - changed for MAC
  3421. items.sort( lambda x,y: cmp( x[1][0], y[1][0] ) )
  3422. cnt = 0
  3423. for nam,val in items:
  3424. opt, ffh, pfall, mars = val
  3425. if mst.bPfall:
  3426. if not pfall: continue
  3427. elif mst.bMars:
  3428. if not mars: continue
  3429. else:
  3430. if not ffh: continue
  3431. selection_titles[ cnt ] = [ nam, opt ]
  3432. cnt += 1
  3433. mst.printDict(selection_titles,"Custom Options:", prefix = "[SMap] ")
  3434. #dropdown list names and corresponding values used in code
  3435. selection_names_and_values = [
  3436. [
  3437. ["smartmap random pick","smartmap random pick",False],
  3438. ["no continents (all fragments)",0,True],
  3439. [" 1 pangea",1,True],
  3440. [" 2 huge lands",2,True],
  3441. [" 3 large lands",3,True],
  3442. [" 4 continents",4,True],
  3443. [" 5 continents",5,True],
  3444. [" 6 continents",6,True],
  3445. [" 7 continents",7,True],
  3446. [" 8 continents",8,True],
  3447. ["12 islands",12,True],
  3448. ["18 isles",18,True],
  3449. ["24 isles",24,False],
  3450. ["36 islets",36,False],
  3451. ["single tile isles",-20,False],
  3452. ["earth",-30,False],
  3453. ["north america",-31,False],
  3454. ["south america",-32,False],
  3455. ["africa",-33,False],
  3456. ["asia",-34,False],
  3457. ["australia",-35,False],
  3458. ["europe",-36,False],
  3459. ["1 per player",-7,True],
  3460. ["1 per 2 players",-8,False],
  3461. ["1 per 3 players",-9,False],
  3462. ["1 per 4 players",-10,False],
  3463. ["2 per player",-11,True],
  3464. ["3 per player",-12,False],
  3465. ["4 per player",-13,False],
  3466. ["random 1-6",-1,True],
  3467. ["random 2-5",-2,True],
  3468. ["random 3-8",-3,True],
  3469. ["random 4-12",-4,True],
  3470. ["random 1-12",-6,True],
  3471. ["random 2-7",-5,True],
  3472. ],
  3473. [
  3474. ["smartmap random pick","smartmap random pick",False],
  3475. ["standard","standard",True],
  3476. ["great plains","great plains",True],
  3477. ["oasis","oasis",True],
  3478. ["use map data","use map data",False],
  3479. ["SmartMap Crazy","SmartMap Crazy",False],
  3480. ["SmartMap no snow","SmartMap no snow",True],
  3481. ["SmartMap no desert","SmartMap no desert",True],
  3482. ["SmartMap no snow/desert","SmartMap no snow/desert",True],
  3483. ["SmartMap no snow/desert/tundra","SmartMap no snow/desert/tundra",True],
  3484. ["SmartMap only plains","SmartMap only plains",True],
  3485. ["SmartMap only grass","SmartMap only grass",True],
  3486. ["SmartMap extra grass","SmartMap extra grass",True],
  3487. ["SmartMap extra plains","SmartMap extra plains",True],
  3488. ["SmartMap","SmartMap",True],
  3489. ],
  3490. [
  3491. ["smartmap random pick","smartmap random pick",False],
  3492. ["standard","standard",True],
  3493. ["great plains","great plains",True],
  3494. ["oasis","oasis",True],
  3495. ["SmartMap Insane","SmartMap Insane",False],
  3496. ["SmartMap Crazy","SmartMap Crazy",False],
  3497. ["SmartMap","SmartMap",False],
  3498. ["SmartMap Strict","SmartMap Strict",True],
  3499. ],
  3500. [
  3501. ["smartmap random pick","smartmap random pick",False],
  3502. ["standard","standard",True],
  3503. ["None","None",True],
  3504. ["SmartMap Crazy","SmartMap Crazy",False],
  3505. ["SmartMap Clump Happy","SmartMap Clump Happy",True],
  3506. ["SmartMap Clump Health","SmartMap Clump Health",True],
  3507. ["SmartMap Clump Both","SmartMap Clump Both",True],
  3508. ["SmartMap Normal","SmartMap Normal",True],
  3509. ],
  3510. [
  3511. ["smartmap random pick","smartmap random pick",False],
  3512. ["few strat, few happy, few other",(50,50,50),True],
  3513. ["few strat, few happy, norm other",(50,50,100),True],
  3514. ["few strat, few happy, many other",(50,50,200),True],
  3515. ["few strat, norm happy, few other",(50,100,50),True],
  3516. ["few strat, norm happy, norm other",(50,100,100),True],
  3517. ["few strat, norm happy, many other",(50,100,200),True],
  3518. ["few strat, many happy, few other",(50,200,50),True],
  3519. ["few strat, many happy, norm other",(50,200,100),True],
  3520. ["few strat, many happy, many other",(50,200,200),True],
  3521. ["norm strat, few happy, few other",(100,50,50),True],
  3522. ["norm strat, few happy, norm other",(100,50,100),True],
  3523. ["norm strat, few happy, many other",(100,50,200),True],
  3524. ["norm strat, norm happy, few other",(100,100,50),True],
  3525. ["norm strat, norm happy, norm other",(100,100,100),True],
  3526. ["norm strat, norm happy, many other",(100,100,200),True],
  3527. ["norm strat, many happy, few other",(100,200,50),True],
  3528. ["norm strat, many happy, norm other",(100,200,100),True],
  3529. ["norm strat, many happy, many other",(100,200,200),True],
  3530. ["many strat, few happy, few other",(200,50,50),True],
  3531. ["many strat, few happy, norm other",(200,50,100),True],
  3532. ["many strat, few happy, many other",(200,50,200),True],
  3533. ["many strat, norm happy, few other",(200,100,50),True],
  3534. ["many strat, norm happy, norm other",(200,100,100),True],
  3535. ["many strat, norm happy, many other",(200,100,200),True],
  3536. ["many strat, many happy, few other",(200,200,50),True],
  3537. ["many strat, many happy, norm other",(200,200,100),True],
  3538. ["many strat, many happy, many other",(200,200,200),True],
  3539. ["low levels of all",(25,25,25),False],
  3540. ["very high levels of all",(800,800,800),False],
  3541. ["high levels of all",(400,400,400),True],
  3542. ["normal levels of all",(100,100,100),True],
  3543. ],
  3544. ########## Temudjin START
  3545. [
  3546. ["smartmap random pick","smartmap random pick",False],
  3547. ["standard", (False,False), True],
  3548. ["balanced, normal range", (True,False), True],
  3549. ["balanced, wider range", (True,True), True],
  3550. ],
  3551. ########## Temudjin END
  3552. [
  3553. ["smartmap random pick","smartmap random pick",False],
  3554. ["standard","standard",True],
  3555. ["None","None",True],
  3556. ["SmartMap Few","SmartMap Few",True],
  3557. ["SmartMap Many","SmartMap Many",True],
  3558. ["SmartMap Normal","SmartMap Normal",True],
  3559. ],
  3560. [
  3561. ["smartmap random pick","smartmap random pick",False],
  3562. ["no ocean, no lakes",-5,False],
  3563. ["no ocean",-4,False],
  3564. ["central sea",-6,False],
  3565. ["corner sea",-7,False],
  3566. ["edge sea",-8,False],
  3567. ["random sea",-9,False],
  3568. ["few great lakes",-10,False],
  3569. ["great lakes",-11,False],
  3570. ["many great lakes",-12,False],
  3571. ["minimal ocean",10,False],
  3572. ["40% ocean",40,False],
  3573. ["50% ocean",50,False],
  3574. ["60% ocean",60,True],
  3575. ["65% ocean",65,True],
  3576. ["70% ocean",70,True],
  3577. ["75% ocean",75,True],
  3578. ["80% ocean",80,True],
  3579. ["85% ocean",85,True],
  3580. ["90% ocean",90,False],
  3581. ["95% ocean",95,False],
  3582. ["99% ocean",99,False],
  3583. ["small ocean",-1,True],
  3584. ["big ocean",-2,True],
  3585. ["normal ocean",-3,True],
  3586. ],
  3587. ########## Temudjin START
  3588. [
  3589. ["smartmap random pick","smartmap random pick",False],
  3590. ["standard", 0, True],
  3591. ["expanded", 1, True],
  3592. ],
  3593. ########## Temudjin END
  3594. [
  3595. ["smartmap random pick","smartmap random pick",False],
  3596. ["no hills",0,False],
  3597. [" 2% hills",2,False],
  3598. [" 4% hills",4,True],
  3599. [" 6% hills",6,True],
  3600. [" 8% hills",8,True],
  3601. ["10% hills",10,True],
  3602. ["12% hills",12,True],
  3603. ["14% hills",14,True],
  3604. ["16% hills",16,True],
  3605. ["18% hills",18,True],
  3606. ["20% hills",20,True],
  3607. ["25% hills",25,False],
  3608. ["30% hills",30,False],
  3609. ["35% hills",35,False],
  3610. ["40% hills",40,False],
  3611. ["50% hills",50,False],
  3612. ["few hills",-1,True],
  3613. ["many hills",-2,True],
  3614. ["normal hills",-3,True],
  3615. ],
  3616. [
  3617. ["smartmap random pick","smartmap random pick",False],
  3618. ["no peaks",0,False],
  3619. [" 1% peaks",1,False],
  3620. [" 2% peaks",2,True],
  3621. [" 3% peaks",3,True],
  3622. [" 4% peaks",4,True],
  3623. [" 5% peaks",5,True],
  3624. [" 6% peaks",6,True],
  3625. [" 7% peaks",7,True],
  3626. [" 8% peaks",8,True],
  3627. [" 9% peaks",9,True],
  3628. ["10% peaks",10,False],
  3629. ["12% peaks",10,False],
  3630. ["15% peaks",15,False],
  3631. ["18% peaks",18,False],
  3632. ["20% peaks",20,False],
  3633. ["24% peaks",24,False],
  3634. ["few peaks no block",-4,True],
  3635. ["many peaks no block",-5,True],
  3636. ["normal peaks no block",-6,True],
  3637. ["few peaks",-1,True],
  3638. ["many peaks",-2,True],
  3639. ["normal peaks",-3,True],
  3640. ],
  3641. [
  3642. ["smartmap random pick","smartmap random pick",False],
  3643. ["no forest, no jungle", (-2000,-2000),False],
  3644. ["no forest, normal jungle", (-2000,0),False],
  3645. ["normal forest, no jungle", (0,-2000),False],
  3646. ["light forest, normal jungle", (-200,0),True],
  3647. ["light forest, heavy jungle", (-200,200),True],
  3648. ["normal forest, light jungle", (0,-200),True],
  3649. ["normal forest, heavy jungle", (0,200),True],
  3650. ["heavy forest, light jungle", (200,-200),True],
  3651. ["heavy forest, normal jungle", (200,0),True],
  3652. ["light forest, light jungle", (-200,-200),True],
  3653. ["heavy forest, heavy jungle", (200,200),True],
  3654. ["normal forest, normal jungle", (0,0),True],
  3655. ],
  3656. [
  3657. ["smartmap random pick","smartmap random pick",False],
  3658. ["few rivers, normal lakes", (80,100),True],
  3659. ["few rivers, many lakes", (80,200),True],
  3660. ["normal rivers, few lakes", (100,33),True],
  3661. ["normal rivers, many lakes", (100,200),True],
  3662. ["many rivers, few lakes", (300,33),True],
  3663. ["many rivers, normal lakes", (300,100),True],
  3664. ["few rivers, few lakes", (80,33),True],
  3665. ["many rivers, many lakes", (300,200),True],
  3666. ["normal rivers, normal lakes", (100,100),True],
  3667. ],
  3668. [
  3669. ["smartmap random pick","smartmap random pick",False],
  3670. ["least round, extreme fragments", (-600,600),False],
  3671. ["least round, heavy fragments", (-600,450),False],
  3672. ["least round, many fragments", (-600,300),True],
  3673. ["least round, some fragments", (-600,150),True],
  3674. ["least round, no fragments", (-600,0),True],
  3675. ["somewhat round, extreme fragments", (-300,600),False],
  3676. ["somewhat round, heavy fragments", (-300,450),False],
  3677. ["somewhat round, many fragments", (-300,300),True],
  3678. ["somewhat round, some fragments", (-300,150),True],
  3679. ["somewhat round, no fragments", (-300,0),True],
  3680. ["very round, extreme fragments", (0,600),False],
  3681. ["very round, heavy fragments", (0,450),False],
  3682. ["very round, many fragments", (0,300),True],
  3683. ["very round, some fragments", (0,150),True],
  3684. ["very round, no fragments", (0,0),True],
  3685. ],
  3686. [
  3687. ["smartmap random pick","smartmap random pick",False],
  3688. ["standard","standard",True],
  3689. ["SmartMap Player Inland","SmartMap Player Inland",True],
  3690. ["SmartMap Player Coastal","SmartMap Player Coastal",True],
  3691. ["SmartMap All Inland","SmartMap All Inland",True],
  3692. ["SmartMap All Coastal","SmartMap All Coastal",True],
  3693. ["SmartMap New World","SmartMap New World",True],
  3694. ["SmartMap New World Inland","SmartMap New World Inland",True],
  3695. ["SmartMap New World Coastal","SmartMap New World Coastal",True],
  3696. ["SmartMap","SmartMap",True],
  3697. ],
  3698. ########## Temudjin START
  3699. [
  3700. ["smartmap random pick","smartmap random pick",False],
  3701. ["Team Neighbors",0,True],
  3702. ["Team Separated",1,True],
  3703. ["Team Randomly Placed",2,True],
  3704. ],
  3705. [
  3706. ["smartmap random pick","smartmap random pick",False],
  3707. ["Sands of Mars", 0, True],
  3708. ["Terraformed Mars", 1, True],
  3709. ],
  3710. ########## Temudjin END
  3711. [
  3712. ["smartmap random pick","smartmap random pick",False],
  3713. ["wrap y - central pole",(False,True,True),False],
  3714. ["wrap both - central pole",(True,True,True),False],
  3715. ["no wrap - central pole",(False,False,True),False],
  3716. ["wrap x - central pole",(True,False,True),False],
  3717. ["wrap y",(False,True,False),True],
  3718. ["wrap both",(True,True,False),True],
  3719. ["no wrap",(False,False,False),True],
  3720. ["wrap x",(True,False,False),True],
  3721. ],
  3722. [
  3723. ["smartmap random pick","smartmap random pick",False],
  3724. [" 24",6,False],
  3725. [" 32 (duel)",8,False],
  3726. [" 40",10,False],
  3727. [" 48 (tiny)",12,True],
  3728. [" 56",14,True],
  3729. [" 64 (small)",16,True],
  3730. [" 72",18,True],
  3731. [" 80",20,True],
  3732. [" 88 (standard)",22,True],
  3733. [" 96",24,True],
  3734. ["104",26,False],
  3735. ["112 (large)",28,False],
  3736. ["120",30,False],
  3737. ["128 (huge)",32,False],
  3738. ["144",36,False],
  3739. ["160 (giant)",40,False],
  3740. ["176 (gigantic)",44,False],
  3741. ["192",48,False],
  3742. ["208",52,False],
  3743. ["224",56,False],
  3744. ["240",60,False],
  3745. ["256",64,False],
  3746. ["272",68,False],
  3747. ["288",72,False],
  3748. ["304",76,False],
  3749. ["320",80,False],
  3750. ["352",88,False],
  3751. ["384",96,False],
  3752. ["416",104,False],
  3753. ["448",112,False],
  3754. ["480",120,False],
  3755. ["random 48-192",-6,False],
  3756. ["random 40-160",-5,False],
  3757. ["random 32-128",-4,False],
  3758. ["random 24- 96",-3,False],
  3759. ["don't override",-1,True],
  3760. ],
  3761. [
  3762. ["smartmap random pick","smartmap random pick",False],
  3763. [" 24",6,False],
  3764. [" 32 (duel)",8,False],
  3765. [" 40 (tiny)",10,True],
  3766. [" 48 (small)",12,True],
  3767. [" 56",14,True],
  3768. [" 64 (standard)",16,True],
  3769. [" 72",18,True],
  3770. [" 80 (large)",20,True],
  3771. [" 88",22,True],
  3772. [" 96 (huge)",24,False],
  3773. ["104",26,False],
  3774. ["112 (giant)",28,False],
  3775. ["120",30,False],
  3776. ["128 (gigantic)",32,False],
  3777. ["144",36,False],
  3778. ["160",40,False],
  3779. ["176",44,False],
  3780. ["192",48,False],
  3781. ["208",52,False],
  3782. ["224",56,False],
  3783. ["240",60,False],
  3784. ["256",64,False],
  3785. ["272",68,False],
  3786. ["288",72,False],
  3787. ["304",76,False],
  3788. ["320",80,False],
  3789. ["352",88,False],
  3790. ["384",96,False],
  3791. ["416",104,False],
  3792. ["random 48-192",-6,False],
  3793. ["random 40-160",-5,False],
  3794. ["random 32-128",-4,False],
  3795. ["random 24- 96",-3,False],
  3796. ["don't override",-1,True],
  3797. ],
  3798. [
  3799. ["smartmap random pick","smartmap random pick",False],
  3800. [" 0 sealevel low-no separation",0,True],
  3801. [" 1 single coast separation",1,True],
  3802. [" 2 coasts touch",2,True],
  3803. [" 3 frequent coast crossing",3,True],
  3804. [" 4 sealevel medium-rare coast crossing",4,True],
  3805. [" 5 no coastal crossing",5,True],
  3806. [" 6 developing culture touch",6,True],
  3807. [" 7 sealevel high",7,True],
  3808. [" 8 refined culture touch",8,True],
  3809. [" 9 refined+influential touch",9,True],
  3810. ["10 influential culture touch",10,True],
  3811. ["11 influential+legendary touch",11,True],
  3812. ["12 legendary culture touch",12,True],
  3813. ["13 no culture touch",13,True],
  3814. ["don't override",-1,True],
  3815. ],
  3816. ]
  3817. # very first function to be called from system
  3818. # used here to initialize user options for custom map
  3819. def getNumHiddenCustomMapOptions():
  3820. print "[SMap] -- getNumHiddenCustomMapOptions()"
  3821. #########################################
  3822. # Initialize only once
  3823. #########################################
  3824. global initFirstTimeDone
  3825. if initFirstTimeDone:
  3826. print "[SMap] First time init already completed"
  3827. return
  3828. print "[SMap] First time init in progress"
  3829. initFirstTimeDone = True
  3830. menu_stuff()
  3831. addWBSFilesToLandForms()
  3832. getDefaults()
  3833. print "[SMap] First time init complete"
  3834. #########################################
  3835. return 0
  3836. #return the total number of custom options for this map
  3837. def getNumCustomMapOptions():
  3838. return len( selection_titles )
  3839. #return the list of options to configure how this map is generated
  3840. def getCustomMapOptionName(argsList):
  3841. index = argsList[0]
  3842. return unicode( CyTranslator().getText( selection_titles[index][0], ()) )
  3843. #this custom menu function returns the 'value' from a map option selected by the player
  3844. #for use by other code.
  3845. def getSelectedMapValue(optionName, bName=False):
  3846. # find selection_titles index
  3847. found = False
  3848. for cnt, val in selection_titles.items():
  3849. nam, opt = val
  3850. if nam == optionName:
  3851. found = True
  3852. break
  3853. if not found:
  3854. # return default value if possible
  3855. if ( mst.bPfall or mst.bMars ) and ( selections.get(optionName,None) != None ):
  3856. optNum,ffh,pfall,mars = selections[ optionName ]
  3857. optName = selection_defaults[ optionName ]
  3858. for nam,val,smart in selection_names_and_values[optNum]:
  3859. if nam == optName:
  3860. return mst.iif( bName, nam, val )
  3861. print "[SMap] Warning! Couldn't find entry for option named %r" % (optionName)
  3862. mst.printDict( selection_titles, "Custom Options:", prefix = "[SMap] " )
  3863. return None
  3864. #get the user selected index (which item in the dropdown list the user selected)
  3865. userSelectedIndex = CyMap().getCustomMapOption( cnt )
  3866. if userSelectedIndex >= len(selection_names_and_values[opt]):
  3867. userSelectedIndex = 0
  3868. nam, val, sel = selection_names_and_values[opt][userSelectedIndex]
  3869. if userSelectedIndex == 0:
  3870. print "[SMap] Smartpick Option: %r" % ( nam )
  3871. # already checked this option?
  3872. smartSelection = userSelectionCache.get( optionName, None )
  3873. if smartSelection == None:
  3874. # make smartpick list
  3875. smartSelectionCache = []
  3876. for inx in range( len(selection_names_and_values[opt]) ):
  3877. selName, selValue, bSel = selection_names_and_values[opt][inx]
  3878. if bSel:
  3879. smartSelectionCache.append( [selName, selValue] )
  3880. if len(smartSelectionCache) > 0:
  3881. nam, val = mst.chooseListElement( smartSelectionCache )
  3882. mst.printList( smartSelectionCache, "Smartpick List", rows=1, prefix="[SMap] ")
  3883. # remember smartpick
  3884. userSelectionCache[ optionName ] = [ nam, val ]
  3885. else:
  3886. nam, val = smartSelection
  3887. print "[SMap] Smartpick Selected: %r, %r" % (nam.replace( "%", "%%" ), val)
  3888. return mst.iif( bName, nam, val )
  3889. #return the number of drop down entries for each custom map option
  3890. def getNumCustomMapOptionValues(argsList):
  3891. #print "[SMap] -- getNumCustomMapOptionValues( %r )" % argsList
  3892. index = argsList[0]
  3893. opt = selection_titles[index][1]
  3894. return len( selection_names_and_values[opt] )
  3895. #return the description of the custom map options (for use in the dropdown)
  3896. def getCustomMapOptionDescAt(argsList):
  3897. #print "[SMap] -- getCustomMapOptionDescAt( %r )" % argsList
  3898. inx = argsList[0]
  3899. sel = argsList[1]
  3900. opt = selection_titles[inx][1]
  3901. return unicode( selection_names_and_values[opt][sel][0] )
  3902. #return the default drop-down entry for each custom map options
  3903. def getCustomMapOptionDefault(argsList):
  3904. #print "[SMap] -- getCustomMapOptionDefault( %r )" % argsList
  3905. index = argsList[0]
  3906. nam, opt = selection_titles[index]
  3907. resultName = selection_defaults[nam]
  3908. for i in range( len(selection_names_and_values[opt]) ):
  3909. if resultName == selection_names_and_values[opt][i][0]:
  3910. return i
  3911. return 0
  3912. #no additional Random options in menus
  3913. def isRandomCustomMapOption(argsList):
  3914. #print "[SMap] -- isRandomCustomMapOption()"
  3915. [iOption] = argsList
  3916. return False
  3917. # read custom options from smartmap92.cfg
  3918. def readConfig():
  3919. print "[SMap] -- readConfig()"
  3920. global hasReadConfig
  3921. if hasReadConfig:
  3922. print "[SMap] Config file already read"
  3923. return None
  3924. hasReadConfig = True
  3925. fileName = civFilePath() + "\smartmap92.cfg"
  3926. try:
  3927. settings = open(fileName, 'r')
  3928. configOptions = pickle.load(settings)
  3929. settings.close()
  3930. mst.printList( configOptions, "Success - read smartmap92.cfg:", rows=1, prefix = "[SMap] " )
  3931. return dict( configOptions )
  3932. except IOError:
  3933. print "[SMap] Warning! - Couldn't find %r" % (fileName)
  3934. except EOFError:
  3935. print "[SMap] ERROR! - Bad contents in %r" % (fileName)
  3936. except:
  3937. print "[SMap] ERROR! - Unexpected problem reading %r" % (fileName)
  3938. return None
  3939. # set defaults dictionary
  3940. def getDefaults():
  3941. print "[SMap] -- getDefaults()"
  3942. conf = readConfig()
  3943. if conf != None: # config file exists
  3944. for opt in selections:
  3945. sel = conf.get( opt, None )
  3946. if sel == None: continue # optinon not found in config file
  3947. # check if option exists
  3948. optNum = selections[opt][0]
  3949. selList = selection_names_and_values[optNum]
  3950. found = False
  3951. for nam, val, rnd in selList:
  3952. if nam == sel:
  3953. found = True
  3954. break
  3955. if found:
  3956. selection_defaults[opt] = sel
  3957. # write custom options to smartmap92.cfg
  3958. def writeConfig():
  3959. print "[SMap] -- writeConfig()"
  3960. # collect custom options
  3961. smoptions = []
  3962. items = selections.items()
  3963. #items.sort( key = lambda test: test[1][0] ) - changed for MAC
  3964. items.sort( lambda x,y: cmp( x[1][0], y[1][0] ) ) # [key,[num,pfall,mars]]
  3965. for key,val in items:
  3966. userSelectionName = getSelectedMapValue( key, bName=True )
  3967. if userSelectionName == None:
  3968. userSelectionName = selection_defaults.get( key, None )
  3969. if userSelectionName != None:
  3970. smoptions.append( (key, userSelectionName) )
  3971. mst.printList( smoptions, "custom options to write:", rows=1, prefix = "[SMap] " )
  3972. # try to write custom options
  3973. fileName = civFilePath() + "\smartmap92.cfg"
  3974. try:
  3975. settings = open(fileName, 'w')
  3976. try:
  3977. pickle.dump(smoptions, settings)
  3978. print "[SMap] Success - written smartmap92.cfg"
  3979. except Exception, inst:
  3980. print "[SMap] ERROR! - Pickling Error ( %r ) - failed to save smartmap settings to:\n %r" % (inst,fileName)
  3981. except IOError:
  3982. print "[SMap] ERROR! - Couldn't create %r" % fileName
  3983. except EOFError:
  3984. print "[SMap] ERROR! - EOF writing %r" % fileName
  3985. except:
  3986. print "[SMap] ERROR! - unexpected problem writing %r" % fileName
  3987. settings.close()
  3988. hasReadConfig = False
  3989. ########## Temudjin END
  3990. ###########################################################################
  3991. #Assorted helper functions
  3992. ###########################################################################
  3993. #this helper wraps the NiTextOut and also prints to the hapdebugger
  3994. def OutputMessage(message):
  3995. NiTextOut(message)
  3996. print message
  3997. def civFilePath():
  3998. return mst.civFolders.logDir
  3999. def loadWorldBuilderMapData(whichMap):
  4000. ########## Temudjin START
  4001. fName, fType = whichMap
  4002. if fType == 0:
  4003. fileName = "PublicMaps\\" + fName + ".Civ4WorldBuilderSave"
  4004. elif fType == 1:
  4005. fileName = "PublicMaps\\" + fName + ".CivBeyondSwordWBSave"
  4006. print "[SMap] -- loadWorldBuilderMapData( %r ) from file: %r" % (fName, fileName)
  4007. ########## Temudjin END
  4008. fileError = False
  4009. try:
  4010. worldBuilderFile = open(fileName,'r')
  4011. worldText = worldBuilderFile.readlines()
  4012. except IOError:
  4013. print "[SMap] ERROR! - Couldn't open: %r" % fileName
  4014. fileError = True
  4015. except EOFError:
  4016. print "[SMap] ERROR! - EOF reading: %r" % fileName
  4017. fileError = True
  4018. except:
  4019. print "[SMap] ERROR! - Unexpected problem reading: %r" % fileName
  4020. fileError = True
  4021. try:
  4022. worldBuilderFile.close()
  4023. except:
  4024. print "[SMap] ERROR! - Unexpected problem closing: %r" % fileName
  4025. if fileError:
  4026. print "[SMap] ERROR! - Failed to load worldbuilder file: %r from file: %r" % (whichMap, fileName)
  4027. return False
  4028. mst.printList( worldText, "WBS-File:", prefix = "[SMap] " )
  4029. global worldBuilderMapData
  4030. global mapTerrainData
  4031. cgc = CyGlobalContext()
  4032. worldwidth = -1
  4033. worldheight = -1
  4034. for line in worldText:
  4035. lowerLine = line.strip().lower()
  4036. #print "[SMap] lowerLine %r" % lowerLine
  4037. if lowerLine.startswith("grid width="):
  4038. worldwidth = int(lowerLine.split("=")[1])
  4039. if lowerLine.startswith("grid height="):
  4040. worldheight = int(lowerLine.split("=")[1])
  4041. if worldwidth != -1 and worldheight != -1:
  4042. break
  4043. print "[SMap] worldwidth: %r , worldheight: %r" % (worldwidth, worldheight)
  4044. worldBuilderMapData = []
  4045. mapTerrainData = []
  4046. for y in range(worldheight):
  4047. worldBuilderMapData.append([])
  4048. mapTerrainData.append([])
  4049. for x in range(worldwidth):
  4050. worldBuilderMapData[y].append(0)
  4051. mapTerrainData[y].append(0)
  4052. for lineIndex in range(len(worldText)):
  4053. lowerLine = worldText[lineIndex].strip().lower()
  4054. if lowerLine.startswith("beginplot"):
  4055. plotLineList = []
  4056. lineIndex += 1
  4057. plotLine = worldText[lineIndex].strip().lower()
  4058. while not plotLine.startswith("endplot"):
  4059. plotLineList.append(plotLine)
  4060. lineIndex += 1
  4061. plotLine = worldText[lineIndex].strip().lower()
  4062. px = -1
  4063. py = -1
  4064. #mst.printList( plotLineList, "plotLineList:", prefix = "[SMap] ")
  4065. for plotLine in plotLineList:
  4066. if plotLine.startswith("x="):
  4067. coords = plotLine.replace("x="," ").replace("y="," ").split(", ")
  4068. #print "[SMap] coords %r" % coords
  4069. if len(coords) == 2:
  4070. px = int(coords[0])
  4071. py = int(coords[1])
  4072. plottype = -1
  4073. for plotLine in plotLineList:
  4074. if plotLine.startswith("plottype="):
  4075. plottypeStrings = plotLine.replace("="," ").split(" ")
  4076. #print "[SMap] plottype %r" % plottypeStrings
  4077. if len(plottypeStrings) == 2:
  4078. plottype = int(plottypeStrings[1])
  4079. if px != -1 and py != -1 and plottype != -1 and px < worldwidth and py < worldheight:
  4080. worldBuilderMapData[py][px] = plottype
  4081. terrainType = -1
  4082. for plotLine in plotLineList:
  4083. if plotLine.startswith("terraintype="):
  4084. terrainTypeStrings = plotLine.replace("="," ").split(" ")
  4085. #print "[SMap] terraintype %r" % terrainTypeStrings
  4086. if len(terrainTypeStrings) == 2:
  4087. terrainType = int(cgc.getInfoTypeForString(terrainTypeStrings[1].upper()))
  4088. if px != -1 and py != -1 and terrainType != -1 and px < worldwidth and py < worldheight:
  4089. mapTerrainData[py][px] = terrainType
  4090. mst.printList( worldBuilderMapData, fName+":", rows=worldwidth, prefix = "[SMap] " )
  4091. return True
  4092. def addWBSFilesToLandForms():
  4093. print "[SMap] -- addWBSFilesToLandForms()"
  4094. ########## Temudjin START
  4095. fileNames = []
  4096. fileNames_civ = glob.glob('PublicMaps\\*.Civ4WorldBuilderSave')
  4097. fileNames_bts = glob.glob('PublicMaps\\*.CivBeyondSwordWBSave')
  4098. fileNames = [ [fName,0] for fName in fileNames_civ ] + [ [fName,1] for fName in fileNames_bts ]
  4099. ########## Temudjin END
  4100. shortFileNames = []
  4101. for fileName,fType in fileNames:
  4102. shortFileName = fileName[11:-21]
  4103. shortFileNames.append( [shortFileName,fType] )
  4104. selection_names_and_values[0].insert(1,[shortFileName,[shortFileName,fType], False])
  4105. mst.printList( fileNames, "WBS Files:", rows=1, prefix = "[SMap] " )
  4106. mst.printList( shortFileNames, "WBS Files (short):", rows=3, prefix = "[SMap] " )
  4107. mst.printList( selection_names_and_values[0], "Continent Selection:", rows=1, prefix = "[SMap] " )
  4108. #before step two, we must know the map width and height
  4109. def beforeStepTwo():
  4110. print "[SMap] -- beforeStepTwo()"
  4111. cymap = CyMap()
  4112. global width
  4113. global height
  4114. global mapDimensionSize
  4115. width = cymap.getGridWidth()
  4116. height = cymap.getGridHeight()
  4117. mapDimensionSize = int((((width*width)+(height*height))**0.5)/2)
  4118. print "[SMap] width * height (%r * %r), mapDimensionSize %r" % (width, height, mapDimensionSize)
  4119. initGlobalVars()
  4120. def initGlobalVars():
  4121. print "[SMap] -- initGlobalVars()"
  4122. global postContinentLists
  4123. global preComputedAltitude
  4124. global preComputedWetness
  4125. global spiralQueue
  4126. global spaceHash
  4127. postContinentLists = []
  4128. preComputedAltitude = []
  4129. preComputedWetness = []
  4130. spiralQueue = []
  4131. spaceHash = []
  4132. def collectGarbage():
  4133. print "[SMap] -- collectGarbage()"
  4134. try:
  4135. gc.collect()
  4136. except:
  4137. print "[SMap] ERROR! - Unexpected error during garbage collection"
  4138. #compute the continent lists (lists of land reachable by land travelers on each continent)
  4139. def computeContinents():
  4140. print "[SMap] -- computeContinents()"
  4141. global width
  4142. global height
  4143. cymap = CyMap()
  4144. #first collect all continents, this isn't the same as the continent lists
  4145. #calculated during land layout because post generation touchups may have
  4146. #changed things
  4147. global postContinentLists
  4148. global totalLandCount
  4149. global totalCoastCount
  4150. totalLandCount = 0
  4151. totalCoastCount = 0
  4152. postContinentLists = []
  4153. plotMarks = [0] * (width*height)
  4154. plotMark = 0
  4155. processPlots = []
  4156. largestContinent = 1
  4157. for x in range(width):
  4158. for y in range(height):
  4159. if tooCloseToPole(x,y,2):
  4160. continue
  4161. pPlot = cymap.plot(x,y)
  4162. if pPlot.isWater():
  4163. if pPlot.isAdjacentToLand():
  4164. totalCoastCount += 1
  4165. continue
  4166. if not pPlot.isPeak():
  4167. totalLandCount += 1
  4168. else:
  4169. continue
  4170. index = getTileIndexAtXY(x,y)
  4171. if plotMarks[index] != 0:
  4172. continue
  4173. postContinentList = []
  4174. processPlots.append((x,y))
  4175. plotMark += 1
  4176. postContinentLists.append(postContinentList)
  4177. continentSize = 0
  4178. #recursive neighbor plot addition
  4179. while (len(processPlots) > 0):
  4180. plotX,plotY = processPlots.pop(0)
  4181. existingIndex = getTileIndexAtXY(plotX,plotY)
  4182. if plotMarks[existingIndex] == plotMark:
  4183. continue
  4184. continentSize += 1
  4185. plotMarks[existingIndex] = plotMark
  4186. postContinentList.append((plotX,plotY))
  4187. for nearDir in nearDirs:
  4188. newX, newY = getTileCoordXYWithWrap((plotX,plotY), nearDir)
  4189. newIndex = getTileIndexAtXY(newX, newY)
  4190. if plotMarks[newIndex] != 0 or plotMarks[newIndex] == plotMark:
  4191. continue
  4192. pProcPlot = cymap.plot(newX,newY)
  4193. if pProcPlot.isFlatlands() or pProcPlot.isHills():
  4194. processPlots.append((newX,newY))
  4195. if continentSize > largestContinent:
  4196. largestContinent = continentSize
  4197. #print "[SMap] processPlots %r" % processPlots
  4198. cgc = CyGlobalContext()
  4199. players = cgc.getGame().countCivPlayersEverAlive()
  4200. #remove any too-short continents from the list
  4201. anyTooShort = True
  4202. while anyTooShort:
  4203. anyTooShort = False
  4204. for listIndex in range(len(postContinentLists)):
  4205. if (len(postContinentLists[listIndex]) < int(totalLandCount / (20+players)) and
  4206. len(postContinentLists[listIndex]) < (largestContinent / ((players*2)+1))):
  4207. del postContinentLists[listIndex]
  4208. anyTooShort = True
  4209. break
  4210. def bonus_score(plotCoord):
  4211. cymap = CyMap()
  4212. score = 0
  4213. x, y = plotCoord
  4214. plotIndex = getTileIndexAtXY(x,y)
  4215. pPlot = cymap.plot(x,y)
  4216. for nearDir in playerStartCross:
  4217. newX, newY = getTileCoordXYWithWrap((x,y), nearDir)
  4218. otherPlot = cymap.plot(newX,newY)
  4219. otherPlotType = otherPlot.getPlotType()
  4220. if otherPlot.getBonusType(-1) != -1:
  4221. score += 1
  4222. return score
  4223. def isCoastalPlot(px,py):
  4224. cymap = CyMap()
  4225. for nearDir in nearDirs:
  4226. newX, newY = getTileCoordXYWithWrap((px,py), nearDir)
  4227. if newX == px and newY == py:
  4228. continue
  4229. pTouchPlot = cymap.plot(newX,newY)
  4230. #coastal is true if we touch a water that is not a lake
  4231. if pTouchPlot.isWater() and not pTouchPlot.isLake():
  4232. return True
  4233. return False
  4234. #override this method used to compute the altitude of a plot, used to determine
  4235. #river paths
  4236. def getRiverAltitude(argsList):
  4237. global preComputedAltitude
  4238. pPlot = argsList[0]
  4239. px = pPlot.getX()
  4240. py = pPlot.getY()
  4241. plotIndex = getTileIndexAtXY(px,py)
  4242. if len(preComputedAltitude) > plotIndex:
  4243. return preComputedAltitude[plotIndex]
  4244. #this may occur do to an erroneous river generation being demanded after placement
  4245. else:
  4246. cymap = CyMap()
  4247. pPlot = cymap.plot(px,py)
  4248. altitude = 1
  4249. if pPlot.isLake():
  4250. altitude -= 100
  4251. #ocean is always altitude 0
  4252. elif pPlot.isWater():
  4253. return 0
  4254. plotType = pPlot.getPlotType()
  4255. if plotType == PlotTypes.PLOT_LAND:
  4256. altitude += 100
  4257. if plotType == PlotTypes.PLOT_HILLS:
  4258. altitude += 500
  4259. if plotType == PlotTypes.PLOT_PEAK:
  4260. altitude += 1300
  4261. for nearDir in playerStartCross:
  4262. newX, newY = getTileCoordXYWithWrap((px,py), nearDir)
  4263. otherPlot = cymap.plot(newX,newY)
  4264. otherPlotType = otherPlot.getPlotType()
  4265. if otherPlot.isLake():
  4266. altitude -= 2
  4267. elif otherPlot.isWater():
  4268. altitude -= 20
  4269. if otherPlotType == PlotTypes.PLOT_LAND:
  4270. altitude += 5
  4271. if otherPlotType == PlotTypes.PLOT_HILLS:
  4272. altitude += 20
  4273. if otherPlotType == PlotTypes.PLOT_PEAK:
  4274. altitude += 50
  4275. #this makes a one-time computation of the altitude of all plots
  4276. def preComputeAltitude():
  4277. global preComputedAltitude
  4278. global width
  4279. global height
  4280. global fillType
  4281. global totalLandCount
  4282. OutputMessage("Python: SmartMap: pre-compute tile altitude")
  4283. cymap = CyMap()
  4284. preComputedAltitude = [1]*(width*height)
  4285. maxAltitude = 1
  4286. oceanPct = int((totalLandCount*100)/(width*height))
  4287. for x in range(width):
  4288. for y in range(height):
  4289. plotIndex = getTileIndexAtXY(x,y)
  4290. pPlot = cymap.plot(x,y)
  4291. altitude = 1
  4292. if pPlot.isLake():
  4293. altitude -= 100
  4294. #ocean is always altitude 0
  4295. elif pPlot.isWater():
  4296. preComputedAltitude[plotIndex] = 0
  4297. continue
  4298. plotType = pPlot.getPlotType()
  4299. if plotType == PlotTypes.PLOT_LAND:
  4300. altitude += 100
  4301. if plotType == PlotTypes.PLOT_HILLS:
  4302. altitude += 500
  4303. if plotType == PlotTypes.PLOT_PEAK:
  4304. altitude += 1300
  4305. #only do an ocean search if the cost is likely to be low.
  4306. if fillType == PlotTypes.PLOT_OCEAN and oceanPct > 20:
  4307. spiralSearchSetup(x,y)
  4308. oceanFound = False
  4309. findOceanTries = 0
  4310. while findOceanTries < 100:
  4311. findOceanTries += 1
  4312. ox,oy = spiralSearchNextStep()
  4313. otherPlot = cymap.plot(ox,oy)
  4314. if otherPlot.isWater() and not otherPlot.isLake():
  4315. break
  4316. altitude += findOceanTries * findOceanTries
  4317. spiralSearchSetup(x,y)
  4318. for nearDir in playerStartCross:
  4319. newX, newY = getTileCoordXYWithWrap((x,y), nearDir)
  4320. otherPlot = cymap.plot(newX,newY)
  4321. otherPlotType = otherPlot.getPlotType()
  4322. if otherPlot.isLake():
  4323. altitude -= 2
  4324. elif otherPlot.isWater():
  4325. altitude -= 20
  4326. if otherPlotType == PlotTypes.PLOT_LAND:
  4327. altitude += 5
  4328. if otherPlotType == PlotTypes.PLOT_HILLS:
  4329. altitude += 20
  4330. if otherPlotType == PlotTypes.PLOT_PEAK:
  4331. altitude += 50
  4332. if altitude < 1:
  4333. altitude = 1
  4334. if altitude > maxAltitude:
  4335. maxAltitude = altitude
  4336. preComputedAltitude[plotIndex] = altitude
  4337. #scale all altitude to 0..1000 range
  4338. for x in range(width):
  4339. for y in range(height):
  4340. plotIndex = getTileIndexAtXY(x,y)
  4341. preComputedAltitude[plotIndex] = int((1000*preComputedAltitude[plotIndex])/maxAltitude)
  4342. #this makes a one-time computation of the wetness of all plots
  4343. def preComputeWetness():
  4344. global preComputedWetness
  4345. global width
  4346. global height
  4347. OutputMessage("Python: SmartMap: pre-compute tile wetness")
  4348. cymap = CyMap()
  4349. preComputedWetness = [1]*(width*height)
  4350. maxWetness = 1
  4351. for x in range(width):
  4352. for y in range(height):
  4353. plotIndex = getTileIndexAtXY(x,y)
  4354. pPlot = cymap.plot(x,y)
  4355. #just call oceans/lakes 1 wetness
  4356. if pPlot.isWater():
  4357. preComputedWetness[plotIndex] = 1
  4358. continue
  4359. wetness = 1
  4360. if pPlot.isFreshWater():
  4361. wetness += 48
  4362. if pPlot.isRiver():
  4363. wetness += 48
  4364. #improved wetness calcualtor
  4365. if pPlot.isWOfRiver():
  4366. wetness += 32
  4367. if pPlot.isNOfRiver():
  4368. wetness += 32
  4369. northX,northY = getTileCoordXYWithWrap((x,y), (0,1))
  4370. pNorthPlot = cymap.plot(northX,northY)
  4371. if pNorthPlot.isNOfRiver():
  4372. wetness += 32
  4373. westX,westY = getTileCoordXYWithWrap((x,y), (-1,0))
  4374. pWestPlot = cymap.plot(northX,northY)
  4375. if pWestPlot.isWOfRiver():
  4376. wetness += 32
  4377. for nearDir in playerStartCross:
  4378. otherX, otherY = getTileCoordXYWithWrap((x,y), nearDir)
  4379. otherPlot = cymap.plot(otherX,otherY)
  4380. dx,dy = nearDir
  4381. if abs(dx) < 2 and abs(dy) < 2:
  4382. if otherPlot.isLake():
  4383. wetness += 32
  4384. if otherPlot.isFreshWater() or otherPlot.isRiver():
  4385. wetness += 16
  4386. continue
  4387. #smaller bonuses for plots not near but in the start cross
  4388. else:
  4389. if otherPlot.isLake():
  4390. wetness += 12
  4391. if otherPlot.isFreshWater() or otherPlot.isRiver():
  4392. wetness += 6
  4393. preComputedWetness[plotIndex] = wetness
  4394. if wetness > maxWetness:
  4395. maxWetness = wetness
  4396. #scale all wetness to 0..1000 range
  4397. for x in range(width):
  4398. for y in range(height):
  4399. plotIndex = getTileIndexAtXY(x,y)
  4400. preComputedWetness[plotIndex] = int((1000*preComputedWetness[plotIndex])/maxWetness)
  4401. #this helper function returns the tile coordinate in a given direction,
  4402. # accounting for xy wrapping, note that this method may bounce back from boundaries
  4403. def getTileCoordXYWithWrap(position,direction):
  4404. #print "[SMap] -- getTileCoordXYWithWrap( %r, %r )" % (position,direction)
  4405. global wrapX
  4406. global wrapY
  4407. global width
  4408. global height
  4409. x,y = position
  4410. dx,dy = direction
  4411. x += dx
  4412. y += dy
  4413. #print "[SMap] wrapx %r, wrapY %r" % (wrapX,wrapY)
  4414. if not wrapX and x >= width-3:
  4415. x = width-3
  4416. elif not wrapX and x <= 2:
  4417. x = 2
  4418. elif wrapX and x > width-1:
  4419. x = x-width
  4420. elif wrapX and x < 0:
  4421. x = x+width
  4422. if not wrapY and y >= height-3:
  4423. y = height-3
  4424. if not wrapY and y <= 2:
  4425. y = 2
  4426. elif wrapY and y > height-1:
  4427. y = y-height
  4428. elif wrapY and y < 0:
  4429. y = y+height
  4430. if x < 0:
  4431. x = 0
  4432. elif x > width-1:
  4433. x = width-1
  4434. if y < 0:
  4435. y = 0
  4436. elif y > height-1:
  4437. y = height-1
  4438. return (x,y)
  4439. #this helper function converts an x,y position to a tile index
  4440. #this helps to avoid ever making a mistake in computing this consistently
  4441. def getTileIndexAtXY(x,y):
  4442. global width
  4443. return ((y*width) + x)
  4444. #get the distance between two coordinates, considering that the coordinate
  4445. #system may wrap in either x or y
  4446. def getWrapDistanceXY(posA,posB):
  4447. global wrapX
  4448. global wrapY
  4449. global width
  4450. global height
  4451. ax,ay = posA
  4452. bx,by = posB
  4453. xDiff = abs(ax-bx)
  4454. yDiff = abs(ay-by)
  4455. if wrapX:
  4456. altXDiff = abs(ax-bx+width)
  4457. if altXDiff < xDiff:
  4458. xDiff = altXDiff
  4459. altXDiff = abs(ax-bx-width)
  4460. if altXDiff < xDiff:
  4461. xDiff = altXDiff
  4462. if wrapY:
  4463. altYDiff = abs(ay-by+height)
  4464. if altYDiff < yDiff:
  4465. yDiff = altYDiff
  4466. altYDiff = abs(ay-by-height)
  4467. if altYDiff < yDiff:
  4468. yDiff = altYDiff
  4469. return (xDiff, yDiff)
  4470. #return true if a given point is within range coords of a pole
  4471. def tooCloseToPole(x,y,range):
  4472. global wrapX
  4473. global wrapY
  4474. global centralPole
  4475. global width
  4476. global height
  4477. if (not wrapX and (x<=range or x>=width-(range+1))):
  4478. return True
  4479. if (not wrapY and (y<=range or y>=height-(range+1))):
  4480. return True
  4481. if centralPole:
  4482. xDist = abs(x-int(width/2))
  4483. yDist = abs(x-int(height/2))
  4484. if xDist + yDist <= range:
  4485. return True
  4486. return False
  4487. ########## Temudjin START
  4488. '''
  4489. #somewhere in the default methods, an occasional bad tile is placed
  4490. #and this method corrects for that
  4491. def checkForBadPlots():
  4492. global wrapX
  4493. global wrapY
  4494. global width
  4495. global height
  4496. global fillType
  4497. OutputMessage("Python: SmartMap: Check For Bad Plots")
  4498. cgc = CyGlobalContext()
  4499. cymap = CyMap()
  4500. featIce = cgc.getInfoTypeForString("FEATURE_ICE")
  4501. #somewhere out of my control, the map is getting an occasional land added
  4502. for x in range(width):
  4503. for y in range(height):
  4504. if tooCloseToPole(x,y,1):
  4505. pPlot = cymap.plot(x,y)
  4506. plotType = pPlot.getPlotType()
  4507. if plotType != fillType:
  4508. print "[SMap] Bad xy (%r,%r) %r" % (x,y,plotType)
  4509. pPlot.setPlotType(fillType,True,True)
  4510. pPlot.setFeatureType(featIce,-1)
  4511. pPlot.setBonusType(-1)
  4512. collectGarbage()
  4513. '''
  4514. ########## Temudjin END
  4515. #this helper function will tell you what % the plot is from a pole
  4516. def percentFromPole(x,y):
  4517. global wrapX
  4518. global wrapY
  4519. global width
  4520. global height
  4521. global centralPole
  4522. global mapDimensionSize
  4523. halfX = int(width/2)
  4524. halfY = int(height/2)
  4525. xPercentFromPole = 100
  4526. if not wrapX:
  4527. xFromPole = x-2
  4528. if x > halfX:
  4529. xFromPole = (width-3) - x
  4530. xPercentFromPole = int((xFromPole*100)/halfX)
  4531. yPercentFromPole = 100
  4532. if not wrapY:
  4533. yFromPole = y-2
  4534. if y > halfY:
  4535. yFromPole = (height-3) - y
  4536. yPercentFromPole = int((yFromPole*100)/halfY)
  4537. standardPolePct = min(xPercentFromPole, yPercentFromPole)
  4538. centralPct = 100
  4539. if centralPole:
  4540. xDist = abs(x-halfX)
  4541. yDist = abs(y-halfY)
  4542. totalDist = int(((xDist*xDist)+(yDist*yDist))**0.5)
  4543. centralPct = int((totalDist*100)/mapDimensionSize)
  4544. return min(standardPolePct, centralPct)
  4545. #this helper function will tell you what % the plot is from the equator
  4546. def percentFromEquator(x,y):
  4547. global wrapX
  4548. global wrapY
  4549. global width
  4550. global height
  4551. global centralPole
  4552. global mapDimensionSize
  4553. xBands = [int(width/2)]
  4554. yBands = [int(height/2)]
  4555. divFactor = 2
  4556. if centralPole:
  4557. xBands = [int(width/4), int(3*width/4)]
  4558. yBands = [int(height/4), int(3*height/4)]
  4559. divFactor = 4
  4560. xPercentFromEquator = 100
  4561. if not wrapX:
  4562. for band in xBands:
  4563. bandDist = abs(x - band)
  4564. xPercentFromEquator = min(xPercentFromEquator, int((bandDist*100)/(width/divFactor)))
  4565. yPercentFromEquator = 100
  4566. if not wrapY:
  4567. for band in yBands:
  4568. bandDist = abs(y - band)
  4569. yPercentFromEquator = min(yPercentFromEquator, int((bandDist*100)/(height/divFactor)))
  4570. if centralPole and wrapX and wrapY:
  4571. return 2*abs(50 - percentFromPole(x,y))
  4572. elif wrapX and wrapY:
  4573. halfX = int(width/2)
  4574. halfY = int(height/2)
  4575. xDist = abs(x-halfX)
  4576. yDist = abs(y-halfY)
  4577. totalDist = int(((xDist*xDist)+(yDist*yDist))**0.5)
  4578. centralPct = int((totalDist*100)/mapDimensionSize)
  4579. centralPct = 2*abs(50 - centralPct)
  4580. return centralPct
  4581. return min(xPercentFromEquator, yPercentFromEquator)
  4582. def spiralSearchSetup(startX, startY):
  4583. global spiralCenterX
  4584. global spiralCenterY
  4585. global spiralStep
  4586. global spiralSign
  4587. global spiralX
  4588. global spiralY
  4589. global spiralQueue
  4590. spiralCenterX = startX
  4591. spiralCenterY = startY
  4592. spiralStep = 0
  4593. spiralSign = 1
  4594. spiralX = 0
  4595. spiralY = 0
  4596. spiralQueue = []
  4597. def spiralSearchNextStep():
  4598. global spiralCenterX
  4599. global spiralCenterY
  4600. global spiralStep
  4601. global spiralSign
  4602. global spiralX
  4603. global spiralY
  4604. global spiralQueue
  4605. if len(spiralQueue) > 0:
  4606. return spiralQueue.pop()
  4607. for x in range(spiralStep):
  4608. spiralX += spiralSign
  4609. spiralQueue.append(getTileCoordXYWithWrap((spiralCenterX,spiralCenterY),(spiralX,spiralY)))
  4610. for y in range(spiralStep):
  4611. spiralY += spiralSign
  4612. spiralQueue.append(getTileCoordXYWithWrap((spiralCenterX,spiralCenterY),(spiralX,spiralY)))
  4613. spiralSign *= -1
  4614. spiralStep += 1
  4615. if len(spiralQueue) > 0:
  4616. return spiralQueue.pop()
  4617. return (spiralCenterX,spiralCenterY)
  4618. def isPlotLegalForBonus(plot,bonus,strict):
  4619. global crazyResources
  4620. global insaneResources
  4621. cgc = CyGlobalContext()
  4622. bonusInfoXML = cgc.getBonusInfo(bonus)
  4623. type_string = bonusInfoXML.getType()
  4624. if plot.getBonusType(-1) != -1:
  4625. return False
  4626. if crazyResources or insaneResources:
  4627. #place only on workable tiles, but no other restrictions
  4628. yieldTotal = plot.getYield(YieldTypes.YIELD_FOOD) + plot.getYield(YieldTypes.YIELD_PRODUCTION) + plot.getYield(YieldTypes.YIELD_COMMERCE)
  4629. if yieldTotal <= 0:
  4630. return False
  4631. if insaneResources:
  4632. return True
  4633. terrainOcean = mst.etOcean
  4634. terrainCoast = mst.etCoast
  4635. if bonusInfoXML.isTerrain(terrainOcean) or bonusInfoXML.isTerrain(terrainCoast):
  4636. if plot.isWater():
  4637. return True
  4638. if not plot.isWater():
  4639. return True
  4640. return False
  4641. if plot.getFeatureType() == mst.efOasis:
  4642. return False # Soren wants no bonuses in oasis plots. So mote it be.
  4643. #for whatever reason, these resources never validate as canHaveBonus so we override
  4644. #and place them on any empty hill, unless strict mode is set
  4645. resourcesEmptyHill = ('BONUS_ALUMINUM','BONUS_GOLD','BONUS_SILVER')
  4646. if not strict:
  4647. if type_string in resourcesEmptyHill and plot.isHills():
  4648. return True
  4649. if not plot.canHaveBonus(bonus,True):
  4650. return False
  4651. if strict:
  4652. plotLatitude = plot.getLatitude()
  4653. minLatitude = bonusInfoXML.getMinLatitude()
  4654. maxLatitude = bonusInfoXML.getMaxLatitude()
  4655. if minLatitude > 0 and plotLatitude < minLatitude:
  4656. return False
  4657. if maxLatitude < 90 and plotLatitude > maxLatitude:
  4658. return False
  4659. return True
  4660. #a spatial hash for finding things near a given position
  4661. def setupSpaceHash():
  4662. global width
  4663. global height
  4664. global spaceHash
  4665. global partitionWidth
  4666. global partitionHeight
  4667. spaceHash = []
  4668. partitionWidth = 1 + int(width/20)
  4669. partitionHeight = 1 + int(height/20)
  4670. for x in range(21):
  4671. spaceHash.append([])
  4672. for y in range(21):
  4673. spaceHash[x].append([])
  4674. def spaceHashItem(x,y,item):
  4675. global spaceHash
  4676. global partitionWidth
  4677. global partitionHeight
  4678. xh = int(x/partitionWidth)
  4679. yh = int(y/partitionHeight)
  4680. spaceHash[xh][yh].append((x,y,item))
  4681. def listNearSpaceHash(x,y,searchRange):
  4682. global spaceHash
  4683. global partitionWidth
  4684. global partitionHeight
  4685. result = []
  4686. hashes = []
  4687. xstep = partitionWidth - 1
  4688. ystep = partitionHeight - 1
  4689. xd = -(searchRange+1)
  4690. while xd <= (searchRange + 1):
  4691. yd = -(searchRange+1)
  4692. while yd <= (searchRange + 1):
  4693. xp, yp = getTileCoordXYWithWrap((x,y),(xd,yd))
  4694. xh = int(xp/partitionWidth)
  4695. yh = int(yp/partitionHeight)
  4696. if not (xh,yh) in hashes:
  4697. hashes.append((xh,yh))
  4698. yd += ystep
  4699. xd += xstep
  4700. for hash in hashes:
  4701. xh,yh = hash
  4702. for entry in spaceHash[xh][yh]:
  4703. result.append(entry)
  4704. return result
  4705. def getPlotsOfTypes(tiles,types):
  4706. global width
  4707. global height
  4708. result = []
  4709. for x in range(width):
  4710. for y in range(height):
  4711. index = getTileIndexAtXY(x,y)
  4712. if tiles[index] in types:
  4713. result.append((x,y))
  4714. return result
  4715. ###
  4716. #Earth Tile Data
  4717. ###
  4718. blueMarbleHeightData = [
  4719. [3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,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6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,],
  5321. ]
  5322. ##########################################################################
  5323. ##########################################################################
  5324. ##########################################################################
  5325. ##########################################################################
  5326. #code below here is ripped from the standard map scripts, to allow the selection
  5327. #of other script behaviors on some of the options
  5328. #some needed classes
  5329. # subclass TerrainGenerator to redefine everything. This is a regional map.
  5330. class GreatPlainsTerrainGenerator(CvMapGeneratorUtil.TerrainGenerator):
  5331. # Note: If you change longitude values here, then you will need to change
  5332. # them elsewhere in the script, as well.
  5333. def __init__(self, iRockyDesertPercent=50, iRockyPlainsPercent=30,
  5334. iGrassPercent=17, iDesertPercent=8, iTexDesertPercent=20,
  5335. iEastDesertPercent=2, iEastPlainsPercent=23,
  5336. fWestLongitude=0.15, fEastLongitude=0.65, fTexLat=0.37,
  5337. fTexEast=0.55, fracXExp=-1, fracYExp=-1, grain_amount=4):
  5338. print "[SMap] ===== initialize Class::GreatPlainsTerrainGenerator"
  5339. self.cgc = CyGlobalContext()
  5340. self.map = CyMap()
  5341. self.grain_amount = grain_amount + self.cgc.getWorldInfo(self.map.getWorldSize()).getTerrainGrainChange()
  5342. self.iWidth = self.map.getGridWidth()
  5343. self.iHeight = self.map.getGridHeight()
  5344. self.mapRand = self.cgc.getGame().getMapRand()
  5345. self.iFlags = 0 # Disallow FRAC_POLAR flag, to prevent "zero row" problems.
  5346. self.rocky=CyFractal()
  5347. self.plains=CyFractal()
  5348. self.east=CyFractal()
  5349. self.variation=CyFractal()
  5350. self.iRockyDTopPercent = 100
  5351. self.iRockyDBottomPercent = max(0,int(100-iRockyDesertPercent))
  5352. self.iRockyPTopPercent = int(100 - iRockyDesertPercent)
  5353. self.iRockyPBottomPercent = max(0,int(100-iRockyDesertPercent-iRockyPlainsPercent))
  5354. self.iDesertTopPercent = 100
  5355. self.iDesertBottomPercent = max(0,int(100-iDesertPercent))
  5356. self.iTexDesertTopPercent = 70
  5357. self.iTexDesertBottomPercent = max(0,int(70-iTexDesertPercent))
  5358. self.iGrassTopPercent = int(iGrassPercent)
  5359. self.iGrassBottomPercent = 0
  5360. self.iTexGrassBottomPercent = 6
  5361. self.iEastDTopPercent = 100
  5362. self.iEastDBottomPercent = max(0,int(100-iEastDesertPercent))
  5363. self.iEastPTopPercent = int(100 - iEastDesertPercent)
  5364. self.iEastPBottomPercent = max(0,int(100-iEastDesertPercent-iEastPlainsPercent))
  5365. self.iMountainTopPercent = 75
  5366. self.iMountainBottomPercent = 60
  5367. self.fWestLongitude = fWestLongitude
  5368. self.fEastLongitude = fEastLongitude
  5369. self.fTexLat = fTexLat
  5370. self.fTexEast = fTexEast
  5371. self.iGrassPercent = iGrassPercent
  5372. self.iDesertPercent = iDesertPercent
  5373. self.iTexDesertPercent = iTexDesertPercent
  5374. self.iEastDesertPercent = iEastDesertPercent
  5375. self.iEastPlainsPercent = iEastPlainsPercent
  5376. self.iRockyDesertPercent = iRockyDesertPercent
  5377. self.iRockyPlainsPercent = iRockyPlainsPercent
  5378. self.fracXExp = fracXExp
  5379. self.fracYExp = fracYExp
  5380. self.initFractals()
  5381. def initFractals(self):
  5382. self.rocky.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5383. self.iRockyDTop = self.rocky.getHeightFromPercent(self.iRockyDTopPercent)
  5384. self.iRockyDBottom = self.rocky.getHeightFromPercent(self.iRockyDBottomPercent)
  5385. self.iRockyPTop = self.rocky.getHeightFromPercent(self.iRockyPTopPercent)
  5386. self.iRockyPBottom = self.rocky.getHeightFromPercent(self.iRockyPBottomPercent)
  5387. self.plains.fracInit(self.iWidth, self.iHeight, self.grain_amount+1, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5388. self.iDesertTop = self.plains.getHeightFromPercent(self.iDesertTopPercent)
  5389. self.iDesertBottom = self.plains.getHeightFromPercent(self.iDesertBottomPercent)
  5390. self.iTexDesertTop = self.plains.getHeightFromPercent(self.iTexDesertTopPercent)
  5391. self.iTexDesertBottom = self.plains.getHeightFromPercent(self.iTexDesertBottomPercent)
  5392. self.iGrassTop = self.plains.getHeightFromPercent(self.iGrassTopPercent)
  5393. self.iGrassBottom = self.plains.getHeightFromPercent(self.iGrassBottomPercent)
  5394. self.iTexGrassBottom = self.plains.getHeightFromPercent(self.iTexGrassBottomPercent)
  5395. self.east.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5396. self.iEastDTop = self.east.getHeightFromPercent(self.iEastDTopPercent)
  5397. self.iEastDBottom = self.east.getHeightFromPercent(self.iEastDBottomPercent)
  5398. self.iEastPTop = self.east.getHeightFromPercent(self.iEastPTopPercent)
  5399. self.iEastPBottom = self.east.getHeightFromPercent(self.iEastPBottomPercent)
  5400. self.variation.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5401. self.terrainDesert = mst.etDesert
  5402. self.terrainPlains = mst.etPlains
  5403. self.terrainGrass = mst.etGrass
  5404. def getLatitudeAtPlot(self, iX, iY):
  5405. ########## Temudjin START
  5406. #lat = iX/float(self.iWidth) # 0.0 = west
  5407. lat = mst.evalLatitude( self.map.plot(iX,iY), False )
  5408. ########## Temudjin END
  5409. # Adjust latitude using self.variation fractal, to mix things up:
  5410. lat += (128 - self.variation.getHeight(iX, iY))/(255.0 * 5.0)
  5411. # Limit to the range [0, 1]:
  5412. if lat < 0:
  5413. lat = 0.0
  5414. if lat > 1:
  5415. lat = 1.0
  5416. return lat
  5417. def generateTerrain(self):
  5418. terrainData = [0]*(self.iWidth*self.iHeight)
  5419. for x in range(self.iWidth):
  5420. for y in range(self.iHeight):
  5421. iI = y*self.iWidth + x
  5422. terrain = self.generateTerrainAtPlot(x, y)
  5423. terrainData[iI] = terrain
  5424. return terrainData
  5425. def generateTerrainAtPlot(self,iX,iY):
  5426. lat = self.getLatitudeAtPlot(iX,iY)
  5427. if (self.map.plot(iX, iY).isWater()):
  5428. return self.map.plot(iX, iY).getTerrainType()
  5429. if lat <= self.fWestLongitude:
  5430. val = self.rocky.getHeight(iX, iY)
  5431. if val >= self.iRockyDBottom and val <= self.iRockyDTop:
  5432. terrainVal = self.terrainDesert
  5433. elif val >= self.iRockyPBottom and val <= self.iRockyPTop:
  5434. terrainVal = self.terrainPlains
  5435. else:
  5436. long = iY/float(self.iHeight)
  5437. if long > 0.23:
  5438. terrainVal = self.terrainGrass
  5439. else:
  5440. terrainVal = self.terrainDesert
  5441. elif lat > self.fEastLongitude:
  5442. val = self.east.getHeight(iX, iY)
  5443. if val >= self.iEastDBottom and val <= self.iEastDTop:
  5444. terrainVal = self.terrainDesert
  5445. elif val >= self.iEastPBottom and val <= self.iEastPTop:
  5446. terrainVal = self.terrainPlains
  5447. else:
  5448. terrainVal = self.terrainGrass
  5449. elif lat > self.fWestLongitude and lat <= self.fTexEast and iY/float(self.iHeight) <= self.fTexLat:
  5450. # More desert added to Texas region at Soren's request.
  5451. val = self.east.getHeight(iX, iY)
  5452. if val >= self.iDesertBottom and val <= self.iDesertTop:
  5453. terrainVal = self.terrainDesert
  5454. elif val >= self.iTexDesertBottom and val <= self.iTexDesertTop:
  5455. terrainVal = self.terrainDesert
  5456. elif val >= self.iTexGrassBottom and val <= self.iGrassTop:
  5457. terrainVal = self.terrainGrass
  5458. else:
  5459. terrainVal = self.terrainPlains
  5460. else:
  5461. val = self.plains.getHeight(iX, iY)
  5462. if val >= self.iDesertBottom and val <= self.iDesertTop:
  5463. terrainVal = self.terrainDesert
  5464. elif val >= self.iGrassBottom and val <= self.iGrassTop:
  5465. terrainVal = self.terrainGrass
  5466. else:
  5467. terrainVal = self.terrainPlains
  5468. if (terrainVal == TerrainTypes.NO_TERRAIN):
  5469. return self.map.plot(iX, iY).getTerrainType()
  5470. return terrainVal
  5471. # subclass TerrainGenerator to redefine everything. This is a regional map. Ice need not apply!
  5472. # Latitudes, ratios, the works... It's all rewired. - Sirian June 20, 2005
  5473. class OasisTerrainGenerator(CvMapGeneratorUtil.TerrainGenerator):
  5474. def __init__(self, iGrassPercent=50, iPlainsPercent=35,
  5475. iNorthernPlainsPercent=40, iOasisGrassPercent=9,
  5476. iOasisPlainsPercent=16, iOasisTopLatitude=0.69,
  5477. iJungleLatitude=0.14, iOasisBottomLatitude=0.3,
  5478. fracXExp=-1, fracYExp=-1, grain_amount=4):
  5479. print "[SMap] ===== initialize Class::OasisTerrainGenerator"
  5480. self.grain_amount = grain_amount
  5481. self.cgc = CyGlobalContext()
  5482. self.map = CyMap()
  5483. self.iWidth = self.map.getGridWidth()
  5484. self.iHeight = self.map.getGridHeight()
  5485. self.mapRand = self.cgc.getGame().getMapRand()
  5486. self.iFlags = 0
  5487. self.grass=CyFractal()
  5488. self.Oasisgrass=CyFractal()
  5489. self.plains=CyFractal()
  5490. self.Oasisplains=CyFractal()
  5491. self.northernplains=CyFractal()
  5492. self.variation=CyFractal()
  5493. self.iGrassTopPercent = 100
  5494. self.iGrassBottomPercent = max(0,int(100-iGrassPercent))
  5495. self.iPlainsTopPercent = 100
  5496. self.iPlainsBottomPercent = max(0,int(100-iGrassPercent-iPlainsPercent))
  5497. self.iOasisGrassTopPercent = 100
  5498. self.iOasisGrassBottomPercent = max(0,int(100-iOasisGrassPercent))
  5499. self.iOasisPlainsTopPercent = 100
  5500. self.iOasisPlainsBottomPercent = max(0,int(100-iOasisGrassPercent-iOasisPlainsPercent))
  5501. self.iNorthernPlainsBottomPercent = max(0,int(100-iNorthernPlainsPercent))
  5502. self.iMountainTopPercent = 75
  5503. self.iMountainBottomPercent = 60
  5504. self.iOasisBottomLatitude = iOasisBottomLatitude
  5505. self.iOasisTopLatitude = iOasisTopLatitude
  5506. self.iJungleLatitude = iJungleLatitude
  5507. self.iGrassPercent = iGrassPercent
  5508. self.iPlainsPercent = iPlainsPercent
  5509. self.iOasisGrassPercent = iOasisGrassPercent
  5510. self.iOasisPlainsPercent = iOasisPlainsPercent
  5511. self.iNorthernPlainsPercent = iNorthernPlainsPercent
  5512. self.fracXExp = fracXExp
  5513. self.fracYExp = fracYExp
  5514. self.initFractals()
  5515. def initFractals(self):
  5516. self.grass.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5517. self.iGrassTop = self.grass.getHeightFromPercent(self.iGrassTopPercent)
  5518. self.iGrassBottom = self.grass.getHeightFromPercent(self.iGrassBottomPercent)
  5519. self.plains.fracInit(self.iWidth, self.iHeight, self.grain_amount+1, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5520. self.iPlainsTop = self.plains.getHeightFromPercent(self.iPlainsTopPercent)
  5521. self.iPlainsBottom = self.plains.getHeightFromPercent(self.iPlainsBottomPercent)
  5522. self.Oasisgrass.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5523. self.iOasisGrassTop = self.grass.getHeightFromPercent(self.iOasisGrassTopPercent)
  5524. self.iOasisGrassBottom = self.grass.getHeightFromPercent(self.iOasisGrassBottomPercent)
  5525. self.Oasisplains.fracInit(self.iWidth, self.iHeight, self.grain_amount+1, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5526. self.iOasisPlainsTop = self.plains.getHeightFromPercent(self.iOasisPlainsTopPercent)
  5527. self.iOasisPlainsBottom = self.plains.getHeightFromPercent(self.iOasisPlainsBottomPercent)
  5528. self.northernplains.fracInit(self.iWidth, self.iHeight, self.grain_amount+1, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5529. self.iNorthernPlainsBottom = self.plains.getHeightFromPercent(self.iNorthernPlainsBottomPercent)
  5530. self.variation.fracInit(self.iWidth, self.iHeight, self.grain_amount, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5531. self.terrainDesert = mst.etDesert
  5532. self.terrainPlains = mst.etPlains
  5533. self.terrainGrass = mst.etGrass
  5534. def getLatitudeAtPlot(self, iX, iY):
  5535. ########## Temudjin START
  5536. #lat = iY/float(self.iHeight) # 0.0 = south edge, 1.0 = north edge
  5537. lat = mst.evalLatitude( self.map.plot(iX,iY), False )
  5538. ########## Temudjin END
  5539. #Adjust latitude using self.variation fractal, to mix things up:
  5540. lat += (128 - self.variation.getHeight(iX, iY))/(255.0 * 5.0)
  5541. # Limit to the range [0, 1]:
  5542. if lat < 0:
  5543. lat = 0.0
  5544. if lat > 1:
  5545. lat = 1.0
  5546. return lat
  5547. def generateTerrain(self):
  5548. terrainData = [0]*(self.iWidth*self.iHeight)
  5549. for x in range(self.iWidth):
  5550. for y in range(self.iHeight):
  5551. iI = y*self.iWidth + x
  5552. terrain = self.generateTerrainAtPlot(x, y)
  5553. terrainData[iI] = terrain
  5554. return terrainData
  5555. def generateTerrainAtPlot(self,iX,iY):
  5556. lat = self.getLatitudeAtPlot(iX,iY)
  5557. if (self.map.plot(iX, iY).isWater()):
  5558. return self.map.plot(iX, iY).getTerrainType()
  5559. terrainVal = self.terrainDesert
  5560. if lat > self.iOasisTopLatitude:
  5561. plainsVal = self.plains.getHeight(iX, iY)
  5562. if plainsVal >= self.iNorthernPlainsBottom:
  5563. terrainVal = self.terrainPlains
  5564. else:
  5565. terrainVal = self.terrainGrass
  5566. elif lat < self.iJungleLatitude:
  5567. terrainVal = self.terrainGrass
  5568. elif lat < self.iOasisBottomLatitude and lat >= self.iJungleLatitude:
  5569. grassVal = self.grass.getHeight(iX, iY)
  5570. plainsVal = self.plains.getHeight(iX, iY)
  5571. if ((grassVal >= self.iGrassBottom) and (grassVal <= self.iGrassTop)):
  5572. terrainVal = self.terrainGrass
  5573. elif ((plainsVal >= self.iPlainsBottom) and (plainsVal <= self.iPlainsTop)):
  5574. terrainVal = self.terrainPlains
  5575. else:
  5576. OasisgrassVal = self.grass.getHeight(iX, iY)
  5577. OasisplainsVal = self.plains.getHeight(iX, iY)
  5578. if ((OasisgrassVal >= self.iOasisGrassBottom) and (OasisgrassVal <= self.iOasisGrassTop)):
  5579. terrainVal = self.terrainGrass
  5580. elif ((OasisplainsVal >= self.iOasisPlainsBottom) and (OasisplainsVal <= self.iOasisPlainsTop)):
  5581. terrainVal = self.terrainPlains
  5582. if (terrainVal == TerrainTypes.NO_TERRAIN):
  5583. return self.map.plot(iX, iY).getTerrainType()
  5584. return terrainVal
  5585. class GreatPlainsFeatureGenerator(CvMapGeneratorUtil.FeatureGenerator):
  5586. def __init__(self, iJunglePercent=40, iEastForestPercent=45,
  5587. iForestPercent=8, iRockyForestPercent=55,
  5588. forest_grain=6, fracXExp=-1, fracYExp=-1):
  5589. print "[SMap] ===== initialize Class::GreatPlainsFeatureGenerator"
  5590. self.cgc = CyGlobalContext()
  5591. self.map = CyMap()
  5592. self.mapRand = self.cgc.getGame().getMapRand()
  5593. self.forests = CyFractal()
  5594. self.iFlags = 0 # Disallow FRAC_POLAR flag, to prevent "zero row" problems.
  5595. self.iGridW = self.map.getGridWidth()
  5596. self.iGridH = self.map.getGridHeight()
  5597. self.iJunglePercent = iJunglePercent
  5598. self.iForestPercent = iForestPercent
  5599. self.iEastForestPercent = iEastForestPercent
  5600. self.iRockyForestPercent = iRockyForestPercent
  5601. self.forest_grain = forest_grain + self.cgc.getWorldInfo(self.map.getWorldSize()).getFeatureGrainChange()
  5602. self.fracXExp = fracXExp
  5603. self.fracYExp = fracYExp
  5604. self.__initFractals()
  5605. self.__initFeatureTypes()
  5606. def __initFractals(self):
  5607. self.forests.fracInit(self.iGridW, self.iGridH, self.forest_grain, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5608. self.iJungleLevel = self.forests.getHeightFromPercent(100 - self.iJunglePercent)
  5609. self.iForestLevel = self.forests.getHeightFromPercent(self.iForestPercent)
  5610. self.iEastForestLevel = self.forests.getHeightFromPercent(self.iEastForestPercent)
  5611. self.iRockyForestLevel = self.forests.getHeightFromPercent(self.iRockyForestPercent)
  5612. def __initFeatureTypes(self):
  5613. self.featureJungle = mst.efJungle
  5614. self.featureForest = mst.efForest
  5615. self.featureOasis = mst.efOasis
  5616. def getLatitudeAtPlot(self, iX, iY):
  5617. ########## Temudjin START
  5618. #0.0 = bottom edge, 1.0 = top edge.
  5619. #return iX/float(self.iGridW)
  5620. lat = mst.evalLatitude( self.map.plot(iX,iY), False )
  5621. # Adjust latitude using self.variation fractal, to mix things up:
  5622. lat += (128 - self.variation.getHeight(iX, iY))/(255.0 * 5.0)
  5623. # Limit to the range [0, 1]:
  5624. if lat < 0: lat = 0.0
  5625. if lat > 1: lat = 1.0
  5626. return lat
  5627. ########## Temudjin END
  5628. def addFeaturesAtPlot(self, iX, iY):
  5629. #"adds any appropriate features at the plot (iX, iY) where (0,0) is in the SW"
  5630. long = iX/float(self.iGridW)
  5631. lat = iY/float(self.iGridH)
  5632. pPlot = self.map.sPlot(iX, iY)
  5633. for iI in range(self.cgc.getNumFeatureInfos()):
  5634. if pPlot.canHaveFeature(iI):
  5635. if self.mapRand.get(10000, "Add Feature PYTHON") < self.cgc.getFeatureInfo(iI).getAppearanceProbability():
  5636. pPlot.setFeatureType(iI, -1)
  5637. if (pPlot.getFeatureType() == FeatureTypes.NO_FEATURE):
  5638. # Jungles only in Louisiana Wetlands!
  5639. if long > 0.65 and lat < 0.45:
  5640. self.addJunglesAtPlot(pPlot, iX, iY, lat)
  5641. if (pPlot.getFeatureType() == FeatureTypes.NO_FEATURE):
  5642. self.addForestsAtPlot(pPlot, iX, iY, lat, long)
  5643. def addIceAtPlot(self, pPlot, iX, iY, lat):
  5644. #We don' need no steeking ice. M'kay? Alrighty then.
  5645. ice = 0
  5646. def addJunglesAtPlot(self, pPlot, iX, iY, lat):
  5647. #Warning: this version of JunglesAtPlot is using the forest fractal!
  5648. if pPlot.canHaveFeature(self.featureJungle):
  5649. if (self.forests.getHeight(iX, iY) >= self.iJungleLevel):
  5650. pPlot.setFeatureType(self.featureJungle, -1)
  5651. def addForestsAtPlot(self, pPlot, iX, iY, lat, long):
  5652. #Evergreens in the Rockies. (Pinion Pines! Juniper! Spruce!)
  5653. #Deciduous trees elsewhere.
  5654. if (long < 0.16 and lat > 0.23) and (pPlot.isFlatlands() or pPlot.isHills()):
  5655. if self.forests.getHeight(iX, iY) <= self.iRockyForestLevel:
  5656. pPlot.setFeatureType(self.featureForest, 2)
  5657. elif long > 0.72 and pPlot.canHaveFeature(self.featureForest):
  5658. if self.forests.getHeight(iX, iY) <= self.iEastForestLevel:
  5659. pPlot.setFeatureType(self.featureForest, 0)
  5660. else:
  5661. if pPlot.canHaveFeature(self.featureForest):
  5662. if self.forests.getHeight(iX, iY) <= self.iForestLevel:
  5663. pPlot.setFeatureType(self.featureForest, 0)
  5664. class OasisFeatureGenerator(CvMapGeneratorUtil.FeatureGenerator):
  5665. def __init__(self, iJunglePercent=40, iForestPercent=45,
  5666. jungle_grain=5, forest_grain=6, fracXExp=-1, fracYExp=-1):
  5667. print "[SMap] ===== initialize Class::OasisFeatureGenerator"
  5668. self.cgc = CyGlobalContext()
  5669. self.map = CyMap()
  5670. self.mapRand = self.cgc.getGame().getMapRand()
  5671. self.jungles = CyFractal()
  5672. self.forests = CyFractal()
  5673. self.iFlags = 0
  5674. self.iGridW = self.map.getGridWidth()
  5675. self.iGridH = self.map.getGridHeight()
  5676. self.iJunglePercent = iJunglePercent
  5677. self.iForestPercent = iForestPercent
  5678. self.jungle_grain = jungle_grain
  5679. self.forest_grain = forest_grain
  5680. self.fracXExp = fracXExp
  5681. self.fracYExp = fracYExp
  5682. self.__initFractals()
  5683. self.__initFeatureTypes()
  5684. def __initFractals(self):
  5685. self.jungles.fracInit(self.iGridW+1, self.iGridH+1, self.jungle_grain, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5686. self.forests.fracInit(self.iGridW+1, self.iGridH+1, self.forest_grain, self.mapRand, self.iFlags, self.fracXExp, self.fracYExp)
  5687. self.iJungleLevel = self.jungles.getHeightFromPercent(self.iJunglePercent)
  5688. self.iForestLevel = self.forests.getHeightFromPercent(self.iForestPercent)
  5689. def __initFeatureTypes(self):
  5690. self.featureJungle = mst.efJungle
  5691. self.featureForest = mst.efForest
  5692. self.featureOasis = mst.efOasis
  5693. def getLatitudeAtPlot(self, iX, iY):
  5694. ########## Temudjin START
  5695. #0.0 = bottom edge, 1.0 = top edge.
  5696. #return iY/float(self.iGridH)
  5697. lat = mst.evalLatitude( self.map.plot(iX,iY), False )
  5698. # Adjust latitude using self.variation fractal, to mix things up:
  5699. lat += (128 - self.variation.getHeight(iX, iY))/(255.0 * 5.0)
  5700. # Limit to the range [0, 1]:
  5701. if lat < 0: lat = 0.0
  5702. if lat > 1: lat = 1.0
  5703. return lat
  5704. ########## Temudjin END
  5705. def addFeaturesAtPlot(self, iX, iY):
  5706. #"adds any appropriate features at the plot (iX, iY) where (0,0) is in the SW"
  5707. lat = self.getLatitudeAtPlot(iX, iY)
  5708. pPlot = self.map.sPlot(iX, iY)
  5709. for iI in range(self.cgc.getNumFeatureInfos()):
  5710. if pPlot.canHaveFeature(iI):
  5711. if self.mapRand.get(10000, "Add Feature PYTHON") < self.cgc.getFeatureInfo(iI).getAppearanceProbability():
  5712. pPlot.setFeatureType(iI, -1)
  5713. if (pPlot.getFeatureType() == FeatureTypes.NO_FEATURE):
  5714. # Jungles only in the deep south or in the Oasis!
  5715. if lat < 0.16:
  5716. self.addJunglesAtPlot(pPlot, iX, iY, lat)
  5717. elif lat > 0.32 and lat < 0.65 and (pPlot.getTerrainType() == mst.etGrass):
  5718. pPlot.setFeatureType(self.featureJungle, -1)
  5719. if (pPlot.getFeatureType() == FeatureTypes.NO_FEATURE):
  5720. # No forests in the Oasis!
  5721. if lat > 0.71 or lat < 0.3:
  5722. self.addForestsAtPlot(pPlot, iX, iY, lat)
  5723. if pPlot.isFlatlands() and (pPlot.getFeatureType() == FeatureTypes.NO_FEATURE) and (pPlot.getTerrainType() == mst.etDesert):
  5724. # Add more Oases!
  5725. if (lat < 0.71 and lat > 0.3) and self.mapRand.get(9, "Add Extra Oases PYTHON") == 0:
  5726. pPlot.setFeatureType(self.featureOasis, -1)
  5727. def addIceAtPlot(self, pPlot, iX, iY, lat):
  5728. #We don' need no steeking ice. M'kay? Alrighty then.
  5729. ice = 0
  5730. def addJunglesAtPlot(self, pPlot, iX, iY, lat):
  5731. if pPlot.canHaveFeature(self.featureJungle):
  5732. if self.jungles.getHeight(iX+1, iY+1) <= self.iJungleLevel:
  5733. pPlot.setFeatureType(self.featureJungle, -1)
  5734. def addForestsAtPlot(self, pPlot, iX, iY, lat):
  5735. #No evergreens.
  5736. if pPlot.canHaveFeature(self.featureForest):
  5737. if self.forests.getHeight(iX+1, iY+1) <= self.iForestLevel:
  5738. pPlot.setFeatureType(self.featureForest, 0)
  5739. ########## Just an example - will probably not survive the next version ##########
  5740. ##########
  5741. # Example: generate dunes landmark for Planetfall
  5742. #
  5743. # - creates 'The Big Dunes' landmark, with 7-9 dunes
  5744. # - assumes that arid terrain is needed and rivers are not allowed
  5745. # - to be called after addGoodies(), like at the start of afterGeneration()
  5746. # - integrated into MST special regions
  5747. # - may well overlap with 'The Great Dunes'
  5748. # - can be turned off by setting noBigDunes to True (in Global Variables)
  5749. ##########
  5750. def afterGeneration():
  5751. print "[SMap] -- afterGeneration()"
  5752. addLandmark_Dunes()
  5753. def addLandmark_Dunes():
  5754. print "[SMap] -- addLandmark_Dunes()"
  5755. if not mst.bPfall: return
  5756. if noBigDunes: return
  5757. map = CyMap()
  5758. # only create 'The Big Dunes' at plot, if there are plots with
  5759. # at least 11 arid plots within a 2 tile (24 plots) range.
  5760. # Note: This tests only for ardity not 'duneability' of plots.
  5761. # Note: This may take a while, but should be faster in C++.
  5762. # Note: Interferes with naming the 'The Great Dunes', only one should be active
  5763. pList = []
  5764. aridList = [mst.etFlatArid, mst.etRockyArid]
  5765. for i in range( map.numPlots() ):
  5766. x,y = mst.coordByIndex(i)
  5767. plot = map.plot(x,y)
  5768. # check for water
  5769. if plot.isWater():
  5770. continue
  5771. # check for interference with MST special regions
  5772. if not mst.mapRegions.regionCheck( plot, regionDistance=10 ):
  5773. continue
  5774. nArid = mst.numTerrainNeighbors( x, y, aridList, dist=2 )
  5775. if nArid > 10:
  5776. pList.append( [nArid, x, y] )
  5777. # If any of those plots exist, choose from sorted list of them or exit.
  5778. if len(pList) > 0:
  5779. pList.sort()
  5780. pList.reverse()
  5781. print "[SMap] possible plots: %i: %r" % (len(pList),pList)
  5782. else:
  5783. print "[SMap] No landmark 'The Big Dunes' created"
  5784. return # no Big Dunes if there is not enough arid terrain
  5785. # # put 'The Big Dunes' landmark at random duneable location
  5786. # pList = mst.randomList.randomCountList( map.numPlots() )
  5787. # for i in pList:
  5788. # x, y = mst.coordByIndex(i)
  5789. # plot = map.plotByIndex(i)
  5790. # if not map.isWrapX() and ( x==0 or x==(mst.iNumPlotsX-1) ):
  5791. # continue
  5792. # if not map.isWrapY() and ( y==0 or y==(mst.iNumPlotsY-1) ):
  5793. # continue
  5794. for i,x,y in pList:
  5795. plot = map.plot(x,y)
  5796. # check if dunes are possible
  5797. if not plot.canHaveFeature( mst.efDunes ):
  5798. continue
  5799. # check for rivers in the vicinity and try next plot if more than two are found
  5800. iRivers = 0
  5801. bFailed = False
  5802. for eDir in range( DirectionTypes.NUM_DIRECTION_TYPES ):
  5803. pl = plotDirection( x, y, DirectionTypes(eDir) )
  5804. if pl.isWater():
  5805. bFailed = True
  5806. break
  5807. elif pl.isCoastalLand(): # only inland dunes
  5808. bFailed = True
  5809. break
  5810. elif pl.isRiver():
  5811. iRivers += 1
  5812. if bFailed or (iRivers > 2):
  5813. continue
  5814. # put dunes on map, stamp terrain if neccessary
  5815. plot.setFeatureType( mst.efDunes, -1 )
  5816. sprint = "[SMap] set dunes @ (%i,%i) Center\n" % (x,y)
  5817. for eDir in range( DirectionTypes.NUM_DIRECTION_TYPES ):
  5818. pl = plotDirection( x, y, DirectionTypes(eDir) )
  5819. if pl.isRiver():
  5820. continue
  5821. if pl.canHaveFeature( mst.efDunes ):
  5822. pl.setFeatureType( mst.efDunes, -1 )
  5823. sprint += "[SMap] set dunes @ (%i,%i) %s\n" % (x,y,mst.directionName(eDir))
  5824. else:
  5825. # stamp terrain - kill any improvements or boni
  5826. if pl.getTerrainType() in [mst.etFlatMoist, mst.etFlatRainy, mst.etFlatPolar]:
  5827. pl.setTerrainType( mst.etFlatArid, False, False )
  5828. elif pl.getTerrainType() in [mst.etRockyMoist, mst.etRockyRainy, mst.etRockyPolar]:
  5829. pl.setTerrainType( mst.etRockyArid, False, False )
  5830. pl.setImprovementType( -1 )
  5831. pl.setBonusType( -1 )
  5832. pl.setFeatureType( mst.efDunes, -1 )
  5833. sprint += "[SMap] set dunes @ (%i,%i) %s after conversion\n" % (x,y,mst.directionName(eDir))
  5834. # display landmark sign on map - may be ignored according to mapRegions flag
  5835. # mst.mapSetSign( plot, "The Big Dunes", noSign=mst.mapRegions.noSigns )
  5836. # register new special region to avoid interference with MST special regions
  5837. mst.mapRegions.regionList.append( [x, y] )
  5838. sprint += "[SMap] Landmark 'The Big Dunes' created @ (%i,%i)" % (x,y)
  5839. print sprint
  5840. return
  5841. # 9.0
  5842. # New land layout: earth. Selecting this will generate the earth, with source data
  5843. # from a blue marble projection. This is a highly accurate earth layout, with peaks
  5844. # and hills somewhat fuzzed to make for a more playable map.
  5845. # Also added: north america, south america, africa, europe, asia, australia
  5846. # All of the new maps are based on blue marble data, and so are going to be more accurate
  5847. # than they are going to be strategically well designed, and resource placement will
  5848. # be random rather than historically accurate. The current version will also have
  5849. # generated terrain, but the next version will probably include an option to use
  5850. # terrain sampled from blue marble data.
  5851. # New resource placement options: very many (places a _lot_ of resources), crazy, and
  5852. # crazy many. The crazy options place resources on any workable tile. This makes for
  5853. # a rather different gameplay experience.
  5854. # New terrain placement option: crazy which will place terrains randomly.
  5855. # New feature placement option: crazy which will place features randomly.
  5856. # Protected read / write of the smartmap config file so file errors won't cause a script
  5857. # error, and moved the config file to the user dir, which should help people not playing
  5858. # as admin on windows.
  5859. # Improved odds of generating flood plains in desert river tiles.
  5860. # Changed the grid infos to be compatible with mods with arbitrary number of map sizes, which
  5861. # will make smartmap compatible with mods that have more than the usual number of map sizes.
  5862. # This change also makes SmartMap maps closer to the usual size.
  5863. # Improved speed for calculating the altitude of plots on very land heavy maps.
  5864. # Call the python garbage collector and clean up memory usage to allow larger maps. I can
  5865. # now generate maps somewhere around 10% larger than before. I can now generate a map
  5866. # with twice the area of the usual huge, and start it on my 1G computer.
  5867. # Base CivIV = 200M, 280x84, 65% ocean = 500M, 280x84 0% ocean = 700M, that's roughly
  5868. # 13K or so per additional land tile allocated by CivIV, so keep that in mind when
  5869. # deciding on your ocean levels.
  5870. # Fixed a bug that tried to place continents too close to the map edges some times.
  5871. # Fixed a bug with regenerate map that occurs if you load a first turn savegame and then
  5872. # immediately try to regenerate it, thanks skovran for the report.
  5873. # Cleaned up code in player placement, improved speed.
  5874. # Added catches to player placement to prevent overlapping starts. If an
  5875. # overlapping start is somehow generated (a bug reported a couple of times),
  5876. # it will now fallback to standard placement mode. I'm unsure how an overlapping start
  5877. # can ever happen in the first place, but this should really guarantee it is impossible
  5878. # for it to get through and actually place the players that way.
  5879. # Fixed a bug that would sometimes misjudge whether or not to place additional players
  5880. # on a large continent.
  5881. # Improved the way continents are calculated to be more accurate in certain cases around
  5882. # blocking peaks, and improved performance.
  5883. # 8.7
  5884. # Added 3 great lakes options (few, normal, many). This will generate a map with a number
  5885. # of large lakes (large enough to typically have ocean tiles).
  5886. # Edge sea and corner sea were reversed in what they generated, fixed.
  5887. # Corrected the usage of cardinal directions, thanks to Sto for noticing. This turned out to
  5888. # be harmless, but would show up in the xml error log.
  5889. # Fixed bug with generating inland sea maps, thanks DG for noticing.
  5890. # Corrected minor math error in hill placement that was generating more hills than specified.
  5891. # Corrected disagreement between ocean percentage and size of central sea in such maps.
  5892. # Fixed problem with counting number of available sea resource spots that would place too
  5893. # many sea resources on certain styles of maps.
  5894. # Removed all used of CyPlot.isCoastalLand() because this method doesn't do what you'd expect.
  5895. # Forced central sea maps to keep the central sea away from the poles to prevent splitting
  5896. # the map in two.
  5897. # Speed up altitude calculation by simplifying the search for nearby ocean.
  5898. # Speed up wetness calculation by skipping water tiles.
  5899. # Speed up hash lookups by increasing step size.
  5900. # These speed improvements should knock about 10-20% off the total generation time.
  5901. # 8.6
  5902. # Correct the override width/height entries to reflect the 'standard'
  5903. # width and height numbers (previously this was rough, now it is exact).
  5904. # So these numbers now match what scripts that use the base XML produce.
  5905. # Added extra plains / extra grass options to the terrain options, which
  5906. # will produce more of that type of terrain.
  5907. # Added 'new world' coastal/inland start options, which will place start
  5908. # positions in the east (as new world) but also favor coastal or inland
  5909. # starts.
  5910. # Added 'no block' peak options. This forbids peaks from having ocean
  5911. # on both sides either vertically of horizontally. This prevents certain
  5912. # common cases of resource blocking that some people found annoying.
  5913. # Any such peak is reduced to a hill, as a result you will have less total
  5914. # peaks on your map.
  5915. # Improved performance of land placement in low sea width (removed unneeded checks).
  5916. # Improved performance of land placement in high sea width by spatially
  5917. # hashing the previously placed lands, and reducing the search for conflicting
  5918. # lands to nearby hash entries. This makes a huge difference on big maps with
  5919. # high sea levels selected (>50% faster).
  5920. # Improved distribution of hills and peaks so that small continents don't get
  5921. # a disproportionate amount of them.
  5922. # Tweaked up likelihood of floodplains slightly. You may see a bit more desert
  5923. # in temperate maps. If you don't like desert much you can of course turn it
  5924. # off or switch to tropical which has much less desert.
  5925. # Improved performance for placing resources on large maps with lots of resources.
  5926. # Overall performance improvements will no generate the most difficult type of map
  5927. # (huge, land heavy, high sea level map with 2 or more continents) in less than
  5928. # a minute on my p4m-1.8ghz.
  5929. # 8.5
  5930. # Performance improvements.
  5931. # Improved hill placement for a huge/65ocean/30hills map from 12 seconds to 2.
  5932. # Improved huge/65ocean/many resources from 90 seconds to 30.
  5933. # 8.4A
  5934. # Quick Fix for problem with placing players on pangea maps introduced in 8.4
  5935. # (would cause an endless loop, freezing civ iv on pangea and certain other
  5936. # maps where it couldn't decide the best continental distribution of players)
  5937. # 8.4
  5938. # Tweaked resource placement to obey minlatitude and maxlatitude for the stricter
  5939. # resource placement options (SmartMap few, and all clumping options).
  5940. # Tweaked resource rates some more based on forum feedback.
  5941. # Made some other adjustments to the fair resource distribution to simplify it, and
  5942. # to distribute resources a little more evenly in certain cases. Also improved
  5943. # chances that all expected resources will be placed.
  5944. # Added terrain options to place no desert, no snow, no snow/desert,
  5945. # no snow/desert/tundra, only plains, or only grass. If you wan't minimal
  5946. # snow/desert/tundra, play on tropical, and turn jungles to light if necessary.
  5947. # Added 'SmartMap restricted / most restricted' option to resource placement, which
  5948. # enforces every placement rule I understand, clumps both happy and health resources,
  5949. # and offers fewer (restricted)/much fewer (most restricted) resources in general.
  5950. # Move the version history for prior versions to end of file
  5951. # Added player/all inland/coastal placement options. Player inland will do its best
  5952. # to give the first player an inland start. Coastal prefers a coastal start. All
  5953. # attempts to do the same for all players (less likely to succeed, based on available
  5954. # map positions).
  5955. # Add single tile isles option. This make for a very wierd game in generic civiv, but
  5956. # was requested by people developing space/planet based variants.
  5957. # Fixed bug in override separation that caused it to behave always as if low sea level
  5958. # was selected instead.
  5959. # Added 'central pole' variation on all wrap options. This creates an icy pole in the
  5960. # center of the map, as if you were looking down on earth from above the north pole,
  5961. # also known as polar projection. This now allows you to have 0,1,2,3 poled maps,
  5962. # which you can envision as different ways to unwrap a spherical world onto a flat
  5963. # rectangular map.
  5964. # Fixed a small math error in determining the distance from the pole/equator which
  5965. # became obvious when working with the polar projection maps. This may cause you
  5966. # to see a little more snow/tundra than previously.
  5967. #
  5968. #
  5969. # 8.3
  5970. # Tweak tundra, snow, desert picking process to make more likely on small maps.
  5971. # Add new separation override to allow absolute control of continent separation.
  5972. # More rivers sourced from hills if there are few peaks.
  5973. # Added options for central, edge, and corner sea to the ocean selections to
  5974. # generate that style of map. Particularly, if you enjoy the 'central sea'
  5975. # map style, you can now generate that with SmartMap.
  5976. # Tweak resource rates to make whales not quite so common, and to address other
  5977. # resource rate comments reported.
  5978. # Place resources in placement order to try to prevent good map positions from
  5979. # being taken by resources placed in wrong order.
  5980. # Added SmartMap New World placement option. This will prefer to place civs
  5981. # only on continents in the eastern hemisphere. This option will default
  5982. # to ordinary smartmap placement if there are not at least 2 continents, or if there
  5983. # is not a continent at least 90% of which is located in the western hemisphere.
  5984. # 8.2
  5985. # Add option for 'no ocean' that will place nearly all land.
  5986. # Note: takes longer to generate high land count maps. Be patient.
  5987. # Add option for 'no ocean, no lakes' that will place all land.
  5988. # Improve the placement performance of smartmap placement on high land count
  5989. # maps by ruling out very low scoring placement positions earlier.
  5990. # This will improve overall map generation performance slightly.
  5991. # Small improvements to forest and lake placement, attempt to cure the
  5992. # rare 'all forest tiles' on normal forest problem (I've never reproduced
  5993. # this, but the chance that any such bug survived should be low.)
  5994. # Added 'smartmap random pick' option to all (smartmap controlled)
  5995. # menus, this makes a choice from among the more typically desirable
  5996. # options, and also stays random the next time you create a map,
  5997. # unlike the standard 'random' option, and even randomly re-picks if you
  5998. # choose to 'regenerate map'. I highly recommend using this in place of
  5999. # the standard 'random' option.
  6000. # 8.1
  6001. # Add Clump Health and Clump Both resource placement options.
  6002. # Clean up land placement code organization a little bit.
  6003. # Force release of spiral search memory, and reduce how far spiral search
  6004. # searches to improve performance.
  6005. # Fix the defaults for override with and height that were causing people
  6006. # to get out of memory errors.
  6007. # 8.0
  6008. # Use pickle to store last preferences.
  6009. # Tweaked the adjustment to rivers and lakes so that many rivers will be more
  6010. # noticeable, and few lakes will really cut down the amount of lakes.
  6011. # Fix resource rates for smaller maps.
  6012. # Allow start placement to place settlers on hills as well as flatlands.
  6013. # Weight hills for start placement appropriately to the defensive bonus.
  6014. # Add spiral search feature, this may be of use to other mapmakers, used in
  6015. # my script to assign fragments as belonging to the nearest continent. Spiral
  6016. # search is the most efficient method of doing a 'find nearest X' on any grid
  6017. # based map, assuming you don't have a list of all X available.
  6018. # On higher river levels, make hills more likely to start rivers.
  6019. # Make rivers a little more common in general. Make the automatic river for each
  6020. # sufficiently large continent always start from a hill or peak if one is
  6021. # available, or a random tile if no hill or peak is found.
  6022. # Improve river paths by using spiral search to measure distance to nearest ocean
  6023. # Don't flatten peaks on coast, as this can create interesting strategic issues,
  6024. # and also tended to leave far fewer than the expected number of peaks.
  6025. # Fix a bug in the start placement picker that was giving extra scores for the
  6026. # start plot when it was supposed to be scoring nearby plots.
  6027. # Adjust how fragments are generated, and the number of fragments for few/many,
  6028. # to make maps using smaller numbers of fragments look less chaotic. Fragments
  6029. # also now sort-of obey the sealevel rules: they are allowed to start anywhere,
  6030. # but can only grow into one neighboring continent, so they are more likely to
  6031. # create an archipelago type of continental extension, rather than so frequently
  6032. # causing continents to merge.
  6033. # New SmartMap Clump Happy resources option which distributes all happiness
  6034. # resources like the standard generator (in clumps so trade is more likely to be
  6035. # necessary, hence 'clump happy'), but other resources in the smartmap style so
  6036. # that the distribution is fairer.
  6037. # Corrected a small land counting problem that sometimes gave too much land for
  6038. # a given ocean percentage.
  6039. # Added a few new options to the override width and height to allow for generating
  6040. # random ranges of sizes, as a couple of people had requested that.
  6041. # 7.2
  6042. # Separate GoodyHut option from Bonuses, and add support for
  6043. # no/low/normal/high rates of goody huts.
  6044. # Add support for low/normal/high levels of resources (with low = 2/3rds
  6045. # and high = 4/3rds normal, same for goody huts).
  6046. # Rearrange all of the options to put the less commonly used ones at the end.
  6047. # Tweak up the default hills % slightly.
  6048. # Tweak up the river rate slightly.
  6049. # Make broad empty plains a little less likely by distributing hills better.
  6050. # Add some extra continent options, 1 per 2 players, 1 per 3, 1 per 4
  6051. # these may be easier for some to think about than picking an exact number.
  6052. # Added continent options 2 per player, 3 per, 4 per. These are good to use
  6053. # if you're using low sea levels to allow land blobs to merge.
  6054. # Improve the likelyhood that small numbers of continents are well separated.
  6055. # Improve the chance that player start plots will neighbor at least one hill.
  6056. # Added option to adjust the river and lake frequencies.
  6057. # Tweaked the width/height calculation so that super wide maps aren't as likely.
  6058. # Tweaked hills placement to make big empty plains less likely.
  6059. # Improved the resource distribution to get better strategic resource separation.
  6060. # Added no-continents option, which will result in all land being placed in
  6061. # fragments instead (looks suspiciously like 'archipelago').
  6062. # Fixed a bug in the counting of land resulting in fewer peaks than expected.
  6063. #
  6064. # 7.1
  6065. # After reading that Atlas can generate 1600x1600 maps (not that civiv can
  6066. # load them) decided to bump up the maximum width/height overrides so
  6067. # that if, in the future, civiv can handle such maps, SmartMap will be
  6068. # ready. Can now, hypothetically, generate 5000x5000 maps.
  6069. # Also, converted the units to map tiles, since that is probably less confusing
  6070. # for non map-scripters.
  6071. # Bump up the size of duel, tiny, small due to our allowance for more ocean
  6072. # and also because the actual chosen dimensions tend to result in a map with
  6073. # slightly smaller than the expected area.
  6074. # Areas Duel Tiny Small Standard Large Huge
  6075. # SmartMap: 80 140 220 360 560 860
  6076. # Standard: 60 104 160 273 416 640
  6077. # Make SmartMap strict default for feature generation.
  6078. # Tweak up the default ocean size due to the larger map size.
  6079. # 7.0
  6080. # Add new generation option: Land Style. Land style allows you to opt
  6081. # for less roundish continents, and also to allow for small independent
  6082. # land fragments separate from the main continents. When land fragments
  6083. # are generated, they may be generated anywhere, and may violate the
  6084. # sea level strategy guarantees, so use at your own risk. The less rounded
  6085. # continent options without land fragments will obey the sea level rules,
  6086. # but may be less fair.
  6087. # Based on a report of it being annoying to have your capital placed on
  6088. # the wrap-edge of the minimap, I now rotate the initial land placement
  6089. # to put the minimum number possible of land near the map wrap edge.
  6090. # While this does not guarantee this will not happen, it makes it highly
  6091. # unlikely.
  6092. # Further, made the first player always pick the center most start position
  6093. # if wrap is enabled. This should make single player games always have
  6094. # the human player start fairly well centered. This should absolutely
  6095. # guarantee that a single human player will not start with their capital
  6096. # on a map wrap edge.
  6097. # Fixed a couple of places where I did not consider y-wrapping correctly.
  6098. # But I guess no one plays y-wrap (or both wrap), or they'd have surely noticed.
  6099. # Introduce option 'SmartMap Strict' for feature generation. This will only place
  6100. # floodplains & tundra where the normal scripts would.
  6101. # Made floodplains on anything other than desert less likely, and oasis on tundra
  6102. # less likely for the non-strict feature generator.
  6103. # Enhanced the plot wetness calculator so plot wetness can be factored into more
  6104. # of the generation process.
  6105. # Improved the player placement rules to prefer not to place players initially
  6106. # on a stretch of land reaching into the ocean.
  6107. # Added ReadMeSmartMap.txt
  6108. # 6.1
  6109. # Tweak up number of hills for 'many hills'.
  6110. # 6.0
  6111. # Improved lake generation system, grows more lakes beyond one plot
  6112. # Numerous terrain relevance improvements. More desert&snow at high altitude,
  6113. # less desert near water, etc.
  6114. # Changed continent computation to more accurately determine the large
  6115. # continents, which should as a side effect improve the fair resource
  6116. # distribution. Removed tiny continents which will never be player
  6117. # starts from the fair resource distribution.
  6118. # Improved tile wetness calculator to consider number of rivers and lakes
  6119. # touched by tile (a tile touched by fresh water on multiple sides is
  6120. # now more likely to shift from desert->plains->grass).
  6121. # Added a river originating at the highest point of each continent, which
  6122. # greatly improves the fairness of river distribution overall.
  6123. # Changed forest/jungle options to allow independent choice of forest and
  6124. # jungle coverage (light,normal,heavy independently selectable for each)
  6125. # General code cleanup, reorganization, commenting.
  6126. # Ran code through pychecker and cleaned all warnings, pychecker found a
  6127. # couple of legitimate bugs that may have improved the resulting maps.
  6128. # 5.1
  6129. # Improvements to fair bonus distribution algorithm.
  6130. # Fixed a typo bug causing python error on undefined edgeprob.
  6131. # Tweak desert rate down slightly.
  6132. # 5.0
  6133. # Work on refining the continent boundaries so water straights are not so
  6134. # obvious when you see the resulting cymap.
  6135. # Rewrite river generation, move it before terrain generation so terrains
  6136. # can consider rivers (allow grasslands and other 'wetter' terrain to be
  6137. # more common around rivers, as well as forests/jungle).
  6138. # Replace the standard river altitude function with one that seems to yeild
  6139. # better river paths.
  6140. # Assorted terrain and feature improvements. Restored possibility of flood
  6141. # plains in desert, and made terrain tend to blob together more rather
  6142. # than appearing so completely random. Allowed hills to have terrain rather
  6143. # than always defaulting to grass (so desert/hills are now possible). I can't
  6144. # believe no one complained about that one.
  6145. # Found a major logic error in the player placement algorithm that was unfairly
  6146. # favoring near-lake placements (I has assumed CyPlot.isCoastalLand() was equivalent
  6147. # to asking: can I build a lighthouse?, this turned out not to be true).
  6148. # As a result, initial placement is much more likely to be coastal now, and
  6149. # this has a nice side effect of improving the average separation of players.
  6150. # Tweaked resource rates a little more based on various feedback.
  6151. # Replace standard lake addition function so we don't get lakes in odd places.
  6152. # Futher performance optimization. The low and medium sea level options are
  6153. # now more than twice as fast, and the high sea level option is about 50%
  6154. # faster. I can now generate a huge map with low sea level in under a minute.
  6155. # After discovering that the map sizes in great plains are way off, resized my
  6156. # maps to the following settings:
  6157. # Duel Tiny Small Standard Large Huge
  6158. # SmartMap: 60 100 180 320 560 1000
  6159. # Standard: 60 104 160 273 416 640
  6160. # This is a bump up for everything except huge, which becomes slightly smaller,
  6161. # and thus hopefully usable by more people.
  6162. # Added related option to override the map width and height. You can now select
  6163. # your map size fairly precisely, including the ability to pick map sizes that
  6164. # are so large they may cause civiv to have problems. Up to 256x256 map positions,
  6165. # which would be a 1024x1024 map, with an area of over 1 million (compare to huge at
  6166. # an area of 16 thousand!) If you are able to generate a map of even 128x128 I'll be
  6167. # shocked. Nevertheless, the option is there. So no complaining that I made huge
  6168. # smaller! Just set your game to huge, then override the size to whatever you want.
  6169. # Or for a bizarre experience, set your map to duel, and override the size to whatever
  6170. # you'd like. For kicks I generated a 256x8 map, and that was just barely startable
  6171. # with my 1 Gig of memory. Minimap looks ridiculous.
  6172. # 4.2
  6173. # Increase goody hut count slightly, particularly on maps with lots of land.
  6174. # 4.1
  6175. # Slightly refined smartmap resource placement to make distribution
  6176. # fairer between continents, and not to allow so many duped resources
  6177. # within one city radius.
  6178. # Small upward tweak to resource rates.
  6179. # 4.0
  6180. # Overall performance improvement:
  6181. # Now down to about:
  6182. # <5 seconds for duel,tiny,small
  6183. # 10 seconds for standard,
  6184. # 40 seconds for large,
  6185. # ~2 minutes on huge
  6186. # On a 1.8Ghz Pentium-M with 1Gig.
  6187. # Optimize land placement speed by remembering all potential growth positions
  6188. # rather than looking for them randomly.
  6189. # Optimized and improved player placement function. No longer makes certain
  6190. # rare placement errors, and the speed is dramatically better, particularly
  6191. # for continents with a large number of players to be placed (pangea).
  6192. # Optimized bonus placement. This used to get very slow on large/huge maps due
  6193. # to making a pass through all tiles for each bonus type. Now makes one pass
  6194. # through all tiles and caches the result.
  6195. # Changed the player option read function to take a string rather than an index
  6196. # to make it clearer in code, and also make it impossible to break when
  6197. # changing the order of options in the list.
  6198. # Land areas are 20,40,90,210,500,1200 (duel,tiny,small,standard,large,huge)
  6199. # Compared to 15,24,48,88 ,154,252 for great plains.
  6200. # Smartmap rounds down calculated width and height,
  6201. # so the areas are not quite as big as they seem,
  6202. # but large and huge are noticeably bigger. This allows for more flexible
  6203. # use of the ocean coverage option. Note to firaxis: it would be a better
  6204. # design if in the expansion pack or a patch you passed the expected land
  6205. # area to the grid size function from the current mod! Then maps could
  6206. # dynamically size themselves to the expected land area and provide fair
  6207. # gameplay regardless of other chosen settings (and be compatible with mods
  6208. # that make use of different sized maps ... no more hardcoding like in
  6209. # great plains)!
  6210. # Note: I can just barely start a huge game with 1Gig memory. This implies
  6211. # firaxis is using somewhere in the neighborhood of 32k memory per tile.
  6212. # Good grief, what on earth are they storing!
  6213. # 3.2
  6214. # Add options for specifying weight of initial jungle/forest cover.
  6215. # More performance optimizations.
  6216. # 3.1
  6217. # Fix rare issue with placements landing too close together.
  6218. # Slight tweaks to placement scoring to value early resources higher.
  6219. # Fix issue with placements on separate continents too close together.
  6220. # 3.0
  6221. # Re-enable climate selection, which may or may not be honored.
  6222. # Restore 36-continent option, accidental deletion.
  6223. # Create a better default option for each selector.
  6224. # Un-smooth edges near poles.
  6225. # Properly handle allowing continents to wrap on wrap axis.
  6226. # Performance optimizations by reducing function call counts.
  6227. # Custom player placement rules.
  6228. # Complete replacement of bonus system.
  6229. # Separate out goody hut placement and put in correct order.
  6230. # Cleaner debug print messages.
  6231. # 2.0
  6232. # Reduce bonus percentage for SmartMap bonus.
  6233. # Allow standard bonus distribution as an option.
  6234. # Bias width,height towards wrap direction.
  6235. # un-straight-edge where continents meet.
  6236. # SmartMap terrainGen allows more desert.
  6237. # SmartMap featureGen suggests more forest and jungle.
  6238. # Support for random ranges in number of continents.
  6239. # 1.0
  6240. # Initial version.