Keep getting error messages

Started by LBmyBB, May 12, 2018, 04:39:47 PM

Previous topic - Next topic
Quote from: LBmyBB on May 13, 2018, 06:22:53 PM
Lit.  So ok, actually in the line whereit said "AddUnitClass(etc." it needs to say geo_inf_geonosian, not gen_inf_geonosian.  I liked being able to edit their hp and damage so they aren't useless.  So I have 2 questions now.  1, how do I get the camera to not be so zoomed in (aka how do I get it to be in the normal position for every other class), and 2, how do I get it so I can play as the CIS with the geonosians on any map?

Look at the camera settings for a regular player unit and change them to those values for the geonosian.  You will have to munge (i.e. compile) it again of course and place it in the side folder.  The updategeo.lvl can be loaded into any map and assigned to a player position on any map just like we did with the Geonosis map, i.e. by changing the mission lua for each map--it just has to be done one at a time.

Note that sound can be tricky.  You might need to load the sound file as well (same one as geonosis).  Someone else may have to step in for help with that. 

Gungans would work the same way.  In fact, you can use any of the SWBF and SWBF2 assets and many other assets that people have made.

Welcome to the world of modding.

I don't do a lot of modding so be sure to ask questions on the forum and someone will usually respond as the get time.  We also have a section on modding tutorials. 
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Ok so I tried to do the mission thing for other maps, so I picked Kamino.  This is the error I got - https://imgur.com/a/oEIcBhd

Here is my stuff that I put in there
Quote---------------------------------------------------------------------------
-- 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 REP = 2;
    local CIS = 1;
--  These variables do not change
    local ATT = 1;
    local DEF = 2;

    AddMissionObjective(CIS, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(REP, "orange", "level.kamino1.objectives.1");

    ReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDateFile("Side\\updatedgeo"
      "geo_inf_geonosian")

    SetTeamAggressiveness(CIS, 0.9)
    SetTeamAggressiveness(REP, 0.9)

--  Republic Stats
    SetTeamName(REP, "Republic");
    SetTeamIcon(REP, "rep_icon");
      AddUnitClass(REP, "rep_inf_clone_trooper",11)
      AddUnitClass(REP, "rep_inf_arc_trooper",3)
      AddUnitClass(REP, "rep_inf_clone_pilot",4)
      AddUnitClass(REP, "rep_inf_clone_sharpshooter",4)
      AddUnitClass(REP, "rep_inf_jet_trooper",3)
      SetHeroClass(REP, "rep_inf_macewindu")



--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")

--SetPlayerTeamDifficulty( 11 )
--SetEnemyTeamDifficulty( 11 )

--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)


--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 220)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

-- Local Stats
    AddUnitClass ("geo_inf_geonosian",4)
   
--  Level Stats
    ClearWalkers()
    AddWalkerType(0, 16) -- droidekas
    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("KAM\\kam1.lvl")
    SetDenseEnvironment("false")

--  AI
    SetMinFlyHeight(60)
    SetMaxFlyHeight(140)
    SetAllowBlindJetJumps(0)

