Tinker Posted August 13, 2007 Share Posted August 13, 2007 To create this new level the best way in the long run is to edit the “GRAW2_Editor.bat†file to tell it what level you want to work with. If you know a little bit of BATCH programming you’ll notice when you open it that you don’t have to edit this file. It uses a wildcard which takes in the string written after the filename and uses it as the level to work with. Still, I suggest that you create a copy of “GRAW2_Editor.bat†and then do these changes inside the copy as that will help you in the future to faster and easier start the editor with the right level or if you want to create more then one level you can have one start file for each of them. Just give the new copy a descriptive name, like “GRAW2_Editor_Tutorial.bat†for example as the level I’m using is called “tutorialâ€, so you can easily find it. Inside the copy you should edit the last part so that it contains the name of your level, which will be the name of the level folder that will be created, after the “-path†tag and it should work fine. Contents of GRAW2_Editor_Tutorial.bat: graw2.exe -o context-editor.xml -path tutorial With that done you are now ready to start building your level. Run the new “GRAW2_Editor_Tutorial.bat†start file and let’s take a look at the first steps inside the editor. I`m not sure how to open and edit the .bat file? Quote Link to comment Share on other sites More sharing options...
Nutlink Posted August 13, 2007 Share Posted August 13, 2007 Edit it so it ends in .txt instead of .bat, modify the commands as needed, then change the file extension back to .bat Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 13, 2007 Author Share Posted August 13, 2007 Renamed to GRAW2_Editor_Tutorial.txt Still opens the editor *Edit* Just select edit and add text! Thnx Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 13, 2007 Share Posted August 13, 2007 Come on guys! It's a BATCH file! It's like "using a PC 101" Quote Link to comment Share on other sites More sharing options...
ROCO*AFZ* Posted August 13, 2007 Share Posted August 13, 2007 Use notepad Right click the batch and open with notepad (hold left shift while right clicking on the file to get the open with option) Make your changes Save as Instead of txt use all files in the dropdown and name the file with a .bat extension. LOL yeah wolf back to basics for the modders! Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 13, 2007 Author Share Posted August 13, 2007 Hey, this is really good way to go. Each mod i make now in the editor, I have a seperate shortcut to fire it straight back up into the editor. Each save i make, it doesn`t overwrite but make a new incremented version. I like this setup. Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 13, 2007 Share Posted August 13, 2007 Hey, this is really good way to go. Each mod i make now in the editor, I have a seperate shortcut to fire it straight back up into the editor. Each save i make, it doesn`t overwrite but make a new incremented version. I like this setup. That's the idea. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 14, 2007 Author Share Posted August 14, 2007 I`ve made a complete set of day verses night maps available. Covering all the T v T maps, and the cooperative also. Made a new folder called "night-verses-day" in Data\levels\custom_levels, dropped the levels folder in, but not working in game. They show if i just drop the levels folder in local/english folder. I guesss i missed something? How to activate the mod? Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 14, 2007 Share Posted August 14, 2007 I`ve made a complete set of day verses night maps available. Covering all the T v T maps, and the cooperative also. Made a new folder called "night-verses-day" in Data\levels\custom_levels, dropped the levels folder in, but not working in game. They show if i just drop the levels folder in local/english folder. I guesss i missed something? How to activate the mod? The world_info.xml must be in the first subfolders under level or the first subfolders under custom_levels. I think you have too many folders. If you can open them in the editor where they are though under data/levels/custom_levels, they should how up in game. And to create the actual mod, check the TXT located with the bundle tool. And look inside context.xml on how to activate it. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 Creating My_Mod I have: my_mod/ data/ lib/ levels/ Now how to do this bit: Then run "bundle.bat My_Mod" to bundle. Have i to have My_Mod in a particular folder ready to bundle? Do i need to rename the bundler, as it is not working here? Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 16, 2007 Share Posted August 16, 2007 Creating My_Mod I have: my_mod/ data/ lib/ levels/ Now how to do this bit: Then run "bundle.bat My_Mod" to bundle. Have i to have My_Mod in a particular folder ready to bundle? Do i need to rename the bundler, as it is not working here? Putting the "my_mod" folder in the bundler folder should do it. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 Run the Bundle, it creates a folder named -d. Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 16, 2007 Share Posted August 16, 2007 Run the Bundle, it creates a folder named -d. Did you run the bundler with the line found in the TXT file? I guess I'll have to download the modding tools. Don't have GRAW2 at home... 11 days until the new computer arrives... don't remember what the txt says. Edit: bundle.bat My_Mod Not the bundle.exe, the bundle.bat followed by the folder name. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 That is the issue right there, How do i run the Bundler with the line found in the text file? Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 16, 2007 Share Posted August 16, 2007 That is the issue right there, How do i run the Bundler with the line found in the text file? Starts menu -> run -> find bundler.bat and add mod name after it. Example: "C:\Program Files\UBI\GRAW2\public_tools\public_tools\bundler\bundle.bat" my_mod Or Use the Command Prompt. Go to the bundler folder and run the line. EDIT: Or maybe Drag the folder and drop it on the BAT file... could work as it's XP standard when you drop files on BAT files... These methods where not listed as they are standard operating system functions. Like editing a Batch file, which you can also do. You can open the BAT file and replace all the "%1" with your mod folder name. "%1" is replaced with the first string entered after the BAT file when running it, so it's the same thing. Example of this done for "my_mod": @ECHO OFF ECHO Compiling xml files to .xmb @bundler.exe compile-xml my_mod ECHO Compiling dsf files to .dxe @bundler.exe compile-scripts my_mod ECHO Building bundle file to my_mod.bundle @bundler.exe quick-bundle -r my_mod my_mod -D my_mod.bundle ECHO Done! @Pause EDIT2: Drag and drop didn't work. The path to the bundler catalog must be registered for it to work apparently. But 1 and 4 worked fine when I tested it now without the game. And 2 is like 1 but you have to "cd" your way to the bundler catalog, so that works as well. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 Thanks for that, Bundle is complete. Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 16, 2007 Share Posted August 16, 2007 Thanks for that, Bundle is complete. See, it wasn't that hard. I guess people miss out on the BAT part on the TXT, or simply don't know their computer well enough. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 To use the mod in the game you have to copy the bundle file to the mods directory in your GRAW2 root dir. To enable the mod you have to edit your context.xml file and add the line: <mod_bundle name="my_mod"/> The mod_version.xml file is used to set the name and version of your mod, which will prevent people with the wrong version to join a server hosting the mod. Check example file found in the bundler folder. This is not used for custom levels, only mods. I don`t see my_mod. This is mission 03 stripped down for testing. So I guess i just select co-op campaign and mission 03 right? Quote Link to comment Share on other sites More sharing options...
GRIN_Wolfsong Posted August 16, 2007 Share Posted August 16, 2007 I don`t see my_mod. This is mission 03 stripped down for testing. So I guess i just select co-op campaign and mission 03 right? First, did you move your mod to the correct folder? I think you have but have to ask. Second, did you put the mod activation line into your context.xml? I guess you have this as well but have to ask. Third, did you change the name in the world_info.xml? The name tag in the first world_info tag (see last chapter in editor tutorial)? If yes on 1 & 2 and no on 3, it mission03 I would guess. Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 16, 2007 Author Share Posted August 16, 2007 Ok, I`ll keep at it, thnx. Quote Link to comment Share on other sites More sharing options...
Colin Posted August 16, 2007 Share Posted August 16, 2007 I think money needs to start changing hands here. Quote Link to comment Share on other sites More sharing options...
TRC Posted August 16, 2007 Share Posted August 16, 2007 Now it makes some sense. I get mod to bundle fine, get game to recognize it fine, get same crash as using local file---cant find member: hud_manager in type <Statsblock:global>. Think I need to find Snow's post about extracting patch file to see what files (sb_global I'm guessing) that I made changes to in my mod, have new files out and I need to change. Thanks again Wolf. Quote Link to comment Share on other sites More sharing options...
Lightspeed Posted August 18, 2007 Share Posted August 18, 2007 ok this is driving me mad - i think i have the files necessary so far to trial this gametype TRR on Hacienda - do i have to bundle it to test it? if so this is what i have done - placed al files in a folder called "trr_hacienda" - i place that folder in public tools/bundler folder. i can see the .bat and i right click and edit properties path so that it says bundle compile-xml -trr_hacienda and run it. all i see is a folder called 'dm' is it? or 'cm' and inside is is a folder called bundle and inside that 2 files called quick.bundle and quick.bin? 1 file weighs okb the other 1kb. i have tried varous path names but nothin - ###### am i doing wrong? Quote Link to comment Share on other sites More sharing options...
Tinker Posted August 18, 2007 Author Share Posted August 18, 2007 @ECHO OFF ECHO Compiling xml files to .xmb @bundler.exe compile-xml trr_hacienda ECHO Compiling dsf files to .dxe @bundler.exe compile-scripts trr_hacienda ECHO Building bundle file to trr_hacienda.bundle @bundler.exe quick-bundle -r trr_hacienda trr_hacienda -D trr_hacienda.bundle ECHO Done! @Pause Try that, not too sure, just learning here. Quote Link to comment Share on other sites More sharing options...
Lightspeed Posted August 18, 2007 Share Posted August 18, 2007 i bow down to you o great one - it worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.