Adding game mode/era problems (Solved)

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Adding game mode/era problems (Solved)

Post by [RDH]Zerted »

I was working on a walkthrough on adding a new era to a map, but someone where along the line I missed a step. I can't seem to figure out what that step is. Any ideas?

The error I get when attempting to play the map:
FATAL: Could not open MISSION\YEXy_con.lvl

The error log says:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk in MISSION.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(112)
OpenScript(YEXy_con): script (5454733b) not found

Message Severity: 5
C:\Battlefront2\main\Battlefront2\Source\GameState.cpp(1283)
Could not open MISSION\YEXy_con.lvl
The steps I've done:
Hidden/Spoiler:
1) Create a new map. This example will use map YEX with the game mode Conquest.
2) Goto data_YEX\Common\Scripts\YEX and copy YEXg_con.lua to YEXy_con.lua
2a) Find the all = { in the SetupTeams table and change it to yuz = {
2b) Find the imp = { in the SetupTeams table and change it to newrep = {
3) Goto data_YEX\addme and open addme.lua
3a) On line 23 (the line with mapluafile = "YEX%s_%s") add era_y = 1 and mode_con_y = 1 to the table. Don't forget the commas between each item.
3b) Add AddDownloadableContent("YEX", "YEXy_con", 4) under the other AddDownloadableContent lines
4) Goto data_YEX\Common\mission
4a) Create YEXy_con.req and add the following:
ucft
{
REQN
{
"config"
"cor_movies"
}
REQN
{
"script"
"YEXy_con"
}
}
5) Goto data_YEX\Common and open mission.req
5a) Add "YEXy_con" to the lvl REQN section
Commander_Cody771
Vader's Apprentice
Posts: 1069
Joined: Thu Jun 07, 2007 5:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Looking for a new CPU
Contact:

Re: Adding game mode/era problems

Post by Commander_Cody771 »

I would totally restart the whole thing.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Adding game mode/era problems

Post by Teancum »

You covered all the steps. No munge errors I assume?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Adding game mode/era problems

Post by [RDH]Zerted »

Yeah, no errors. Guess I'll have to start over.
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Adding game mode/era problems

Post by obiboba3po »

i told this to a guy with the exact same problem as you, about 4-5 posts above this:
first, make sure you did not tamper with any of the layers in ze, that can mess things up if you dont know what youre doing. but what you want to do is go to the lvl_pc folder and make sure all the files are there. this is where the .lvl files are. some of em. the other ones are under the worlds/abc/world 1 folder, make sure you didnt delete abc.lvl!! if you did, go to this directory from one of the shipped worlds, copy their lvl file, and rename/edit it to remake the original. not sure if this helps or not, but its along the lines of what i did to fix that problem.
(ignore the noobish language)
but i had this same problem and actually fixed it. if you really want to know, i could backtrack to see exactly what i did.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Adding game mode/era problems

Post by Teancum »

No offense, but this is Zerted, not a n00b.
MandeRek
Sith Master
Sith Master
Posts: 2766
Joined: Tue Oct 02, 2007 10:51 am
Projects :: Battlefront Zer0
Games I'm Playing :: SWTOR
xbox live or psn: No gamertag set
Location: Ghosting around GT
Contact:

Re: Adding game mode/era problems

Post by MandeRek »

Ace_Azzameen_5 wrote:Yeah...still....There are no munge errors, but the files are being munged, right?
Sure, the main lvl is there, and the .scripts, but look at the part of the one .bat responsible for compiling the lvls ( I think its the main world munge.bat, near the bottom of the file.) It might refer to scripts by era somewhere or something, but that doesn't really make sense.
You might need to alter one of the munge bats...

You may also have missed a req somewhere. I tried adding holo a while back, did the addme, did the mission.req, and added the scripts to common.req, and it didn't show up.... (with addmap or a modded shell)

-Just in case...
Zerted already found out that there's no need to edit any munge.bat for a new era. We both added a new map with a new era, zerted did this one just from beginning, noting down everything step by step for his tut :) For your problem Ace, it seems that you missed the ***c_con.req, or whatever one in the mission folder. (i guess you also added lua's ofcourse? :P )
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: Adding game mode/era problems

Post by obiboba3po »

Teancum wrote:No offense, but this is Zerted, not a n00b.
yes, i was writing this for a n00b (notice the "ignore noobish language") who had the same problem. also, i thought it might help
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Adding game mode/era problems

Post by [RDH]Zerted »

I've finally had some time to start working on this again. I'm not sure exactly what I did to fix it, but I think the problem might have been that I had too many maps in my addon folder.

The above steps should working for adding custom eras to your maps. I'll make a more detailed topic when the era shell gets released (still don't know exactly when that will be).
Post Reply