Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.
New to the forum?
Say hello in this topic! Also make sure to read
the rules.
Share questions, scripts and tutorials related to the ScriptAPI in SFD.
-
-
The official Discord channel
Replies: 3
by
Hjarpe » Mon Nov 23, 2020 7:42 pm » in
General
First post
Attention superfighters!
Step right up, come on in, and join the super-official MythoLogic Interactive Discord server!
There are topics for Superfighters Deluxe, map-making, bug reports and feedback, excellent memes, as well as upcoming games like Filcher and Barbarian Odyssey.
Link:
It's like...
Last post
Woah, very nice! So many people have been asking around for this and now it finally exists.
- 3 Replies
- 16406 Views
-
Last post by tilt56
Mon Nov 23, 2020 11:42 pm
-
-
Debugging a script for SFD in Visual Studio
Replies: 3
by
Gurt » Mon Nov 13, 2017 6:44 pm
First post
If you have Visual Studio installed you can debug scripts written in Superfighters Deluxe directly through the IDE with breakpoints.
This is done by pointing to the Visual Studio devenv.exe in you config.ini for SFD with DEVENV as key and full path to the devenv.exe as value. Example:...
Last post
ok...
- 3 Replies
- 4241 Views
-
Last post by Venom
Wed Nov 15, 2017 11:05 am
-
-
ScriptAPI changes
Replies: 25
by
Gurt » Thu Mar 03, 2016 5:51 pm
First post
The ScriptAPI as of version v.1.3.0 of the game is what we consider completed. There're no more planned features.
Last post
Able to send chat messages to everyone or individual users will come in the v.1.1.0 update.
///
/// Shows a chat message to all users.
///
/// Message to show. Max 400 characters.
public abstract void ShowChatMessage(string message);
///
/// Shows a chat message to all users.
///...
- 25 Replies
- 18603 Views
-
Last post by Gurt
Wed Jan 30, 2019 10:38 pm
-
-
Forum rules
by
admin » Sun Feb 28, 2016 2:08 pm » in
General
Posting in any part of the forum will require you to follow these rules.
Breaking any of these rules will get you a warning, which will be recorded, or get your account locked depending on the severity of the post.
1) Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening,...
- 0 Replies
- 28688 Views
-
Last post by admin
Sun Feb 28, 2016 2:08 pm
-
-
How to catch the exception in callback
Replies: 2
by
NearHuscarl » Sun Mar 08, 2020 6:23 pm
First post
I want to log the stacktrace of the exception when thown in async callbacks. Is it possible to do that?
Last post
I just tested again in the map editor and it prints the stacktrace now. I made this post because the last time the game crashed It just printed something like error in method ScriptCallbackEvent_Update without the stacktrace. I already wrapped the whole script in a try/catch though.
- 2 Replies
- 2394 Views
-
Last post by NearHuscarl
Tue Mar 10, 2020 3:45 am
-
-
Patching support
Replies: 1
by
NearHuscarl » Wed Feb 26, 2020 6:00 pm
First post
Is there any plans to support patching using library like Harmony ? Many games like Rimworld which is very mod-friendly make it possible to alter the methods in the core game, so modders can have more freedom to create mods.
Last post
That is what I suggested s few days ago, It would be a very good idea since the devs won't be 100% focused on SFD, the modding community is, from my point of view, the best thing ever to keep games alive and to make them re-playable for experienced and new players.
Actually, it seems that it...
- 1 Replies
- 2142 Views
-
Last post by Mr Argon
Wed Feb 26, 2020 10:13 pm
-
-
How does BotBehaviorSet.SearchItemRange work?
Replies: 5
by
NearHuscarl » Fri Feb 21, 2020 6:14 pm
First post
I want to limit the radius bots can search for weapons. Currently I have tried multiple values but I am unable to get a result that make sense. I want to do 2 things:
- Draw a search radius to better understand and debug. Something like
Game.DrawCircle(player.GetWorldPosition(),...
Last post
Pretty sure I spawned the weapon after the range was reset, the bot still went for it
UPDATE: it looks like it's been fixed in the latest update 1.3.5
- 5 Replies
- 4031 Views
-
Last post by NearHuscarl
Sat Feb 22, 2020 5:07 pm
-
-
Large script affects game performance
Replies: 2
by
NearHuscarl » Fri Jan 31, 2020 1:42 pm
First post
I am having a large script (~9k loc) and wondered if having a script that large will affect the game performance negatively. So I make a very large dummy script file 60Mb and 17Mb fill with just comment. The 60Mb one crashed the game as expected but the smaller one takes 20s to load every round on...
Last post
You should always avoid thight loops calling functions in the ScriptAPI each update as that would add overhead.
It sounds like it's only the startup that takes time for you. Maybe you have some code causing the slower start times. Could also just be a large map containing many tiles.
- 2 Replies
- 2384 Views
-
Last post by Gurt
Wed Feb 05, 2020 7:56 pm
-
-
Need a Script for making Squads of soldiers!
Replies: 6
by
Mr Argon » Thu Jan 09, 2020 4:34 am
First post
Hi! I'm working on a campaign that's very similar to Half-Life, you know, there's soldiers and special commands fighting with aliens. I'm currently stuck because I've been programming some AI scripts for the soldiers to fight using a Squad strategy.
The schedules I've planned are very simple....
Last post
Thank you two a lot! I'll investigate a little bit more about list and dictionaries on c#, but I get the idea. At least I can resume my work now. Hope I can finish this campaign by the way, because most of the campaigns I start, I end up deleting them because I can't manage to create a good...
- 6 Replies
- 4115 Views
-
Last post by Mr Argon
Fri Jan 10, 2020 12:35 am
-
-
need a script to make npc activate trigger when player is insight
Replies: 4
by
The_JOKER » Mon Jul 02, 2018 1:37 am
First post
I'm making a payday map and I need a script to make npc activate certain trigger when player is insight
-it shouldn't work when player is BEHIND the npc
-it shouldn't work when player insight is npc
-it shouldn't applied to all npcs but only certain npcs
-there must be a custom range that npc can...
Last post
I'm necroposting due for the fact that now (SFD 1.3.0) the ScriptAPI gives you a way to do native raycasts, let us know if you still need that for your project.
- 4 Replies
- 3959 Views
-
Last post by JakSparro98
Thu Aug 22, 2019 11:41 am
-
-
I want to learn to make scripts
Replies: 2
by
NoobChicken1 » Fri Jul 12, 2019 5:34 pm
First post
Hello everyone
For a couple of days i have been trying to figure out how to make scripts for this game, i have been learning a bit about C# ( i started with no knowledge of C# or any other language), looking at others scripts to see how stuff work, checking the script API. My goal is to make a...
Last post
When you have a basic understanding of C# then you can see to get started with the ScriptAPI for SFD.
- 2 Replies
- 2748 Views
-
Last post by Gurt
Sat Jul 13, 2019 12:22 pm
-
-
Players die and explosive
Replies: 3
by
Chees » Wed May 24, 2017 10:43 am
First post
I wonder if the player die and explosive.How can i do that
pls help me.Thx :D
Last post
Do you need that the player explodes in giblets or a normal explosion like the one we see from a red barrel?
You need to specify a method name inside the Script Method field of the OnPlayerDeathTrigger.
the method name refers to a public method inside the map script.
public void...
- 3 Replies
- 3431 Views
-
Last post by JakSparro98
Wed Mar 06, 2019 7:46 pm
-
-
Superfighters Deluxe - LocalStorage and SharedStorage
Replies: 6
by
Gurt » Mon Jan 28, 2019 5:17 pm
First post
Superfighters Deluxe v.1.1.0 will introduce local storage which allows you in your map or script to store permanent data which is maintained between server restarts and between different map restarts.
Previously you could only store a single string in the IGame.Data between map restarts. This was...
Last post
There will be one file per extension script and per map. It will be UTF8 encoded textfiles, one line per key-value with a little bit of special parsing. Should be fairly simple to edit and add new key-value pairs if you want.
Keep in mind that the files are generated when scripts write anything to...
- 6 Replies
- 5053 Views
-
Last post by Gurt
Tue Jan 29, 2019 9:35 pm
-
-
[FINAL] Artificial Intelligence concept V3
Replies: 15
by
JakSparro98 » Mon Jan 09, 2017 11:18 pm
First post
Hi all Superfighters community,
in this thread you can find all my Artificial intelligence scripts for CPU fighters. Don't be too excited for this, it's only a demostration of how much ScriptAPI can be pushed so far and however it will be soon forgotten and replaced by the official one in the...
Last post
That's incredible. I was watching a brawl and I was all like lmao this dude getting owned by a bot but then I realized that dude was another bot; their behavior is almost human-like. An amazing feat achieved by a clever scripter and the existing features of the script API system. This may become...
- 15 Replies
- 10020 Views
-
Last post by KliPeH
Fri Aug 31, 2018 5:56 pm
-
-
- 0 Replies
- 2163 Views
-
Last post by Banisher
Wed Jan 03, 2018 5:59 pm
-
-
How to revival players after death and time remaining
Replies: 3
by
Chees » Sun May 21, 2017 2:57 am
First post
I'am making a map (like battle of teams) but after done I remember I couldn't revival but I dont know how to do it and Time remaining pls help me
Thx
Last post
Some tricky script should do this job.
0. You need to change the game to custom game mode, in case that all players died at the same time by accident.
1. With an OnPlayerDeathTrigger calling the script, extract the IUser from that died player and note him down.
2. Procedurally create a TimerTrigger...
- 3 Replies
- 3463 Views
-
Last post by UnluckyNinja
Mon May 22, 2017 4:15 pm
Forum permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum