Map Mods
Moderator: Moderators
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
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
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
-
Bjarne BZR
- Site Admin
- Posts: 3298
- Joined: Wed Feb 05, 2003 2:04 pm
- Location: Sweden
- Contact:
Duncan Weir (Scorpio) made a "MOHAA script editor", or just use any text edtor ( I recommend http://www.textpad.com/ )
editor
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.
You can then open it by changing the extension form .scr to .txt and using Notpad or Wordpad--any text editor.
Re: 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.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.
-
agentmad007
- Brigadier General
- Posts: 570
- Joined: Tue Feb 24, 2004 3:52 pm
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

better to reload the map i think
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
well,i havent seen that b4 .everytime i restarted the changed script would work fine ,unless u opened a different file .restart dont apply change sometimes .....
better to reload the map i think that what i do (very usefull this command "editscript")
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 .I usually test by running mohaa in a little windowthen 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
![]()
what does it do anyways? isnt an "editor" some program that u can type script in?
there is also a notepad in mohaaYeah, personally I think that in-game editor is annoying, I always use Notepad, simple but effective.
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





