Page 1 of 1

Hero Assault.... *solved* thanks for the help!!! :D

Posted: Tue Aug 08, 2006 4:35 pm
by Hebes24
What do you need to do to set it up? I made a new layer in ZE, added non-capturable cp's, configured the game modes*, pressed the button to update mode reqs. and .mrq's then I saved, copied the LUA from the template (renaming it, obviously), saved, munged, and nothing comes up.
What else do i need to do? :?:

* when i tried to add the hero_elimination to the third column, this window came up:

Image

what do I do?

Also, could someone tell me how to make it so that the cps are visible in one mode and not visible in another? Is it possible? :?

RE: Hero Assault....

Posted: Tue Aug 08, 2006 5:40 pm
by archer01
What do you mean by "nothing comes up"? Do you mean the mission doesn't appear in the map list, or do you mean the mission appears and loads but noone spawns?

As for CPs in one mode and not the other, that is a function of layers. In the mission's lua script there is a line like this: ReadDataFile("fel\\fel1.lvl", "fel1_conquest")
That line tells the game to load the "conquest" gamemode from the 'fel1' lvl file. Every gamemode has a number of layers associated with it and only those layers are loaded when a gamemode is accessed. Common layers are always loaded no matter which gamemode(s) is selected. In short: only put the CPs you want to appear in the layers you are going to use for each gamemode, not the common layers.

RE: Hero Assault....

Posted: Tue Aug 08, 2006 6:01 pm
by Hebes24
archer01 wrote: Do you mean the mission doesn't appear in the map list
yes

archer01 wrote: As for CPs in one mode and not the other, that is a function of layers. In the mission's lua script there is a line like this: ReadDataFile("fel\\fel1.lvl", "fel1_conquest")
That line tells the game to load the "conquest" gamemode from the 'fel1' lvl file. Every gamemode has a number of layers associated with it and only those layers are loaded when a gamemode is accessed. Common layers are always loaded no matter which gamemode(s) is selected. In short: only put the CPs you want to appear in the layers you are going to use for each gamemode, not the common layers.
that's funny, that's the way it is, but the cp's for hero assault still show up in conquest.

RE: Hero Assault....

Posted: Tue Aug 08, 2006 7:06 pm
by archer01
For the map list:
- Make sure there is a req file for your mission in the 'data_***\Common\mission' folder.
- Also make sure your mission is listed in the 'data_***\Common\mission.req' file
- If that's there, make sure you updated your map's "addme" script to add the map to the list

Layers:
- Check the contents of the '.lyr' files in your map's 'data_***\Worlds\***\world1' folder. If the CPs there are in the right files then that means you have your gamemodes mis-configured somehow. If not, then the CPs aren't in the layers you think they are ("lyr" stands for "layer" after all). You can load 'lyr' files up in any text editor, but if you're going to change them in the text editor, make sure you backup the files first in case something goes wrong.

RE: Hero Assault....

Posted: Tue Aug 08, 2006 7:31 pm
by Hebes24
archer01 wrote:For the map list:
- Make sure there is a req file for your mission in the 'data_***\Common\mission' folder.
- Also make sure your mission is listed in the 'data_***\Common\mission.req' file
- If that's there, make sure you updated your map's "addme" script to add the map to the list
all that is not there, i think I know how to add it in the reqs but not the addme.lua. With the layers, those are fine, but there was that wierd thing in the first post... ^^^

Posted: Wed Aug 09, 2006 12:56 am
by archer01
In your addme.lua you should see lines like this:

-- Intro stuff...
sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "LKA%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_c = 1, mode_eli_g = 1, mode_eli_c = 1,}
-- More stuff is here that's needed but should not be edited...
AddDownloadableContent("LKA","LKAg_con",4)
AddDownloadableContent("LKA","LKAc_con",4)
AddDownloadableContent("LKA","LKAg_eli",4)
AddDownloadableContent("LKA","LKAc_eli",4)

-- More stuff...

