.req file not working

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

.req file not working

Post by ColonelKlink »

Okay, I just downloaded Taivyx's Terra Strife released assets pack, in hopes of using it in a map. Everything seemed to be going good, until I tried to run it. It crashed, of course (otherwise I wouldnt be posting this), when I tried to move my cursor over the Rebel side, which for now, is the base for the Terra Strife side. I looked at the BattlefrontLog, and saw two errors I haven't seen up till now. Here they are,
Hidden/Spoiler:
Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:SIDE\TSS.lvl

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "all_inf_rifleman" (check the side's .req file)
The last error appeared several times, but they were the same error, except with a different unit, (example), all_inf_rifleman_desert.
There are other errors, but they seemed unimportant, (they are the message, soldier animations raised, and Invehicle changed by unknown modifier,)
What I did, was.....
I copied the TSS side and the Common side to my map's side folder. I then went to my map's Galactic war (or whatever it is called) script and went to the ReadData lines. I then add "dc:" in front of "Side" and also changed all.lvl, to TSS.lvl, and added some of the units in Terra Strife, namely rifleman_desert, rifleman_jungle, etc, etc....
I then went to where the units' slots, and how many reinforcements they get, are. I then typed in the rifleman_desert, and the rest I put in the ReadData file. I then munged it. When I ran it, in Battlefront Modtools, it loaded fine. When I moved my cursor to pick the rebel side (thats the side with the TSS units), it crashed.
The same errors appeared in the BFLog. As a second try, I tried loading just one unit, "all_inf_rifleman" from TSS. I picked this unit cause I saw his .req in the TSS REQ folder. It did same thing.
If anyone has had this problem, and fixed it, or know what I did wrong, please tell me. Taivyx's models are cool, and I would like use them.
(I am assuming no one has had this problem, cause he released the assets just a week ago, or something like that.) If there is something I am doing wrong while setting up the sides, please tell me, so I may be able to make a custom side sometime, too. Thanks.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: .req file not working

Post by DarthD.U.C.K. »

that sounds like you changed the units from the side incorrectly. can you please post your .lua?
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

Re: .req file not working

Post by ColonelKlink »

Hidden/Spoiler:
ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("dc:SIDE\\TSS.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_rifleman_desert",
"all_inf_rifleman_fleet",
"all_inf_rifleman_jungle",
"all_inf_rifleman_urban",

ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"imp_fly_destroyer_dome" )

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_laser")

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_rifleman_desert",1,4},
sniper = { "all_inf_rifleman_fleet",1,4},
officer = { "all_inf_rifleman_jungle",1,4},
special = { "all_inf_rifleman_urban",1,4},

},
imp = {
team = IMP,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",9, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
},
}

SetHeroClass(IMP, "imp_hero_bobafett")
Thre rest of the .lua, I left the same, (maybe that was a bad thing). This is my first script I tried. I can get the other script (the one with just one unit) if needed, but thats in the Clone wars scripts, so that might be a problem right there.
User avatar
Cerfon Rournes
Master Bounty Hunter
Master Bounty Hunter
Posts: 1558
Joined: Thu Jul 08, 2010 5:53 pm
Projects :: WIP. I will reveal what it is later on..
Games I'm Playing :: SWBF2-SWRC
xbox live or psn: No gamertag set
Location: New York, USA
Contact:

Re: .req file not working

Post by Cerfon Rournes »

Change this

Code: Select all

"all_inf_rifleman_urban", 
to this

Code: Select all

"all_inf_rifleman_urban")
and this

Code: Select all

"imp_fly_destroyer_dome" )
to this

Code: Select all

"imp_fly_destroyer_dome")
ColonelKlink
Second Lance Corporal
Second Lance Corporal
Posts: 111
Joined: Sat Dec 18, 2010 12:39 pm
Projects :: Creating weapons effects and props
Games I'm Playing :: Total War Medieval 2

Re: .req file not working

Post by ColonelKlink »

Oh, yeah just noticed that..... I have always made sure to get that, but I guess I missed that this time. I will fix it, and see if it fixes the problem. Thanks.


Back......okay, I fixed the script, as you said, but I still have the same problems as I stated before. In the BFLog I got the errors
Hidden/Spoiler:
Message Severity: 3
.\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open dc:SIDE\tss.lvl

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "all_inf_rifleman" (check the side's .req file)
.
I got the "team missing class" error, for the other four units, named "all_inf_rifleman_desert" "all_inf_rifleman_jungle", etc, etc.
I also renamed the TSS.req and TSSshell.req in the TSS folder to normal lettering, (not capitalized) to see if that worked. I also made sure to fix the lettering in the Lua file to make sure that that was not capitalized. Unfortunately, it still did not work.


EDIT
I have had partial success!!!! I was forgetting to make a TSS folder in _Build/munged/sides (or wherever it is). So to start over, I made a new munged map/mod. I changed the script, and made sure to make that folder in _build/munged/sides, and copied TSS and common to my sides folder. I munged, it took alot longer, (which I thought was a good sign) and after that I ran BF2. I loaded the map, and it worked!!!!!! A couple problems, though, came with my success. In the Empire side, (which is the base that I am using right now), I only got one complete TSS unit (he had all his weapons, textures, and was even there!!). I could only play as 3 units, the Rebel Trooper (from the rebel side), a TSS model unit and texture, but he didnt have his guns, (he was from the US Corps, I think in Terra Strife), and the Terrorist rifleman, (he was the complete unit, with all his assets).
At least the game didn't crash, and for that I am thankful. It shows I made some progress, even if it is only a little bit. Okay, any suggestions to solve my problem? I got a couple different BFLog errors this time, so I could show them if needed. In my .lua file, I only changed the ReadData file to dc:SIDE\\TSS.lvl, (or whatever it looks like) and changed the units it loaded(all_inf_rifleman, all_inf_rifleman_jungle....etc). in the ReadData file, and the sections below that chooses the slot the unit goes in. I changed one unit to all_inf_rocketeer, which I assume is the terrorist unit, cause he is a unit if TSS. So, if you have any suggestions, please say it, it might be the answer to my problem, or it might make me think, and realize whats wrong.
Oh, and sorry for double posting, I will try to not do it anymore.


Double posting is against the RULES, please EDIT your post instead -Staff
Post Reply