SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: TimoCruz on May 09, 2022, 06:34:36 AM

Title: Third era
Post by: TimoCruz on May 09, 2022, 06:34:36 AM
So i've created a third era using the Interface Tool and got it working on all maps except the ones that only have 1 era by default. these maps don't give the option to choose an era and just add the map with the single era they have. How do I make it come up with the era select for these maps?
Title: Re: Third era
Post by: wsa30h on May 09, 2022, 12:49:45 PM
follow this tutorial and download my addme. this is the best way to add new eras since it doesent overwrite any files.
Title: Re: Third era
Post by: Dark_Phantom on May 10, 2022, 07:20:30 AM
Quote from: wsa30h on May 09, 2022, 12:49:45 PMfollow this tutorial and download my addme. this is the best way to add new eras since it doesent overwrite any files.
You didn't link anything.
Title: Re: Third era
Post by: wsa30h on May 10, 2022, 09:57:32 AM
my bad here http://www.swbfgamers.com/index.php?topic=14522.0
Title: Re: Third era
Post by: TimoCruz on May 13, 2022, 05:30:30 AM
I followed the tutorial but I my third era still isn't showing up on single era map unfortunatley
Title: Re: Third era
Post by: wsa30h on May 13, 2022, 03:10:14 PM
did you make the script with the a supported era letter ?
Title: Re: Third era
Post by: TimoCruz on May 14, 2022, 12:16:15 PM
Yeah the era works fine on all maps except the single era ones. It's really confusing me cos I followed the tutorial
Title: Re: Third era
Post by: Dark_Phantom on May 14, 2022, 04:53:12 PM
Because the tutorial doesn't encompass that.

You've added the "era" references, but it won't matter unless you add mission files to support it. (See "Mission.lvl builder" in the search bar to learn about adding or just compiling the stock missions in the game.)

In missionlist.lua, there's a list of missions. In the game's lua scripting, there's a section of code that says if there's only one "side_x = 1" reference (x being the side code, a/c/i/r) that it will NOT load the 2nd screen to select an era.  This is for cleanliness and makes sense because why have the user select when they don't have a choice anyway? To fix it, you'd have to modify the missionlist table either through the addme (which is how the mod maps work) or modify the original missionlist using the shell.lvl builders on here.

TL;DR - There's many steps to this process that you should probably give the search bar a workout, experiment, then create threads detailing whatever goes wrong.
Title: Re: Third era
Post by: TimoCruz on May 20, 2022, 08:43:50 AM
Thanks a lot man! I looked into the missionlist stuff and how to change it and i've finally got it working! Much appreciated  :cheer:
Title: Re: Third era
Post by: wsa30h on May 20, 2022, 03:19:03 PM
glad to hear its working.
EhPortal 1.34 © 2024, WebDev