HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: Need help finding reference files  (Read 1976 times)


  • General Accounts
  • *
  • Posts: 5
    • View Profile
Need help finding reference files
« on: Jan 18, 17, 12:11:12 AM »

I'm going to make this short and simple:

I know about HJRef, but there are too many files for me to know which ones I'm looking for, and yes, I used Search.

Basically, I'm trying to write my own code, but I need guidance. I don't like the way HE sets things up.

I'm trying to get the following:

Leveling and Abilities
Character Creation
Regular MMO stuff, etc.

If anyone could point me in the right direction, it would be much obliged.
« Last Edit: Jan 18, 17, 12:27:33 AM by zoidBergh »


  • General Accounts
  • *
  • Posts: 677
  • Support Volunteer
    • View Profile
Re: Need help finding reference files
« Reply #1 on: Jan 18, 17, 12:54:42 AM »

Mob-spawning:(doesnt exist out of the box in a form you would use for anything other than testing, since this
would be handled so many different ways depending on the game.  there has been discussion of adding a very basic system that could be expanded, but its not in the real near future)

search the wiki for the command /henpc (or henpc) for help here.
this is basic spawning on command.  for proper spawnGens you'll need to create them from scratch,
however methods/functions for your use in this are already present, see the _npcClassMethods scripts server side.
Check out the methods for creating npcs (used by the /henpc command)
Search all scripts on the server for _CreateSimpleHECharacter
This is used as the basic npc spawn by default. you can use similar code to expand on it for your own purposes.
if one is not already created , create an override class for the npc system (E_NPC)
See the wiki for Overriding default HE classes/code: http://wiki.heroengine.com/wiki/Adapting_Clean_Engine

Leveling and Abilities:(again this could be done so many different ways depending on your game that HE doesn't
try to provide more than the example systems in place, which are less than systems and more just example to
show a possible method)
By default this is very sparsly handled, you'll need to create/expand for your own purposes.
See ProcessVictory() method server side (search all scripts) for the default handling of leveling up/xp

Abilities are handled via script rather than spec (a very outdated method from HJ)
you'll want to create your own ability system using a spec system or prototypes if your system will be
very complex.

Character Creation
See the E_CharacterCreationSystemClassmethods script server side.
Client side, see the E_CharacterCreationSystemWindow (or GUI not sure off hand) class methods script.
if you start with the GUI code client side, you should be able to trace the calls made from onButtonMouseClick etc.
Tip: if you see "call" on either the server side or client side, the script is calling the opposite (server calling client, or server calling another area server, or client calling server) using the keywords Call [<server><client><area>]
Keep this in mind when tracing code.

Regular MMO stuff, etc.
Large subject :)  You'll want to look into Replication (alot on the wiki regarding this) for your server to server/server to client communication of data between players/npcs/accounts/areas etc.

Repliation relies on SpatialAwarenessSystem (SAS)

This is a 'short' list, but should serve to get your feet wet.  If you have specific questions regarding individual systems let us know!


  • General Accounts
  • *
  • Posts: 1160
  • Never stop learning
    • View Profile
Re: Need help finding reference files
« Reply #2 on: Jan 18, 17, 12:45:16 PM »

I made a few short dev tutorials, which are very basic, but might help you get started. They are copy/paste type and don't go into as much detail as the one I learned from.

copy/paste ones:

the tutorial I learned from:
Lead scripter for EO, Repop helper.
HSL Video tutorials:


  • General Accounts
  • *
  • Posts: 664
    • View Profile
    • Exile-Online
Re: Need help finding reference files
« Reply #3 on: Jan 18, 17, 01:00:34 PM »

I think what most people make the mistake of doing is coming in and expecting to be making finalised polished game systems from day 1. I think it is a case of leaping before you look or running before you walk.

I would highly recommend going through all the documentation, of which there is lots. Check out the huge number of links in these 2 posts.




While the game comes with base systems, these will be extended and often replaced over time by development teams. Take a couple of weeks to go through the links.

Also this section of the forums has tutorials made by various engine users. You can look at how things are done from basic to advanced. You can use them and modify them to your own needs.