SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Hardcore on January 22, 2009, 06:36:12 PM

Title: How To Make Mods On Mac
Post by: Hardcore on January 22, 2009, 06:36:12 PM
Some people are probably going to be going  :huh: when they read this topic but it's possible. I've made a few, they can be found at my file page @ filefront (http://jedikiller.filefront.com). But anyway heres how to do it.

edit by buckler:  Link is broken. If anyone has this file let me know.

First you will need to get a hexeditor, a good one is HexEdit (can be found here) (http://hexedit.sourceforge.net/). Next read the following tutorial carefully.
How to edit: Read the following list carefully and then at the bottom is an expample of an edit.
DO NOT GIVE ANY UNIT A LIGHTSABER! IT DOES NOT WORK!

Sides:
"all.lvl" : Rebel Alliance Side's main *.LVL file
"cis.lvl" : Confederacy of Independent Systems Side's main *.LVL file
"imp.lvl" : Galactic Empire Side's main *.LVL file
"rep.lvl" : Galactic Republic Side's main *.LVL file

Units: Rebel
"all_inf_soldier" : Rebel Soldier
"all_inf_soldierdesert" : Rebel Soldier (Desert Patern)
"all_inf_soldierjungle" : Rebel Soldier (Jungle Patern)
"all_inf_soldiersnow" : Rebel Soldier (Snow Patern)
"all_inf_soldierurban" : Rebel Soldier (Urban Patern)
"all_inf_vanguard" : Rebel Vanguard
"all_inf_vanguardjungle" : Rebel Vanguard (Jungle Patern)
"all_inf_vanguardsnow" : Rebel Vanguard (Snow Patern)
"all_inf_pilot" : Rebel Pilot
"all_inf_marksman" : Rebel Marksman
"all_inf_marksmanjungle" : Rebel Marksman (Jungle Patern)
"all_inf_marksmansnow" : Rebel Marksman (Snow Patern)
"all_inf_smuggler" : Wookiee Smuggler
"all_inf_smugglersnow" : Wookiee Smuggler (Snow Patern)

Units: CIS
"cis_inf_super_battledroid" : Super Battle Droid
"cis_inf_assault" : Assault Droid
"cis_inf_pilotdroid" : Droid Pilot
"cis_inf_assassindroid" : Assassin Droid
"cis_inf_droideka" : Droideka
"cis_inf_battledroid_inf" : Battle Droid
"cis_inf_battledroid_av" : Droid Demolitions
"cis_inf_battledroid_pilot" : Droid Pilot
"cis_inf_battledroid_sniper" : Droid Sniper

Units: Imperials
"imp_inf_storm_trooper" : Stormtrooper
"imp_inf_storm_trooperdesert" : Stormtrooper (Desert Patern)
"imp_inf_storm_troopersnow" : Stormtrooper (Snow Patern)
"imp_inf_shock_trooper" : Shock Trooper
"imp_inf_shock_troopersnow" : Shock Trooper (Snow Patern)
"imp_inf_pilotatat" : Imperial Pilot (AT-AT Driver)
"imp_inf_pilotatst" : Imperial Pilot (AT-ST Driver)
"imp_inf_pilottie" : Imperial Pilot (TIE Fighter Driver)
"imp_inf_scout_trooper" : Scout Trooper
"imp_inf_scout_troopersnow" : Scout Trooper (Snow Patern)
"imp_inf_dark_trooper" : Dark Trooper
"imp_inf_dark_troopersnow" : Dark Trooper (Snow Patern)

Units: Republic
"rep_inf_clone_trooper" : Clone Trooper
"rep_inf_arc_trooper" : ARC Trooper
"rep_inf_clone_pilot" : Clone Pilot
"rep_inf_clone_sharpshooter" : Clone Sharpshooter
"rep_inf_jet_trooper" : Jet Trooper

Weapons:

Rebels
"all_weap_inf_bowcaster" : Bowcaster
"all_weap_inf_crackgrenade" : Concussion Grenade
"all_weap_inf_fusioncutter" : Fusion Cutter
"all_weap_lightsaber" : Lightsaber
"all_weap_inf_mine_dispenser" : Mines
"all_weap_inf_mortar_launcher" : Grenade Launcher
"all_weap_inf_pistol" : Blaster Pistol
"all_weap_inf_powerup_dispenser" : Dispenser Health & Ammo
"all_weap_inf_remote_charge_dispenser" : Time Bomb
"all_weap_inf_remotedroid" : Recon Droid
"all_weap_inf_remotedroid_blaster" : Blaster
"all_weap_inf_remotedroid_destruct" : Orbital Strike
"all_weap_inf_rifle" : Blaster Rifle
"all_weap_inf_shotgun" : Blaster Cannon
"all_weap_inf_sniperrifle" : Sniper Rifle
"all_weap_inf_thermaldetonator" : Thermal Detonator
"all_weap_inf_torpedo_launcher" : Missile Launcher

CIS
"cis_weap_inf_crackgrenade" : Concussion Grenade
"cis_weap_inf_fusioncutter" : Fusion Cutter
"cis_weap_lightsaber" : Lightsaber
"cis_weap_inf_mine_dispenser" : Mines
"cis_weap_inf_mortar_launcher" : Radiation Launcher
"cis_weap_inf_pistol" : Blaster Pistol
"cis_weap_inf_powerup_dispenser" : Dispenser Health & Ammo
"cis_weap_inf_remote_charge_dispenser" : Time Bomb
"cis_weap_inf_remotedroid" : Recon Droid
"cis_weap_inf_remotedroid_blaster" : Blaster
"cis_weap_inf_remotedroid_destruct" : Orbital Strike
"cis_weap_inf_repeater" : Repeating Blasters
"cis_weap_inf_rifle" : Blaster Rifle
"cis_weap_inf_sniperrifle" : Sniper Rifle
"cis_weap_inf_thermaldetonator" : Thermal Detonator
"cis_weap_inf_torpedo_launcher" : Missile Launcher
"cis_weap_inf_wrist_blaster" : Wrist Blaster
"cis_weap_inf_wrist_rocket" : Wrist Rocket
"cis_weap_inf_wrist_shrapnel" : Tri-Shot

Empire
"imp_weap_inf_crackgrenade" : Concussion Grenade
"imp_weap_inf_fusioncutter" : Fusion Cutter
"imp_weap_lightsaber" : Lightsaber
"imp_weap_inf_mine_dispenser" : Mines
"imp_weap_inf_mortar_launcher" : Mortar Launcher
"imp_weap_inf_pistol" : Blaster Pistol
"imp_weap_inf_powerup_dispenser" : Dispenser Health & Ammo
"imp_weap_inf_remote_charge_dispenser" : Time Bomb
"imp_weap_inf_remotedroid" : Recon Droid
"imp_weap_inf_remotedroid_blaster" : Blaster
"imp_weap_inf_remotedroid_destruct" : Orbital Strike
"imp_weap_inf_rifle" : Blaster Rifle
"imp_weap_inf_shotgun" : Blast Cannon
"imp_weap_inf_sniperrifle" : Sniper Rifle
"imp_weap_inf_thermaldetonator" : Thermal Detonator
"imp_weap_inf_torpedo_launcher" : Missile Launcher

Republic
"rep_weap_inf_arccaster" : DN Bolt Caster
"rep_weap_inf_commando_pistol" : Commando Pistol
"rep_weap_inf_crackgrenade" : Concussion Grenade
"rep_weap_inf_fusioncutter" : Fusion Cutter
"rep_weap_inf_haywiredetonator" : EMP Grenade
"rep_weap_lightsaber" : Lightsaber
"rep_weap_inf_mine_dispenser" : Mines
"rep_weap_inf_pistol" : Blaster Pistol
"rep_weap_inf_powerup_dispenser" : Dispenser Health & Ammo
"rep_weap_inf_remote_charge_dispenser" : Time Bomb
"rep_weap_inf_remotedroid" : Recon Droid
"rep_weap_inf_remotedroid_blaster" : Blaster
"rep_weap_inf_remotedroid_destruct" : Orbital Strike
"rep_weap_inf_rifle" : Blaster Rifle
"rep_weap_inf_rocket_launcher" : EMP Launcher
"rep_weap_inf_sniperrifle" : Sniper Rifle
"rep_weap_inf_thermaldetonator" : Thermal Detonator
"rep_weap_inf_torpedo_launcher" : Missile Launcher

Example Mod:
In order to edit the Weapons that the Dark Trooper currently owns in this LucasArts video-game, just read closely the following tutorial :
Make sure you have made a Back-Up of the "imp.lvl" file, located inside the /Contents/Resources/Data/LVL_PC/SIDE directory
Open your Hex-editor and use it in order to edit the "imp.lvl" file mentioned above
Launch a Search (apple + s) using the following Keywords : "imp_inf_dark_trooper" and "imp_inf_dark_troopersnow"
Scroll down in the opened file once your Program has found a match, and check whether a few entries looking to the ones I have written in my last list are present near the Result your Hex-Editor has localized
Once you've noticed one of them, just look at its complete description, and replace it by another one, still chosen among the content of the last List, while making sure the Amount of characters of the brand-new entry does not exceed the one of the original weapon !
(In case the Label of the Weapon you wish to insert counts less characters than the original one's, just replace each remaining "Symbol" by "00" inside the Hexadecimal part of your Dedicated Program...)
Save all changes you've made, and you should be done.

Please people do not hesitate to post replies in this thread with questions about it. Download a few of my mods, test them out, make your own. Hopefully this will get everyone making mods.
If I get enough questions, I'll post another tutorial.
Enjoy.
-jedikiller32
Title: Re: How To Make Mods On Mac
Post by: Cloud-9 on January 25, 2009, 03:32:01 AM
Frankly, I don't understand what you are sayin'.
I've downloaded the Hexedit, now what's next?
Can you add the jpg files to show me how to change my clones' skins to EP 3?
Title: Re: How To Make Mods On Mac
Post by: Mac on January 25, 2009, 08:24:13 AM
Quote from: "Cloud-9"Frankly, I don't understand what you are sayin'.
I've downloaded the Hexedit, now what's next?
Can you add the jpg files to show me how to change my clones' skins to EP 3?

Talk to Thomas about that. He's re-skinned a few units from a Mac I think.
Title: Re: How To Make Mods On Mac
Post by: aeria. on January 25, 2009, 09:21:43 AM
(//http://img149.imageshack.us/img149/5100/picture1cc6.png)

Sorry, I'm running Windows for modding.

EDIT: WTF it didn't resize it. There's no way I'm reuploading this.
Title: Re: How To Make Mods On Mac
Post by: Mac on January 25, 2009, 09:28:05 AM
God da** you Thomas. You froze my computer. No really, you did. Anyway, I'll take Thomas's topic Zombies mod and repost it. :)
Title: Re: How To Make Mods On Mac
Post by: aeria. on January 25, 2009, 09:40:26 AM
LOL
The last time I saw a picture crashed a computer was on my Windows 3rd Edition Computer when it was still functional (It stopped when I was 7)
Title: Re: How To Make Mods On Mac
Post by: Sarg on February 05, 2009, 07:36:56 PM
Wait, you lost me at the 'launch a search' part. Could you maybe explain more clearly?
Title: Re: How To Make Mods On Mac
Post by: aeria. on February 05, 2009, 08:26:31 PM
He probably meant Apple + F. Basically you have to search for it.
Title: Re: How To Make Mods On Mac
Post by: Sarg on February 06, 2009, 12:18:12 PM
Ok, I searched for imp_inf_dark_trooper and it found it. Now what? I don't see any weapon data to replace.
Title: Re: How To Make Mods On Mac
Post by: Radical_Pi on February 06, 2009, 04:52:36 PM
If you are planning on changing weapons, just find the block of text that says imp_weap_... that follows the trooper name. If you want to change the damage and stuff of a weapon, that takes a bit more advanced knowledge, as the data is semi-encoded in there. I'll see if I can figure any data out.

If you want full control over unit textures and weapons, etc. you should download the mod tools and look up a tutorial for PC modding. The only difference in that is you have to ship the mod data off to a PC for them to make the LVL files. I'm willing to do that if you want
Title: Re: How To Make Mods On Mac
Post by: Pistachio on June 12, 2009, 04:20:18 AM
Er, sorry about reviving this dead topic. I tried giving the dark trooper a blaster rifle, but the dark trooper seems to disappear in the troop select menu.  :(  For some reason the sniper rifle works, but it only gives me six rounds to use. I followed the little tutorial at the end of the first post but I keep getting this problem. Please help!
Title: Re: How To Make Mods On Mac
Post by: Radical_Pi on June 12, 2009, 06:39:24 PM
Sam, that's because of some weapons properties. I don't know the exact codes but in I think I found it. Make sure you can see the actual text of the file in the hex editor. Go to the point where you changed the weapon. Look into the next section (between the next two "PROP" texts), and you should see a number (assuming you are replacing the shotgun, that number should be 7. For the pistol, it should be 0). Play with that number to see if it changes the number of shots.

btw, you might be using the wrong weapon ID. imp_weap_inf_rifle
Title: Re: How To Make Mods On Mac
Post by: Pistachio on June 13, 2009, 04:29:39 AM
Ok, thanks. It still gives me only one clip though, and if i reload i lose all the ammo.
Title: Re: How To Make Mods On Mac
Post by: Radical_Pi on June 13, 2009, 12:52:44 PM
Sorry sam, I think I misread your post. First of all, which weapon are you trying to replace? If it's the shotgun, try using the pistol for replacement, and then after the bytes 0600 0000 f3ba 849d (the 8 bytes after the next PROP) change 3000 0000 to 3700 0000 (0... to 7... or whatever unprintable characters show up as in your editor)

Those characters should start at 02b1:8990 and end at 03b1:899b

If all that fails, could you possible send me the section 02b1:83c0 to 02b1:928f in another file? That's the entire data file for the darktrooper? (your edited version, of course)
Title: Re: How To Make Mods On Mac
Post by: Pistachio on June 14, 2009, 01:53:17 AM
That didn't work. I can't find that hex code you said which is the start of the darktrooper data. I see there are more than one imp_weap_inf_pistol later on, would that have anything to do with it?
Title: Re: How To Make Mods On Mac
Post by: Radical_Pi on June 14, 2009, 06:04:51 AM
sorry, I wasn't clear. The codes with a : are locations in the data. What hexeditor are you using?

Also, yes, imp_weap_inf_pistol will appear multiple times since you might hit the MSH, weapon ODF, and the ODFs of every single unit when you try to edit it. The one you want should appear directly after imp_weap_inf_shotgun.

If your editor doesn't support segment:offset (the locations in the file I was giving you), just send me the entire imp.lvl. PCs have other tools to see what errors are in the file
Title: Re: How To Make Mods On Mac
Post by: Pistachio on June 14, 2009, 08:25:03 AM
i'm using this (//http://www.ifd.com/product_info.php?products_id=87) hex editor.

I can't send you the whole imp.lvl because I'm in South Africa at the moment and we have limited data usage on the internet!
EhPortal 1.34 © 2024, WebDev