How To Make Mods On Mac

Started by Hardcore, January 22, 2009, 06:36:12 PM

Previous topic - Next topic
January 22, 2009, 06:36:12 PM Last Edit: June 26, 2011, 02:57:07 PM by Buckler
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. 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). 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
QuoteSow the wind and reap the whirlwind
Through the rain and through the shine
Only something with a meaning can stand the test of time

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?

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.



Sorry, I'm running Windows for modding.

EDIT: WTF it didn't resize it. There's no way I'm reuploading this.


#TYBG

God da** you Thomas. You froze my computer. No really, you did. Anyway, I'll take Thomas's topic Zombies mod and repost it. :)

January 25, 2009, 09:40:26 AM #5 Last Edit: May 31, 2010, 03:14:53 PM by Zephyr
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)


#TYBG

Wait, you lost me at the 'launch a search' part. Could you maybe explain more clearly?
Playing SWBF on a Mac Since 4.6 years ago!

He probably meant Apple + F. Basically you have to search for it.


#TYBG

Ok, I searched for imp_inf_dark_trooper and it found it. Now what? I don't see any weapon data to replace.
Playing SWBF on a Mac Since 4.6 years ago!

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

Viruses are like the New York Lottery. "Hey, you never know"

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!


Gameranger name: Pistachio.
Former nickname: Unit Sam!

June 12, 2009, 06:39:24 PM #11 Last Edit: June 13, 2009, 12:37:32 PM by The_Pi
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

Viruses are like the New York Lottery. "Hey, you never know"

Ok, thanks. It still gives me only one clip though, and if i reload i lose all the ammo.


Gameranger name: Pistachio.
Former nickname: Unit Sam!

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)

Viruses are like the New York Lottery. "Hey, you never know"

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?


Gameranger name: Pistachio.
Former nickname: Unit Sam!