Munging error (due to the .REQ file), need some help.

Post everything from general questions, to modding questions, to map WIPs to releases. (SWBF1 only)

Moderator: Moderators

Post Reply
Grievous

Munging error (due to the .REQ file), need some help.

Post by Grievous »

I'm sorry for the title of this thread if it wasn't clear, I just can't make the title what it should be due to a limit on characters.

I'm also sorry for the tons of questions coming from me in this thread, I'm just not much of a modder/mapping currently. :roll:



Ok, I've been working on a simple map. I've decided to add some untis, delete some, etc. I've decided to add the Geonosian as a unit for the CIS on the map. I've followed Rends localize tutorial so I don't need any help with that. But I wasn't sure I had done everything right to my .REQ file. My suspicions are now confirmed that I've had a few munging errors and when I try to load my map the game crashes, so below I've posted my .REQ file, the errors from the munge, and my CW Mission .LUA to make sure I'm doing everything right to get the geonosian in-game.

P.S. I've also done other things in my .LUA, I.E. delete the jet-trooper, and replacing the sbd with the bd(I think I have it right, but again I'm not sure.) so if you see anthing wrong with them please help.

The red font is stuff I've added to the .REQ file,and the CW Mission .Lua.

.REQ file:

ucft
{
REQN
{
"config"
}

REQN
{
"class"
}

REQN
{
"texture"
"GeoSkirm_map"
}


REQN
{
"texture"
"platform=pc"

}

REQN
{
"path"
"GeoSkirm"
}
REQN
{
"congraph"
"GeoSkirm"
}
REQN
{
"envfx"
-- "GeoSkirm"
}
REQN
{
"world"
"GeoSkirm"
}
REQN
{
"prop"
-- "GeoSkirm"
}
REQN
{
"boundary"
"GeoSkirm"
}
REQN
{
"config"
-- "flyerspray"
-- "walkerstomp"
-- "hailfire_wake"
-- "dustwake"
}
REQN
{
"lvl"
"gen_inf_geonosian"
}



CW Mission .LUA

---------------------------------------------------------------------------
-- 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()
-- Empire Attacking (attacker is always #1)
local REP = 2
local CIS = 1
-- These variables do not change
local ATT = 1
local DEF = 2

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




ReadDataFile("sound\\tat.lvl;tat1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper"),
"rep_hover_fightertank";

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic_battledroids",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka"),
"cis_hover_aat;


--ReadDataFile("dc:SIDE\\gam.lvl",
-- "gam_inf_gamorreanguard")

SetAttackingTeam(ATT);

-- Republic Stats
SetTeamName(REP, "Republic")
SetTeamIcon(REP, "rep_icon")
AddUnitClass(REP, "rep_inf_clone_trooper",10)
AddUnitClass(REP, "rep_inf_arc_trooper",1)
AddUnitClass(REP, "rep_inf_clone_pilot",2)
AddUnitClass(REP, "rep_inf_clone_sharpshooter",2)
SetHeroClass(REP, "rep_inf_macewindu")

-- CIS Stats
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, "geo_inf_geonosian",1)
SetHeroClass(CIS, "cis_inf_countdooku")

-- Attacker Stats
SetUnitCount(ATT, 20)
SetReinforcementCount(ATT, 200)
-- AddBleedThreshold(ATT, 31, 0.0)
-- AddBleedThreshold(ATT, 21, 0.75)
AddBleedThreshold(ATT, 11, 0.75)
AddBleedThreshold(ATT, 10, 1.5)
AddBleedThreshold(ATT, 1, 3.0)

-- Defender Stats
SetUnitCount(DEF, 20)
SetReinforcementCount(DEF, 200)
-- AddBleedThreshold(DEF, 31, 0.0)
-- AddBleedThreshold(DEF, 21, 0.75)
AddBleedThreshold(DEF, 11, 0.75)
AddBleedThreshold(DEF, 10, 1.5)
AddBleedThreshold(DEF, 1, 3.0)

