Difference between revisions of "IDEA"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
Line 1: Line 1:
 
== How to setup IntelliJ IDEA with LoA ==
 
== How to setup IntelliJ IDEA with LoA ==
Download the community version:
+
Download the community version:<br>
https://www.jetbrains.com/idea/
+
https://www.jetbrains.com/idea/<br>
Also download Rainbow Brackets, it’s pretty awesome!  (thanks Sleekit!)
+
Also download Rainbow Brackets, it’s pretty awesome!  (thanks Sleekit!)<br>
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets
+
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets<br>
#      While IDEA is installing, you have the option to install plugins.  If there is an option to install EmmyLua, go ahead and do it. Otherwise you can go to File…Settings…Plugins after installation and add it.  
+
#      While IDEA is installing, you have the option to install plugins.  <br>
Note: EmmyLua seems to work better than the others.
+
If there is an option to install EmmyLua, go ahead and do it. Otherwise you can go to File…Settings…Plugins after installation and add it. <br>
 +
''Note: EmmyLua seems to work better than the others.''
 
# Create a new project, choose these settings:   
 
# Create a new project, choose these settings:   
 +
 
# Click Next
 
# Click Next
 
# Name your project the name of your mod and take note of the location of this new project. Click Finish.
 
# Name your project the name of your mod and take note of the location of this new project. Click Finish.

Revision as of 00:21, 13 January 2019

How to setup IntelliJ IDEA with LoA

Download the community version:
https://www.jetbrains.com/idea/
Also download Rainbow Brackets, it’s pretty awesome! (thanks Sleekit!)
https://plugins.jetbrains.com/plugin/10080-rainbow-brackets

  1. While IDEA is installing, you have the option to install plugins.

If there is an option to install EmmyLua, go ahead and do it. Otherwise you can go to File…Settings…Plugins after installation and add it.
Note: EmmyLua seems to work better than the others.

  1. Create a new project, choose these settings:
  1. Click Next
  2. Name your project the name of your mod and take note of the location of this new project. Click Finish.
  3. Navigate to the location of the new project, and copy the files that are there:
  4. Paste these in your mod folder.
  5. If you are using git, please ignore these. They are not useful in a shared environment since they are tied to your username/file structure. Instead, you can export your settings after the setup is complete and share this with your teammates. File…Export Settings
  6. In IDEA…open a new project and navigate to your mod folder.
  7. Once open, you may need to expand the tree on the left:
  1. Right click scripts
  2. Select “Mark Directory as” and “Sources Root”
  3. Delete the “src” folder

Now we will setup LoA to run inside the IDE 1. Navigate to File…Settings Choose Tools…“External Tools” and the + to add one. 2. This can be setup for each map, or however you choose to set it up, but in our example we will setup a map, and call it “LoA – Upper Plains”, so name it that: 3. For Program, navigate to the LoA Build folder and select ShardServer.exe 4. For Arguments, put in the full name from the relevant map file “Address” in your ClusterConfig.xml file. Ex: 5. For Working Directory, set this to your root LoA folder and click OK. 6. Now you can stop and start the server by using the controls on the lower left: If you start the server, you’ll see the console in the window:

Also, you can find references by using the middle mouse button while hovering over:

Hovering over function names will show you the references using them, and hovering over references will take you to the function. Hope you got some use from this. Thanks to DjOli for walking me through it! ~Tihr a’Lahn