Serious Sam Fusion 2017 (beta)

Serious Sam Fusion 2017 (beta)

50 ratings
Automatic Script Parser for Custom GameTitles
   
Award
Favorite
Favorited
Unfavorite
Type: Additions
File Size
Posted
Updated
97.422 KB
12 Feb, 2019 @ 11:20pm
4 Sep, 2021 @ 2:32pm
8 Change Notes ( view )

Subscribe to download
Automatic Script Parser for Custom GameTitles

Description
This is a supplementary mod that will run the majority of the CustomWorldScripts that are missing from any currently-existing custom GameTitle. Basically, its kind of a pain to have to update every single global script mod to work with every new GameTitle that comes out. This mod aims to help alleviate that.

This currently supports the following custom GameTitles:
MLPCampaing (MLP)
SeriousSamMooncrash (SSM)
SeriousSamProjectSelena (SLN)
WinterRush (OFB)
Z_7SmokeTennis2017_Blue (T5B)
Z_7SmokeTennis2017_Red (T5R)
Z_BladeRunner (BR)
Z_DOPM (DPM)
Z_DukeNukem3D (DN3D)
Z_IHateRunningBackwards (IHRB)
Z_Mechanical_Instincts (MHI)
Z_QuakeIIIArena (Q3A)
Z_SeriousBoxSolid (SBS)
Z_SeriousHorsam (HSM)
Z_TippinToBass (TTB)
ZZ_Pain (PRD)
ZZZ_BFEDMReborn (DMR)
ZZZ_Halloween (HLW)
ZZZ_LittleDreamers (LD)
ZZZ_LittleDreamers_Minigames (LDM)
ZZZ_PsycespongeSurvivalPack (PSP)

Support for future custom GameTitles will be added as they come up.


Do note, the list of scripts to run will only be updated if you start the game on a GameTitle that uses the menu level from one of the base GameTitles.

As well, there are a couple requirements for any given script to be parsed by this:
-The script must exist with either the same name, or the same name with the proper GameTitle abbreviation, in all 3 base GameTitles. For the latter, if you have something like "ExampleScriptBFE" in SeriousSam3, there must also be "ExampleScriptTFE" in SeriousSamHD, and "ExampleScriptTSE" in SeriousSamHD_TSE.
-The script cannot use the "worldInfo" variable by itself; It must either use worldGlobals.worldInfo in every instance of worldInfo, or define worldInfo using "local worldInfo = worldGlobals.worldInfo" before ever using worldInfo

Entering globals.ASP_ListInvalidScripts() into the console will show which scripts aren't able to be parsed, and for what reason. "Not Global" means it couldn't find a same-named script in the other base GameTitles, and "worldInfo problems" means the worldInfo variable needs to be fixed. Note that the function will only work if the script was able to update. If you see a "???" in a script name, that's just where the GameTitle abbreviation goes, and is nothing to be concerned about.


Additionally, if certain scripts are causing trouble for your GameTitle, I've added the ability to blacklist and whitelist scripts from running via the auto parser. Firstly, place a script at Content/GAMETITLE/Scripts/ASPScriptFilters.lua, where "GAMETITLE" is the name of your GameTitle. This script should contain either worldGlobals.ASP_Blacklist = {} or worldGlobals.ASP_Whitelist = {}, with a list of strings contained within the curly brackets, which can either be entire script names or key words. You'd use it as such:

worldGlobals.ASP_Blacklist = {"AnimeHandler","Resors"}

If you use the blacklist, only scripts without the blacklisted terms will be run, and if you use the whitelist, only scripts with at least one whitelisted term will be run. Note that these filters will only affect scripts run through the auto script parser; Any scripts that already exist in the GameTitle's CustomWorldScripts folder will still be run.
4 Comments
cadetpirx 5 Sep, 2021 @ 4:05pm 
When I wrote "Selena" on the search box,I didn't see Serious Sam Project Selena,but I did see this very mod that supports it.
Ryason55  [author] 4 Sep, 2021 @ 3:42pm 
Support for more gametitles. Full list in the description.
cadetpirx 4 Sep, 2021 @ 3:30pm 
What does the Sep 4 2021 update add?
spy 26 May, 2019 @ 11:59pm 
Now this is epic