-- Local Stats
-- SetTeamName(3, "locals")
-- AddUnitClass(3, "gam_inf_gamorreanguard",3)
-- SetUnitCount(3, 3)
-- SetTeamAsEnemy(3, ATT)
-- SetTeamAsEnemy(3, DEF)

-- Level Stats
ClearWalkers()
AddWalkerType(0, 4) -- Droidekas
AddWalkerType(1, 4) -- number of leg pairs, count
AddWalkerType(2, 0)
SetMemoryPoolSize("EntityHover", 12)
-- SetMemoryPoolSize("EntityFlyer", 5)
-- SetMemoryPoolSize("EntityBuildingArmedDynamic", 16)
-- SetMemoryPoolSize("EntityTauntaun", 0)
-- SetMemoryPoolSize("MountedTurret", 22)
-- SetMemoryPoolSize("SoundSpaceRegion", 81)
SetMemoryPoolSize("PowerupItem", 60)
SetMemoryPoolSize("EntityMine", 40)
SetMemoryPoolSize("Aimer", 200)
SetMemoryPoolSize("Obstacle", 725)
SetSpawnDelay(10.0, 0.25)
ReadDataFile("dc:GeoSkirm\\GeoSkirm.lvl")
SetDenseEnvironment("true")
--AddDeathRegion("Sarlac01")
--SetMaxFlyHeight(90)
--SetMaxPlayerFlyHeight(90)


-- Sound Stats
OpenAudioStream("sound\\tat.lvl", "tatcw_music");
--OpenAudioStream("dc:sound\\tat.lvl", "tat3");
--OpenAudioStream("dc:sound\\tat.lvl", "tat3");
OpenAudioStream("sound\\cw.lvl", "cw_vo");
OpenAudioStream("sound\\cw.lvl", "cw_tac_vo");
--OpenAudioStream("dc:sound\\tat.lvl", "tat3_emt");
--OpenAudioStream("dc:sound\\tat.lvl", "tat3_emt");

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

SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1);
SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1);
SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1);
SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1);

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

SetAmbientMusic(REP, 1.0, "rep_tat_amb_start", 0,1);
SetAmbientMusic(REP, 0.99, "rep_tat_amb_middle", 1,1);
SetAmbientMusic(REP, 0.1,"rep_tat_amb_end", 2,1);
SetAmbientMusic(CIS, 1.0, "cis_tat_amb_start", 0,1);
SetAmbientMusic(CIS, 0.99, "cis_tat_amb_middle", 1,1);
SetAmbientMusic(CIS, 0.1,"cis_tat_amb_end", 2,1);

SetVictoryMusic(REP, "rep_tat_amb_victory");
SetDefeatMusic (REP, "rep_tat_amb_defeat");
SetVictoryMusic(CIS, "cis_tat_amb_victory");
SetDefeatMusic (CIS, "cis_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");

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


-- Camera Stats
--Tat 3 - Jabbas' Palace
AddCameraShot(0.685601, -0.253606, -0.639994, -0.236735, -65.939224, -0.176558, 127.400444);
AddCameraShot(0.786944, 0.050288, -0.613719, 0.039218, -80.626396, 1.175180, 133.205551);
AddCameraShot(0.997982, 0.061865, -0.014249, 0.000883, -65.227898, 1.322798, 123.976990);
AddCameraShot(-0.367869, -0.027819, -0.926815, 0.070087, -19.548307, -5.736280, 163.360519);
AddCameraShot(0.773980, -0.100127, -0.620077, -0.080217, -61.123989, -0.629283, 176.066025);
AddCameraShot(0.978189, 0.012077, 0.207350, -0.002560, -88.388947, 5.674968, 153.745255);
AddCameraShot(-0.144606, -0.010301, -0.986935, 0.070304, -106.872772, 2.066469, 102.783096);
AddCameraShot(0.926756, -0.228578, -0.289446, -0.071390, -60.819584, -2.117482, 96.400620);
AddCameraShot(0.873080, 0.134285, 0.463274, -0.071254, -52.071609, -8.430746, 67.122437);
AddCameraShot(0.773398, -0.022789, -0.633236, -0.018659, -32.738083, -7.379394, 81.508003);
AddCameraShot(0.090190, 0.005601, -0.993994, 0.061733, -15.379695, -9.939115, 72.110054);
AddCameraShot(0.971737, -0.118739, -0.202524, -0.024747, -16.591295, -1.371236, 147.933029);
AddCameraShot(0.894918, 0.098682, -0.432560, 0.047698, -20.577391, -10.683214, 128.752563);