--  Sound
    OpenAudioStream("sound\\kam.lvl",  "kamcw_music");
    OpenAudioStream("sound\\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");


    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1);
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1);

    SetAmbientMusic(REP, 1.0, "rep_kam_amb_start",  0,1);
    SetAmbientMusic(REP, 0.99, "rep_kam_amb_middle", 1,1);
    SetAmbientMusic(REP, 0.1,"rep_kam_amb_end",    2,1);
    SetAmbientMusic(CIS, 1.0, "cis_kam_amb_start",  0,1);
    SetAmbientMusic(CIS, 0.99, "cis_kam_amb_middle", 1,1);
    SetAmbientMusic(CIS, 0.1,"cis_kam_amb_end",    2,1);

    SetVictoryMusic(REP, "rep_kam_amb_victory");
    SetDefeatMusic (REP, "rep_kam_amb_defeat");
    SetVictoryMusic(CIS, "cis_kam_amb_victory");
    SetDefeatMusic (CIS, "cis_kam_amb_defeat");

    SetOutOfBoundsVoiceOver(2, "repleaving");
    SetOutOfBoundsVoiceOver(1, "cisleaving");

    SetSoundEffect("ScopeDisplayZoomIn",  "binocularzoomin");
    SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout");
    --SetSoundEffect("WeaponUnableSelect",  "com_weap_inf_weaponchange_null");
    --SetSoundEffect("WeaponModeUnableSelect",  "com_weap_inf_modechange_null");
    SetSoundEffect("SpawnDisplayUnitChange",       "shell_select_unit");
    SetSoundEffect("SpawnDisplayUnitAccept",       "shell_menu_enter");
    SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change");
    SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter");
    SetSoundEffect("SpawnDisplayBack",             "shell_menu_exit");

    SetPlanetaryBonusVoiceOver(CIS, CIS, 0, "CIS_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(CIS, REP, 0, "CIS_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 2, "CIS_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(CIS, REP, 2, "CIS_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 3, "CIS_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(CIS, REP, 3, "CIS_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 4, "CIS_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(CIS, REP, 4, "CIS_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 5, "CIS_bonus_CIS_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(CIS, REP, 5, "CIS_bonus_REP_sabotage");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 7, "CIS_bonus_CIS_training");--advanced training
    SetPlanetaryBonusVoiceOver(CIS, REP, 7, "CIS_bonus_REP_training");--advanced training

    SetPlanetaryBonusVoiceOver(REP, REP, 0, "REP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(REP, CIS, 0, "REP_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(REP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 2, "REP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(REP, CIS, 2, "REP_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(REP, REP, 3, "REP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(REP, CIS, 3, "REP_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(REP, REP, 4, "REP_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(REP, CIS, 4, "REP_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(REP, REP, 5, "REP_bonus_REP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(REP, CIS, 5, "REP_bonus_CIS_sabotage");
    SetPlanetaryBonusVoiceOver(REP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 7, "REP_bonus_REP_training");--advanced training
    SetPlanetaryBonusVoiceOver(REP, CIS, 7, "REP_bonus_CIS_training");--advanced training

    SetAttackingTeam(ATT);

    AddDeathRegion("DeathRegion");

--Kamino
--Alpha
AddCameraShot(0.190478, -0.010945, -0.980014, -0.056312, -26.091288, 55.965012, 159.458099);
--Clonecenter
AddCameraShot(-0.376571, -0.019637, -0.924923, 0.048232, 176.042465, 53.957565, 244.261139);
--Overhead many alphas
AddCameraShot(0.639254, -0.073533, 0.760457, 0.087475, 78.395348, 72.538582, 344.086609);
end

Quote---------------------------------------------------------------------------
-- 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 REP = 2;
    local CIS = 1;
--  These variables do not change
    local ATT = 1;
    local DEF = 2;
    SetHistorical()

    SetTeamAggressiveness(REP, 0.9)
    SetTeamAggressiveness(CIS, 0.9)

  SetPlayerTeamDifficultyEasy (6)
  SetEnemyTeamDifficultyEasy (-3)

  SetPlayerTeamDifficultyMedium (4)
  SetEnemyTeamDifficultyMedium (-11)

--  SetPlayerTeamDifficultyHard (0)
--  SetEnemyTeamDifficultyHard (0)

    AddMissionObjective(CIS, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(REP, "orange", "level.kamino1.objectives.1");


    ReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDateFile("SIDE\\updatedgeo.lvl"
      "geo_inf_geonosian")



--  Republic Stats
    SetTeamName(REP, "Republic");
    SetTeamIcon(REP, "rep_icon");
      AddUnitClass(REP, "rep_inf_clone_trooper",11)
      AddUnitClass(REP, "rep_inf_arc_trooper",3)
      AddUnitClass(REP, "rep_inf_clone_pilot",4)
      AddUnitClass(REP, "rep_inf_clone_sharpshooter",4)
      AddUnitClass(REP, "rep_inf_jet_trooper",3)
      SetHeroClass(REP, "rep_inf_macewindu")



--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")



--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)


--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 240)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

   -- Local Stats
    AddUnitClass ("geo_inf_geonosian",4)
   
--  Level Stats
    ClearWalkers()
    AddWalkerType(0, 16) -- droidekas
    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("KAM\\kam1.lvl")
    SetDenseEnvironment("false")

--  AI
    SetMinFlyHeight(60)
    SetMaxFlyHeight(140)
    SetAllowBlindJetJumps(0)

--  Sound

    OpenAudioStream("sound\\kam.lvl",  "kamcw_music");
    OpenAudioStream("sound\\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");

    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1);
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1);

    SetOutOfBoundsVoiceOver(2, "repleaving");
    SetOutOfBoundsVoiceOver(1, "cisleaving");

    SetSoundEffect("ScopeDisplayZoomIn",  "binocularzoomin");
    SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout");
    --SetSoundEffect("WeaponUnableSelect",  "com_weap_inf_weaponchange_null");
    --SetSoundEffect("WeaponModeUnableSelect",  "com_weap_inf_modechange_null");
    SetSoundEffect("SpawnDisplayUnitChange",       "shell_select_unit");
    SetSoundEffect("SpawnDisplayUnitAccept",       "shell_menu_enter");
    SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change");
    SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter");
    SetSoundEffect("SpawnDisplayBack",             "shell_menu_exit");

    SetAmbientMusic(REP, 1.0, "rep_kam_amb_start",  0,1);
    SetAmbientMusic(REP, 0.99, "rep_kam_amb_middle", 1,1);
    SetAmbientMusic(REP, 0.1,"rep_kam_amb_end",    2,1);
    SetAmbientMusic(CIS, 1.0, "cis_kam_amb_start",  0,1);
    SetAmbientMusic(CIS, 0.99, "cis_kam_amb_middle", 1,1);
    SetAmbientMusic(CIS, 0.1,"cis_kam_amb_end",    2,1);

    SetVictoryMusic(REP, "rep_kam_amb_victory");
    SetDefeatMusic (REP, "rep_kam_amb_defeat");
    SetVictoryMusic(CIS, "cis_kam_amb_victory");
    SetDefeatMusic (CIS, "cis_kam_amb_defeat");

    SetPlanetaryBonusVoiceOver(CIS, CIS, 0, "CIS_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(CIS, REP, 0, "CIS_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 2, "CIS_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(CIS, REP, 2, "CIS_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 3, "CIS_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(CIS, REP, 3, "CIS_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 4, "CIS_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(CIS, REP, 4, "CIS_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 5, "CIS_bonus_CIS_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(CIS, REP, 5, "CIS_bonus_REP_sabotage");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 7, "CIS_bonus_CIS_training");--advanced training
    SetPlanetaryBonusVoiceOver(CIS, REP, 7, "CIS_bonus_REP_training");--advanced training

    SetPlanetaryBonusVoiceOver(REP, REP, 0, "REP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(REP, CIS, 0, "REP_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(REP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 2, "REP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(REP, CIS, 2, "REP_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(REP, REP, 3, "REP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(REP, CIS, 3, "REP_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(REP, REP, 4, "REP_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(REP, CIS, 4, "REP_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(REP, REP, 5, "REP_bonus_REP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(REP, CIS, 5, "REP_bonus_CIS_sabotage");
    SetPlanetaryBonusVoiceOver(REP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 7, "REP_bonus_REP_training");--advanced training
    SetPlanetaryBonusVoiceOver(REP, CIS, 7, "REP_bonus_CIS_training");--advanced training

    SetAttackingTeam(ATT);

    AddDeathRegion("DeathRegion");

--Kamino
--Alpha
AddCameraShot(0.190478, -0.010945, -0.980014, -0.056312, -26.091288, 55.965012, 159.458099);
--Clonecenter
AddCameraShot(-0.376571, -0.019637, -0.924923, 0.048232, 176.042465, 53.957565, 244.261139);
--Overhead many alphas
AddCameraShot(0.639254, -0.073533, 0.760457, 0.087475, 78.395348, 72.538582, 344.086609);

end


   ReadDateFile("Side\\updatedgeo"


left off the .lvl

maybe other errors, but that one for sure
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

OKEEE, so I started from scratch and fixed that .lvl, as well as remove them from local stats.  So now they look like this

QuoteReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDataFile("SIDE\\updategeo.lvl"
      "gen_inf_geonosian")
Quote--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
     AddUnitClass(CIS, "geo_inf_geonosian")
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")




and for kam1c_h.lua

QuoteReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDataFile("SIDE\\updategeo.lvl"
      "gen_inf_geonosian")

QuoteSetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
     AddUnitClass(CIS, "geo_inf_geonosian)")
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")

Ok.  I'm confused cuz even this comes up with this error
- https://imgur.com/a/BnQAQMO

So if you look at the message in green, it is showing you are missing a parenthesis somewhere.  It can be most anywhere and mess up that line that was flagged, but it is definitely in the kam1c.lua .
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

But how can it be screwed up? All I did was just add a couple lines, and I'm certain I put parentheses where they belong :o

aaah, ok so I solved that error problem but now I have another problem  :slap:.  the munge worked fine, however when I go to play kamino, it crashes

Please post your entire Kamino lua and we can take a look.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

this is Kam1c.lua
Quote---------------------------------------------------------------------------
-- 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 REP = 2;
    local CIS = 1;
--  These variables do not change
    local ATT = 1;
    local DEF = 2;

    AddMissionObjective(CIS, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(REP, "orange", "level.kamino1.objectives.1");

    ReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDataFile("SIDE\\updategeo.lvl",
      "gen_inf_geonosian")

    SetTeamAggressiveness(CIS, 0.9)
    SetTeamAggressiveness(REP, 0.9)

--  Republic Stats
    SetTeamName(REP, "Republic");
    SetTeamIcon(REP, "rep_icon");
      AddUnitClass(REP, "rep_inf_clone_trooper",11)
      AddUnitClass(REP, "rep_inf_arc_trooper",3)
      AddUnitClass(REP, "rep_inf_clone_pilot",4)
      AddUnitClass(REP, "rep_inf_clone_sharpshooter",4)
      AddUnitClass(REP, "rep_inf_jet_trooper",3)
      SetHeroClass(REP, "rep_inf_macewindu")



--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
     AddUnitClass(CIS, "geo_inf_geonosian",2)
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")

--SetPlayerTeamDifficulty( 11 )
--SetEnemyTeamDifficulty( 11 )

--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)


--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 220)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

--  Level Stats
    ClearWalkers()
    AddWalkerType(0, 16) -- droidekas
    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("KAM\\kam1.lvl")
    SetDenseEnvironment("false")

--  AI
    SetMinFlyHeight(60)
    SetMaxFlyHeight(140)
    SetAllowBlindJetJumps(0)

--  Sound
    OpenAudioStream("sound\\kam.lvl",  "kamcw_music");
    OpenAudioStream("sound\\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");


    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1);
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1);

    SetAmbientMusic(REP, 1.0, "rep_kam_amb_start",  0,1);
    SetAmbientMusic(REP, 0.99, "rep_kam_amb_middle", 1,1);
    SetAmbientMusic(REP, 0.1,"rep_kam_amb_end",    2,1);
    SetAmbientMusic(CIS, 1.0, "cis_kam_amb_start",  0,1);
    SetAmbientMusic(CIS, 0.99, "cis_kam_amb_middle", 1,1);
    SetAmbientMusic(CIS, 0.1,"cis_kam_amb_end",    2,1);

    SetVictoryMusic(REP, "rep_kam_amb_victory");
    SetDefeatMusic (REP, "rep_kam_amb_defeat");
    SetVictoryMusic(CIS, "cis_kam_amb_victory");
    SetDefeatMusic (CIS, "cis_kam_amb_defeat");

    SetOutOfBoundsVoiceOver(2, "repleaving");
    SetOutOfBoundsVoiceOver(1, "cisleaving");

    SetSoundEffect("ScopeDisplayZoomIn",  "binocularzoomin");
    SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout");
    --SetSoundEffect("WeaponUnableSelect",  "com_weap_inf_weaponchange_null");
    --SetSoundEffect("WeaponModeUnableSelect",  "com_weap_inf_modechange_null");
    SetSoundEffect("SpawnDisplayUnitChange",       "shell_select_unit");
    SetSoundEffect("SpawnDisplayUnitAccept",       "shell_menu_enter");
    SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change");
    SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter");
    SetSoundEffect("SpawnDisplayBack",             "shell_menu_exit");

    SetPlanetaryBonusVoiceOver(CIS, CIS, 0, "CIS_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(CIS, REP, 0, "CIS_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 2, "CIS_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(CIS, REP, 2, "CIS_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 3, "CIS_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(CIS, REP, 3, "CIS_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 4, "CIS_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(CIS, REP, 4, "CIS_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 5, "CIS_bonus_CIS_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(CIS, REP, 5, "CIS_bonus_REP_sabotage");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 7, "CIS_bonus_CIS_training");--advanced training
    SetPlanetaryBonusVoiceOver(CIS, REP, 7, "CIS_bonus_REP_training");--advanced training

    SetPlanetaryBonusVoiceOver(REP, REP, 0, "REP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(REP, CIS, 0, "REP_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(REP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 2, "REP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(REP, CIS, 2, "REP_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(REP, REP, 3, "REP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(REP, CIS, 3, "REP_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(REP, REP, 4, "REP_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(REP, CIS, 4, "REP_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(REP, REP, 5, "REP_bonus_REP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(REP, CIS, 5, "REP_bonus_CIS_sabotage");
    SetPlanetaryBonusVoiceOver(REP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 7, "REP_bonus_REP_training");--advanced training
    SetPlanetaryBonusVoiceOver(REP, CIS, 7, "REP_bonus_CIS_training");--advanced training

    SetAttackingTeam(ATT);

    AddDeathRegion("DeathRegion");

--Kamino
--Alpha
AddCameraShot(0.190478, -0.010945, -0.980014, -0.056312, -26.091288, 55.965012, 159.458099);
--Clonecenter
AddCameraShot(-0.376571, -0.019637, -0.924923, 0.048232, 176.042465, 53.957565, 244.261139);
--Overhead many alphas
AddCameraShot(0.639254, -0.073533, 0.760457, 0.087475, 78.395348, 72.538582, 344.086609);
end



this is kam1c_h.lua
Quote---------------------------------------------------------------------------
-- 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 REP = 2;
    local CIS = 1;
--  These variables do not change
    local ATT = 1;
    local DEF = 2;
    SetHistorical()

    SetTeamAggressiveness(REP, 0.9)
    SetTeamAggressiveness(CIS, 0.9)

  SetPlayerTeamDifficultyEasy (6)
  SetEnemyTeamDifficultyEasy (-3)

  SetPlayerTeamDifficultyMedium (4)
  SetEnemyTeamDifficultyMedium (-11)

--  SetPlayerTeamDifficultyHard (0)
--  SetEnemyTeamDifficultyHard (0)

    AddMissionObjective(CIS, "orange", "level.kamino1.objectives.1");
    AddMissionObjective(REP, "orange", "level.kamino1.objectives.1");


    ReadDataFile("sound\\kam.lvl;kam1cw");
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic",
        "rep_inf_jet_trooper",
        "rep_inf_macewindu");
    ReadDataFile("SIDE\\cis.lvl",
        "cis_fly_fedlander_dome",
        "cis_inf_basic",
        "cis_inf_countdooku",
        "cis_inf_droideka");
   ReadDataFile("SIDE\\updategeo.lvl",
      "gen_inf_geonosian")



--  Republic Stats
    SetTeamName(REP, "Republic");
    SetTeamIcon(REP, "rep_icon");
      AddUnitClass(REP, "rep_inf_clone_trooper",11)
      AddUnitClass(REP, "rep_inf_arc_trooper",3)
      AddUnitClass(REP, "rep_inf_clone_pilot",4)
      AddUnitClass(REP, "rep_inf_clone_sharpshooter",4)
      AddUnitClass(REP, "rep_inf_jet_trooper",3)
      SetHeroClass(REP, "rep_inf_macewindu")



--  CIS Stats
    SetTeamName(CIS, "CIS");
    SetTeamIcon(CIS, "cis_icon");
     AddUnitClass(CIS, "geo_inf_geonosian,",2)
      AddUnitClass(CIS, "cis_inf_battledroid",12)
      AddUnitClass(CIS, "cis_inf_assault",3)
      AddUnitClass(CIS, "geo_inf_geonosian",4)
      AddUnitClass(CIS, "cis_inf_assassindroid",4)
      AddUnitClass(CIS, "cis_inf_droideka",2)
      SetHeroClass(CIS, "cis_inf_countdooku")



--  Attacker Stats
    SetUnitCount(ATT, 25)
    SetReinforcementCount(ATT, 200)
    AddBleedThreshold(ATT, 31, 0.0)
    AddBleedThreshold(ATT, 21, 0.75)
    AddBleedThreshold(ATT, 11, 2.25)
    AddBleedThreshold(ATT, 1, 3.0)


--  Defender Stats
    SetUnitCount(DEF, 25)
    SetReinforcementCount(DEF, 240)
    AddBleedThreshold(DEF, 31, 0.0)
    AddBleedThreshold(DEF, 21, 0.75)
    AddBleedThreshold(DEF, 11, 2.25)
    AddBleedThreshold(DEF, 1, 3.0)

--  Level Stats
    ClearWalkers()
    AddWalkerType(0, 16) -- droidekas
    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("KAM\\kam1.lvl")
    SetDenseEnvironment("false")

--  AI
    SetMinFlyHeight(60)
    SetMaxFlyHeight(140)
    SetAllowBlindJetJumps(0)

--  Sound

    OpenAudioStream("sound\\kam.lvl",  "kamcw_music");
    OpenAudioStream("sound\\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");

    SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1);
    SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing",   1);
    SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1);

    SetOutOfBoundsVoiceOver(2, "repleaving");
    SetOutOfBoundsVoiceOver(1, "cisleaving");

    SetSoundEffect("ScopeDisplayZoomIn",  "binocularzoomin");
    SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout");
    --SetSoundEffect("WeaponUnableSelect",  "com_weap_inf_weaponchange_null");
    --SetSoundEffect("WeaponModeUnableSelect",  "com_weap_inf_modechange_null");
    SetSoundEffect("SpawnDisplayUnitChange",       "shell_select_unit");
    SetSoundEffect("SpawnDisplayUnitAccept",       "shell_menu_enter");
    SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change");
    SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter");
    SetSoundEffect("SpawnDisplayBack",             "shell_menu_exit");

    SetAmbientMusic(REP, 1.0, "rep_kam_amb_start",  0,1);
    SetAmbientMusic(REP, 0.99, "rep_kam_amb_middle", 1,1);
    SetAmbientMusic(REP, 0.1,"rep_kam_amb_end",    2,1);
    SetAmbientMusic(CIS, 1.0, "cis_kam_amb_start",  0,1);
    SetAmbientMusic(CIS, 0.99, "cis_kam_amb_middle", 1,1);
    SetAmbientMusic(CIS, 0.1,"cis_kam_amb_end",    2,1);

    SetVictoryMusic(REP, "rep_kam_amb_victory");
    SetDefeatMusic (REP, "rep_kam_amb_defeat");
    SetVictoryMusic(CIS, "cis_kam_amb_victory");
    SetDefeatMusic (CIS, "cis_kam_amb_defeat");

    SetPlanetaryBonusVoiceOver(CIS, CIS, 0, "CIS_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(CIS, REP, 0, "CIS_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 1, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 2, "CIS_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(CIS, REP, 2, "CIS_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 3, "CIS_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(CIS, REP, 3, "CIS_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 4, "CIS_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(CIS, REP, 4, "CIS_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 5, "CIS_bonus_CIS_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(CIS, REP, 5, "CIS_bonus_REP_sabotage");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, REP, 6, "");
    SetPlanetaryBonusVoiceOver(CIS, CIS, 7, "CIS_bonus_CIS_training");--advanced training
    SetPlanetaryBonusVoiceOver(CIS, REP, 7, "CIS_bonus_REP_training");--advanced training

    SetPlanetaryBonusVoiceOver(REP, REP, 0, "REP_bonus_REP_medical");
    SetPlanetaryBonusVoiceOver(REP, CIS, 0, "REP_bonus_CIS_medical");
    SetPlanetaryBonusVoiceOver(REP, REP, 1, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 1, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 2, "REP_bonus_REP_sensors");
    SetPlanetaryBonusVoiceOver(REP, CIS, 2, "REP_bonus_CIS_sensors");
    SetPlanetaryBonusVoiceOver(REP, REP, 3, "REP_bonus_REP_hero");
    SetPlanetaryBonusVoiceOver(REP, CIS, 3, "REP_bonus_CIS_hero");
    SetPlanetaryBonusVoiceOver(REP, REP, 4, "REP_bonus_REP_reserves");
    SetPlanetaryBonusVoiceOver(REP, CIS, 4, "REP_bonus_CIS_reserves");
    SetPlanetaryBonusVoiceOver(REP, REP, 5, "REP_bonus_REP_sabotage");--sabotage
    SetPlanetaryBonusVoiceOver(REP, CIS, 5, "REP_bonus_CIS_sabotage");
    SetPlanetaryBonusVoiceOver(REP, REP, 6, "");
    SetPlanetaryBonusVoiceOver(REP, CIS, 6, "");
    SetPlanetaryBonusVoiceOver(REP, REP, 7, "REP_bonus_REP_training");--advanced training
    SetPlanetaryBonusVoiceOver(REP, CIS, 7, "REP_bonus_CIS_training");--advanced training

    SetAttackingTeam(ATT);

    AddDeathRegion("DeathRegion");

--Kamino
--Alpha
AddCameraShot(0.190478, -0.010945, -0.980014, -0.056312, -26.091288, 55.965012, 159.458099);
--Clonecenter
AddCameraShot(-0.376571, -0.019637, -0.924923, 0.048232, 176.042465, 53.957565, 244.261139);
--Overhead many alphas
AddCameraShot(0.639254, -0.073533, 0.760457, 0.087475, 78.395348, 72.538582, 344.086609);

end


You have too many units defined for CIS class.  Remove one (not the hero). 
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Ahaaaaah.  Now its working.  So now all that is missing is....the sounds (sonic blaster, wings, death, injure), which I know you said something about that being harder?

There should be a line similar to this one
    OpenAudioStream("sound\\kam.lvl",  "kam1cw");

in the Geonosis map.  You can try to add that to your kamino lua. 

Another more experienced modder may have to jump in and help out on the sounds.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

May 14, 2018, 07:49:51 PM #27 Last Edit: May 14, 2018, 07:51:27 PM by Dark_Phantom
I don't remember if Geonosian sounds are tied to the geo.lvl or not.  This may be your safest bet. Also it has been a while since I worked with sounds.

   
Code (lua) Select
ReadDataFile("sound\\geo.lvl;geo1cw");

--This goes right below your mission objectives

And then this goes down in the "Sound" section of the lua.  Swap this with what you have to avoid running out of space for sound.
   
Code (lua) Select
OpenAudioStream("sound\\geo.lvl",  "geocw_music");
    OpenAudioStream("sound\\cw.lvl",  "cw_vo");
    OpenAudioStream("sound\\cw.lvl",  "cw_tac_vo");
    OpenAudioStream("sound\\geo.lvl",  "geo1cw");
    OpenAudioStream("sound\\geo.lvl",  "geo1cw");


The BOBclan:  A Rich History


Quote from: Unit 33 on November 29, 2014, 03:44:44 AM
'Please, tell me more about the logistics of the design of laser swords being wielded by space wizards' - Some guy on the internet.

OK i did what you said but it didn't work.

So unless someone else responds, you will need to search in the tutorials section and see if anything can help there or try a few things now that you have the process down and see what works. 

I am fairly sure there is a way to make it work, so know that it should be possible.   :cheers:

I will move this over to the tutorial section in a few days.

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