Page 1 of 1

Unit Not Appearing In-Game

Posted: Thu Oct 16, 2008 4:59 pm
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.

Re: Unit Not Appearing In-Game

Posted: Thu Oct 16, 2008 6:13 pm
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

Re: Unit Not Appearing In-Game

Posted: Thu Oct 16, 2008 6:52 pm
by [RDH]Zerted
Umm, Lua doesn't use // as comments (it uses --). Thats not in your script file is it?

Re: Unit Not Appearing In-Game

Posted: Fri Oct 17, 2008 2:40 am
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

Re: Unit Not Appearing In-Game

Posted: Fri Oct 17, 2008 10:39 am
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...

Re: Unit Not Appearing In-Game

Posted: Fri Oct 17, 2008 2:18 pm
by DarthD.U.C.K.
can you post your bf2log?
i could post endless circumstances that can cause a not showing up ingame weapon

Re: Unit Not Appearing In-Game

Posted: Fri Oct 17, 2008 2:47 pm
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