Just add/remove the modes you want accessable from the map select screen and make sure there is an 'AddDownloadableContent' entry for the mode too. The "LKA" should of course be your map's name instead.

As for the CPs thing... Is the 'hero_assault' layer in the "common layer" list? If so, you need to remove it from that list before it can be put into a non-common one.

Posted: Wed Aug 09, 2006 9:52 am
by Hebes24
OK, I got hero assault to show up, and the cp's for HA don't show up in conquest anymore. The problem is, they don't show up in hero assault either!!!

BFront2.log:

Code: Select all

Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk TST_hero_elimination in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\TST\Data\_lvl_pc\TST\TST.lvl


Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk  in dc:TST\TST.lvl
when I tried to add hero assault to the third column (far right) it would only allow one layer to be in there, I couldn't get two in the third column.

Edit: Never mind!!! I got it to work!! WOOT!!! :D:D

Posted: Wed Aug 09, 2006 11:21 am
by Hebes24
NEW PROBLEM!!

custom hero, Jai Maruk,I'm having trouble getting my custom hero, Jai Maruk, ingame. He is a custom hero from the custom REP side that I have, so i put dc: in front of the side in ReadDataFile, but now the map crashes with these messages:

Code: Select all

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1412)
Out of space for soldier animation banks (max 18)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1412)
Out of space for soldier animation banks (max 18)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1412)
Out of space for soldier animation banks (max 18)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1412)
Out of space for soldier animation banks (max 18)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1412)
Out of space for soldier animation banks (max 18)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_attack1a_end(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_attack1b(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_attack1a(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_idle(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_front1(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_front2(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_left1(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_left2(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_right1(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_block_right2(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_attack1b_end(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_attack1c(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_stand_dashattack(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_jumpattack_land(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_jumpattack_fall(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1881)
Can't find soldier animation grevious_sabre_jumpattack_end(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_emote(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_emote(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_checkweapon(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_checkweapon(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_lookaround(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_idle_lookaround(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_turnleft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_turnleft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_turnright(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_stand_turnright(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_emote(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_emote(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_checkweapon(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_checkweapon(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_takeknee(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_idle_takeknee(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_turnleft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_turnleft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_turnright(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_crouch_turnright(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_emote(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_emote(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_checkweapon(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_checkweapon(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_lookaround(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_idle_lookaround(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_turnleft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_turnleft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_turnright(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(1977)
Can't find soldier animation grevious_sabre_prone_turnright(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_sprint(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_sprint(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_forward(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_forward(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_backward(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_backward(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_left(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_left(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_right(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jump_right(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_landsoft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_landsoft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_landhard(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_landhard(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_fall(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_fall(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flail(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flail(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingfront(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingfront(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingback(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingback(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingleft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingleft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingright(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_flyingright(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_tumblefront(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_tumblefront(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_tumbleback(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_tumbleback(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_bouncefrontsoft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_bouncefrontsoft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_bouncebacksoft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_bouncebacksoft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_landfrontsoft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_landfrontsoft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_landbacksoft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_thrown_landbacksoft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_getupfront(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_getupfront(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_getupback(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_getupback(_lower)
Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_diveforward(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_diveforward(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jetpack_hover(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_jetpack_hover(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_deadhero(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_deadhero(_lower)

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitfront(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitfront(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitback(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitback(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitleft(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitleft(_lower)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitright(_upper)


Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(2037)
Can't find soldier animation grevious_sabre_stand_hitright(_lower)
:shock:

here's my LUA

Code: Select all

--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- Mos Eisley Hero Deathmatch (uses Space Assault rules)
-- First team to reach 100 kills wins
--

ScriptCB_DoFile("setup_teams")
ScriptCB_DoFile("ObjectiveTDM")

---------------------------------------------------------------------------
-- ScriptPostLoad
---------------------------------------------------------------------------
function ScriptPostLoad()
	EnableSPHeroRules()
 	-- This is the actual objective setup
	TDM = ObjectiveTDM:New{teamATT = 1, teamDEF = 2, 
						multiplayerScoreLimit = 100,
						textATT = "game.modes.tdm",
						textDEF = "game.modes.tdm2", multiplayerRules = true, isCelebrityDeathmatch = true}
	TDM:Start()

    AddAIGoal(1, "Deathmatch", 100)
    AddAIGoal(2, "Deathmatch", 100)
end


---------------------------------------------------------------------------
-- ScriptInit
---------------------------------------------------------------------------
function ScriptInit()

    --tell the game to load our loading image
    ReadDataFile("dc:Load\\common.lvl")
    
    
    SetMemoryPoolSize ("ClothData",20)
    SetMemoryPoolSize ("Combo",70)              -- should be ~ 2x number of jedi classes
    SetMemoryPoolSize ("Combo::State",850)      -- should be ~12x #Combo
    SetMemoryPoolSize ("Combo::Transition",850) -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Condition",850)  -- should be a bit bigger than #Combo::State
    SetMemoryPoolSize ("Combo::Attack",750)     -- should be ~8-12x #Combo
    SetMemoryPoolSize ("Combo::DamageSample",8000)  -- should be ~8-12x #Combo::Attack
    SetMemoryPoolSize ("Combo::Deflect",140)     -- should be ~1x #combo       -- should be ~1x #combo

    ReadDataFile("ingame.lvl")

	ALL = 1
	IMP = 2
	--  These variables do not change
	ATT = 1
	DEF = 2

    SetMaxFlyHeight(150)
	SetMaxPlayerFlyHeight(150)

    ReadDataFile("sound\\tat.lvl;tat2gcw")
    ReadDataFile("SIDE\\all.lvl",
                "all_hero_luke_jedi",
                "all_hero_hansolo_tat",
                "all_hero_leia",
                "all_hero_chewbacca")
                    
    ReadDataFile("SIDE\\imp.lvl",
                "imp_hero_darthvader",
                "imp_hero_emperor",
                "imp_hero_bobafett")
                
    ReadDataFile("dc:SIDE\\rep.lvl",
                "rep_hero_yoda",
                "rep_hero_macewindu",
                "rep_hero_anakin",
                "rep_hero_aalya",
                "rep_hero_kiyadimundi",
                "rep_hero_obiwan",
		"rep_hero_ultra_jedi")
                
    ReadDataFile("SIDE\\cis.lvl",
                "cis_hero_grievous",
                "cis_hero_darthmaul",
                "cis_hero_countdooku",
                "cis_hero_jangofett")

    --[[ Turrets disabled
    ReadDataFile("SIDE\\tur.lvl",
                "tur_bldg_chaingun_roof",
                "tur_weap_built_gunturret")             
    SetMemoryPoolSize("MountedTurret", 15)
    --]]

    --ReadDataFile("SIDE\\snw.lvl", "snw_inf_wampa")
        
    SetupTeams{
        hero = {
            team = ALL,
            units = 36,
                reinforcements = -1,
                soldier = { "all_hero_hansolo_tat",1,4},
                assault = { "all_hero_chewbacca",   1,4},
                engineer= { "all_hero_luke_jedi",   1,4},
                sniper  = { "rep_hero_obiwan",  1,4},
                officer = { "rep_hero_yoda",        1,4},
                special = { "rep_hero_ultra_jedi",   1,4},           
        },
    }   

    AddUnitClass(ALL,"all_hero_leia",   1,4)
    AddUnitClass(ALL,"rep_hero_aalya",  1,4)
    AddUnitClass(ALL,"rep_hero_kiyadimundi",1,4)

    SetupTeams{
        villain = {
            team = IMP,
            units = 36,
            reinforcements = -1,
                soldier = { "imp_hero_bobafett",    1,4},
                assault = { "imp_hero_darthvader",1,4},
                engineer= { "cis_hero_darthmaul", 1,6},
                sniper  = { "cis_hero_jangofett", 1,4},
                officer = { "cis_hero_grievous",    1,6},
                special = { "imp_hero_emperor", 1,4},

        },
    }   
    AddUnitClass(IMP, "rep_hero_anakin",1,4)
    AddUnitClass(IMP, "cis_hero_countdooku",1,4)

    --  Level Stats
    ClearWalkers()
    AddWalkerType(0, 0) -- special -> droidekas
    AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
    AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
    AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
    
    local weaponCnt = 96
    SetMemoryPoolSize("Aimer", 1)
    SetMemoryPoolSize("AmmoCounter", weaponCnt)
    SetMemoryPoolSize("BaseHint", 320)
    SetMemoryPoolSize("ConnectivityGraphFollower", 23)
    SetMemoryPoolSize("EnergyBar", weaponCnt)
    SetMemoryPoolSize("EntityCloth",41)
    SetMemoryPoolSize("EntityDefenseGridTurret", 0)
    SetMemoryPoolSize("EntityDroid", 0)
	SetMemoryPoolSize("EntityFlyer", 5) -- to account for 5 chewbaccas
    SetMemoryPoolSize("EntityLight", 80, 80) -- stupid trickery to actually set lights to 80
    SetMemoryPoolSize("EntityPortableTurret", 0) -- nobody has autoturrets AFAIK - MZ
    SetMemoryPoolSize("EntitySoundStream", 2)
    SetMemoryPoolSize("EntitySoundStatic", 45)
    SetMemoryPoolSize("FLEffectObject::OffsetMatrix", 120)
    SetMemoryPoolSize("MountedTurret", 0)
    SetMemoryPoolSize("Navigator", 23)
    SetMemoryPoolSize("Obstacle", 667)
    SetMemoryPoolSize("Ordnance", 80)	-- not much ordnance going on in the level
    SetMemoryPoolSize("ParticleEmitter", 512)
    SetMemoryPoolSize("ParticleEmitterInfoData", 512)
    SetMemoryPoolSize("PathFollower", 23)
    SetMemoryPoolSize("PathNode", 128)
    SetMemoryPoolSize("ShieldEffect", 0)
    SetMemoryPoolSize("TentacleSimulator", 24)
    SetMemoryPoolSize("TreeGridStack", 290)
    SetMemoryPoolSize("UnitAgent", 23)
    SetMemoryPoolSize("UnitController", 23)
    SetMemoryPoolSize("Weapon", weaponCnt)
    SetMemoryPoolSize("SoldierAnimation", 2000)

    SetSpawnDelay(10.0, 0.25)
    ReadDataFile("dc:TST\\TST.lvl", "TST_hero_elimination")
    SetDenseEnvironment("false")

    --  Sound Stats
    
    ScriptCB_EnableHeroMusic(0)
    ScriptCB_EnableHeroVO(0)
    
    voiceSlow = OpenAudioStream("sound\\global.lvl", "all_unit_vo_slow")
    AudioStreamAppendSegments("sound\\global.lvl", "imp_unit_vo_slow", voiceSlow)
    AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)
    
    voiceQuick = OpenAudioStream("sound\\global.lvl",  "all_unit_vo_quick")
    AudioStreamAppendSegments("sound\\global.lvl",  "imp_unit_vo_quick", voiceQuick)    
    
    OpenAudioStream("sound\\global.lvl",  "gcw_music")
    OpenAudioStream("sound\\tat.lvl",  "tat2")
    OpenAudioStream("sound\\tat.lvl",  "tat2")
    -- OpenAudioStream("sound\\global.lvl",  "global_vo_quick")
    -- OpenAudioStream("sound\\global.lvl",  "global_vo_slow")

    SetBleedingVoiceOver(ALL, ALL, "all_off_com_report_us_overwhelmed", 1)
    SetBleedingVoiceOver(ALL, IMP, "all_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(IMP, ALL, "imp_off_com_report_enemy_losing",   1)
    SetBleedingVoiceOver(IMP, IMP, "imp_off_com_report_us_overwhelmed", 1)

    SetLowReinforcementsVoiceOver(ALL, ALL, "all_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(ALL, IMP, "all_off_victory_im", .1, 1)
    SetLowReinforcementsVoiceOver(IMP, IMP, "imp_off_defeat_im", .1, 1)
    SetLowReinforcementsVoiceOver(IMP, ALL, "imp_off_victory_im", .1, 1)

    SetOutOfBoundsVoiceOver(1, "Allleaving")
    SetOutOfBoundsVoiceOver(2, "Impleaving")

    SetAmbientMusic(ALL, 1.0, "gen_amb_celebDeathmatch",  0,1)
    -- SetAmbientMusic(ALL, 0.9, "all_tat_amb_middle", 1,1)
    -- SetAmbientMusic(ALL, 0.1, "all_tat_amb_end",    2,1)
    SetAmbientMusic(IMP, 1.0, "gen_amb_celebDeathmatch",  0,1)
    -- SetAmbientMusic(IMP, 0.9, "imp_tat_amb_middle", 1,1)
    -- SetAmbientMusic(IMP, 0.1, "imp_tat_amb_end",    2,1)

    SetVictoryMusic(ALL, "all_tat_amb_victory")
    SetDefeatMusic (ALL, "all_tat_amb_defeat")
    SetVictoryMusic(IMP, "imp_tat_amb_victory")
    SetDefeatMusic (IMP, "imp_tat_amb_defeat")

    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")

    SetAttackingTeam(ATT)

    --  Camera Stats
    --Tat2 Mos Eisley
    AddCameraShot(0.974338, -0.222180, 0.035172, 0.008020, -82.664650, 23.668301, 43.955681);
    AddCameraShot(0.390197, -0.089729, -0.893040, -0.205362, 23.563562, 12.914885, -101.465561);
    AddCameraShot(0.169759, 0.002225, -0.985398, 0.012916, 126.972809, 4.039628, -22.020613);
    AddCameraShot(0.677453, -0.041535, 0.733016, 0.044942, 97.517807, 4.039628, 36.853477);
    AddCameraShot(0.866029, -0.156506, 0.467299, 0.084449, 7.685640, 7.130688, -10.895234);
end

Posted: Wed Aug 09, 2006 11:37 am
by Teancum
You can only have 18 animation classes at once. Hero Assault uses all 18 spaces (I believe some characters take up two memory slots) so you have to remove some characters if you want your hero to work.

Posted: Wed Aug 09, 2006 12:31 pm
by Hebes24
the thing is, I replaced Mace Windu with my hero, I don't see what's wrong. :?

Posted: Wed Aug 09, 2006 12:42 pm
by $iniSTar
Hebes24 wrote:the thing is, I replaced Mace Windu with my hero, I don't see what's wrong. :?

Im new to it also , but maybe you need to move ReadDataFile

("dc:SIDE\\rep.lvl",
"rep_hero_yoda",
"rep_hero_macewindu",
"rep_hero_anakin",
"rep_hero_aalya",
"rep_hero_kiyadimundi",
"rep_hero_obiwan",
"rep_hero_ultra_jedi")

so that it matches the columns of the of the others "rep_hero" lines

Posted: Wed Aug 09, 2006 1:22 pm
by Teancum
Also, Mace Windu is still in there. All you did was make him not selectable.

I suppose I should explain:

When something is loaded into ReadDataFile, it's loaded into memory. So if he's not in your SetupTeams but still under ReadDataFile, he's still in memory, it's just that he's not on the select menu.

Remove him from ReadDataFile and see if that helps. If not, keep removing characters until it does work.

Posted: Wed Aug 09, 2006 4:41 pm
by Hebes24
I'll try that.

@$iniSTar - It is aligned correctly in the LUA, it just became that when I posted it.

Edit: that fixed it! thanks!