decompiling.
Moderator: Moderators
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
decompiling.
Is it possible to decompile the shell.lvl? and if so how?
- Lozza
- Lieutenant Colonel

- Posts: 543
- Joined: Tue Jan 05, 2010 5:11 am
- Location: Australia. Melbourne
- Contact:
Re: decompiling.
No I don't think so. You have to make it yourself.
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
Re: decompiling.
but, how would you make it if there are no files for it in the modtools?
- Lozza
- Lieutenant Colonel

- Posts: 543
- Joined: Tue Jan 05, 2010 5:11 am
- Location: Australia. Melbourne
- Contact:
Re: decompiling.
The visualmunge will munge world/sides/sounds/loadscreens so you can only make side shell.lvl (like repshell or impshell), I may be wrong though. Sorry mate, maybe someone else may know the full answer.
EDIT: In the modtools/assets folder there is a folder called shell, maybe if you copy that into your data source folder it can be munged and edited.
EDIT: In the modtools/assets folder there is a folder called shell, maybe if you copy that into your data source folder it can be munged and edited.
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
The BF1 mod tools do not come with visualmunge. Nor do they come with any shell.lvl assets. Sorry, but you'd have to make a new shell.lvl yourself. If BattleBelk still modded he might have been able to help with certain things by creating a shell.lvl tool (we cracked mission.lvl, core.lvl and common.lvl) but he doesn't mod any more so we don't know what to do really.
- Lozza
- Lieutenant Colonel

- Posts: 543
- Joined: Tue Jan 05, 2010 5:11 am
- Location: Australia. Melbourne
- Contact:
Re: decompiling.
Hmmm I was just assuming, I'm gonna go download the bf1modtools now, I thought they were the same engine and setup. Just with different assets... 
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
Nope, the BF1 tools do not have much of the actual assets used for making the original core.lvl, mission.lvl, common.lvl and shell.lvl. We have had to decompile the .LVL files to get the munged files and then replace what we can with the mod tools and reinject them into the LVL files.
If we could know what was in shell.lvl we would have had 6 units by now.
If we could know what was in shell.lvl we would have had 6 units by now.
- Lozza
- Lieutenant Colonel

- Posts: 543
- Joined: Tue Jan 05, 2010 5:11 am
- Location: Australia. Melbourne
- Contact:
Re: decompiling.
Sounds confusing.ggctuk wrote:Nope, the BF1 tools do not have much of the actual assets used for making the original core.lvl, mission.lvl, common.lvl and shell.lvl. We have had to decompile the .LVL files to get the munged files and then replace what we can with the mod tools and reinject them into the LVL files.
If we could know what was in shell.lvl we would have had 6 units by now.
- ANDEWEGET
- Ancient Force

