Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Dark_Phantom

#1066
SWBF1 Modding Tutorials / Sound for the opposite era
March 06, 2013, 06:22:09 PM
I couldn't find a tutorial or any posts related to this... this has been a "silent" problem that kept me from going cross era with mods.  Please tell me if anyone else has already done this.

Ever want to cross your soldiers and weapons across an era?  Really?  An annoying thing that comes along with this is the silence of soldiers and weapons.  Well, the answer lies in the sound files.
 
You see, each side has its own specific sounds assigned to it in the sound files.  In the example I'm going to use, "sound\\bes.lvl;bes2gcw" contains the Imperial and Rebel sounds that the odfs call on.  For example, in the imp_weap_inf_rifle.odf, there are lines like this:
//******************************************************
//*************** SOUND ****************
//******************************************************

FireSound        = "imp_weap_inf_rifle_fire"
ReloadSound      = "imp_weap_inf_reload_med"
ChangeModeSound = "imp_weap_inf_equip_med"
FireEmptySound = "com_weap_inf_ammo_empty"
WeaponChangeSound = "imp_weap_inf_equip_med"


If you were to change FireSound to "rep_weap_inf_rifle_fire" (the Republic equivalent), you would hear nothing and be greatly disappointed, as the Republic weaponry sounds are contained in "sound\\bes.lvl;bes2cw".  Maybe the example will make it more clear.

1.) Go to your mission.lvl builder and pick a lua that you wish to edit.  I'm going to bes2a.lua (The GCW version of Cloud City)
2.) Open it up, you will see a line that says:
ReadDataFile("sound\\bes.lvl;bes2gcw");
3.) Add this line to it:
ReadDataFile("sound\\bes.lvl;bes2cw");
4.) Now to test it, pick a side and add these lines to the lua.  I picked a Clone Trooper to add to the Empire (will work with separate teams):
    ReadDataFile("SIDE\\rep.lvl",
        "rep_inf_basic");

        SetTeamName(IMP, "Empire")
        SetTeamIcon(IMP, "imp_icon")
    AddUnitClass(IMP, "imp_inf_storm_trooper",11)
    AddUnitClass(IMP, "imp_inf_shock_trooper",3)
    AddUnitClass(IMP, "imp_inf_scout_trooper",4)
    AddUnitClass(IMP, "rep_inf_clone_trooper",5)


YaY!  You can hear him and everything.  (EMP Grenade?  Not quite sure what's up with it :dry:)  His guns and voice come through though.

I found this out making my newest mod (I had an Imp rifle noise already used, and I wanted a Rep pistol noise for another weapon).  By adding that one line to the lua and changing the odf, I can now hear the Republic and CIS noises. 
I also found out that the sound for the wrist blaster is linked to the sbdroid animation and CW sounds, so you need to have that line to hear it at all ingame.  Changing the odf to another fire sound doesn't work.

8)
#1068
Tech Support / Re: My Republic Commando won't load?
March 03, 2013, 11:42:42 AM
Very rarely (as is the situation with me), when sound is on, it causes games like this not to start.  It's worth a shot turning off your sound output machine in the Control Panel.
#1069
Star Wars Battlefront (2004 Original) / Re: Lagger
March 02, 2013, 08:41:13 PM
I thought the days of "getting rid of laggers" in BF1 was over. Still happens in other games, sadly.  Most people have no control over this.
I play on dialup internet and always have (with a couple exceptions).  Though my ping would get up in the 300-400 range back in 2006 when I started playing, I would still play fairly well.  Some people complained a little that lag got worse when I joined (a valid complaint), but would really complain when I got kills, and then proceed to boot me. 
The last couple years this has rarely been a problem though as far as I knew.
#1070
Would you like to do it Sunday Nixo?  That seems like the best day for me.  Time, I'm not quite sure yet.  8)
Yes that is me (BOB Phantom)  ;)
#1071
SWBF1 Modding / Re: Amateur Modding Contest
February 27, 2013, 05:32:56 PM
That's ok with me, the more the merrier  8)
#1072
Released Maps and Mods / Re: Kashyyyk: Docks -- Recovery
February 25, 2013, 05:26:07 PM
Thanks. :)
Actually the remote is a part of a bigger project I'm working on.  I can (hopefully) use it for extra units if I can work out a couple bugs with it.  Napseeker actually used something like it in his mods, though he said it doesn't work in multiplayer. :(
8)
#1073
SWBF1 Modding / Re: Amateur Modding Contest
February 24, 2013, 07:31:29 AM
Sorry double post but it's been a while.
http://www.swbfgamers.com/index.php?action=downloads;sa=view;down=915
My entry into the amateur modding competition.  Kashyyyk Docks: Recovery!
#1075
SWBF1 Modding / Re: Amateur Modding Contest
February 19, 2013, 05:22:26 PM
LoL, slackers.
I'm almost finished.  Just need to clean up a few things and mine will be good to go  ;)
#1076
SWBF1 Modding / Re: Locals not spawning?
February 14, 2013, 05:29:01 PM
They make your reticule turn red still, but they don't shoot you, therefore bypassing the need for dummy AI.  So it works :)
Edit: you get credit for killing the neutral team LoL
#1077
SWBF1 Modding / Re: Locals not spawning?
February 14, 2013, 05:17:08 PM
When you remove SetTeamAsFriend they try to gun you down.  :o
I guess if you aren't a friend you are an enemy. 
Edit: I found something:  Maybe SetTeamAsNeutral ?
#1078
SWBF1 Modding / Locals not spawning?
February 14, 2013, 05:05:37 PM
I'm having an issue with my level... it's very odd.
    ReadDataFile("SIDE\\wok.lvl",
        "wok_inf_basic");

--  Local Stats
    SetTeamName(3, "locals")
    SetTeamIcon(3, "all_icon")
    AddUnitClass(3, "wok_inf_warrior", 3)
    AddUnitClass(3, "wok_inf_mechanic", 5)
    AddUnitClass(3, "wok_inf_rocketeer", 3)
    SetUnitCount(3, 11)
    SetTeamAsEnemy(3,ATT)
    SetTeamAsFriend(3,DEF)


This is just a small excerpt from my whole script.  When I spawn as a Friend, no Wookiees spawn.  When I spawn as the Enemy, 3 Wookiees spawn every time.  :dry:
Does the amount of reinforcements on the ally team have an impact on whether locals spawn?  Friendly has 1 reinforcement point in the match.  Its the only thing I can think of for this problem.  I'm going to see what happens when I remove the SetTeamAsFriend and create separate cps for them.
#1079
I will join as it has been a while since I have played and I feel I am ready to start again.
Be prepared to... win. Or lose if for some reason I regain all skill I once held :) 
8)
#1080
I'm willing to help with this project.  I have experience in .lua scripting and other mods for Battlefront 1 (have helped with reconstruction process) and have played it for a long time, as well as Battlefront 2 (which I do play, just never online).  I even already started making .lua scripts to integrate once I get the time to try to make a good imitation of the BF2 sides.
Notice the word "imitation".  Somebody could probably make actual sides if they wanted to. :)
:cheers: