This is a collection of the scripts I use when hosting, most of the time I take existing maps along with their scripts, then I modify them to "enhace" them: upgrade the performances, refactor them, make them more readable, remove useless code, change the naming of classes and variables, etc...
As for scripts I have made "myself":
- "MarioPanadero.cs" which is largely inspired on the Battle Of Teams script used by Nets in most of his maps.
- Hardcore script modifications and updates, which are here thanks to @Antonikon
This repo is here solely as a collection of modified scripts. I, in no case, declare the author of all of the code that this repo contains.
•
├── Backup (a backup of a collection of maps a used 3 years ago on the server I hosted)
│
├── SFDScripts (folder containing the actual scripts project)
│ │
│ ├── EXTERNAL (fodler containing external scripts: scripts that you can activate on any map, not map dependant)
│ │
│ ├── INTERNAL (folder containing internal scripts: scripts that are map dependant, and need to be the script inside the map they're supposed to use)
│ │
│ └── TESTS (some tests I have made, not too many ^^)
│
├── docs (folder containing a backup of the script documentation, also used for a webhook available here: https://juansero29.github.io/SFDScripts/)
│
├── LICENSE (the LGPL-2.1 License for this repo)
│
└── SFDScripts.sln (the Visual Studio 2019 solution)
I'm currently working on two main projects on SFD:
- Making all battle of teams map bot-enabled (available to be played with bots)
- Restoring Antonikon's Hardcore server using his open-sourced script and remastering his maps.
You can follow these projects in here: https://github.com/Juansero29/SFDScripts/projects
You're free to make comments, create issues and PRs! I'm open to suggestions.
Check CONTRIBUTING.MD for very detailed information on how to start contributing.
For cloning and working with this repo, you will ned Git LSF, since I use Github LSF storage to store \*.sfdm
files. As a pre-requisite you will need to:
- Install Chocolatey - Link
- Install latest version of Git LSF - Run command
choco upgrade git-lfs.install
on Powershell after installing Chocolatey
If you get an error message of "choco" not being recognized, close the Powershell instance, and open a new one with admin rights, then run the command again
If you get error messages when changing branches, creating branches or pushing, it is probably tied to a particular Git LSF version. Please re run
choco upgrade git-lfs.install
even if you had already installed Git LSF in the past
git clone https://github.com/Juansero29/SFDScripts.git
git lfs fetch --all
Thanks to @NotRustyBot, Hardcore and maybe other projects from this repo can be split into separated files to be easily edited and understood, and then will be merged into one by using a console utilitary done by @NotRustyBot
It also allows to send the map into the Superfighters Deluxe program directly, avoiding to boilerplate process of copy/pasting the code into the Script Editor in SFD.
The utilitary that @NotRustyBot created that made this possible is also in this repository over
SFDScripts\Utilities\SfdScriptUtil
- Edit the source code files inside
SFDScripts\SFDScripts\Internal\Hardcore\Source
- Make sure Superfighters Deluxe Map Editor is open, and that the map you want to test is open too.
- Open the terminal, be sure to be at the root of the repo
- In the terminal, launch
.\ScriptUtil.exe -i SFDScripts\Internal\Hardcore\
X.cs -d true
, where X is the name of the CSharp file of the map you want to launch. - All of the modifications inside the
Source
folder will be sent to theSFDScripts\SFDScripts\Internal\Hardcore\Hardcore.cs
file, and the map dependant date will be taken from the X map you precised. - The map should start running with the updated code.
- Edit the source code files inside
SFDScripts\SFDScripts\Internal\Hardcore\Source
- Open the terminal, be sure to be at the root of the repo
- In the terminal, launch
.\ScriptUtil.exe -i SFDScripts\Internal\Hardcore\
X.cs -d false
, where X is the name of the CSharp file of the map you want to launch. - All of the modifications inside the
Source
folder will be sent to theSFDScripts\SFDScripts\Internal\Hardcore\Hardcore.cs
file, and the map dependant date will be taken from the X map you precised.
git add --renormalize .
git lfs fetch --all origin your-branch-name
git lfs push --all origin your-branch-name
git commit -m "commit message"
git push
git reset --soft head~
- undo latest commit
This repository is licensed under the GNU Lesser General Public License v2.1. Primarily used for software libraries, the GNU LGPL requires that derived works be licensed under the same license, but works that only link to it do not fall under this restriction. There are two commonly used versions of the GNU LGPL.
Superfighters Deluxe® logos, their taglines and the look, feel and trade dress of the Service are the exclusive trademarks, service marks, trade dress and logos of MythoLogic Interactive®. All other trademarks, service marks, trade dress, and logos used on this repository are the trademarks, service marks, trade dress, and logos of their respective owners.