Map Build Script

Information and tutorials related to modding BF2.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Map Build Script

Post by Rhino »

I've made a simple map building script, which I have not yet fully tested but when packing muttrah it looked to be working perfectly and didn't have to delete any files or anything out of the .zips :)

Requires that you have 7zip installed on your system, and at the moment with the script it needs to be installed to the default location: "C:\Program Files\7-Zip\7z.exe", but you can edit the script to change it to a diffrent location :)

Build script is pretty strait forward, just dump it into your map folder (/levels/*your map name*/) and run the script, will bring you to a menu and just follow it :D

Download the script here: https://www.dropbox.com/s/3hrdjdwc5oid0 ... p.bat?dl=0

Hope you find this useful and feedback welcome :)
Last edited by Outlawz7 on 2018-05-02 22:33, edited 3 times in total.
Image
Z-trooper
Retired PR Developer
Posts: 4166
Joined: 2007-05-08 14:18

Post by Z-trooper »

sure sounds nice, even though I might not understand it fully. Maybe I'll appriciate it more when I start doing some small mapping projects...
Image
"Without geometry, life is pointless"
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Post by LekyIRL »

What exactly does this do?
Sorry I'm noob with all this stuff :-P
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Z-trooper
Retired PR Developer
Posts: 4166
Joined: 2007-05-08 14:18

Post by Z-trooper »

I believe it sets up some settings for building a PR map, so he dosnt have to answer too many questions about it in the future :D but its just my theory...
Image
"Without geometry, life is pointless"
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

it builds the server and client .zips for the maps, putting the right files in each and making sure files that are not needed are not included to save space/packing time.
Image
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Post by LekyIRL »

so would I do this before,after or during the making of my map?
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

you will do this when you want to test/play your map on a dedicated server. The map will have to be packed before it can be used in a MP game.
Image
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Post by LekyIRL »

ah okay thank you ;)
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Smuke
Posts: 877
Joined: 2007-09-25 16:21

Post by Smuke »

sounds to complicated ill leave tht up to the experts have fun guys
Image
In-Game Name: SmukeUK
Wild_Bill: Smuke, you are a true ninja!.
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Post by LekyIRL »

How exactly do I save this?
When I click the link a pile of text comes up,what do I save it as?
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Post by Rhino »

right click on the link, then click on "save link as" then save it on your pc and it will download the file.
Image
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Post by LekyIRL »

[R-DEV]Rhino wrote:right click on the link, then click on "save link as" then save it on your pc and it will download the file.
Ah,thanks.

The link seems to be broken now though :o
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Mosquill
Retired PR Developer
Posts: 857
Joined: 2007-08-12 10:13

Post by Mosquill »

Thanks for the tool, very useful.
LekyIRL
Posts: 1345
Joined: 2007-06-23 16:34

Re: [Tool] Map Build Script

Post by LekyIRL »

Okay I'm stuck :|

I have downloaded 7zip,and installed it to the default location. I then but the build_pr_map.bat file in /pr_edit/levels/Test1.

How to I run it?
Image
[R-MOD]Dunehunter-Freedom? This...is...The PR Forum! *kicks LekyIRL down the well on Basrah*
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Tool] Map Build Script

Post by Rhino »

you double click on the .bat and follow the instructions.
Image
alexandrei07
Posts: 128
Joined: 2008-06-20 20:31

Re: [Tool] Map Build Script

Post by alexandrei07 »

[R-DEV]Rhino wrote:I've made a simple map building script, which I have not yet fully tested but when packing muttrah it looked to be working perfectly and didn't have to delete any files or anything out of the .zips :)



Hope you find this useful and feedback welcome :)

This tool is to much!!!!!!!!


Tanks
alexandrei07
Posts: 128
Joined: 2008-06-20 20:31

Re: [Tool] Map Build Script

Post by alexandrei07 »

Hello, did I find this tool "build_pr_lightmaps.bat", is there some tutorial of like it is used?

TKS
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Tool] Map Build Script

Post by Rhino »

like what you asked in my visitor messages, you do not need it... I am not going to repeat the details why again!
Image
alexandrei07
Posts: 128
Joined: 2008-06-20 20:31

Re: [Tool] Map Build Script

Post by alexandrei07 »

[R-DEV]Rhino wrote:like what you asked in my visitor messages, you do not need it... I am not going to repeat the details why again!
forgives, I did not see that already it was answered.
LtSoucy
Posts: 3089
Joined: 2007-03-23 20:04

Re: [Tool] Map Build Script

Post by LtSoucy »

When I try to run it, the program starts and shuts down in like 2 seconds, any clue to how to fix this?
Image
Reality Gaming - Making Games Reality
http://realitygamer.org/
Post Reply

Return to “Modding Tutorials”