Jump to content

GRAW2 Map making problems


**STAR**

Recommended Posts

I am new to Graw2 map modding, I have watched many many tutorials about it and using the editor isn't a problem but when it comes to the xml files...

When I create a map, I first add the stuff I want (such as trees, buildings and vehicles) then I start making AI Graphs around the map for Cooperate map. After that I place AI's and then I make player spawn and extraction point. But then if I put the files in custom levels, then startup the game and create a server with that map the game crashes.

Crash in application version: 30899.3048

Archive::checked_read() Attempt to read past end of archive 'data\levels\custom_levels\world_xml\mission.xml'

SCRIPT STACK:

data\lib\utils\worldinfo.dsf(0)

data\lib\setups\setup.dsf(0)

data\level\level.dsf(0)

Renderer: threaded

Physics : threaded

Can anyone help me with this?

Link to comment
Share on other sites

Hi Star,

This part of your error log "Attempt to read past end of archive" is due to a problem with your scripting.

You need to check your xml files for syntax errors, there may be a tag that isn't closed or a missing quote, forward-slash, equals sign, it could be anything.

What do you use to create your xml files, XML marker is a good program for this as it flags most (but not all) errors in the script, it's free to use so just google for it.

These problems can be hard to find.

:thumbsup:

John

Link to comment
Share on other sites

**STAR**,

Where did you place your mission? Could you write down your (full) path?

The path in the error looks a bit weird to me...

Archive::checked_read() Attempt to read past end of archive 'data\levels\custom_levels\world_xml\ mission.xml' ??

It tries to read the mission.xml from within the world_xml??

Link to comment
Share on other sites

Ok, this is how it looks like: Ghost Recon Advanced Warfighter 2/custom levels/coop_Bridge_STAR_v1/data/levels/custom levels/world_xml/

Inside the world_xml folder there are these files: ai.gph ai_coarse.gph massunit.bin mission.xml texture_scope.xml unit_list.xml world.xml

world_info.xml

And this is what the mission.xml and world_info.xml files contain:

mission.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<mission_script>

<xi:include href = "/data/levels/common/common.xml#xpointer(/common/*)"/>

world_info.xml:

<?xml version="1.0" encoding="UTF-8"?>

<world_info name="coop_Bridge_STAR_v1">

<world path="world.xml">

</world>

<mission_script path="mission.xml">

</mission_script>

<environments path="/data/levels/global_environments.xml"/>

<massunits path="massunit.bin"/>

<texture_scope path="texture_scope.xml"/>

<graph name="coarse" path="ai_coarse.gph"/>

<graph name="main" path="ai.gph"/>

<world_info path="/data/levels/common/coop_settings.xml" type="coop">

</world_info>

</world_info>

Is there anything missing here? In the mission.xml maybe? Thanks for the help.

Link to comment
Share on other sites

**STAR**,

It seems to me your mapstructure is not good. (MAKE A COPY OF ALL YOUR FILES, IN CASE I AM NOT CORRECT! :thumbsup: )

This is what I have, so perhaps you need to try and swap things around a bit.

Place all of your files into: data / levels / custom_levels / coop_Bridge_STAR_v1

Now place the files "unitlist.xml" and "world.xml" into the this folder: Data / Levels / Custom_levels / coop_Bridge_STAR_v1 / xml

This should work for you, as it did for me! ;)

Link to comment
Share on other sites

**STAR**,

Yes, I made a map.....well....still working on it actually. There might be a problem with the mission.xml, but I'm sure that the whole folder structure is incorrect. Which prevents the game from starting up.

All files should directly be in the folder "coop_Bridge_STAR_v1".

Within your folder "coop_Bridge_STAR_v1" is only one other folder, called "xml" and this contains the files: "unitlist.xml" and "world.xml".

This should be the correct path.

data / levels / custom_levels / coop_Bridge_STAR_v1 / *All of your files*

data / levels / custom_levels / coop_Bridge_STAR_v1 / XML / *Only the unitlist.xml and world.xml*

