Another MohaaTools problem....

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
(FBC)Turkish
Private
Posts: 7
Joined: Thu Apr 08, 2004 4:18 pm
Location: Pennsylvania
Contact:

Another MohaaTools problem....

Post by (FBC)Turkish »

i'm running XP.

According to the included instructions, i have to run the compilers for the maps (Q3map and MOHlight) in the command prompt.

XP's command prompt doesn't seem to work, tho. From what i've heard, XP doesn't even have DOS.

Has anyone else run into this problem, and is there a way around it?

Or do i have to go down to the local thrift store and pick up a Windows 95 machine, stick it on my LAN, and do all that putzing just to compile my maps? :?

Thanks -

Turkish
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post by Krane »

Why don't you use MBuilder? It does the work for you....
Image
User avatar
Scronty
Corporal
Posts: 41
Joined: Sun Mar 07, 2004 11:46 pm

Post by Scronty »

Afternoon, (FBC)Turkish.

The compilers (q3map and mohlight) require that all file paths are in short form.

i.e.
Long form:
C:\Program Files\EA GAMES\MOHAA

Short form:
C:\PROGRA~1\EAGAME~1\MOHAA

This goes for the full filepath+name of your map file as well.

Have a look at this (right-click and save-target-as):
http://www.scrontsoft.com/mohaa/SS_MOHA ... anager.zip

Image
Image
Image
Image
Image

If you set up the directories correctly (game directory, mohtools directory, and your map directory) you can then click the refresh button to display all *.map files within your map directory. Double-click whichever map you want to compile and the program will create a batch file (Build_Map.bat) which is then executed.

You can then take a look at the batch file to see what the compilers require you to put into the XP Command Prompt.

Cheers,
Scronty
Last edited by Scronty on Fri Apr 09, 2004 10:19 am, edited 1 time in total.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Mbuilder

Post by tltrude »

Mbuilder is a frontend program for the compilers. Once you have it set up, you can compile your map with just two clicks of the mouse.

http://users.1st.net/kimberly/Tutorial/mbuildertut.htm

Image
Tom Trude,

Image
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

what about if your cmd starts in my documents? it happens to me and so iv been using the BSP thing in the toolbar in MOHRad for all my SH stuff....
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Right, they need to be in short form, and XP does have DOS, because I can run q3map and mohlight and i have XP. Also you could make a folder: C:\mymaps\ and save your .map's there and that'd be easy to use in CMD.
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

the mohrad compilers go berzerk if u have ur folders deep inside ur drive with spaces in between the names
something like this c:\program files\ea games\mohaa
to fix this u gotta edit the commands and add quotes " " b4 and after the game path .if ur compiling path also has spaces in the name than u should do the same 4 it :wink:
Image
User avatar
Scronty
Corporal
Posts: 41
Joined: Sun Mar 07, 2004 11:46 pm

Post by Scronty »

Afternoon, lizardkid.

You could always use a full filepath for the compilers.
i.e.

Code: Select all

C:\PROGRA~1\EAGAME~1\MOHAA\MOHAAT~1\Q3map.exe -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\PROGRA~1\EAGAME~1\MOHAA\maps\sanubia\Sanubia.map
Afternoon, blue60007.

XP has a DOS Emulator; it isn't DOS. This means you can do some things on Win9x systems which you cannot on XP. People get confused because the DOS Emulator is called the Command Prompt on NT systems, while 9x systems have MS-DOS.

Afternoon, M&M.

You're correct that long filepaths+names require quotation marks surrounding them, however you could still use the filepath+name's short version without the need for quotes.

~~~~~~~~~~~~~~~~~~
A lot of people end up chucking their compilers and maps within a simple path (i.e. C:\myMaps) just so they can get the compilers to work (even if they're using MBuilder to generate the batch file for compiling).

Cheers,
Scronty
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

Come to think of it, your right. :oops: I can't do stuff on XP that I can do on Win98.
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I you want the command line use the start button then click on run or goto all program-accessories-command prompt . But mbuilder is much much easier . another way is to make a batch file with notepad and put this stuff in it . just name it mymap.bat

Code: Select all

"C:\MOHAATLS\Q3map.exe"  -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAATLS\mymap.map
"C:\MOHAATLS\Q3map.exe" -vis -fast  -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAATLS\mymap.map
"C:\MOHAATLS\MOHlight.exe" -fast  -gamedir C:\PROGRA~1\EAGAME~1\MOHAA C:\MOHAATLS\mymap.map
Image
(FBC)Turkish
Private
Posts: 7
Joined: Thu Apr 08, 2004 4:18 pm
Location: Pennsylvania
Contact:

Post by (FBC)Turkish »

My deepest thanks , all.

My compilers work now!

now all I've got to do is just figure out MOHrad....


-Turkish
Post Reply