AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   I'm new to scripting, where do I start? (https://forums.alliedmods.net/showthread.php?t=346546)

vedoi_ 03-02-2024 16:49

I'm new to scripting, where do I start?
 
Hey, I am new to scripting and I want to make my own JailBreak Mod from 0 but I don't know any coding.. Where do I start? What programming language is used? Any tips? How much time does it take to learn the programming language used?

Jhob94 03-02-2024 17:28

Re: I'm new to scripting, where do I start?
 
Well it all depends on what you want to do.
But the most important modules to learn are hamsandwich, fakemeta and cstrike. Fun module is also good for beginners.
Read some tutorials, read what functions do and build your own scripts and test them out.
If you want to create something from 0 it will take you some time to learn. Feel free to ask help on scripting help but first use always the search button as your questions are probably already answered.

fysiks 03-02-2024 17:43

Re: I'm new to scripting, where do I start?
 
It seems you skipped step number 1, 2, and 3: search, search, search. :wink:

Tutorials forum
Tutorial List
Programming for starters

Some general advice: If you do post a question in Scripting Help, you need to be making an effort to try to do things on your own and it should be obvious in your question. For example, if it's not a compilation issue, you must have tested your code in a server. Post your code. Make small test plugins for testing specific features instead of trying to do something new in a larger plugin. My test folder is full of plugins just for testing segments of code. For many functionalities, I like to create console commands that I then run from the server console (standalone HLDS) to view the result of my test code. If it's more involved with something you need to observer in-game, you can still create console command but simply join the server, bind a key to the console command, press the key and see if it works.

Debugging code on your own is going to be the biggest benefit to getting your own code working without having to wait for a response (if you even get one; the community is quite small these days) on the forums.

Bugsy 03-02-2024 19:57

Re: I'm new to scripting, where do I start?
 
Step 1 is to learn the syntax of the Pawn language, you cannot begin exploring what modules do (hamsandwich, fakemeta, cstrike) or begin doing anything useful until you understand how code at the highest level (syntax, formatting, structure). Pawn is somewhat similar to C for the basic syntax, but if you look for C tutorials you'll likely get needlessly confused. Hunt down the Pawn Language Guide, that may help, at the same time it may be too much but good to have in your back pocket.

I'd begin with looking at existing plugins from these forums to get a feel for how to code and then begin experimenting on your own. Download the HLDS (dedicated server) onto your PC, set up AMX-X Studio to compile locally to that, and then add a test plugin that you are working on in plugins.ini and then keep experimenting with stuff until you figure it out.

fysiks 03-02-2024 22:05

Re: I'm new to scripting, where do I start?
 
You still use AMXX Studio from 2006? I would probably recommend a modern code editor like VS Code. There is an extension called "AMXXPawn" that I use that is very helpful. It can be configured to put the compiled plugin directly into the server and then all you'd need to do is restart the server.

Bugsy 03-02-2024 22:20

Re: I'm new to scripting, where do I start?
 
Quote:

Originally Posted by fysiks (Post 2818914)
You still use AMXX Studio from 2006? I would probably recommend a modern code editor like VS Code. There is an extension called "AMXXPawn" that I use that is very helpful. It can be configured to put the compiled plugin directly into the server and then all you'd need to do is restart the server.

Yup, I love it. No reason for me to change, it does everything I need. I am so used to it that I do not want to transition to something else and need to re-learn a UI when AMX-X Studio does everything I need.

Jhob94 03-03-2024 14:35

Re: I'm new to scripting, where do I start?
 
I also consider amxx studio better for pawn.

@bugsy that part he can’t escape because he will always need amxmodx, i just pointed the 3 most essential modules to build a jb from scratch.

Bugsy 03-03-2024 16:29

Re: I'm new to scripting, where do I start?
 
Someone who has never scripted shouldn't jump into making a mod. Start with basic stuff, like maybe earning extra money for making a kill, sound when headshot is made, etc. Once you understand the plugin framework, events, modules/libraries, etc., it'll be much easier to make a mod.

It's like you want to write a Windows application but you do not know any programming languages yet. Same mindset, start with basic console stuff to learn the syntax/basics, then jump into making something larger.

mlibre 03-03-2024 18:09

Re: I'm new to scripting, where do I start?
 
as for optimization, use the engine as much as you can.

Jhob94 03-03-2024 18:32

Re: I'm new to scripting, where do I start?
 
Quote:

Originally Posted by mlibre (Post 2818944)
as for optimization, use the engine as much as you can.

Never recommend engine to a beginner. I see experienced users struggling with it.


All times are GMT -4. The time now is 00:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.