:thumbsup:

Link to comment
Share on other sites

Wait a moment, can world_info be the problem? If you look at this:

<environments path="/data/levels/global_environments.xml"/>

Can that be the problem you think? I don't have any global_environments.xml file. Should I create one?

Okay I will try that too

Link to comment
Share on other sites

I don't think that is it, because I have checked and I don't have a filename like that either.

I noticed that in the error message the is a space in front of mission.xml ...perhaps you might check that too.

Archive::checked_read() Attempt to read past end of archive 'data\levels\custom_levels\world_xml\ mission.xml'

:thumbsup:

Link to comment
Share on other sites

I tried it, Ghost Recon Advanced Warfighter 2/custom_levels/coop_Bridge_STAR_v1/data/levels/custom levels/coop_Bridge_STAR_v1/xml

not working either :wacko:

oh ok

I open mission.xml with XML Marker and it says the file has 2 errors, but it wont tell me what the error is or how to change it.

Link to comment
Share on other sites

Nooooo.... :rolleyes:

Ghost Recon Advanced Warfighter 2/custom_levels/coop_Bridge_STAR_v1/data/levels/custom levels/coop_Bridge_STAR_v1/xml

Ghost Recon Advanced Warfighter 2/custom_levels/coop_Bridge_STAR_v1 = ALL FILES

Ghost Recon Advanced Warfighter 2/custom_levels/coop_Bridge_STAR_v1/XML = Only the unitlist.xml and world.xml

:)

So,...

The full path should be:

Ghost Recon Advanced Warfighter 2 \ Data \ Levels \ Custom_levels \ coop_Bridge_STAR_v1

You need to put all of your files into your folder "coop_Bridge_STAR_v1" and within this folder will be the xml folder and that one only contains the two xml's: unitlist.xml and world.xml

:)

Link to comment
Share on other sites

Don't think that will do you any good....You still wouldn't know what causes your crash as my mission.xml will be different from yours.

If you really think it is your mission.xml (which I really doubt), you can email it to me and I can take a look for you. Posting everything here is not the best way to track down errors.

I have pm'd you a little while ago, so you can email it to me if you wish.

The map structure I posted should be correct. That means that if you did it exactly as described, there is ALSO an error in your mission.xml. I suggest you keep the map structure I wrote before though.

:thumbsup:

Link to comment
Share on other sites

Star, it would be much better if you were to post your mission here then we/I could take a look and get everything right for your mission.

You need to make sure your world_info.xml has the correct path names to your files.

The mission.xml is different for each mission so posting that won't be much help, you need to get your file structure right first then make sure your world_info is pointing to the correct file/folder names.

There is a wealth of information here for getting a coop mission working:

http://graw2.pbworks.com/w/page/11815685/FrontPage

Link to comment
Share on other sites

Star, Spik@ sent me your files.

TBH, there is nothing there that is worth keeping as your mission script only contains about three lines of code so there is no hope of the mission working plus there are no paths defined in your world_info.xml.

The texture_scope.xml doesn't have any textures loaded so nothing would show up in the game.

The world.xml and the unit_list.xml look ok but those two files are generated by the editor so you don't normally need to change them.

My honest opinion is that go go and study the link I sent you for the GR:AW2 wiki, it lists all the steps you need to give you a basic understanding of what you need to get you started with modding GR:AW2.

When I first started modding I followed all the tutorials on the wiki to get myself started, once you have done that we can then help you to progress with your modding.

There is a sample mission on the wiki that you can download along with a tutorial that explains all the steps needed to get your first mission up and running.

Link to comment
Share on other sites

Yes I have been looking alot and now I found the part for mission.xml etc. I have tried to do like davros did, unbundle an existing coop map but for me it doesn't work, tried it several times, exactly like he does it. So I started to experiment abit myself. Now there is a map I made for testing, I downloaded that mission.xml and did some changes in it.

But it also crashes for some reason. I will look in the files if there are anything that could be missing though.

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