addme.lua Setup

Started by Glitch, January 24, 2013, 11:01:25 AM

Previous topic - Next topic
January 26, 2013, 04:28:19 AM #30 Last Edit: January 26, 2013, 05:26:53 AM by Buckler
Quote from: -RepublicCommando- on January 25, 2013, 09:36:15 PM
If replacing the ODF doesn't work, I'd say it's because the system is overloaded with all of those planets!

Stop posting in this thread RC.  The things you are posting are incorrect and are confusing the issue.


-------------------------------

As we have mentioned SWBF is more difficult to mod that SWBF2 due to its inherent limitations.  You will be limited as to the number of maps you can put in the addme script--total for all addon levels is something like 50 which include each era.

If you want all of the stock maps to have custom sides, you can do a stock mission.lvl replacement.  But then you might as well just replace the stock side lvl files and be done with it.  Such are our limitations.

I have noticed that you are posting on Gametoast.  As you have found, there are people that mod SWBF2 there that have a certain attitude about modding SWBF.  I try to stay away from them.  It is impossible to convince them that some people still prefer SWBF and they will make negative comments regarding the game we like to play and mod here.



Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: BucklerIf you want all of the stock maps to have custom sides, you can do a stock mission.lvl replacement.  But then you might as well just replace the stock side lvl files and be done with it.  Such are our limitations.

I have noticed that you are posting on Gametoast.  As you have found, there are people that mod SWBF2 there that have a certain attitude about modding SWBF.  I try to stay away from them.  It is impossible to convince them that some people still prefer SWBF and they will make negative comments regarding the game we like to play and mod here.

Even if I were to replace the sides, they would only use the original units that I edited. Not the ones I added to the side. How would I tell the game that i'd like to use a specific unit on a certain map?

For Example: I added Geonosis Droids (Exact duplicates of the original units, just different skins) I'd like to use these units on Geonosis: Spire and Kamino: Topica City, what would I need to do in order for that to work?

They can be a bit thick skulled when it comes to Battlefront I. But they do their best to help.

Quote: At times of chaos, humans are subjected to emotion rather than logic.

Quote from: Glitch on January 26, 2013, 07:06:33 AM
Even if I were to replace the sides, they would only use the original units that I edited. Not the ones I added to the side. How would I tell the game that i'd like to use a specific unit on a certain map?

For Example: I added Geonosis Droids (Exact duplicates of the original units, just different skins) I'd like to use these units on Geonosis: Spire and Kamino: Topica City, what would I need to do in order for that to work?

OK, then what I suggest is that you do a mission.lvl replacement.

The stock mission.lvl file resides in this folder:
C:\Program Files\LucasArts\Star Wars Battlefront\GameData\Data\_LVL_PC

We have a very nice tool called a Mission Builder by BattleBelk:
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=319

It contains all the stock map luas and a munger.  Just edit each map lua to call on your new sides,
where ever they may be located.  Munge.  Replace the stock mission.lvl file.



Quote from: Glitch on January 26, 2013, 07:06:33 AM
They can be a bit thick skulled when it comes to Battlefront I. But they do their best to help.
Some of them do their best to help, but some go out of their way to not help.  Anyway, enough said on that  ;)

Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

-Munged the script. (Added dc: to the correct locations within all the CW .lua files)
-Munged the side. (No recent changes, worked in game when cis.lvl was replaced without the new mission.lvl)
-Backed up the original cis.lvl and mission.lvl
-Replaced both, tested in game with SPTest.exe
-Crashes on all CW missions, runs on GCW missions.
-SPTest.exe did not generate any error log, just this "Opened logfile BFront.log  2013-01-29 1505"


:confused:
Quote: At times of chaos, humans are subjected to emotion rather than logic.

Did you specify your new CIS units in each LUA ?


