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.
New to the forum? Say hello in this topic! Also make sure to read the rules.
Improving your code
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- ShutDownMan
- Fighter
- Posts: 32
- Joined: Sat Mar 19, 2016 7:17 pm
- Title: Yeah, science!
- SFD Alias: ShutDownMan, Devil Shut
- Started SFD: 1.2.something
- Location: Hu3, Brazil
- Gender:
- Age: 24
- Contact:
Improving your code
Hello people,
I'm here now to show you guys one way to improve your SFD projects...
I've made a "mini-program" some time ago, in python, just for me. The program was simple, it "welded up" the text of files inside a folder (and all sub-folders) so I could separate my code into different files. It was simple but effective, my code felt more organized, I could do more complex things without worrying about forgetting where all the pieces of the code went...
Then I started using Visual Studio, and it just got crazier, now with all the IDE + the ability to separate classes into different files I did some of my most "useless" scripts for SFD:
The IDE made it all easier: The syntax check, the auto-complete, the intellisense...
As I liked so much this program, I thought of sharing it with you guys. So I remade the program, now in C#, and added some more features to it. it's not the best UI I've ever made, but it's OK (I will leave the zipped project in the links part, if you wanna mess around with it).
Maybe you don't really want to make "complex scripts", but I'm sure you don't like to scroll up and down on a near 1000 lines file, it's pure PAIN!
To make it easier to understand the program usage, I've made this video clarifying the overall how-to:
https://youtu.be/GkRT5Oh22vQ
Use the pause button, the video is meant for that.
Version 1.0:
- Simple UI;
- Options:
-- Change output file name;
-- Change input file extension;
-- Code to clipboard;
-- Save used configs (input/output files paths);
-- Recent input paths;
- Snippets:
-- New project;
-- New class;
Notes:
You can always edit the snippets, they are located at the .\\Configs\\Snippets.
Also, NEVER use the word "Temporary" in your files name, the program will ignore it (in short: because Visual Studio)
Links:
Executable: Mega
Source Project: Mega
I'm here now to show you guys one way to improve your SFD projects...
I've made a "mini-program" some time ago, in python, just for me. The program was simple, it "welded up" the text of files inside a folder (and all sub-folders) so I could separate my code into different files. It was simple but effective, my code felt more organized, I could do more complex things without worrying about forgetting where all the pieces of the code went...
Then I started using Visual Studio, and it just got crazier, now with all the IDE + the ability to separate classes into different files I did some of my most "useless" scripts for SFD:
The IDE made it all easier: The syntax check, the auto-complete, the intellisense...
As I liked so much this program, I thought of sharing it with you guys. So I remade the program, now in C#, and added some more features to it. it's not the best UI I've ever made, but it's OK (I will leave the zipped project in the links part, if you wanna mess around with it).
Maybe you don't really want to make "complex scripts", but I'm sure you don't like to scroll up and down on a near 1000 lines file, it's pure PAIN!
To make it easier to understand the program usage, I've made this video clarifying the overall how-to:
https://youtu.be/GkRT5Oh22vQ
Use the pause button, the video is meant for that.
Version 1.0:
- Simple UI;
- Options:
-- Change output file name;
-- Change input file extension;
-- Code to clipboard;
-- Save used configs (input/output files paths);
-- Recent input paths;
- Snippets:
-- New project;
-- New class;
Notes:
You can always edit the snippets, they are located at the .\\Configs\\Snippets.
Also, NEVER use the word "Temporary" in your files name, the program will ignore it (in short: because Visual Studio)
Links:
Executable: Mega
Source Project: Mega
16 x
~ShutDownMan
- Gurt
- Lead Programmer
- Posts: 1884
- Joined: Sun Feb 28, 2016 3:22 pm
- Title: Lead programmer
- Started SFD: Made it!
- Location: Sweden
- Gender:
- Age: 34
-
- Superfighter
- Posts: 67
- Joined: Sun Nov 06, 2016 11:34 pm
- Title: Da God
- SFD Account: Jamisco
- SFD Alias: Jamisco
- Started SFD: either late 2015 or early 2016
- Location: Somewhere in the east of the United states
- Gender:
- Age: 103
Wait..How'd you get the banana to display in the map?
1 x
Is it better to be feared or respected... please, is it too much to ask for both?
- ShutDownMan
- Fighter
- Posts: 32
- Joined: Sat Mar 19, 2016 7:17 pm
- Title: Yeah, science!
- SFD Alias: ShutDownMan, Devil Shut
- Started SFD: 1.2.something
- Location: Hu3, Brazil
- Gender:
- Age: 24
- Contact:
Short answer:jamisco wrote:Wait..How'd you get the banana to display in the map?
You can make "pixels" with Text objects,
You can change the text color through code.
0 x
~ShutDownMan
-
- Superfighter
- Posts: 67
- Joined: Sun Nov 06, 2016 11:34 pm
- Title: Da God
- SFD Account: Jamisco
- SFD Alias: Jamisco
- Started SFD: either late 2015 or early 2016
- Location: Somewhere in the east of the United states
- Gender:
- Age: 103
Holy mac and cheese ...how long that take you m8?
0 x
Is it better to be feared or respected... please, is it too much to ask for both?
- ShutDownMan
- Fighter
- Posts: 32
- Joined: Sat Mar 19, 2016 7:17 pm
- Title: Yeah, science!
- SFD Alias: ShutDownMan, Devil Shut
- Started SFD: 1.2.something
- Location: Hu3, Brazil
- Gender:
- Age: 24
- Contact:
Oh, no man, I didn't do it by hand, I automated it and the only challenging part was to make it "play".jamisco wrote:Holy mac and cheese ...how long that take you m8?
I made a simple python script that generated a string of C# code with the information of frames and pixels. Then I used that to color the TextObjects. Technically I can play any GIF, but actually just small enough that don't crash the compiler.
"So, how long?"
Some hours...
1 x
~ShutDownMan
-
- Superfighter
- Posts: 67
- Joined: Sun Nov 06, 2016 11:34 pm
- Title: Da God
- SFD Account: Jamisco
- SFD Alias: Jamisco
- Started SFD: either late 2015 or early 2016
- Location: Somewhere in the east of the United states
- Gender:
- Age: 103
I now have this weird urge to learn python.... also by any chance is there a way u could make that gif like move around the map like a real player could?
0 x
Is it better to be feared or respected... please, is it too much to ask for both?
- ShutDownMan
- Fighter
- Posts: 32
- Joined: Sat Mar 19, 2016 7:17 pm
- Title: Yeah, science!
- SFD Alias: ShutDownMan, Devil Shut
- Started SFD: 1.2.something
- Location: Hu3, Brazil
- Gender:
- Age: 24
- Contact:
You definitely don't want to do that... The "canvas" I work on have (5*8)*(6*8) "pixels" on it, this is 1920 TextObjects and moving them would be a disaster...jamisco wrote:I now have this weird urge to learn python.... also by any chance is there a way u could make that gif like move around the map like a real player could?
But, if you make a fighter animation and make it move inside the canvas, you can place the canvas so it looks like the fighter is moving, and as the background can be invisible (I have control over the alpha value) it will look like a normal fighter.
1 x
~ShutDownMan
-
- Fighter
- Posts: 52
- Joined: Sun Jun 12, 2016 1:07 am
- Title: Superfighter
- SFD Account: Juansero29
- SFD Alias: Juansero29
- Started SFD: Pre-Alpha 1.0.5
- Location: France
- Gender:
- Age: 25
- Contact:
Hey, anyone has still access to this program? Links seem broken and I really need it
Update: Thanks to @Odex64 who had a local copy in his drive. He sent it to me, and now I've uploaded a new mirror in mega: https://mega.nz/file/4AMWlR6L#kSXMjdYtu ... T_JxGi-9uY
Update: Thanks to @Odex64 who had a local copy in his drive. He sent it to me, and now I've uploaded a new mirror in mega: https://mega.nz/file/4AMWlR6L#kSXMjdYtu ... T_JxGi-9uY
Last edited by Juansero29 on Wed Nov 18, 2020 11:33 am, edited 1 time in total.
0 x
Code: Select all
boom() {
echo "BOOM!";
}
----------------------------------------
Setting the world free since 1998
----------------------------------------
- Odex64
- Superfighter
- Posts: 172
- Joined: Sat Jul 29, 2017 12:39 pm
- Title: Content Creator
- SFD Account: Odex64
- Started SFD: PreAlpha
- Location: Italy
- Gender:
- Age: 22
I'll dm you the executable..Juansero29 wrote: ↑Wed Nov 18, 2020 10:46 amHey, anyone has still access to this program? Links seem broken and I really need it
1 x