Hello! I finally got around to doing these tutorials. I'm pretty sure in like.
. fuckin' May I said I would get around to doing this, but I just kept slacking. I like slacking; procrastinating is really nice.
But this is going to be part one of nine or ten different tutorials, and it's just gonna be: how to make a server, how to add features to said server—all the essentials that people that are making a new server should know. Treat this like a little masterclass or some shi', except I'm not a master. What-so-fuckin'-ever—I barely know what I'm doing, but I like to think I know enough to teach other people.
That's what I like to think, at least. So, yeah, let's get into it. I'm going to be using my own source, betterSkillys, for all these tutorials.
Um, what's the best way to put this? The only part where it matters if you're using my source is in this tutorial because it's just going to be client and server setup—how to get everything running. At least in this sense, it's only going to be on localhost.
Once it gets later on, I'll do. . prolly' a part nine or some bullshit on how to set it up on a VPS.
Because, you should not host a server for other people if it's just vanilla. There's no fucking point. At least toy around with it before you decide to put it up for other people.
I probably could have explained that better, but you know what, fuck it. So, there are going to be some prerequisites. You're going to need Visual Studio, .
NET Core 8 (this is a little SDK to make sure your server application can run), IntelliJ IDEA, which is what you're going to use to edit your client, AIR SDK 32 (I'll have a link in the description), and you're also going to need Redis, which comes with betterSkillys. First, you should download all of these. I'm not going to teach you how because that would take too much time, and it should be self-explanatory.
It should be, besides the fact that you need to download Ultimate for IntelliJ. I kind of am explaining this, but yeah, you're going to want to download the 2019 version, like 2019. 3 or something.
You could use the latest one, except you're going to have to install a plugin, and I don't feel like helping anybody with that right now. It's still fairly easy. If you do download a later version, you should be able to figure it out.
The plugin is called Flash/Flex. After Chrome dropped support for Flash, everyone else stopped caring about it, including IntelliJ. So okay, that's enough of me yapping.
First, if you're cool as fuck, you're going to fork and star the repo, but of course, you can just download a ZIP. That also works. I'm not going to stop you from doing that.
After that point, you're going to wait for it to open. God damn, okay, so it WAS done. I'm going to extract this to my desktop just so it's easier to access.
There we go. First, I'm going to go over server setup since that's probably the easiest. First, you want to open the .
SLN file (the solution) and wait for it to load. Without having to do anything, you just click the Build tab at the top and then rebuild the solution. It’s going to take anywhere from 5 to 10 seconds, roughly.
After that, you're going to want to open the Redis folder. You're going to want to open the Redis server as administrator and accept that. Then, go to the App folder, bin -> Debug -> net8.
0, and then open App. exe. Allow access to public networks or just whatever Windows has set by default.
Then, go to the WorldServer folder, bin -> Debug -> net8. 0, and then WorldServer. exe.
So, you see that there are warnings and other shit. . This is because I didn't add a map correctly, and I didn’t feel like changing the item IDs.
These are both 0x6x6e and 0x6x6f respectively, and these warnings are because I've ripped behaviors from other sources, and I didn’t take the XMLs from them. So this chest, in particular, isn't added, this Grim Reaper isn't added. But, if you see this tutorial like 3 or 4 days in the future, I'll probably clean this all up for my sake because, at least I'm going to be making tutorials for the next few weeks.
I don't want to look at this shit; I'd rather not. Aside from that, though, the server's up, so you could just leave this open if you want. But if your computer is shitty, you should close it before you start to work on the client.
Now, onto the client setup. You're going to want to open IntelliJ. My evaluation expired.
So with IntelliJ, you get a 30-day free trial—you don't have to put in your card—and then after that, you still get the full application; you're just limited to 30 minutes (sessions). There's a plugin that I'll probably show in the next video because I don't want to deal with it right now. I just want to get this server-client setup shit done.
But yeah, there is a plugin that resets your evaluation, so you get another 30 days, and after those 30 days pass, you just do it over and over again. It beats paying for it, fuck. So anyways, I have my server open (like my actual server, not betterSkillys), so once you get into IntelliJ, go to File > Open > betterSkillys -> client, you wanna make sure the client folder is highlighted, and press OK.
Do this in a new window. Now, as you can see, I already have my SDK set in both Project and Modules. Normally, it wouldn’t do that—I’m kind of surprised it did, to be honest.
Oh wait, no, I know why. Holy shit, I opened it from the wrong folder. Of course, betterSkillys-main -> client, there we go.
Normally, assuming you just downloaded the SDK (that’s in the description n' allat), this would have red text because there wouldn't be any SDK that's detected. What you want to do is click the three dots, then click the plus (+) for Flex/AIR SDK. I have mine located here, so just select it, press OK.
I already have it set as an SDK, so I’m not going to do all that. Then just go back to this window, and as you can see, the client is right there. So, I’m just going to go over the SDKs again.
Even when you select one, the project SDK isn’t going to be configured for whatever reason, so you’re just going to want to do that. Apply it, go back to Modules, WebMain -> WebMain (app), also have the SDK selected here. This is just for my own sake.
You want to click the blue “Change” button and then change it from a web application to a desktop application. This will open up the AIR Package tab, which I’m going to get into very soon. Besides that, you can just build the project.
At least you’re doing this on localhost; this is just supposed to be very plug-and-play. Now, the only issue is that if you do open the client. .
. oh, it worked. Okay, so an issue with like half the people that I've showed how to set this up with is that they had an issue where they wouldn’t be able to open it with just Flash Player.
You’d have to package an AIR application, then open the . exe, and then it would work. For me, it kind of just worked, but I’m still going to show you how just to save you some time.
Okay, so if you remember, I told you to change it to a desktop application, and the reason why is because of this little tab. I have my own template that you can edit to do a bunch of good shit too, but normally it would just make its own template, and that’s good, except there are bugs like hardware acceleration just not working at all, and some other shit that I forgot about. So what you’re going to want to do is select “Custom template,” click the little folder icon, and open client -> WebMain-app.
xml. That will set the template to the custom one that we have. Finally, you’re going to have to add a file to package, and that is this little icon.
If you don’t have this icon, at least if we’re using my template, it will break, and you won’t be able to build it for whatever reason. So yeah, besides that, press Apply, then press OK. Click the Build tab, then Package AIR Application.
Now, if you do an AIR installer, it will be a little executable that will eventually turn into this, which is what you’re going to want to do regardless. You could do either of these, except you’re going to have to open an installer every single fucking time. No, don’t do that.
Please do not do that. After that point, you press Package. If your computer is shit, it will take like 20 seconds.
If your computer is better, it’ll probably take anywhere from 5 to 10. Mine’s just okay, so it’s a little over 10 seconds. After that point, you’ll see that there’s a WebMain folder.
You’ll have WebMain. swf and betterSkillys. exe.
Just open it, yep. Now, that’s about it. I’m going to show you how to get admin permissions because that’s probably what you’re going to want to do regardless.
So, for some reason, there’s no register button. I’m going to add that in, but you can still access it from here. This is not my real email or password, and let me register.
As you can see, we got all the classes. Samurai is a little scuffed—don’t ask why. Bard is a little better, but I still think it could be better.
It definitely could be better. So, besides that, I’m going to pick a class and spawn in. Wait, also, you can see that all the text is misaligned for some reason.
I don’t know what causes that, but if you build it enough times, eventually it’ll work. There’s nothing that really prompts this either; it just kind of happens. I have no idea.
Anyway, I got sidetracked. If you want admin permissions, you could do it solely through this little redis-cli application. If you’re the first person to make an account, you’re either going to be account ID 0 or 1.
I’m going to try doing that, but basically, the format for this would be, at least for giving yourself admin, would be [hset 'account. ID' 'tag' 'value']. I forgot that I’ve ranked the highest rank set to 6 on here, and then for good measure, [hset account.
1 admin 1]. I'm gonna go back, go bac in, and yep, I have all the commands. It’s decent—nice, love to see it.
Another way, which is a lot easier and what you should do if you end up hosting a server for multiple people, is to get Another Redis Desktop Manager. This is basically just a little GUI application that allows you to search for other users a lot easier, search for specific keys a lot easier, and also edit those values. I already have it downloaded, so I’m going to open it.
Uh, I’m going to close this real quick. Wait, fuck, fuck, fuck. .
I’m going to delete that connection. I’m going to make a new one, 127. 0.
0. 1, okay, you don’t need to type in the values already. Besides that, yeah, you just got objects for all your values.
It shows my email, my name, whether or not I’m an admin, what kind of potions I have (this is kind of scuffed—don’t worry about it), all that good shit. So yeah, besides that, that’s enough for the first tutorial. There might be like three of these posted in one day; I have no idea because that was a lot quicker than I thought it would be.
Anyways, y’all have a good one. I’ll see you soon-ish.