SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: wsa30h on February 02, 2021, 01:19:21 PM

Title: overriding a map fx file trough lua ?
Post by: wsa30h on February 02, 2021, 01:19:21 PM
is it possible to load an world fx file for rain and weather effects trough the lua and override the one that is munged inside of the map lvl ?
Title: Re: overriding a map fx file trough lua ?
Post by: Led on February 02, 2021, 07:21:01 PM
pretty sure fx files are not loaded in with lua, only the map that contains the munged fx.  So, you can load in a new world without fx over the top of the first world, but not sure that gets you anything.
Title: Re: overriding a map fx file trough lua ?
Post by: wsa30h on February 03, 2021, 05:47:49 AM
so could i load in a second copy of the world with this new fx and overwrite the one in there but loading two different copies of the same map in the lua ?
Title: Re: overriding a map fx file trough lua ?
Post by: Led on February 03, 2021, 03:04:55 PM
yes.  But you could do the same thing by just loading the map without fx.

In the past, i have loaded Bespin CloudCity + Platforms in one map.  Try it, it is fun  :cheers:
Title: Re: overriding a map fx file trough lua ?
Post by: Dark_Phantom on February 03, 2021, 06:49:54 PM
We talked a little bit about this in Discord, but you should be able to load in any of the smaller files (you see in the _BUILD_PC folder when you munge) after you load the world.  There's possibly some memory issues associated with it, but for his purposes it did work.

CC and Platforms together is fun :D
Title: Re: overriding a map fx file trough lua ?
Post by: wsa30h on February 04, 2021, 10:06:20 AM
what do you mean memory related issues ?
Title: Re: overriding a map fx file trough lua ?
Post by: Dark_Phantom on February 04, 2021, 12:05:32 PM
Memory issues:
There's only a finite amount of memory you can use for the world.  Probably what is happening is NOT that you are "overwriting" but "writing on top of" what's already there, which for a small map is probably not an issue, but if there's a big map and you start loading in more stuff, you're going to crash it.
EhPortal 1.34 © 2024, WebDev