![]() |
No Independent .map file Request
Hey guys.
I've been searching the various forums for days, but I can't find the actual 'text block' to copy/paste into .map files to turn off independents. If someone could get that to me I would be most appreciative. |
Re: No Independent .map file Request
I don't have a script to do this for every map, maybe lch could help you there, but I do have one that goes up quite high.
#setland 1 #poptype 100 #setland 2 #poptype 100 #setland 3 #poptype 100 #setland 4 #poptype 100 #setland 5 #poptype 100 #setland 6 #poptype 100 #setland 7 #poptype 100 #setland 8 #poptype 100 #setland 9 #poptype 100 #setland 10 #poptype 100 #setland 11 #poptype 100 #setland 12 #poptype 100 #setland 13 #poptype 100 #setland 14 #poptype 100 #setland 15 #poptype 100 #setland 16 #poptype 100 #setland 17 #poptype 100 #setland 18 #poptype 100 #setland 19 #poptype 100 #setland 20 #poptype 100 #setland 21 #poptype 100 #setland 22 #poptype 100 #setland 23 #poptype 100 #setland 24 #poptype 100 #setland 25 #poptype 100 #setland 26 #poptype 100 #setland 27 #poptype 100 #setland 28 #poptype 100 #setland 29 #poptype 100 #setland 30 #poptype 100 #setland 31 #poptype 100 #setland 32 #poptype 100 #setland 33 #poptype 100 #setland 34 #poptype 100 #setland 35 #poptype 100 #setland 36 #poptype 100 #setland 37 #poptype 100 #setland 38 #poptype 100 #setland 39 #poptype 100 #setland 40 #poptype 100 #setland 41 #poptype 100 #setland 42 #poptype 100 #setland 43 #poptype 100 #setland 44 #poptype 100 #setland 45 #poptype 100 #setland 46 #poptype 100 #setland 47 #poptype 100 #setland 48 #poptype 100 #setland 49 #poptype 100 #setland 50 #poptype 100 #setland 51 #poptype 100 #setland 52 #poptype 100 #setland 53 #poptype 100 #setland 54 #poptype 100 #setland 55 #poptype 100 #setland 56 #poptype 100 #setland 57 #poptype 100 #setland 58 #poptype 100 #setland 59 #poptype 100 #setland 60 #poptype 100 #setland 61 #poptype 100 #setland 62 #poptype 100 #setland 63 #poptype 100 #setland 64 #poptype 100 #setland 65 #poptype 100 #setland 66 #poptype 100 #setland 67 #poptype 100 #setland 68 #poptype 100 #setland 69 #poptype 100 #setland 70 #poptype 100 #setland 71 #poptype 100 #setland 72 #poptype 100 #setland 73 #poptype 100 #setland 74 #poptype 100 #setland 75 #poptype 100 #setland 76 #poptype 100 #setland 77 #poptype 100 #setland 78 #poptype 100 #setland 79 #poptype 100 #setland 80 #poptype 100 #setland 81 #poptype 100 #setland 82 #poptype 100 #setland 83 #poptype 100 #setland 84 #poptype 100 #setland 85 #poptype 100 #setland 86 #poptype 100 #setland 87 #poptype 100 #setland 88 #poptype 100 #setland 89 #poptype 100 #setland 90 #poptype 100 #setland 91 #poptype 100 #setland 92 #poptype 100 #setland 93 #poptype 100 #setland 94 #poptype 100 #setland 95 #poptype 100 #setland 96 #poptype 100 #setland 97 #poptype 100 #setland 98 #poptype 100 #setland 99 #poptype 100 #setland 100 #poptype 100 #setland 101 #poptype 100 #setland 102 #poptype 100 #setland 103 #poptype 100 #setland 104 #poptype 100 #setland 105 #poptype 100 #setland 106 #poptype 100 #setland 107 #poptype 100 #setland 108 #poptype 100 #setland 109 #poptype 100 #setland 110 #poptype 100 #setland 111 #poptype 100 #setland 112 #poptype 100 #setland 113 #poptype 100 #setland 114 #poptype 100 #setland 115 #poptype 100 #setland 116 #poptype 100 #setland 117 #poptype 100 #setland 118 #poptype 100 #setland 119 #poptype 100 #setland 120 #poptype 100 #setland 121 #poptype 100 #setland 122 #poptype 100 #setland 123 #poptype 100 #setland 124 #poptype 100 #setland 125 #poptype 100 #setland 126 #poptype 100 #setland 127 #poptype 100 #setland 128 #poptype 100 #setland 129 #poptype 100 #setland 130 #poptype 100 #setland 131 #poptype 100 #setland 132 #poptype 100 #setland 133 #poptype 100 #setland 134 #poptype 100 #setland 135 #poptype 100 #setland 136 #poptype 100 #setland 137 #poptype 100 #setland 138 #poptype 100 #setland 139 #poptype 100 #setland 140 #poptype 100 #setland 141 #poptype 100 #setland 142 #poptype 100 #setland 143 #poptype 100 #setland 144 #poptype 100 #setland 145 #poptype 100 #setland 146 #poptype 100 #setland 147 #poptype 100 #setland 148 #poptype 100 #setland 149 #poptype 100 #setland 150 #poptype 100 #setland 151 #poptype 100 #setland 152 #poptype 100 #setland 153 #poptype 100 #setland 154 #poptype 100 #setland 155 #poptype 100 #setland 156 #poptype 100 #setland 157 #poptype 100 #setland 158 #poptype 100 #setland 159 #poptype 100 #setland 160 #poptype 100 #setland 161 #poptype 100 #setland 162 #poptype 100 #setland 163 #poptype 100 #setland 164 #poptype 100 #setland 165 #poptype 100 #setland 166 #poptype 100 #setland 167 #poptype 100 #setland 168 #poptype 100 #setland 169 #poptype 100 #setland 170 #poptype 100 #setland 171 #poptype 100 #setland 172 #poptype 100 #setland 173 #poptype 100 #setland 174 #poptype 100 #setland 175 #poptype 100 #setland 176 #poptype 100 #setland 177 #poptype 100 #setland 178 #poptype 100 #setland 179 #poptype 100 #setland 180 #poptype 100 #setland 181 #poptype 100 #setland 182 #poptype 100 #setland 183 #poptype 100 #setland 184 #poptype 100 #setland 185 #poptype 100 #setland 186 #poptype 100 #setland 187 #poptype 100 #setland 188 #poptype 100 #setland 189 #poptype 100 #setland 190 #poptype 100 #setland 191 #poptype 100 #setland 192 #poptype 100 #setland 193 #poptype 100 #setland 194 #poptype 100 #setland 195 #poptype 100 #setland 196 #poptype 100 #setland 197 #poptype 100 #setland 198 #poptype 100 #setland 199 #poptype 100 #setland 200 #poptype 100 #setland 201 #poptype 100 #setland 202 #poptype 100 #setland 203 #poptype 100 #setland 204 #poptype 100 #setland 205 #poptype 100 #setland 206 #poptype 100 #setland 207 #poptype 100 #setland 208 #poptype 100 #setland 209 #poptype 100 #setland 210 #poptype 100 #setland 211 #poptype 100 #setland 212 #poptype 100 #setland 213 #poptype 100 #setland 214 #poptype 100 #setland 215 #poptype 100 #setland 216 #poptype 100 #setland 217 #poptype 100 #setland 218 #poptype 100 #setland 219 #poptype 100 #setland 220 #poptype 100 #setland 221 #poptype 100 Any higher than that, like 500 province maps or whatever, a script would make sense. |
Re: No Independent .map file Request
Thanks, Sombre. This was indeed what I was looking for. http://forum.shrapnelgames.com/images/smilies/happy.gif I do like large maps, so I'll continue poking around for a script. http://forum.shrapnelgames.com/images/smilies/happy.gif
|
Re: No Independent .map file Request
I can write a very short C++ program (of poor coding quality http://forum.shrapnelgames.com/image...ies/tongue.gif) that will take a number as input and will produce a .txt file with just #setland 1 #poptype 100 #setland 2 #poptype 100, with #setland going up to that number, and then you can take that and copy-paste it to your map, I guess.
Would you like me to? (Though unless you want to compile it yourself [in which case you probably already have the knowledge to program it yourself], it will be windows only) |
Re: No Independent .map file Request
That would work, Agrajag. Nice Avatar BTW. http://forum.shrapnelgames.com/images/smilies/happy.gif However, I tried copy/pasting it into a map I made, and it didn't seem to work. Any suggestions here?
|
Re: No Independent .map file Request
Under windows, open a command prompt and do the following:
<font class="small">Code:</font><hr /><pre>echo @echo #setland %1 > do.bat echo @echo #poptype 100 >> do.bat for /l %i in (1,1,100) do do.bat %i >> noindy.map del do.bat</pre><hr /> Untested, but should work. Change the numbers in the triple accordingly. More info under "for /?". |
Re: No Independent .map file Request
Oh, thanks. That definitely makes sense. The triple says 'from 1 to 100 in an increment of 1', right? (I can sort of 'read' code, but can't really write it.)
'noindy.map' is the name of the .map file, right? Also, may I suggest this (or something like it) be put into the 'Mod thread', so that others can find it perhaps a bit easier? Edit: It's not working. I am not sure exactly why. To be precise, the batch file works properly. But when I start a game on the edited map, the independents are still there. Am I doing something wrong? |
Re: No Independent .map file Request
Yes, the triple is (from,step,to) as in: start at "from", add "step" in every step until you reach "to". It will put a list that looks like what Sombre posted into the file noindy.map. You'll have to copy and paste that into the real .map file with a text editor yourself, it's not of any use on its own.
|
Re: No Independent .map file Request
Well, it actually will write it directly into the .map file if you name it as such. However, putting the information in is not getting rid of the independents. Is there smoething more I have to do?
|
Re: No Independent .map file Request
P.S.: I think that you can put two commands into the same line, so instead of that complicated four-line thing you can probably just use this <font class="small">Code:</font><hr /><pre>for /l %i in (1,1,100) do echo #setland %i #poptype 100 >> noindy.map</pre><hr />
I have no idea if there's something missing, but if there's an #end missing there you could just add it in the same manner. |
Re: No Independent .map file Request
Maybe you're expecting the wrong thing, though. What this is supposed to do is to remove the possibility of recruiting independents on the provinces in the map. This forces the AI to use national units and can make it play a stronger game. What it does not do is remove the indy defenders. You achieve that by setting the strength of independents to zero when you create the game (and only in case this is really possible).
|
Re: No Independent .map file Request
No, I'm thinking correctly in that you should not be able to recruit independent commanders on the map. Unfortunately, you still can. I'll try adding #end at the end to see if that changes anything. Thanks for all the help so far. =)
Edit: This is getting frustrating. >< I don't know exactly why it's not working. The only thing I can think of is that there are no CRs or spaces in the .map file except for the pasted portion. AFAIK this normally does not change things, but could it be in this case? Honestly, I'd like to try this but nothing I seem to do works. >< |
Re: No Independent .map file Request
1 Attachment(s)
Attached to this post is an .exe that has been .rared.
When you start it it will open up a console window, and wait for your input. You will need to insert two numbers, the first one will be the number of lands you need to #setland on (so if you want lands 1-241, you will type in 241), the second number will determine the poptype that will be set for all. (In this case I guess you'll want 100) The program will create a file called IO.txt that will contain the lines you want. (I see that you already found a better way of doing it, but since it only took a few seconds to code, I did it anyway http://forum.shrapnelgames.com/images/smilies/happy.gif) No spaces in the .map file sounds like it could cause problems, if #land 3 is turned to #land3 maybe it can give the game problems? (I never actually made a map, so I know nothing about those things) |
Re: No Independent .map file Request
Well, let me actually copy/paste what the random map generator makes for a file.
Hm. When I paste it, it comes out in order. Let me just type it. (And yeah, I have word wrap on in Notepad, so I know it's not that. #neighbor 1 14#neighbor 2 17#neighbor 2 19#etc. etc. Whereas when I use the file Ich gave me, I get the standard #setland 1 #poptype 100 . . . So I don't know if there's something else going on. But I can tell you that it's just not working. >< |
Re: No Independent .map file Request
Heh. Simple fix for this:
1) Copy *only* the setland/poptype pairs in Sombre's list from #1 to #199 into any standard text/rich text editor. 2) Do it again, into a separate file, so that you now have two lists in two different files, each with setland/poptypes sequenced from 1 to 199. 3) Delete the setland/poptype pairs in that second file from #1 to #99, leaving you with only the ones from setland #100 through to setland #199. 4) Now use the 'Replace' command to search for "setland 1" and replace with "setland 2". Select "Replace All". 5) Copy the new list--now #200 to #299--into the original, 'master' file. 6) Repeat steps 4 and 5 as much as needed, incrimenting the setland # each time as you go. You should very quickly get into the thousands, if need be. |
All times are GMT -4. The time now is 11:46 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.