**STAR** Posted October 31, 2011 Share Posted October 31, 2011 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? Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted October 31, 2011 Share Posted October 31, 2011 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. John Quote Link to comment Share on other sites More sharing options...
Spik@ Posted October 31, 2011 Share Posted October 31, 2011 **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?? Quote Link to comment Share on other sites More sharing options...
**STAR** Posted October 31, 2011 Author Share Posted October 31, 2011 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. Quote Link to comment Share on other sites More sharing options...
Spik@ Posted November 1, 2011 Share Posted November 1, 2011 **STAR**, It seems to me your mapstructure is not good. (MAKE A COPY OF ALL YOUR FILES, IN CASE I AM NOT CORRECT! ) 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! Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 Well, I tried that now but it didn't work either, I think that it's the mission.xml. Have you made a map? In that case can you show me how your mission.xml looks like? Thanks Quote Link to comment Share on other sites More sharing options...
Spik@ Posted November 1, 2011 Share Posted November 1, 2011 **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* Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 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 Quote Link to comment Share on other sites More sharing options...
Spik@ Posted November 1, 2011 Share Posted November 1, 2011 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' Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 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 oh okI 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. Quote Link to comment Share on other sites More sharing options...
Spik@ Posted November 1, 2011 Share Posted November 1, 2011 Nooooo.... 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 Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 It still crashes... Can you copy everything that's in your mission.xml and paste here? Maybe I can see then whats the problem Quote Link to comment Share on other sites More sharing options...
Spik@ Posted November 1, 2011 Share Posted November 1, 2011 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. Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted November 1, 2011 Share Posted November 1, 2011 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 Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 So John, do you want me to send you all the files? I have been on that website alot but at this point it wont help. Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted November 1, 2011 Share Posted November 1, 2011 Yep, just send all your files and folders for the mission and I will take a look then send you the fixed version. Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 How am I gonna send it? Through email or upload to ghostrecon.net? Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted November 1, 2011 Share Posted November 1, 2011 You need to upload your files to a file hosting site like mediafire which is free to use then post the download link here. Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 1, 2011 Author Share Posted November 1, 2011 I've tried mediafire but world.xml failed to upload Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted November 1, 2011 Share Posted November 1, 2011 Keep all your files in their folders then put all your folders into a separate folder then upload that so everything is in one folder. Quote Link to comment Share on other sites More sharing options...
mexicobob Posted November 1, 2011 Share Posted November 1, 2011 (edited) It looks to me that your mission.xml file needs a closing tag at the end: </mission_script> That may be the problem for reading past the end of file. Edited November 1, 2011 by mexicobob Quote Link to comment Share on other sites More sharing options...
JohnTC02 Posted November 1, 2011 Share Posted November 1, 2011 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. Quote Link to comment Share on other sites More sharing options...
**STAR** Posted November 2, 2011 Author Share Posted November 2, 2011 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. 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.