I gathered this information from many posts struned about this forum, and decided to put it in one place. Thanks Stryder, most of this is from him!
First off, you have to copy your uo folder. So go to your Call of Duty folder, and inside it you will find a folder called uo. It might be at the bottom of the page, but it's there. So for instance:
C:\Program Files\Call of Duty\
uo
So copy the folder I just bolded above. Now go into your Program Files folder, and make a folder called
game. Inside that new folder you just made, paste the uo folder I had you copy. It will take a while, and yes, it will take a LOT of disk space.
Done? Okay, now open up your map in Graydiant. Now you need to go to File - Export and .map (you need to put the thing in .map format so it can be compiled). Not sure why Gray MAtter didn't just cut the middle man and have you save the files as .map in the first place, but oh well. So you exported it as a .map. Now it will save it to a place that may vary from user to user, but find out where that place is. Copy your .map file and paste it into your Call of Duty\uo\maps\mp folder.
ex.
C:\Program Files\Call of Duty\uo\maps\mp\
Now make a new text document. Doesn't matter where, so for now, just minimize and go to your desktop and right click - and hit New - text document. Name the document:
yourmap.txt (where
yourmap is the name of your map lol). Now open it up, and copy and paste the following lines into it:
Code:
|
"C:Program FilesCall of DutyuoToolsbinq3map" -game uo "C:Program FilesCall of Dutyuomapsmpyourmap"
pause
"C:Program FilesCall of DutyuoToolsbinq3map" -vis -fast -game uo "C:Program FilesCall of Dutyuomapsmpyourmap"
copy /Y "C:Program FilesCall of Dutyuomapsmpyourmap.bsp" "C:Program Filesgameuomapsmpyourmap.bsp"
copy /Y "C:Program FilesCall of Dutyuomapsmpyourmap.prt" "C:Program Filesgameuomapsmpyourmap.prt"
"C:Program FilesCall of DutyuoToolsbinflare" -fast -game uo "C:Program Filesgameuomapsmpyourmap"
copy /Y "C:Program Filesgameuomapsmpyourmap.bsp" "C:Program FilesCall of Dutyuomapsmpyourmap.bsp"
copy /Y "C:Program Filesgameuomapsmpyourmap.prt" "C:Program FilesCall of Dutyuomapsmpyourmap.prt"
pause |
|
Now even I am not sure why we had to copy that uo folder into the game folder back towards the beginning, but just do everything I told you and so far you are good.
Now, save that file, and copy and paste it into your Call of Duty\uo\maps\mp folder - the same folder I had you copy your .map file to.
ex.
C:\Program Files\Call of Duty\uo\maps\mp\
Okay, now you need to rename it to
yourmap.bat but first you need to know how to edit its file extensions. If all you see is the name, and no .txt, then you need to go up to Tools - Folder Options in your menu bar. Go to the View tab, and UN-CHECK the box that says "Hide extensions for known file types." Apply it, hit OK, and now you should see the .txt. So now when you right click and rename the text file, you name it to
yourmap.bat and when you hit enter it will ask you if you are sure you want to change the file extension. Say yes, and now you have an executable command line that will run.
So, you are ready. Just double click the bat file we just made, and it should run without flaw. It might give you a map leaked error, but that means it is a map flaw and not a compile flaw. You have to read though, because it will occasionally say "Press any key to continue" and you have to hit a button for it to keep going. When its done, you will have 4 new files in the Call of Duty\uo\maps\mp directory, including the .bsp that is required to test the map.
Fortunately, they are all in the right place, so you don't have to do any more copying. Just run the game, go to Start New Server, turn Pure to "NO" and bring down the console with the ~ key, and type /map yourmap and hit enter and it will load.
TIP: If you are going to re-compile your map (lets say you made some changes) and you need to run the bat file again, delete all the files pretaining to that particular map from your Call of Duty\uo\maps\mp folder EXCEPT FOR the .bat file we had you make. So long as you do not rename your map, that particular bat file will still work for it. However, delete the .map, the .bsp, the .prt, etc. You will have to export a new version of the .map and put it in that folder again, and then when you run the .bat file it will create all the other files I had you delete. I only say this because sometimes the process does not overwrite files completely, which can make for some serious headaches when your map isn't working right.
Hope this helps - again, do what I say and it will work. Even I do not know why it works, but it does, and that's all that counts :).
Hopefully a CoDPiler 2.0 will be released that works for UO :).
Regards,
Jdawgg