end


Munging errors:

munging GeoSkirmc.req
Error: Expecting bracket, but none was found
file: munged/GeoSkirmc.script.req(1)...
<--Error: Expecting bracket, but none was found
file: munged/GeoSkirmc.script.req(1)...
<--
munging core.req
Could not find C:\LucasArts\Bfbuilder\DataGeoSkirm\_BUILD_PC\GeoSkrim\mungelog.txt

*11 lines down*

Munging GeoSkrim.req
Error: Unexpected end of file while searching for closed bracket
File: ..\..\..\worlds\GeoSkirm\.\GeoSkirm.req(72)


Error: Unexpected end of file while searching for closed bracket
File: ..\..\..\worlds\GeoSkirm\.\GeoSkirm.req(72)

etc...

*end of munge*

Thank You for your help :).


Edit: okay thank you very much Derkie, but I still need a few questions answered!
Last edited by Grievous on Fri Jul 29, 2005 5:54 pm, edited 3 times in total.
Darth-Derkie
1st Lieutenant
1st Lieutenant
Posts: 453
Joined: Thu Feb 03, 2005 6:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The Netherlands

Post by Darth-Derkie »

Change this...
ReadDataFile("sound\\tat.lvl;tat1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper"),
"rep_hover_fightertank";

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic_battledroids",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka"),
"cis_hover_aat;
Into this:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper",
"rep_hover_fightertank");

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic_battledroids",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka",
"cis_hover_aat);
Grievous

Post by Grievous »

Sorry about the bump, but I'm still not sure about my .REQ file...I'm (also) sorry for having to ask everyone these simple things...:/
NegativeSmiley

Post by NegativeSmiley »

Darth-Derkie wrote: Into this:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper",
"rep_hover_fightertank");

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic_battledroids",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka",
"cis_hover_aat);
Change that into this....

ReadDataFile("SIDE\\rep.lvl",
"rep_inf_basic",
"rep_inf_macewindu",
"rep_inf_jet_trooper",
"rep_hover_fightertank");

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_basic_battledroids",
"cis_inf_basic",
"cis_inf_countdooku",
"cis_inf_droideka",
"cis_hover_aat");
NegativeSmiley

Post by NegativeSmiley »

Also I added Admiral Thrawn to my map and I didn't eve n mess with the req file in terms of putting him in there. He came with a req already to be put under sides.
User avatar
Rends
Sith
Sith
Posts: 1278
Joined: Fri Oct 15, 2004 6:34 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Post by Rends »

Grievous,
delete:
REQN
{
"lvl"
"gen_inf_geonosian"
}
from the REQ file. Those entries doesn´t belong to this file!

so you want to make the geonosians playable under the CIS team.
This means that you need to create the CIS as new fraction again and add the Geonosian to the new fraction. You can´t add units to exsisting fractions without creating the side completely new.
Last edited by Rends on Sat Jul 30, 2005 10:23 am, edited 1 time in total.
Grievous

Post by Grievous »

Rends wrote:Grievous,
delete:
REQN
{
"lvl"
"gen_inf_geonosian"
}
from the REQ file. Those entries doesn´t belong to this file!
I thoght so. :roll:

Ok I have everything figured out so far. Thanks everyone!
Post Reply