Jump to content


Photo

Advanced BuildMod.bat


  • Please log in to reply
11 replies to this topic

#1 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 29 August 2007 - 11:47 AM

I'd have uploaded a slightly edited version of BuildMod.bat that prompts for the mod name instread of requiring a startup parameter, until I noticed the file itself uses absolute, comp-specific paths that are set up during installation. Since I don't know how to do this, I can't just hand you mine, because I run a German OS.

I can quickly post the changes though:

1. Open BuildMod.bat with a text editor
2. Delete the line @echo Mod Name: %1
3. In its place, insert the line set /P var="Please enter the mod name: "
4. Replace all occurencies of %1 in the file with %var% (without changing anything else like lines etc)
5. Add an extra line pause at the very bottom of the code
6. Save
7. Run the new file and just enter the mod name :p

Edited by Dark Lord of the Sith, 29 August 2007 - 01:13 PM.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#2 Torn

Torn

    Mmphumph!

  • Hosted
  • 2,238 posts
  • Projects:Only War 2
  •  Mmmph mm mumph umph!

Posted 29 August 2007 - 11:50 AM

Good show, should save much time simply being able to run the bat.

#3 Daz

Daz

    title available

  • Hosted
  • 2,654 posts
  •  Revora Co-Founder

Posted 29 August 2007 - 11:58 AM

*snip*


You should post that in a thread of its own, it's pretty handy.

#4 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 29 August 2007 - 12:01 PM

I'd have loved to upload it as a software download to the page... maybe I can talk to somebody like MM so that an installer auto-installs the file and thus adjusts the paths.
You're right though, I'll split the topic for now.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#5 Torn

Torn

    Mmphumph!

  • Hosted
  • 2,238 posts
  • Projects:Only War 2
  •  Mmmph mm mumph umph!

Posted 29 August 2007 - 12:41 PM

Just tried it, works perfectly, excellent stuff.

#6 Daz

Daz

    title available

  • Hosted
  • 2,654 posts
  •  Revora Co-Founder

Posted 29 August 2007 - 12:44 PM

Just realised it closes when it's finished, was that intentional?
It'd be handy if you could keep it open so you can read the log if you want to.

#7 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 29 August 2007 - 01:11 PM

Oh, you're right, I even added that in my version but forgot to post it here. Fixed now.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#8 Daz

Daz

    title available

  • Hosted
  • 2,654 posts
  •  Revora Co-Founder

Posted 29 August 2007 - 01:14 PM

Cheers.

#9 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 25 October 2008 - 10:49 PM

the name of my mod is Oblivion
when i try to use this it says;

Please enter the mod name: Oblivion
Access is denied.
The directory or file cannot be created.
The system cannot find the path specified.
Building Mod Data...
Command Line: C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Mods\
maps\\map.xml /od:C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\B
uiltMods /iod:C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Built
Mods /ls:false /gui:false /UsePrecompiled:true /LinkedStreams:true
Command Line: C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Mods\
maps\\map.xml /od:C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\B
uiltMods /iod:C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Built
Mods /ls:false /gui:false /UsePrecompiled:true /LinkedStreams:true
BinaryAssetBuilder started
Critical: File C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Mods
\maps\\map.xml not found
Fixing Map Data....
Manifest Path: C:\Program Files\Electronic Arts\Command & Conquer 3\MOD SDK\Buil
tMods\mods\maps\\map.manifest
Manifest not found
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the file specified.
Press any key to continue . . .

#10 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 25 October 2008 - 11:07 PM

Do you have the mod files in the right place (i.e. .....\MOD SDK\Mods\Oblivion)? Seems like the system cannot find the path because it's just not there.

revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#11 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 25 October 2008 - 11:38 PM

It looks like you're trying to run buildmap.bat, not buildmod.bat.
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |

#12 Guest_Guest_*

Guest_Guest_*
  • Guests

Posted 26 October 2008 - 01:40 AM

ya wow... i swapped the buildmap with the buildmod code... but than why woudln't it work as if it was buildmod?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users