Help-Cis.Vs.Geonosian on platformen

Started by 21 | Reacter, September 19, 2011, 02:04:13 PM

Previous topic - Next topic
Need some help guys ^^
i try it thousand of times... but it didnt work....
that is the only what i changed (bes1r-script)

---------------------------------------------------------------------------
-- FUNCTION:    ScriptInit
-- PURPOSE:     This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES:       The name, 'ScriptInit' is a chosen convention, and each
--              mission script must contain a version of this function, as
--              it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
--  REP Attacking (attacker is always #1)
    local GEO = 1                                            <-----------New
    local CIS = 2
--  These variables do not change
    local ATT = 1
    local DEF = 2

        AddMissionObjective(CIS, "orange", "level.bes1.objectives.1");
--   AddMissionObjective(CIS, "red", "level.bes1.objectives.2");
--  AddMissionObjective(CIS, "red", "level.bes1.objectives.3");
    AddMissionObjective(REP, "orange", "level.bes1.objectives.1");
--   AddMissionObjective(REP, "red", "level.bes1.objectives.2");
--   AddMissionObjective(REP, "red", "level.bes1.objectives.3");

    SetTeamAggressiveness(GEO, 1.0)                <---------------------New
    SetTeamAggressiveness(CIS, 1.0)

    ReadDataFile("sound\\bes.lvl;bes1cw");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_maf",
        "cis_fly_droidfighter",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
    ReadDataFile("SIDE\\geo.lvl",      <------------------------New
        "geo_inf_geonosian");


--    Geonosian Stats                 <------- Complete new, Geonosians.... (the heros, should not play)
      SetTeamName(GEO, "Geonosian");
      SetTeamIcon(GEO, "geo_icon");
      AddUnitClass(GEO, "geo_inf_geonosian")
      AddUnitClass(GEO, "geo_inf_geonosian")
      AddUnitClass(GEO, "geo_inf_geonosian")
      AddUnitClass(GEO, "geo_inf_geonosian")
      AddUnitClass(GEO, "geo_inf_geonosian")
      SetHeroClass(REP, "rep_inf_macewindu")    <---------------------- Heros are not playing at this
                                                                                                                (Or is this IMPORTANT?^^)



--  CIS Stats
      SetTeamName(CIS, "CIS");
      SetTeamIcon(CIS, "cis_icon");
     AddUnitClass(CIS, "cis_inf_assault",5)     <---------------Super Battle Droid = Rocket
      AddUnitClass(CIS, "cis_inf_assault",5)
      AddUnitClass(CIS, "cis_inf_pilotdroid",5)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)   <-------- Droideka/ Destroyer = Sniper
      SetHeroClass(CIS, "cis_inf_countdooku")

Thats all what i change!
but the game crashed every time :(
can anyone help me......?
(I searched a long time in web....but its too specife)

Ok, i've done this mistake so many times  :P

First step: get rid of the lua you posted.

step 2: take the bes1r.lua (the lua you used to make this), only do this

add only the following to your lua. if you want the republic vehicles out also, comment out each line with --
    ReadDataFile("SIDE\\geo.lvl",
        "geo_inf_geonosian")

and at the addunit class thingy. only add this
AddUnitClass(REP, "geo_inf_geonosian",[Insert number])

And this should work

Current Projects:
Battlefront One and a Half Era Mod, v2.0. Making great progress (SWBF)

jdee you forgot to mention that he must comment out all the other addunit class lines or the game will crash. Also make sure the numbers all add up to what the previous ones added up to, else the game starts to complain and in some cases crash.

September 19, 2011, 04:48:32 PM #3 Last Edit: September 19, 2011, 04:59:29 PM by Buckler
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

September 20, 2011, 08:40:48 AM #4 Last Edit: September 21, 2011, 05:33:38 AM by TheStarkiller
Ok, ThX   to all ;)
have a new video: 
http://www.youtube.com/watch?v=CNbWQld4zAA&feature=channel_video_title
Its a Weapon mod for the Assassin-Droid

xD   its a new Topic.... but i only need a link
>Mapping<
Yea, i can edit "everything" on battlefront... now its time for Mapping
Can anyone help me? a link to a tutorial :D
(have a look on my videos, i want to have some orders for mods :D)
Weapon, Units, Example: Imp Vs Clones   etc
or unlimeted jetpack or Have the geonosian wings at every person (Not Droideka)
:D 
I will be very thanksfull ;)

look at this forum

http://www.swbfgamers.com/index.php?board=49.0

Many links there refer to zero editor (the map editor for SWBF).  There is also a good deal of informaiton
in the documentation of the mod tools that you downloaded.

Here are some other useful sites:
http://gametoast.com/forums/viewforum.php?f=1&sid=135530d6b0d30811eb7e4a63500125a5

http://www.secretsociety.com/forum/display_forum.asp

When you figure things out, please make your own tutorial for us, if it is not already covered!

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