- Posts: 1266
- Joined: Tue Apr 01, 2008 8:42 am
- Location: Germany
- Contact:
Re: decompiling.
Side note:
Unless my memory fails Belk once said that textures are compressed to .dds format and then stored exactly like this in the .lvl file. So extracting textures with a hex editor should be possible(same way he got the common.lvl etc textures from?). Its definitely possible to replace munged textures in a .lvl files with others(this way you can change the blue loading screen if i remember right).
Unless my memory fails Belk once said that textures are compressed to .dds format and then stored exactly like this in the .lvl file. So extracting textures with a hex editor should be possible(same way he got the common.lvl etc textures from?). Its definitely possible to replace munged textures in a .lvl files with others(this way you can change the blue loading screen if i remember right).
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: decompiling.
Incorrect -- the unit count is a hard-coded value. Psych0fred has six units in his screenshots because he was a developer, and thus took a screenshot of a forked version of the game during development.ggctuk wrote:If we could know what was in shell.lvl we would have had 6 units by now.
Shell.lvl isn't anything exciting to be honest. I've asked for and received a handful of scripts hoping to be able to do additional "eras" in SWBF1, but the fact is that it was hard coded. No Old Republic era no "Hero Assault era"... so many things are just hard coded, probably for time's sake. About the only thing you can do is add maps right into SWBF1's missionlist.lua, but that's pointless since addon maps add themselves. I suppose it would be useful if someone wanted to port their mods to PS2/Xbox (which technically is possible), but as someone who's been there with SWBF2, there's no debugging on those machines, and it's super tough to get the quality Pandemic had and still fit it into memory.
I do, however, have the files needed to make custom load screen like the SWBF1 screens. Well - at least enough to do it with some files ripped from other load.lvl files, but doing a SWBF1-style load screen is totally possible. However getting it all set up so people can actually do it will be a major chore -- that's why I haven't tackled it yet.
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
BattleBelk had six units at one point too but either way it was broken.
It would have been nice to have had the BF1 engine code since it's obsolete, or an extension to the engine which would allow us to do additional scripting.
It would have been nice to have had the BF1 engine code since it's obsolete, or an extension to the engine which would allow us to do additional scripting.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: decompiling.
Shoot, just to have the Zero engine code in general would be awesome. A melding of the best of SWBF1 and SWBF2 would be exactly what's needed. I'd start with SWBF2's code, then bring back the classic SWBF1 elements like prone and a better HUD, fixing bugs as well. Then I'd make the SWBF1/SWBF2-unique features selectable as options locally, or on a dedicated server.
Oh, to dream. But it'll never happen now that Pandemic is dissolved, even if we could buy the source or they were cool enough to release it, it's lost to the effects of the economy now.
Oh, to dream. But it'll never happen now that Pandemic is dissolved, even if we could buy the source or they were cool enough to release it, it's lost to the effects of the economy now.
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
Re: decompiling.
ok there is a little utility called lvl extractor 006 by a guy named luck3y (not posting link as links on gametoast have a hard time working, just search up .lvl extractor). I extracted shell lvl and got about 350 files, but only lub files (not lua) and dds files. how do you open them?
wait... was psych0fred one of the creators of SWBF?
wait... was psych0fred one of the creators of SWBF?
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
Funny, psych0fred's signature says he did not. But he knew quite a bit about the engine that nobody else has done.
LUB files are siomply renamed .script files. You cannot open and edit them because they will be filled with gibberish mainly. You can get a vague idea of what they put into them though, if you crossreferenced it against a list of LUA commands from the BF1 executeable.
LUB files are siomply renamed .script files. You cannot open and edit them because they will be filled with gibberish mainly. You can get a vague idea of what they put into them though, if you crossreferenced it against a list of LUA commands from the BF1 executeable.
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
Re: decompiling.
LUB files are siomply renamed .script files
and script files are compiled lua files?
and script files are compiled lua files?
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
Exactly. So unless you know a way to reverse-engineer the munge application to create a demunger (possible, I've seen decompilation done to Tomb Raider's .DAT script files and they are full of gibberish compiled) then they're useless.
- jdee/barc
- 1st Lieutenant

- Posts: 444
- Joined: Wed Aug 25, 2010 2:47 pm
- Projects :: Battlefront One and a Half
- xbox live or psn: No gamertag set
- Location: Boston
Re: decompiling.
I can't think of a way.
does that mean that the unit count is hardcoded into the actual battlefront.exe, or is it in one of the many required lvl files?Incorrect -- the unit count is a hard-coded value. Psych0fred has six units in his screenshots because he was a developer, and thus took a screenshot of a forked version of the game during development.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: decompiling.
The executable.jdee/barc wrote:I can't think of a way.
does that mean that the unit count is hardcoded into the actual battlefront.exe, or is it in one of the many required lvl files?Incorrect -- the unit count is a hard-coded value. Psych0fred has six units in his screenshots because he was a developer, and thus took a screenshot of a forked version of the game during development.
- giftheck
- Droid Pilot Assassin

- Posts: 2218
- Joined: Mon Jan 19, 2009 5:58 pm
- Projects :: Star Wars Battlefront Anniversary
Re: decompiling.
It's entirely possible for somebody to come up with a patcher for it if they were to research the executable and find out which part does what. However I believe that would fall under the EULA rules for modifying the game's code. Although technically with main game mods we're doing it anyway, but we're not actually doing anything to the executable application.
-
mswf
- Master Bounty Hunter

- Posts: 1674
- Joined: Tue Mar 31, 2009 3:40 pm
- Location: Twello, The Netherlands
- Contact:
Re: decompiling.
I don´t know which rule says this; but I've learnt this much in my time on gametoast; You can mod pretty much any file, but you may not modify/patch/hex-edit the .exe file, because that seems to directly become illegal.
