Page 1 of 1
Map Mods
Posted: Wed May 12, 2004 4:23 pm
by Xtreme
Hi, well I'm new and I wondering if anyone knows how to mod stock maps. Like adding cars, guns, crates to get on roofs that stuff. I tried some stuff but doesn't work. any ideas??
Posted: Wed May 12, 2004 4:26 pm
by Mj
You can modify the script to add random objects i think... but ive never done it so youll have to wait for someone who knows to post
Mj
Posted: Wed May 12, 2004 4:32 pm
by blue60007
Adding stuff can be done through scripting (only entities, not brushes). It can also be done with decompiling the map, which is VERY messy and would take hours and hours and hours of hard work to fix it up. But things can be added through the script...
Posted: Wed May 12, 2004 7:53 pm
by M&M
well,as blue said .decompiling is very messy .practically its impossible to make an exact copy of the map after u decompile it and fix all the possible errors that might occur !!
however ,u can use decompiles to determine where ur guns ,crates (models & entities) will be spawned by script ,and to have a look at the general design of things

.
look at the tutorial section ,it has a few scripting tuts

Posted: Wed May 12, 2004 8:02 pm
by MadMapper
You could make a model that was a wall and build a building out of them...

Posted: Wed May 12, 2004 8:55 pm
by Bjarne BZR
Posted: Wed May 12, 2004 9:42 pm
by Xtreme
Well thx for the info I'll try to learn the script stuff may take me abit. Did some scripting but not like this.
Posted: Wed May 12, 2004 9:48 pm
by Xtreme
I forgot to ask is there a script program i have not found one.
Posted: Thu May 13, 2004 7:28 am
by Bjarne BZR
Duncan Weir (Scorpio) made a "MOHAA script editor", or just use any text edtor ( I recommend
http://www.textpad.com/ )
editor
Posted: Thu May 13, 2004 11:40 am
by tltrude
There is also a simple in-game editor for the script. Just type "editscript" in the console. You have to hit Ctrl + S to save it. The modified version of the script will then show up in mohaa/main/maps/dm or obj.
You can then open it by changing the extension form .scr to .txt and using Notpad or Wordpad--any text editor.
Re: editor
Posted: Thu May 13, 2004 4:35 pm
by blue60007
tltrude wrote:There is also a simple in-game editor for the script. Just type "editscript" in the console. You have to hit Ctrl + S to save it. The modified version of the script will then show up in mohaa/main/maps/dm or obj.
You can then open it by changing the extension form .scr to .txt and using Notpad or Wordpad--any text editor.
Yes that ingame editor is handy for changing one or two things in your map while trying to debug the script. More handy than closing out of MOH then changing what you want, restart MOH and reload your map. Here you can just change, save, close out of the editor, then type 'restart' in the console.
Posted: Thu May 13, 2004 4:44 pm
by agentmad007
restart dont apply change sometimes .....
better to reload the map i think

that what i do (very usefull this command "editscript")
you can even edit your tiki file , your shaders ......but all those files dont have to be in a pk3 if you want to correct them and test whitout leaving moh
for tiki file and shaders or whatever( something that you can edit with notepad)
type editscript then file open. Here you ll see ".." .Select it to go to parent directory , then select the file you want to edit in the appropriate folder

Posted: Thu May 13, 2004 5:19 pm
by jv_map
I usually test by running mohaa in a little window

then I can make any required changes to the scripts using an advanced editor which is just a little bit more convenient than the ingame script editor

Posted: Thu May 13, 2004 9:44 pm
by blue60007
Yeah, personally I think that in-game editor is annoying, I always use Notepad, simple but effective.
Posted: Tue May 18, 2004 3:56 pm
by M&M
restart dont apply change sometimes .....
better to reload the map i think that what i do (very usefull this command "editscript")
well,i havent seen that b4 .everytime i restarted the changed script would work fine ,unless u opened a different file .
I usually test by running mohaa in a little window

then I can make any required changes to the scripts using an advanced editor which is just a little bit more convenient than the ingame script editor
i usually have mohaa in a window too !! but ofcourse my scripting abilites are limited (in comparison with urs jv ).so i dont need an advanced editor .
what does it do anyways? isnt an "editor" some program that u can type script in?
Yeah, personally I think that in-game editor is annoying, I always use Notepad, simple but effective.
there is also a notepad in mohaa

just type notepad in the console (i think)
i agree also ,deleting and highlighting stuff is sometimes annoying ,but it stays alot more handier than having mohaa in a window and scripting in notepad
