How do I modify some of Marvel4's map scripts? [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
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

How do I modify some of Marvel4's map scripts? [Solved]

Post by Indytotof »

Hello modders and mappers, here is Indytotof for a little question.

I've downloading the Marvel4's bf1 conversion pack scripts on the dedicaced topic that he generously gave to us. I've tried to moddified somes things on one of the map but the map didn't loaded and freeze the game.

So that is the question:

How modifying them using the Mod Tools ?

Thanks.
Last edited by Indytotof on Tue Jun 24, 2014 3:44 pm, edited 1 time in total.
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: How to moddifying some Marvel4's map scripts ?

Post by commanderawesome »

First, can I see that topic? I'd like to use them, too.
Back on this topic, can I see your modified scripts?
And, You SHOULD be able to use them like any custom map script.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to moddifying some Marvel4's map scripts ?

Post by Indytotof »

Here is the topic, second link on:

viewtopic.php?f=64&t=24321&hilit=marvel4%27s+assets

And I've deleted the modified one. That's why I've requested some help.
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: How to moddifying some Marvel4's map scripts ?

Post by commanderawesome »

Ok, are you trying to modify the existing levels, or trying to make new levels?
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to moddifying some Marvel4's map scripts ?

Post by Indytotof »

commanderawesome wrote:Ok, are you trying to modify the existing levels, or trying to make new levels?
Just modify them. Make somes units and heroes editing to make them more accurate to the movies (The Clone Wars included).

The maps I want to moddify are:

- Kamino: Tipoca City (add ep2 clones)

- Tatooïne: Dune Sea (add ep2 clones, Anakin as Republic hero, Count Dooku as CIS hero and Luke jedi as Alliance hero)

- Tatooïne: Mos Eisley (add ep2 clones, Anakin as Republic hero and Count Dooku as CIS hero)

- Yavin: 4 Arena (add ep2 clones and make the Alliance more accurate as they appears on A New Hope and add Darth Vader as the Empire hero)

- Rhen Var: Citadel (add General Grievous as CIS hero)

- Rhen Var: Harbor (add General Grievous as CIS hero)

I know how to do that but, when I've trying with Yavin 4: Arena, black screen freeze.
Last edited by Indytotof on Sat Jun 21, 2014 2:44 am, edited 1 time in total.
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: How to moddifying some Marvel4's map scripts ?

Post by commanderawesome »

Ok, then, have you tested the other levels? And are these just for conquest or for other modes, too?

The following is some tips that might help with your problem, you probably already know this stuff, but I figured I'd post anyway just in case:
Hidden/Spoiler:
Make sure the folders for the mission scripts have the 3-letter name of the map the script is for, not the 3-letter name you used in the mod tools. Also, if you get a munge error involving the mission script, look at the log after the munge (in which you should NEVER, EVER, EVER stop a munge), it should point to the line where the problem is, then open the script in notepad, select "go to" in the menu and type in the line number.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to moddifying some Marvel4's map scripts ?

Post by Indytotof »

OK, there is my problem:

I've created a data_Y4A using the Mod Tools. I've editing the mission.lua file on the common folder and paste the "Y4A" folder, containing all the scripts, on the script folder. I've editing all the scripts and munge it.

Note: I didn't, in any ways, stop the munging process and recieved any munge log to indicate me some munge errors.

I've copy/paste the edited mission.lvl on the Y4A's lvl_pc located on my addon folder and run the game. The problem is that the map didn't even load and freezed on a black screen. A log appears says "Could not open the Y4Ac_con.lvl".

I just don't know why i've recieved that because, on my point of view, I do all right, I guess.
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: How to moddifying some Marvel4's map scripts ?

Post by commanderawesome »

That usually means there is a problem with one of the reqs or the addme.lua. Make sure those are in order. And did you make sure the script for ALL modes are included? Because, otherwise, only the modes included will work. Did you play it using SWBF2's test program? It should be called "BF2_ModTools.exe" or something like that and it creates a log file called "BFront2.log", which will give you more info on the crash.
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to moddifying some Marvel4's map scripts ?

Post by Indytotof »

Of course i'm using BF2 Mod tools.

OK, thanks. I will check it.
User avatar
commanderawesome
Field Commander
Field Commander
Posts: 971
Joined: Tue Aug 13, 2013 11:58 pm
Projects :: Skin Changer - Warfront - Other stuff
Games I'm Playing :: SWBF SWTOR KotOR EaW
xbox live or psn: AaTc_CmdrAwesome
Location: The Universe

Re: How to moddifying some Marvel4's map scripts ?

Post by commanderawesome »

That was just in case you weren't. ;)
Indytotof
Chief Warrant Officer
Chief Warrant Officer
Posts: 348
Joined: Fri Jun 06, 2014 6:58 am
Projects :: SWBF2 Sides Overhaul Mod
Games I'm Playing :: Battlefront 2
xbox live or psn: No gamertag set
Location: Senlis, France

Re: How to moddifying some Marvel4's map scripts ? [Solved]

Post by Indytotof »

All works fine. Some scripts haven't be used but all the used modified scripts works well.

Problem solved !
Post Reply