Conversion from SWBF2 to 1 Map - Terrain & Sky Issue

Started by Red04SWBF, July 01, 2017, 05:03:00 AM

Previous topic - Next topic
Hello! I need help with this.

I've been at least 1 month researching how to convert a SWBF2 map to SWBF1, and the fact is that I've finally made it with Coruscant: Jedi Temple (with my own method :P).

What I haven't achieved in the resulting map is to clear the collision of the terrain, which apparently looks dark. Here I leave some screenshots where I show you where the problem is...



The first image corresponds to my own conversion of the map and the second to a conversion of a downloaded map in SWBFGamers.

I also have a problem with showing the stars in the sky. I have entered this code in the cor1.sky file:

Stars()
{
NumStars(8000);
RandomSeed(1);
TwinkleFactor(0.5);
TwinkleFrequency(0.1);
Color(255, 255, 255, 255);
BrightStarPercent(70.0);
AlphaMin(15);
ColorSaturation(0.75);
}


And this happens:



If you can help me, I'll thank you!
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

Not sure about the terrain, but the stars might need increased settings. Try these, if it still doesn't work then post the rest of your SKY file here, as there could be something else breaking it.

Stars()
{
NumStars(4000);
RandomSeed(1);
TwinkleFactor(10.0);
TwinkleFrequency(10.0);
Color(255, 255, 255, 255);
BrightStarPercent(90.0);
AlphaMin(15);
ColorSaturation(0.9);
}

Thanks Phobos! I've been able to resolve it, it seems it was a code error.  :slap:



Even if you aren't very sure, is there no way to make the terrain collision disappear? I mean something similar like the map of Bespin: Platforms. In this map there's no terrain and the player can fall into the void and die (more or less this is what I mean).
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

There is terrain on platforms (SWBF1).  It is just really really far down.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on July 02, 2017, 09:26:41 AM
There is terrain on platforms (SWBF1).  It is just really really far down.

I believe it's a sky file setting that makes it vanish when the map is munged.

I think you have to put this in the SKY file under DomeInfo():

TerrainEnable(0);
In Progress:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy Edition)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Endor: Imperial Base

Thank you very much Gistech!  :cheer: I didn't know it was this line of code...
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

Please beware, SWBF1 does not like SWBF2, mainly models. Expect lots of issues wit collision disappearing.
Never let a person named AnthonyBF2 touch your BF2.

Quote from: Anthony_b on July 02, 2017, 02:07:24 PM
Please beware, SWBF1 does not like SWBF2, mainly models. Expect lots of issues wit collision disappearing.

If you have Softimage Mod Tool and the ZETools, that's easily fixable. The way collision is handled was changed between the two games but it more or less just boils down to renaiming the collision primitives to the naming convention used in the first game (IE collision, collision2, collision3 etc).
In Progress:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy Edition)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Endor: Imperial Base

And how do I do that?
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

Some of tirpider's msh tools have the ability to fix-up the size values in a .msh file after they've been hex-edited. You can search for NAME sections in the msh file using a hexeditor and then rename any p_* chunks you come across, possibly inserting new characters. Then just run the msh file through this http://www.swbfgamers.com/index.php?topic=6680.0 and it should fix up everything for you.

This is how I made almost all the conversions I released.

I've opened some .msh files from SWBFII Coruscant map with hex editor. Do you mean all the lines that have p_-so-collision... or something like that? And should I rename these lines, or should I simply add 1 byte?

If so, I'll try to do it in all .msh files and try the tool you mentioned.
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

If the name is long enough you should be able to rename it without having to insert any extra bytes. Just make sure to zero out the rest of the name in hex.

IE: p_so_collision1 -> collision1
In Progress:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy Edition)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Endor: Imperial Base

Quote from: Gistech on July 04, 2017, 12:56:36 AM
If the name is long enough you should be able to rename it without having to insert any extra bytes. Just make sure to zero out the rest of the name in hex.

IE: p_so_collision1 -> collision1

I did it yesterday in this way, but it gave me an error. A countdown appears when selecting units...  :P
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)

Quote from: Red04 (CC-4398) on July 07, 2017, 06:10:14 AM
I did it yesterday in this way, but it gave me an error. A countdown appears when selecting units...  :P

Collision shouldn't affect that. It's just collision.
In Progress:
--Star Wars: Battlefront - Anniversary Edition (formerly Star Wars: Battlefront - Legacy Edition)

On Hold:
--Star Wars Battlefront: Elite Squadron For SWBF1
--Endor: Imperial Base

July 07, 2017, 09:28:13 AM #14 Last Edit: July 07, 2017, 10:17:56 AM by Red04 (CC-4398)
Well, something doesn't fit or I haven't done well...

What I cannot understand is why it happens. Exactly what I did to MSH files was the following:

p_-so-collisionABC -> ......collisionABC (in hex to 000000000000)

Then it was when I munged and when I tried the map I got that countdown and the CPs disappeared from the map (it was unable to spawn :/).

But the most surprising thing was when I did the following thing much earlier:

p_-so-collisionABC -> qwertycollisionABC

Then it worked, but the collision was inverted (something too weird).

I think I'm messing up a bit... I have also used the Tirpider tool after hex editing but I had a problem ... I don't know how I have to use it. :P
AR Clan Discord: https://discord.gg/gmmSm5e | Star Wars: Battlefront - 20th Anniversary (2004-2024)