Unit Not Appearing In-Game

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
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 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: South Carolina
Contact:

Unit Not Appearing In-Game

Post by bokkenblader56 »

I have a somewhat interesting problem, and I have quite obviously done something wrong.

I have copied Boba Fett's odf file and renamed it. The new name is "imp_hero_kerubim.odf" since I want the unit without scrapping Boba.

I have copied "imp_hero_bobafett.req" and renamed the copy "imp_hero_kerubim.req". It's the exact same as the original.

I have added the text "imp_hero_kerubim" into "imp.req."

I have added the unit into the localize tool. Above it is the text of the address. entity.imp.hero_kerubim.

In "123g_con.lua" I have changed the following things:

Code: Select all

    ReadDataFile("dc: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_hero_kerubim",        // I probably didn't need to do that.
                    "imp_fly_destroyer_dome" )

Code: Select all

	AddUnitclass(IMP, "imp_hero_kerubim",0,1)

Kerubim isn't showing up in game, though.

Now the strangest thing is that when I use Boba Fett's files, odf, req, and all, he shows up in game. I can change anything in "imp_hero_bobafett.odf", even add my custom weapons that are showing up in-game, and it works.

Thanks in advance for any help.
computergeek
General
General
Posts: 770
Joined: Thu Jun 07, 2007 6:26 pm
Projects :: Halo Warthog vehicle for SWBF2
Games I'm Playing :: Bioware RPGs - Halo
xbox live or psn: No gamertag set
Location: Far Far away....

Re: Unit Not Appearing In-Game

Post by computergeek »

Go into the req and change it to your new name
Check all the files for Boba for anything mentioning your re-named files and change them to your new name
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Unit Not Appearing In-Game

Post by [RDH]Zerted »

Umm, Lua doesn't use // as comments (it uses --). Thats not in your script file is it?
wazmol
High General
High General
Posts: 892
Joined: Sat Sep 02, 2006 6:47 pm
Projects :: Thinking...
Games I'm Playing :: Black Ops
Location: London
Contact:

Re: Unit Not Appearing In-Game

Post by wazmol »

You didnt edit the units req. After you copied the req and renamed it, open it and change:

Code: Select all

imp_hero_bobafett
to

Code: Select all

imp_hero_kerubim
Then remunge and it should work, i see nothing else wrong. Also as a side note, did you put the common side from the assets into your worlds side folder and munge the 2 sides?

If not go to: Assets/Sides/ and copy Common then go to: Data_xxx/Sides/ and paste it in there.

Then when you open up the munge tool make sure on the sides list thing on the right above the progress window, click on EVERYTHING.

Hope that helps
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 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: South Carolina
Contact:

Re: Unit Not Appearing In-Game

Post by bokkenblader56 »

[RDH]Zerted wrote:Umm, Lua doesn't use // as comments (it uses --). Thats not in your script file is it?
Nah, I just did that for that post. I've been spending a lot of time in ODF files lately; maybe a little bit too much.


Let me make sure I got this right, because it's still not appearing.

imp_hero_kerubim.req

Code: Select all

ucft
{
    REQN
    {
        "class"
        "imp_hero_kerubim"
     }
}
In 123g_con

Code: Select all

    AddUnitClass(IMP, "imp_hero_kerubim",0,1)
I DO have Common in my sides folder. I've also MUNGED everything.

*EDIT* Crud, now the weapon's not even showing up ingame for Boba. I am destined to phail...
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: Unit Not Appearing In-Game

Post by DarthD.U.C.K. »

can you post your bf2log?
i could post endless circumstances that can cause a not showing up ingame weapon
bokkenblader56
Private First Class
Posts: 85
Joined: Mon Aug 04, 2008 7:20 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: South Carolina
Contact:

Re: Unit Not Appearing In-Game

Post by bokkenblader56 »

I tried to delete everything that was requested in whatever thread it was...can't remember. I also deleted all of the "Memory pool ____ is full; please raise count to --" except for the highest one.

Code: Select all

uf_updateClassIndex(): Added class:    all_inf_rifleman
uf_updateClassIndex(): Added class:    all_inf_rocketeer
uf_updateClassIndex(): Added class:    all_inf_sniper
uf_updateClassIndex(): Added class:    all_inf_engineer
uf_updateClassIndex(): Added class:    all_inf_officer
uf_updateClassIndex(): Added class:    all_inf_wookiee
uf_updateClassIndex(): Added class:    imp_inf_rifleman
uf_updateClassIndex(): Added class:    imp_inf_rocketeer
uf_updateClassIndex(): Added class:    imp_inf_sniper
uf_updateClassIndex(): Added class:    imp_inf_engineer
uf_updateClassIndex(): Added class:    imp_inf_officer
uf_updateClassIndex(): Added class:    imp_inf_dark_trooper
uf_updateClassIndex(): Added class:    imp_hero_kerubim

Message Severity: 2
.\Source\Team.cpp(625)
Team missing class "imp_hero_kerubim" (check the side's .req file)
uf_updateClassIndex(): Added class:    imp_hero_bobafett

Message Severity: 2
.\Source\SkyManager.cpp(122)
Skyfile FarSceneRange is in old format

Message Severity: 2
.\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 200
Post Reply