Page 1 of 1

Adding game mode/era problems (Solved)

Posted: Sun Mar 09, 2008 8:11 pm
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

Re: Adding game mode/era problems

Posted: Sun Mar 09, 2008 9:12 pm
by Commander_Cody771
I would totally restart the whole thing.

Re: Adding game mode/era problems

Posted: Sun Mar 09, 2008 10:30 pm
by Teancum
You covered all the steps. No munge errors I assume?

Re: Adding game mode/era problems

Posted: Sun Mar 09, 2008 10:45 pm
by [RDH]Zerted
Yeah, no errors. Guess I'll have to start over.

Re: Adding game mode/era problems

Posted: Mon Mar 10, 2008 9:47 pm
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.

Re: Adding game mode/era problems

Posted: Mon Mar 10, 2008 10:20 pm
by Teancum
No offense, but this is Zerted, not a n00b.

Re: Adding game mode/era problems

Posted: Tue Mar 11, 2008 10:21 am
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 )

Re: Adding game mode/era problems

Posted: Tue Mar 11, 2008 5:00 pm
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

Re: Adding game mode/era problems

Posted: Sat Apr 05, 2008 1:00 am
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).