Custom Side: How To (FAQ)
Moderator: Moderators
- [TFA]Padawan_Fighter
- High General
- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: Custom Side: How To
Sorry to bump, but this is a relevant reply
It's not working! I did what you said, I put my custom ReadDataFile right inbetween the two others (with the dc: added), and I put an AddUnitClass at the bottom of the SetupTeams, but I still have the stock Republic sides and nothing else!
It's not working! I did what you said, I put my custom ReadDataFile right inbetween the two others (with the dc: added), and I put an AddUnitClass at the bottom of the SetupTeams, but I still have the stock Republic sides and nothing else!
-
- Rebel Warrant Officer
- Posts: 318
- Joined: Thu Jun 11, 2009 3:02 am
- Projects :: Designated Days Chapter 1
- xbox live or psn: icemember x
- Location: 6 planet of the Hoth system
Re: Custom Side: How To
Yea sorry for a bump. Since somebody already bumped it, don't mind if i post too...Back to topic.
Heres what i put and it works for me. Thought I wouldn't mind somebody filling in the rest of the blanks if i missed anything.
Once again, sorry for my role in this bump lol.
Heres what i put and it works for me. Thought I wouldn't mind somebody filling in the rest of the blanks if i missed anything.
Hidden/Spoiler:
- [TFA]Padawan_Fighter
- High General
- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: Custom Side: How To
Well, that just made my game crash...
Here is my error log:
And here is my LUA:
I dont get it. The author of this topic had to be leaving something out, because I followed *EVERYTHING*.
Here is my error log:
Hidden/Spoiler:
Hidden/Spoiler:
-
- Rebel Warrant Officer
- Posts: 318
- Joined: Thu Jun 11, 2009 3:02 am
- Projects :: Designated Days Chapter 1
- xbox live or psn: icemember x
- Location: 6 planet of the Hoth system
Re: Custom Side: How To
Hmm...not sure, but it think its your character causing the crash. Is your pdwn.lvl in the add-on folder where the game is installed? It should go here: C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\PAD\Data\_lvl_pc\SIDE\pdwn.lvl
Also did you add "imp_inf_bobafett" to the SIDES .req file and make a .req with the name imp_inf_bobafett and place it in the req folder?
Also did you add "imp_inf_bobafett" to the SIDES .req file and make a .req with the name imp_inf_bobafett and place it in the req folder?
-
- Jedi
- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Custom Side: How To
Code: Select all
Message Severity: 3
.\Source\LoadUtil.cpp(829)
Unable to find level chunk imp_inf_bobafett in C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\AddOn\PAD\Data\_lvl_pc\SIDE\pdwn.lvl
Message Severity: 3
.\Source\LoadUtil.cpp(1019)
Unable to find level chunk in dc:SIDE\pdwn.lvl
Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "imp_inf_bobafett" (check the side's .req file)
- sampip
- General
- Posts: 792
- Joined: Mon Mar 16, 2009 12:08 pm
- Projects :: Something big. And exciting.
- xbox live or psn: masowner66
- Location: Zebra
Re: Custom Side: How To
Try using imp_hero_bobafett instead?
If this is different, I'd check your req files, and make sure you the correct odf's set up in the units req file. Also make sure you have the common folder in your sides folder. Could you post your units odf - and req file?
(Shouldn't this be a new topic?)
If this is different, I'd check your req files, and make sure you the correct odf's set up in the units req file. Also make sure you have the common folder in your sides folder. Could you post your units odf - and req file?
(Shouldn't this be a new topic?)
-
- Jedi
- Posts: 1056
- Joined: Fri Aug 14, 2009 12:32 am
Re: Custom Side: How To
LVL chunk problems are most likely caused by A) Your unit's not in a req B) you misspelled it in your lua. It's one or the other.
-
- Gametoast Staff
- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Custom Side: How To
Can you confirm that an actual pdwn.lvl file exist? Did you remember to make an pdwn folder in data_***\Build\Sides containing the munge and clean batch files copied from the ALL folder also found in the same directory?
- [TFA]Padawan_Fighter
- High General
- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: Custom Side: How To
Yeah AQT, it exists.
@MercuryNoodles: K, I cleaned, and now here's my new error log:
I dont even remember doing anything to the animations...
To those of you asking, HERE is my req:
@MercuryNoodles: K, I cleaned, and now here's my new error log:
Hidden/Spoiler:
Because I want him to be an infantry class, not a hero.sampip wrote:Try using imp_hero_bobafett instead?
To those of you asking, HERE is my req:
Hidden/Spoiler:
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Custom Side: How To
Naming scheme is utterly irrelevant. You could call him "imp_hover_bobafett" and it would be just the same.[TFA]Padawan_Fighter wrote:Because I want him to be an infantry class, not a hero.
You're probably missing an actual .req file for him or you didn't appropriately rename the unit in your side. Does an imp_inf_bobafett.req file exist? And what does it say if it does?
- [TFA]Padawan_Fighter
- High General
- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: Custom Side: How To
Wait a minute...I found the problem. I forgot to munge my side after I cleaned...d'oh.
Oh well, problem fixed
Oh well, problem fixed
-
- Brigadier General
- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: Custom Side: How To
ive a similar problem, ive made everything correct but it doesnt work and there is nothing strange in the log...
tipp for all with those problems: copy your side lvls (example: cis2.lvl) into and leave out the "dc:" in the LUA.
if your side is valid, it works
(and if you upload this map, you should write a well describing readme for this)
tipp for all with those problems: copy your side lvls (example: cis2.lvl) into
Code: Select all
C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\data\_lvl_pc\side
if your side is valid, it works
(and if you upload this map, you should write a well describing readme for this)
- DarthD.U.C.K.
- Master of the Force
- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Custom Side: How To
if everything is correct, it will work, definitellyBob wrote:ive a similar problem, ive made everything correct but it doesnt work and there is nothing strange in the log...
tipp for all with those problems: copy your side lvls (example: cis2.lvl) intoand leave out the "dc:" in the LUA.Code: Select all
C:\Program Files\LucasArts\Star Wars Battlefront II\GameData\data\_lvl_pc\side
if your side is valid, it works
(and if you upload this map, you should write a well describing readme for this)
you must have written something wrong into the lua because battlefront cant find the side where you wrote it was
(thats the only explanation possible because otherwise putting the side into battlefronts shipped sidesfolder wouldnt resolve the problem otherwise)
-
- Brigadier General
- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: Custom Side: How To
But if he cant find the side (wrong written, invalid etc.) there WILL BE something in the log.
ive nothing like this in my log, but the map crashes if I write the correct things in the LUA, so i have to trick the game...
ive nothing like this in my log, but the map crashes if I write the correct things in the LUA, so i have to trick the game...
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Custom Side: How To
I am not sure exactly what you're trying to say, but if you "write the correct things in the LUA," the map will not crash as a result of that. If you have a crash it is a problem with something you are doing incorrectly and you are only associating it with the .lua - that is not the cause.Bob wrote:but the map crashes if I write the correct things in the LUA, so i have to trick the game...
-
- Brigadier General
- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: Custom Side: How To
I try to say that:
1. my map crashes while loading because of the custom side
2. the .log doesnt post anything
3. my side is correct made (its the default "rep" side)
4. the LUA is correct
5. I dont know what to do
1. my map crashes while loading because of the custom side
2. the .log doesnt post anything
3. my side is correct made (its the default "rep" side)
4. the LUA is correct
5. I dont know what to do
- Maveritchell
- Jedi Admin
- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Custom Side: How To
Start a new topic. Post your problem, what you've done, and what happens. Post your .lua and error log.
-
- Brigadier General
- Posts: 633
- Joined: Thu May 27, 2010 4:28 am
- Location: at home
Re: Custom Side: How To
Okeeey... I dont know WTH is going on, but now it seems to work
I try out if it is not the demonstration effect...
I try out if it is not the demonstration effect...
Last edited by Bob on Mon Jan 31, 2011 3:45 am, edited 1 time in total.
-
- Recruit Womprat Killer
- Posts: 10
- Joined: Tue Jan 11, 2011 6:03 pm
- Projects :: No Mod project currently.
Re: Custom Side: How To
Iv did what it said in this tut 3 times and it still does not work. This is what i got. I am adding a varation of the dark trooper to a map i made.
Side name is PMS
req file name is pms.req and its a text file.
Inside that file is written
ucft
{
REQN
{
"lvl"
"pms_inf_supr_tropr"
}
}
In the req folder is a file called pms_inf_supr_tropr.req and is written
ucft
{
REQN
{
"class"
"pms_inf_supr_tropr"
}
}
The odf file is called pms_inf_supr_tropr.odf
I got all the files in the other folders in the side folder.
I did put the Clean and Munge bat files in the folder that is located in C:\BF2_ModTools\data_PMS\_BUILD\Sides\PMS
Last i went and edited the PMSg_con.lua file
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},
special = { "imp_inf_dark_trooper",1,4},
},
}
SetHeroClass(ALL, "all_hero_hansolo_tat")
SetHeroClass(IMP, "imp_hero_bobafett")
AddUnitClass(IMP, "pms_inf_supr_tropr",1,4)
and
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")
ReadDataFile("dc:SIDE\\pms.lvl",
"pms_inf_supr_tropr")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
Hope this helps and thank you for reading this and takeing your time.
Side name is PMS
req file name is pms.req and its a text file.
Inside that file is written
ucft
{
REQN
{
"lvl"
"pms_inf_supr_tropr"
}
}
In the req folder is a file called pms_inf_supr_tropr.req and is written
ucft
{
REQN
{
"class"
"pms_inf_supr_tropr"
}
}
The odf file is called pms_inf_supr_tropr.odf
I got all the files in the other folders in the side folder.
I did put the Clean and Munge bat files in the folder that is located in C:\BF2_ModTools\data_PMS\_BUILD\Sides\PMS
Last i went and edited the PMSg_con.lua file
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},
special = { "imp_inf_dark_trooper",1,4},
},
}
SetHeroClass(ALL, "all_hero_hansolo_tat")
SetHeroClass(IMP, "imp_hero_bobafett")
AddUnitClass(IMP, "pms_inf_supr_tropr",1,4)
and
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")
ReadDataFile("dc:SIDE\\pms.lvl",
"pms_inf_supr_tropr")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
Hope this helps and thank you for reading this and takeing your time.
Last edited by nickkorta on Sun Jan 30, 2011 7:49 pm, edited 1 time in total.
-
- Sith Master
- Posts: 2631
- Joined: Fri Mar 27, 2009 10:23 am
- Projects :: Something cool...
- xbox live or psn: Has no xbox....Yup
- Location: Does whatever a Spiderpig does
- Contact:
Re: Custom Side: How To
This might be a stupid question, but did you munge your side before playing?
The rest sounds fine to me.
The rest sounds fine to me.