-- Start sidelvls
--no dc:SIDE if using stock file replacement
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka");
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper");
--end sidelvls
--start loadouts
SetTeamName(CIS, "CIS")
SetTeamIcon(CIS, "cis_icon")
AddUnitClass(CIS, "cis_inf_battledroid",10)
AddUnitClass(CIS, "cis_inf_assault",1)
AddUnitClass(CIS, "cis_inf_pilotdroid",2)
AddUnitClass(CIS, "cis_inf_assassindroid",2)
AddUnitClass(CIS, "cis_inf_droideka",1)
SetHeroClass(CIS, "cis_inf_countdooku")
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet


Geonosis Droid Skin Setup
[spoiler]
    ReadDataFile("dc:SIDE\\cis.lvl",
        "cis_fly_droidfighter_dome",
        "cis_fly_fedcoreship_dome",
        "cis_fly_geofighter",
        "cis_fly_techounion_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka",
        "cis_tread_hailfire",
        "cis_walk_spider")

--  CIS Stats
    SetTeamName(CIS, "CIS")
    SetTeamIcon(CIS, "cis_icon")
    AddUnitClass(CIS, "cis_inf_battledroid_geo",11)
    AddUnitClass(CIS, "cis_inf_assault_geo",3)
    AddUnitClass(CIS, "cis_inf_pilotdroid_geo",4)
    AddUnitClass(CIS, "cis_inf_assassindroid_geo",4)
    AddUnitClass(CIS, "cis_inf_droideka",3)
    SetHeroClass(CIS, "cis_inf_countdooku")[/spoiler]

Standard Droid Skin Setup
[spoiler]
    ReadDataFile("dc:SIDE\\cis.lvl",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");

--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
    AddUnitClass(CIS, "cis_inf_battledroid",11)
    AddUnitClass(CIS, "cis_inf_assault",3)
    AddUnitClass(CIS, "cis_inf_pilotdroid",4)
    AddUnitClass(CIS, "cis_inf_assassindroid",4)
    AddUnitClass(CIS, "cis_inf_droideka",3)
    SetHeroClass(CIS, "cis_inf_countdooku")[/spoiler]

cis_inf_basic.req setup
[spoiler]ucft
{
   REQN
   {
      "class"
      "cis_inf_battledroid"
      "cis_inf_assault"
      "cis_inf_assassindroid"
      "cis_inf_pilotdroid"
      "cis_inf_battledroid_geo"
      "cis_inf_assault_geo"
      "cis_inf_assassindroid_geo"
      "cis_inf_pilotdroid_geo"
   }
}[/spoiler]







Quote: At times of chaos, humans are subjected to emotion rather than logic.

it is looking for a side file here:
  ReadDataFile("dc:SIDE\\cis.lvl",


which will depend on what the name of the map lua is (and it expects it to reside in Addon, inside of that map lua name folder)

I suggest you rename the side file, for example:  Glitch-cis.lvl

then put it in here:
C:\Program Files\LucasArts\Star Wars Battlefront\GameData\Data\_LVL_PC\SIDE

and then use this:
  ReadDataFile("SIDE\\Glitch-cis.lvl",


then it knows where to find the file, no matter what the map lua name is.



Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

January 31, 2013, 06:41:18 PM #37 Last Edit: February 01, 2013, 05:56:05 PM by Glitch
Makes sense, I'll give it a try. Thanks. :happy:

Edit: It worked!! :D

[spoiler]


[/spoiler]

The very last thing I need assistance with is the removal of the GSM map in instant action. (Every time I attempt this it crashes, I'm not sure if i'm missing something or its a bit different for BF1)
Quote: At times of chaos, humans are subjected to emotion rather than logic.

Quote from: Glitch on January 31, 2013, 06:41:18 PM

The very last thing I need assistance with is the removal of the GSM map in instant action. (Every time I attempt this it crashes, I'm not sure if i'm missing something or its a bit different for BF1)

make sure none of you map LUA use anything that resides in the GSM folder.  Look for any GSM.lua or anything in any other LUA that uses dc:GSM\\something.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Yep, that fixed it, GSM was removed from the playlist. Thanks! :D Do you think the localization will still work without the addon being present in the instant action menu? Hmmm, I'll experiment with that tomorrow.
Quote: At times of chaos, humans are subjected to emotion rather than logic.