Path Types & Naming
Paths follow a strict naming convention:<type>-<location>.ahk
Path Type Prefixes
Fromnatro_macro.ahk:309-321, these are the valid path types:
| Prefix | Full Name | Purpose | Example |
|---|---|---|---|
gtb | Go To Booster | Navigate to field boosters | gtb-blue.ahk |
gtc | Go To Collect | Navigate to machines/collectibles | gtc-honeydis.ahk |
gtf | Go To Field | Navigate to gathering fields | gtf-sunflower.ahk |
gtp | Go To Planter | Navigate to planter locations | gtp-bamboo.ahk |
gtq | Go To Questgiver | Navigate to quest NPCs | gtq-bucko.ahk |
wf | Walk From | Return from field to hive | wf-strawberry.ahk |
Valid Locations
Fields (gtf, gtp, wf)
Fields (gtf, gtp, wf)
Boosters (gtb)
Boosters (gtb)
Questgivers (gtq)
Questgivers (gtq)
Machines (gtc)
Machines (gtc)
Path Structure
Paths use movement and camera functions to navigate from your current location to the target.Movement Functions
Camera Functions
Direction Keys
These variables are available in all paths:FwdKey- Move forwardBackKey- Move backwardLeftKey- Move leftRightKey- Move rightRotLeft- Rotate camera leftRotRight- Rotate camera right
Example Paths
Go To Field - Sunflower (Planter)
Go To Field - Sunflower (Planter)
paths/gtp-sunflower.ahk:1-8 - This path:- Goes to the red ramp
- Walks backward to position
- Rotates camera right once
- Walks right to the field entrance
- Walks forward into the field
- Positions optimally for planter placement
- Final camera rotation for field orientation
Go To Field - Bamboo (Cannon Method)
Go To Field - Bamboo (Cannon Method)
paths/gtf-bamboo.ahk:1-25 - This demonstrates:- Conditional logic based on
MoveMethodsetting - Cannon usage with timing (
HyperSleep) - Alternative walking route
- Diagonal movement (
FwdKey, RightKey)
Walk From - Honey Dispenser
Walk From - Honey Dispenser
paths/gtc-honeydis.ahk:1-5 - Shows:- Calculated distance based on
HiveSlotvariable - Formula:
9.2 * (7 - HiveSlot) + 10adjusts for hive position - Diagonal movement for final positioning
Import & Validation
Paths are automatically imported from thepaths/ folder on macro startup.
Import Process
Fromnatro_macro.ahk:307-352, the import function:
Error Messages
Available Variables
These global variables are accessible in path files:| Variable | Type | Description |
|---|---|---|
MoveMethod | String | ”Cannon” or “Walk” - movement preference |
HiveSlot | Number | Your hive slot number (1-6) |
FieldName | String | Current target field name |
Creating Custom Paths
Step-by-Step Process
-
Record Your Route
- Manually walk the route in-game
- Note each movement direction and approximate distance
- Record camera rotations needed
-
Create Path File
- Name:
<type>-<location>.ahk - Start from a known position (usually hive or field)
- Use
nm_Walk()for each movement segment
- Name:
-
Test & Refine
- Test in-game with macro
- Adjust distances (units are approximate)
- Fine-tune camera rotations
- Test from different starting conditions
-
Optimize
- Remove unnecessary movements
- Combine diagonal movements where possible
- Add conditional logic for cannons if beneficial
Distance Reference
- 1 unit ≈ Small character step
- 10 units ≈ Medium distance
- 25 units ≈ Cross a field
- 50+ units ≈ Long distance travel
Distances are affected by your
MoveSpeedNum setting. Test with your configured speed!Common Issues
Character ends up in wrong location
Character ends up in wrong location
Cause: Incorrect distances or missing camera rotationsSolution:
- Break path into smaller segments
- Test each segment individually
- Verify camera orientation at each step
- Check for obstacles in the path
- Adjust distances incrementally (±1-2 units)
Path works sometimes but not always
Path works sometimes but not always
Cause: Starting position varies or lag affects timingSolution:
- Add a “reset” position at path start (e.g.,
nm_gotoramp()) - Use
HyperSleep()after movements that need settling time - Avoid paths that require precise frame-perfect timing
- Test with different server latencies
Cannon path fails
Cannon path fails
Cause: Timing issues or cannon aim problemsSolution:
- Increase
HyperSleep()durations between cannon actions - Test cannon direction keys (Left/Right) duration
- Verify
{space}timing for cannon launch - Consider adding fallback
elseclause with walk path
File Location
paths/ folder with correct naming to be imported.
Testing Checklist
- Path works from hive
- Path works after reconnect
- Path works with Cannon method (if applicable)
- Path works with Walk method
- Character faces correct direction at end
- No obstacles block the route
- Works on different servers (lag test)
- Consistent across multiple runs
Best Practices
- Start paths from consistent locations (
nm_gotoramp()is common) - Use comments to explain complex sections
- Keep movements simple and direct
- Test both Cannon and Walk methods if path supports both
- Provide alternative routes if primary path is unreliable
- Consider server lag in timing-critical sections
Advanced Techniques
Conditional Logic
Hive Slot Adjustment
Pre-Movement Positioning
Resources
Share your custom paths on Discord! The community can help optimize and verify paths work for all users.