Jump to content

Creating your mod help.


Recommended Posts

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?

:blink:

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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. :thumbsup: Each save i make, it doesn`t overwrite but make a new incremented version.

I like this setup.

:D

Link to comment
Share on other sites

<_<

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?

Link to comment
Share on other sites

<_<

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.

Link to comment
Share on other sites

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?

:wacko:

Link to comment
Share on other sites

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?

:wacko:

Putting the "my_mod" folder in the bundler folder should do it.

Link to comment
Share on other sites

bundle-01.jpg

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. :P 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.

Link to comment
Share on other sites

That is the issue right there, How do i run the Bundler with the line found in the text file?

:unsure:

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.

Link to comment
Share on other sites

To use the mod in the game you have to copy the bundle file to the mods directory in your GRAW2 root dir. :thumbsup:

To enable the mod you have to edit your context.xml file and add the line: <mod_bundle name="my_mod"/>

:thumbsup:

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?

<_<

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

@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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...