How to modify existing sides to all maps? Texture+lighting+.

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

How to modify existing sides to all maps? Texture+lighting+.

Post by edge123455 »

I have been trying to find information here but with no luck with the search function. I only found this topic on adding custom modes or eras to the stock maps. But there seems to be nothing else.

I am trying to do a 'soft mod', where I change textures, lighting and effects on the existing sides. But I don't know how to go about doing that.

I would like to know if it's possible to modify the terrain texture and lighting as well. Including the FX AND SKY files for each map.

I want this all to also take effect in the STOCK MULTIPLAYER MAPS too.

So for instance, I have the mod on my PC, the textures and lighting are modified. But the other people on the same sever, without the mod, are looking at the regular stock textures and fx's through their PC's.
Last edited by edge123455 on Sun Dec 08, 2013 5:05 am, edited 1 time in total.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: How to modify existing sides to all maps? Texture+lighti

Post by ANDEWEGET »

I did that a lot when I was still modding SWBF1. You can basically modify anything. Only creating/deleting objects from the map actually caused me any problems (crashing after the match started). Note though that the collision detection is still done on the server so moving objects might not be a very good idea.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How to modify existing sides to all maps? Texture+lighti

Post by Anakin »

What?? it is posible to modify my own rep, imp,.. sides and this will be multi compatible?? mh that sound quite interesting. odf changes (weapon power,...) won't work right??

@edge: After all what you are looking for is a custom mod.


So you make an own mod, with the stock assets as basis. than you do your changes on them and munge your mdo. after everything is done you replace the rep.lvl, imp.lvl,... from your mod with the stock rep.lvl, imp.lvl,....
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: How to modify existing sides to all maps? Texture+lighti

Post by edge123455 »

Anakin wrote:What?? it is posible to modify my own rep, imp,.. sides and this will be multi compatible?? mh that sound quite interesting. odf changes (weapon power,...) won't work right??

@edge: After all what you are looking for is a custom mod.


So you make an own mod, with the stock assets as basis. than you do your changes on them and munge your mdo. after everything is done you replace the rep.lvl, imp.lvl,... from your mod with the stock rep.lvl, imp.lvl,....

I said I wanted to change the textures, the effects (particle effects), the lighting of both the sides and maps.

If I change the weapon's and unit's ODF's and add new objects with collision on the map or the sides, that will not be online compatible, which is not what I'm looking for.

In other words, I'm not trying to make physical changes (collision and in game variables and values) because it will screw things up, just aesthetic changes.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How to modify existing sides to all maps? Texture+lighti

Post by Anakin »

Oh yes i noticed that. the first part was just an idea i had and i asked ande if odf changes will work, top.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: How to modify existing sides to all maps? Texture+lighti

Post by nobody3 »

Yes it is possible (just copy the munged lvl files over the original ones) but what works online is limited, for example, in my experience lightinng is not possible to work online (I tried it because lighting drops my frame rate lol)
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: How to modify existing sides to all maps? Texture+lighti

Post by ANDEWEGET »

Some ODF changes will 'work' (visually). For example projectile speed, spread, things like that. Many of the prop/building ODF parameters work, too, like attaching lights etc.
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: How to modify existing sides to all maps? Texture+lighti

Post by edge123455 »

Will changing the stock maps terrain texture, lighting, fx file, sky file and adding object fx's in zeroedit (like white dust or cloud) work too???

Notice that all these changes are aesthetically so they will be rendered to the clients PC's instead of the servers hosting the maps.

The reason why I'm thinking of doing all of these modifications is because I want to give BF2 a different and new feel to it. But since BF2 is better to play online I understand that some mods won't work online unless all the other players on the server have the same mod installed.

So by having the mod I'm thinking of, you can be playing the hoth map for instance, with improved seamless textures, lighting and environment effects with a new background instead of the tall mountains.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How to modify existing sides to all maps? Texture+lighti

Post by Anakin »

The texture should work and the sky, too, after it is also just an texture. The otheres maybe.
If i understnad eceryting right here.


One question from me: would it also be possible to change the unit's or weapon msh file??
Specially the weapons msh file would be interesting for me. And if it's not possible in common what about the high res?? Because that's only shown in 1st persp. It shouls go.
Would animations also go? E.g. darthducks elite animation
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to modify existing sides to all maps? Texture+lighti

Post by Nedarb7 »

edge123455 wrote:Will changing the stock maps terrain texture, lighting, fx file, sky file and adding object fx's in zeroedit (like white dust or cloud) work too???

Notice that all these changes are aesthetically so they will be rendered to the clients PC's instead of the servers hosting the maps.

The reason why I'm thinking of doing all of these modifications is because I want to give BF2 a different and new feel to it. But since BF2 is better to play online I understand that some mods won't work online unless all the other players on the server have the same mod installed.

So by having the mod I'm thinking of, you can be playing the hoth map for instance, with improved seamless textures, lighting and environment effects with a new background instead of the tall mountains.
Textures will always work, I've done it myself and it worked online without any problems. Adding a new stuff like effect odfs might not work, editing effects works though. Editing the light's properties will probably work. Editing the sky's texture will work and possibly changing its mesh.
Anakin wrote:One question from me: would it also be possible to change the unit's or weapon msh file??
Specially the weapons msh file would be interesting for me. And if it's not possible in common what about the high res?? Because that's only shown in 1st persp. It shouls go.
Would animations also go? E.g. darthducks elite animation
Yes, yes, and yes.
User avatar
ANDEWEGET
Ancient Force
Ancient Force
Posts: 1266
Joined: Tue Apr 01, 2008 8:42 am
Location: Germany
Contact:

Re: How to modify existing sides to all maps? Texture+lighti

Post by ANDEWEGET »

