|
|
|
|
|
November 10th, 2007, 12:39 AM
|
Second Lieutenant
|
|
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
|
|
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.
|
November 10th, 2007, 12:49 AM
|
BANNED USER
|
|
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
|
|
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.
|
November 10th, 2007, 07:49 AM
|
Second Lieutenant
|
|
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
|
|
Re: No Independent .map file Request
Thanks, Sombre. This was indeed what I was looking for. I do like large maps, so I'll continue poking around for a script.
|
November 10th, 2007, 07:55 AM
|
|
Lieutenant Colonel
|
|
Join Date: Jul 2004
Location: Israel
Posts: 1,449
Thanks: 4
Thanked 8 Times in 2 Posts
|
|
Re: No Independent .map file Request
I can write a very short C++ program (of poor coding quality ) 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)
__________________
I'm in the IDF. (So any new reply by me is a very rare event.)
|
November 10th, 2007, 01:08 PM
|
Second Lieutenant
|
|
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
|
|
Re: No Independent .map file Request
That would work, Agrajag. Nice Avatar BTW. However, I tried copy/pasting it into a map I made, and it didn't seem to work. Any suggestions here?
|
November 10th, 2007, 03:57 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
Re: No Independent .map file Request
Under windows, open a command prompt and do the following:
Code:
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
Untested, but should work. Change the numbers in the triple accordingly. More info under "for /?".
|
November 10th, 2007, 04:23 PM
|
Second Lieutenant
|
|
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
|
|
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?
|
November 10th, 2007, 05:19 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
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.
|
November 10th, 2007, 05:38 PM
|
Second Lieutenant
|
|
Join Date: May 2006
Posts: 465
Thanks: 10
Thanked 16 Times in 14 Posts
|
|
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?
|
November 10th, 2007, 05:53 PM
|
|
General
|
|
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
|
|
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 Code:
for /l %i in (1,1,100) do echo #setland %i #poptype 100 >> noindy.map
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.
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|