AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Tech Support (https://forums.alliedmods.net/forumdisplay.php?f=36)
-   -   How to install heroes (For Beginners) (https://forums.alliedmods.net/showthread.php?t=127900)

kanatzu 05-26-2010 07:56

How to install heroes (For Beginners)
 
Well, this is a tutorial I made awhile ago.
Reccently posted it in a public topic, but "someone" thought i should make a new topic.


And yeah, the old "Beginners Guide" is kinda old and not as easy to read as mine. I took time doing this tutorial in detail.
Feel free to give'me critic.


Please correct any errors in this "tutorial" if you find any.
Also note that i am not a pro in any way, this is basics.
My native language is NOT English.

This is a basic tutorial for beginners.


Hope this helps.


.: Up-To-Date :.

Install latest the latest AmxModX verision.
Also install latest SuperHero Mod.

Note: Do not use SuperHero Mod's "auto-installer".

.: Downloads :.


I'll choose the Jolt hero as example in this "tut".


First make sure You got all requirements for the hero.
  • Download the source. (sma file.)
  • Put the source into this folder

    Quote:

    server/cstrike/addons/amxmodx/scripting
  • Some heroes includes additional files. Those files is a requirement for the Hero to work correctly.
  • It's usually mdl, spr and wav files.
  • This is of course needed for heroes that re-skins weapons or players.
    Also needed for heroes which uses custom sounds when used. Same with sprites (spr).
  • You just have to put them in following direction(s)
  • Models goes into

    Quote:

    server/cstrike/models/shmod
  • Sounds goes into

    Quote:

    server/cstrike/sound/shmod
  • Sprites goes into

    Quote:

    server/cstrike/sprites/shmod
  • Make sure to put them in correct direction.

.: Compile :.

  • Compile it localy.
  • Execute following

    Quote:

    server/cstrike/addons/amxmodx/scripting/compile.exe
  • Note that you don't have to do this one time for every source. It compiles all source's in your scripting folder into amxx files (Will explain at next step.).

.: Amxx File Into Server :.
  • If the Compile works as it should, you should now have a new folder or just the folder by default.
  • The source code is now transformed into amxx file, so the server may read it.
  • Now, take the compiled hero from this direction in this case

    Quote:

    server/cstrike/addons/amxmodx/scripting/compiled/sh_jolt.amxx
  • Move this amxx file into following direction

    Quote:

    server/cstrike/addons/amxmodx/plugins

.: Activate Hero :.
  • Now how to activate the hero!
  • To activate the hero you must open following configuration file, the default direction is

    Quote:

    server/cstrike/addons/amxmodx/configs/plugins-shero.ini
  • If you don't auto-open this file with any text software, Just open this file with notepad or wordpad.
  • The first 9 lines or so just chooses how you wanna save the Exp. Do not touch if you do not know what you're doing.
  • Under that part you wanna write the exact file name of the hero we wanna activate. In this case the Jolt Hero. We know that the name of that hero's amxx file is "sh_jolt.amxx". So we just have to write it in this configuration file.
  • An example of a "plugins-shero.ini" may be;

    Quote:

    //Add Heroes Here

    sh_akasha.amxx
    sh_bass.amxx
    sh_batgirl.amxx
    sh_beast.amxx
    sh_chucky.amxx
    sh_frieza.amxx
    sh_jolt.amxx
    sh_mario.amxx
    sh_penguin.amxx
    sh_phoenix.amxx
    sh_poisonivy.amxx
    sh_probe.amxx
    sh_punisher.amxx
    sh_slayer.amxx
    sh_staticshock.amxx
    sh_skulk.amxx
    sh_veronika.amxx
  • Just write in the Jolt amxx file name as i did in this list. (I usually do it in alphabetical order, makes it easier for the next step.)

.: Configurations :.
  • Now we need to configurate the hero for Your own needs.
  • Locate following CFG file (Open with any text)

    Quote:

    server/cstrike/addons/amxmodx/configs/shero/shconfig.cfg
  • The top of this config is general settings for Exp etc.
  • Look at the Jolt Heroes page for CVars. (CVars = basically settings.)
  • Jolt's CVars is very easy and short. Since it needs no other then level setting.

    Quote:

    //Jolt
    jolt_level 4
  • The default amount is often currently active. (It's written in the source code from begining, but this config file let us change that.)
  • Just copy-paste the CVar(s) into the list and choose whatever amount you want. As you might understand "jolt_level" decides what level the hero is available at.

.: Done :.


If you made every step correctly, The Hero will now be activated and work in-game.



------


Regards
//Viktor B.N.

Jelle 05-26-2010 10:04

Re: How to install heroes (For Beginners)
 
Great. Now everyone can see it when they search. Good job!

Fr33m@n 05-26-2010 10:57

Re: How to install heroes (For Beginners)
 
i'm a noob and i have a linux server. my compiler in my scripting folder don't work. what can i do ?

try to answer that.
server/cstrike/addons/amxmodx/scripting

The Art of War 05-26-2010 11:13

Re: How to install heroes (For Beginners)
 
What is it thats not working? You get strange errors whatever you try to compile, or is there no "compiled" folder or what? Backcompat enabled?

kanatzu 05-26-2010 12:15

Re: How to install heroes (For Beginners)
 
Quote:

Originally Posted by Fr33m@n (Post 1191720)
i'm a noob and i have a linux server. my compiler in my scripting folder don't work. what can i do ?

try to answer that.
server/cstrike/addons/amxmodx/scripting

Search on google "Online amxx compiler" :c

Hehe

Fr33m@n 05-26-2010 14:52

Re: How to install heroes (For Beginners)
 
Not that i expected. i wanted you explain me how can i make a local compiler because this question will be asked by noob users.

The Art of War 05-26-2010 15:34

Re: How to install heroes (For Beginners)
 
Download the amxx base pack?... I cant see any other way to do that

kanatzu 05-26-2010 19:50

Re: How to install heroes (For Beginners)
 
Quote:

Originally Posted by Fr33m@n (Post 1191942)
Not that i expected. i wanted you explain me how can i make a local compiler because this question will be asked by noob users.

I don't think i agree.



Besides that, This isn't a compiler tutorial.

Working compiler is a requirement.

And it's a part of AmxModX.

The Art of War 05-27-2010 01:52

Re: How to install heroes (For Beginners)
 
I guess its possible to somehow create your own compiler, but I also guess that it wouldnt work if its not the one in the AMXx base package, as theres a lot of files and stuff needed. If they ask for how to create a local compiler, they havent got AMXx installed correctly or they havent even AMXx at all...


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

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