I'm VERY new when it comes to modding and making addons.

It's easy, just click on addons & more, and do you see that down arrow, press "Your addons & more", and there you can make your own addons, to start making a code, all you wanna do is.
addHook("PlayerThink", function(player) that creates a player variable used for characters and lua, so for example you can do
player.powers[pw_invulnerability] = 5
that will give you invulnerability, you can make everything you want, but keep going, you can reach your goal!
 
So, I just made this account and I want to make addons but I don't exactly know how. Can someone help?

First and foremost, welcome!

There's many types of addons: Maps, Sprite Replacements, Lua, Characters, etc.
Depending on what your interests, or your skillsets are, you'll need to check different resources.



Regardless of what you'll specialize in, you'll find yourself using SLADE (in case you're unfamiliar with forums, those differently colored text are links!) a whole lot. To keep things short it's a tool for visualization and editing a lot of game-especific files (in this case, SRB2).

On top of that, you should also at some point familiarize yourself with the extension formats SRB2 uses for addons, namely, .WAD and .PK3 (some of the information on the wiki should not really be relevant to you so if some of it flies over your head, that's okay! As long as you get the gist of it). SRB2 itself has a PK3 files storing its data: srb2.pk3 and zones.pk3, peep inside (don't modify anything or your game will most likely run into problems) and see it for yourself.



If you're into Map creation, it's not exactly my expertise but I believe SLADE has a built in map viewer? Other people might be more helpful than me in this one.

If you're into making Sprites (for the HUD, textures, even characters), I'm not 100% certain but I believe you can use your image editing software of choice, as long as you conform to the limitations the game has.

If you're intending to make characters, I'd really recommend giving this pinned thread on the forums a read, please. The short version is that making characters, especially for someone who isn't familiar with the nature of SRB2 modding is a tall order, it is greately recommended to tackle smaller projects to learn the feel of things first.


None of the above items are really where my knowledge lies, so there's probably better people to give you better pointers to.


However, if your choice is to make modifications through Lua, which I believe is what a sizeable chunk of the people in here finds themselves in, you're in for a world of wonder, discovery, and the occasional cursing at your screen when something doesn't work.
The short story of it is that Lua is a scripting language! Very similar to a programming language, with its own quirks at times. SRB2 in specific uses a slightly modified version of Lua 5.1 called BLUA, it's hard to get into specifics without going into a tangent so I'd recommend giving that a read as well.

If you're new to scripting/programming it is highly recommended you familiarize yourself with Lua through either (both, in my opinion) this tutorial as pointed by the SRB2 wiki or, a personal recommendation of mine, the reference manual for Lua 5.1 (the latter is a very extensive read, I'd recommend either reading little chunks of it at a time or using it as a guideline when you want to learn about a specific thing inside Lua).
As for what you're gonna use to write code (please don't use Windows' prepacked Notepad. Seriously), you have a few (many) options:

  • SLADE's built in code editor (this, although not my personal pick, is the most convenient one. And I, alongside many others, will greately recommend you to choose it, because it knows about SRB2 specific things that other IDE's will not "pick up" on; and on top of being extremely convenient to be able to edit things inside your file tree);

  • Notepad++ (no this is not your Windows' default notepad, also wouldn't recommend this for beginners unless you want to take some time to become familiar with it);

  • Visual Studio Code (web version here), this is my personal pick as I do programming (with languages other than Lua) as a job and as a hobby on occasion. I wouldn't recommend you to gun for this one for aforementioned reasons but if you plan on getting into programming in general in the future then go ahead;

  • A LOT others, like, a lot. Sublime Text 3, ZeroBrane Studio, Pulsar, a gajillion web-based ones, etc.

After you pick yourself one and get yourself familiar with it, doing your first piece of code may seem daunting but you don't have to make the scripting-equivalent-of-Mona-Lisa or anything of the sort, start with a small idea if you can! the SRB2 Wiki is going to be an infinitely useful resource whenever you have an idea or feel like you're stuck, and if the wiki, somehow, isn't helping you with your problems, this Modding Help forum will be glad to house your doubts so other people can lend you assistance (or even the #scripting channel in the official SRB2 Discord)!

Reading people's code and dissecting it to find out what it does and how is also a very valid way of learning (just please don't blatantly copy-paste other's code without permission).
And lastly, there's like a million of Lua tutorials on Youtube that, while not targeted towards SRB2 specifically, it'll indubitably prove themselves very useful in learning new concepts or sparking inspiration inside of you.



It was already mentioned, but the community is definitely very willing to help (as reasonably as it can) you and other "newcomers" in their endeavors, so don't be shy.

If your first (or first few) projects don't turn out exactly how you expected it to, that's okay, it's part of the learning process. Don't be discouraged by it, and instead use it as a learning experience so you can do even greater things from there onwards.

Wishing you best of luck in your future projects!
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top