Page 4 of 4

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 9:19 am
by Anakin
there is no matter i only try to understand the modding and mapping.
so coustom sides is a part of all this.
so in general:

i want a new side.

i make a new world. example MAP. i want commander gree for the republic.

i browse ..\BF2_ModTools\data_BWS\sides\

make a new folder "REP"
in there i make new Folder "msh", "odf", "req", "MUNGED", "effects"

i can copy the effects from ..\BF2_ModTools\assets\sides\rep\effects.

also i copy the rep.req file. i don't need the repshell.req?? if yes what is it good for??

now it's time to edit rep.req i delete all and only place the req name.

i place the gree.msh, .tga and .option files file in my ..\BF2_ModTools\data_BWS\sides\rep\msh folder.

i need a req file in the req folder

two odfs in the odf folder. one for the side what geometryit has ... and one for the weapons. normaly named default.

i finished there. i brows..\BF2_ModTools\data_BWS\commen\scripts\MAP

open the MAPc_con and delete all sidenames of the rep.

i change Readdatafile:(\\rep.lvl to Readdatafile:(dc:\\rep.lvl.

the next line i add the req file name of my side.

munge finished it should work.

BFII askes for my addme file.
-> lua
-> rep.req file (if the file is named rep.lvl. if it is for example gree.lvl the req file musst be gree.req right??)
-> side.req
-> side.odf
-> side_default.odf and -> side.msh
-> side.msh.option and -> side.tga

is that right??

THIS IS A QUESTION IN GENERAL. I CAN MAKE THIS WITH ALL SIDE FILES RIGHT??

IF THERE IS SOMETHING WRONG PLS MARK IT RED AND SAY HOW IT'S RIGHT. THX

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 9:28 am
by DarthD.U.C.K.
you forgot a really important step: create a folder called like your side in the "data_BWS\_BUILD\Sided\"-folder and copy the "clean.bat" and "munge.bat" from the "data_BWS\_BUILD\Sided\All\"-folder into the folder called like your side.
this is necessary to make visualmunge see your side. when you open it up now, you can choose your side in the dropdownmenu behind "Side". furthermore you cannot simply remove the readdatafile...rep... line from the lua. "ReadData" loads files like sides if you remove these lines the sides and therefore the included units cant be loaded anymore.
however i dont understand why you have so many problems with that, what you forgot and i corrected above is explained exactly in every customside-tutorial.

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 9:36 am
by Jendo7
Well, I can't explain it more correctly, and succinct (clear) than that.

As DarthD.U.C.K is saying you can't really learn anymore from asking questions than reading the tutorials, because people are just repeating what is already written down.

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 11:56 am
by Anakin
i never read something about the folder in the Build/side folder.

i haven't mean to delete the complete command ReadDataFile(side//rep.lvl:

i just mean what is written behind this line all the
"rep_inf_ep3_trooper",
"rep_inf_ep3_sniper",
rep_inf_ep3_rocketeer",
.
.
.


Ok so you delete this red lines. you add dc:

ReadDataFile(dc:side//rep.lvl:

and than add your commander. example:

org lua:
  • ReadDataFile("sound\\yav.lvl;yav1cw")
    ReadDataFile("dc:SIDE\\REP.lvl",
    "rep_ep3_inf_rifleman",
    "rep_ep3_inf_rocketeer",
    "rep_ep3_inf_engineer",
    "rep_ep3_inf_sniper",
    "rep_ep3_inf_officer",
    "rep_ep3_inf_jettrooper",
    "rep_inf_anakinl",
    "rep_hover_barc"
    )
    ReadDataFile("SIDE\\cis.lvl",
    "cis_inf_rifleman",
    "cis_inf_rocketeer",
    "cis_inf_engineer",
    "cis_inf_sniper",
    "cis_inf_officer",
    "cis_inf_droideka",
    "cis_hero_darthmaul",
    "cis_hover_aat")
delete red part:
  • ReadDataFile("sound\\yav.lvl;yav1cw")
    ReadDataFile("dc:SIDE\\REP.lvl",
    )
    ReadDataFile("SIDE\\cis.lvl",
    "cis_inf_rifleman",
    "cis_inf_rocketeer",
    "cis_inf_engineer",
    "cis_inf_sniper",
    "cis_inf_officer",
    "cis_inf_droideka",
    "cis_hero_darthmaul",
    "cis_hover_aat")
add your side req name (it is the req isn't it?)
  • ReadDataFile("sound\\yav.lvl;yav1cw")
    ReadDataFile("dc:SIDE\\REP.lvl",
    "rep_inf_yoursidesreqname",)
    ReadDataFile("SIDE\\cis.lvl",
    "cis_inf_rifleman",
    "cis_inf_rocketeer",
    "cis_inf_engineer",
    "cis_inf_sniper",
    "cis_inf_officer",
    "cis_inf_droideka",
    "cis_hero_darthmaul",
    "cis_hover_aat")
and now i must add this folder?? :? i cannot believe because some days month ago i tried to add the RC and ARC (see some pages before) i used the setupteam funktion and add the names to the loading list had NO NEW FOLDER!!! and it worked

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 12:05 pm
by DarthD.U.C.K.
you need the new folder if your side has a name different than a shipped side.
and you cannot simply delete these units, that will result in them not being loaded!
you should really really read the customside-tutorial again - many times if its necessary - until you understood it. i think this thread shouldnt get another 4 pages..

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 12:18 pm
by Anakin
ok but why has it worked with the Republic commando??

shipped what do you mean?? the original sides?

Yeah i know in the rep.req file and the part in the lua:

soldire =
assult=
...

musst be deletet too

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 12:25 pm
by Jendo7
In other words you need a new folder in _Build/Sides ONLY if it is named differently than the shipped sides. So if you are loading a custom unit from rep.lvl in your maps SIDE folder, you do not need a folder in _Build/Sides before you munge, as the REP folder is already there.

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 1:24 pm
by Anakin
how do i know if a side is shipped??

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 1:53 pm
by Jendo7
Shipped sides: REP, CIS, IMP, ALL, DES, EWK, GAM, GAR, GEO, GUN, JED, SNW, TUR, WOK.

If you name your custom side rep you don't need to add another folder in _BUILD/Sides.

If you you name your side something else for example: Gree, you need to create another folder in _BUILD/Sides called Gree, then you copy over munge.bat and clean.bat from another side to the gree folder. Then you edit the munge bat to call your new side. So if you copied over the munge.bat from rep to the gree folder you would edit it (right click/edit) and change it from this:
Hidden/Spoiler:
@call ..\munge_side.bat REP %1
to this:
Hidden/Spoiler:
@call ..\munge_side.bat Gree %1

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 2:07 pm
by DarthD.U.C.K.
actually its not necessary to edit the munge.bat

Re: Custom sides and modding questions

Posted: Wed Jan 12, 2011 2:09 pm
by Jendo7
Ok, sorry about that Anakin. Just add another folder.

Re: Custom sides and modding questions

Posted: Mon Jan 24, 2011 9:48 am
by Anakin
AHHHH so if i still name my lvl rep i can add what ever i want also only grees without folder THX much for your endurance

==EDIT==

i don't know why every time i make my own sides it crashes. the first thing was easy i only had the wrong name for my commander_low.msh file. now it works :D but there is one side missing :( and i think my hero doesn't work too.

here are the important parts of my log. if you need the complete one pls say
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_inf_327th_trooper in C:\Programme\LucasArts\Star Wars Battlefront II\GameData\AddOn\TST\Data\_lvl_pc\SIDE\REP.lvl


Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(829)
Unable to find level chunk rep_hero_obiwan in C:\Programme\LucasArts\Star Wars Battlefront II\GameData\AddOn\TST\Data\_lvl_pc\SIDE\REP.lvl


Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk in dc:SIDE\REP.lvl

====
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (cis1_inf_pc_com_defend_inVehicle): unknown modifier "InVehicle"
uf_updateClassIndex(): Added class: rep_inf_327th_trooper

====
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(625)
Team missing class "rep_inf_327th_trooper" (check the side's .req file)
uf_updateClassIndex(): Added class: rep_inf_327th_rocketeer
uf_updateClassIndex(): Added class: rep_inf_327th_engineer
uf_updateClassIndex(): Added class: rep_inf_327th_commander
uf_updateClassIndex(): Added class: cis_inf_rifleman
uf_updateClassIndex(): Added class: cis_inf_rocketeer
uf_updateClassIndex(): Added class: cis_inf_sniper
uf_updateClassIndex(): Added class: cis_inf_engineer
uf_updateClassIndex(): Added class: cis_inf_officer
uf_updateClassIndex(): Added class: cis_inf_droideka
uf_updateClassIndex(): Added class: cis_hero_darthmaul
uf_updateClassIndex(): Added class: rep_hero_obiwan

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(1379)
Hero class "rep_hero_obiwan" not found for team 1 (check the side's .req file)
==EDIT==

i just saw my req file had the wrong name.

But why did this mean with obi-wan??

can i ignor all Message Severity: 2??

======================STOPPED======================

So i stopped the discussion about adding coustom sides i just made it and it works. i ignore the Message Severity: 2 and all is fine. So now is missing for a good side the first perspective but i think i can make this by my self. so i didn't need help with this.

But the next big capital is hex editing. And there is only a big ?

i just read the tutorials:
http://www.gametoast.com/forums/viewtop ... 27&t=11141
forums/viewtopic.php?f=27&t=21955&hilit=MODL+chunk
and this side:
http://personal.riley-man.com/swbf/edit ... f-msh.html

i learned programming a while ago and so i understand lot of it.

BUT i tried it and it didn't work. i don't know why. Maybe you can help me.

i wanted to add a kama to a side. So i cached one side with Kama and copied it with the first tut. But something seams to be wrong with it. you may can see it in the file

Download

this is the kama but something is wrong with it.

PLS HELP