I think you have to approach this topic from the other perspective. Not "what can be changed" but "what can't be changed".

From my experience this crashed the game (that was SWBF1 though):
- Adding more objects to a map (and most likely deleting).
- Changing parameters like ammo per magazine, ammo used per shot, shots per salve etc.

Not exactly sure about the actual terrain height map. I once cut a hole into my terrain and I can't recall that causing any crashes though. The character movement bugged out a bit though because it wants to fall through (or stay depending on if the hole is on the server or client) but the server resets the players position.
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: How to modify existing sides to all maps? Texture+lighti

Post by nobody3 »

Can you confirm that editing lighting works online? Because im pretty sure I did it before and it always crashed...
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: How to modify existing sides to all maps? Texture+lighti

Post by Anakin »

Wow that sounds great. I have directly an new Mod Idea :D
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to modify existing sides to all maps? Texture+lighti

Post by Nedarb7 »

nobody3 wrote:Can you confirm that editing lighting works online? Because im pretty sure I did it before and it always crashed...
You are right, light doesn't work. Just tried it.....
-EDIT-
Forget what I just said, it works:
Hidden/Spoiler:
ImageImage
Yes this is online, so it works. Pretty much what I did was edit the light's properties through its LGT file (the worlds light file) rather than ZE. If you noticed there is no specular where there should (the battle droid). That is because I changed the specular value of one of the lights. Here's what the LGT looks like:

Code: Select all

Light("sun", 1097130976)
{
	Rotation(-0.396709, -0.132737, -0.875473, 0.241971);
	Position(9.931580, 88.982986, 169.230515);
	Type(1);
	Color(0.690196, 0.741176, 0.815686);
	CastShadow();
	Static();
	PS2BlendMode(0);
	TileUV(1.000000,1.000000);
	OffsetUV(0.000000,0.000000);
	CastSpecular();                                    < I removed the 1 to disable specular
}
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: How to modify existing sides to all maps? Texture+lighti

Post by edge123455 »

Now I'm trying to go about doing all this, especially the part of changing the lighting and texture of the stock maps, how do I even go about doing all this.

I have been modding for a few years now so I can understand all the technicality.


I just want to have a straight forward explanation so I can start experimenting and see what is possible and what is not for each map.

For the side modifications do I do this?

http://www.gametoast.com/forums/viewtop ... 96#p287596
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to modify existing sides to all maps? Texture+lighti

Post by Nedarb7 »

Tutorial for editing shipped maps (skip steps six and up) then replace the map .lvls with your new ones:
http://www.gametoast.com/forums/viewtop ... =27&t=8519
edge123455 wrote:for the side modifications do I do this?

http://www.gametoast.com/forums/viewtop ... 96#p287596
What you will want to do is make the side and replace the stock .lvls with yours. That tutorial is for making an era or game mode kind of thing.

Also you want to make sure you back up the stock .lvls you are going to replace. :wink:
nobody3
Rebel Sergeant
Rebel Sergeant
Posts: 188
Joined: Wed Jun 15, 2011 8:30 am

Re: How to modify existing sides to all maps? Texture+lighti

Post by nobody3 »

Hmm those lights may be possible but what about "Global light settings" (top and bottom ambient colors) ?
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to modify existing sides to all maps? Texture+lighti

Post by Nedarb7 »

Oh, forgot to mention that I only posted one light that was found in the LGT, the global settings can be found lower in the LGT just like any other light (haven't tested it though).

Also, edge, if you want to add something new (I haven't seen it any mods yet) you could make the sides skins different on each map while preserving online compatability. All you'd need to do is make edits of the textures and load them in your new world.lvls req. Since textures are overwritten by the last .lvl loaded and maps get loaded after the sides it should work (say you added the textures to your utapau, since utapau is only loaded on utapau the skins would only appear on utapau).
User avatar
edge123455
Private Second Class
Posts: 73
Joined: Wed May 18, 2011 7:07 pm
Projects :: Hoth Battlefield
xbox live or psn: No gamertag set

Re: How to modify existing sides to all maps? Texture+lighti

Post by edge123455 »

Nedarb7 wrote:Oh, forgot to mention that I only posted one light that was found in the LGT, the global settings can be found lower in the LGT just like any other light (haven't tested it though).

Also, edge, if you want to add something new (I haven't seen it any mods yet) you could make the sides skins different on each map while preserving online compatability. All you'd need to do is make edits of the textures and load them in your new world.lvls req. Since textures are overwritten by the last .lvl loaded and maps get loaded after the sides it should work (say you added the textures to your utapau, since utapau is only loaded on utapau the skins would only appear on utapau).

Sounds, good. Thx

So I had sometime yesterday and did modify the skydome with new textures and also terrain textures successfully.

Also, I added objects and they DO WORK ONLINE, only catch is that you have to define them as 'props' in the ODF and add the 'no collision' command to the msh file. But it is alright because the objects I'm using will be for effects and background props.

I will keep you guys informed on what happened and hopefully post some screenshots to see the results. In a few days since I'm busy with college and work. Hopefully Friday.

That way other modders can see what works and doesn't without having to do it themselves and wasting extra time.
User avatar
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Re: How to modify existing sides to all maps? Texture+lighti

Post by Nedarb7 »

edge123455 wrote:I added objects and they DO WORK ONLINE, only catch is that you have to define them as 'props' in the ODF and add the 'no collision' command to the msh file. But it is alright because the objects I'm using will be for effects and background props.
Interesting information! :thumbs:
edge123455 wrote:I will keep you guys informed on what happened and hopefully post some screenshots to see the results. In a few days since I'm busy with college and work. Hopefully Friday.

That way other modders can see what works and doesn't without having to do it themselves and wasting extra time.
Alright, that will be helpful.
Post Reply