Difference between revisions of "IDEA"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "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!) h...")
 
(Replaced content with "This is moved, please delete")
(Tag: Replaced)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
How to setup IntelliJ IDEA with LoA
+
This is moved, please delete
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.
 
2. Create a new project, choose these settings: 
 
3. Click Next
 
4. Name your project the name of your mod and take note of the location of this new project. Click Finish.
 
5. Navigate to the location of the new project, and copy the files that are there: 
 
6. Paste these in your mod folder.
 
7. 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
 
8. In IDEA…open a new project and navigate to your mod folder. 
 
9. Once open, you may need to expand the tree on the left:
 
 
 
10. Right click scripts
 
11. Select “Mark Directory as” and “Sources Root”
 
12. 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
 

Latest revision as of 00:40, 13 January 2019

This is moved, please delete