|
|
Line 1: |
Line 1: |
− | == How to setup IntelliJ IDEA with LoA ==
| + | This is moved, please delete |
− | Download the community version:<br>
| |
− | https://www.jetbrains.com/idea/<br>
| |
− | Also download Rainbow Brackets, it’s pretty awesome! (thanks Sleekit!)<br>
| |
− | https://plugins.jetbrains.com/plugin/10080-rainbow-brackets<br>
| |
− | # While IDEA is installing, you have the option to install plugins. <br>
| |
− | 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:
| |
− | | |
− | # Click Next
| |
− | # Name your project the name of your mod and take note of the location of this new project. Click Finish.
| |
− | # Navigate to the location of the new project, and copy the files that are there:
| |
− | # Paste these in your mod folder.
| |
− | # 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
| |
− | # In IDEA…open a new project and navigate to your mod folder.
| |
− | # Once open, you may need to expand the tree on the left:
| |
− |
| |
− | # Right click scripts
| |
− | # Select “Mark Directory as” and “Sources Root”
| |
− | # 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
| |