SRL Archive - General

How to download/setup MSI!


Coh3n

2010-04-14 15:03:57

How to download and setup MSI for autoing!
Last updated April 14th, 2010.

Intorduction:
  • While writing MSI, we wanted to make the setup as easy and as smooth as possible for our users. MSI (will) includes many different features that we hope you'll all enjoy.
  • This small guide includes the following:
    • What is required for MSI to run properly
    • How to download MSI
    • How to use setup for autoing
    • How to use reflection walking (optional)

What is required for MSI to run properly:
  • For MSI to run to the best of it's ability, you will need:
    • SCAR 3.23 Beta (can only be downloaded via SVN)
    • Developer's Repository of SRL
  • If you don't have either of these, or don't know how to get either of these, please visit this tutorial.

How to download MSI:
  • To download MSI, you need some way to download via SVN repository. The most common method is Tortoise SVN or Subversion. If you don't have either of these, please visit this tutorial.
  • Navigate to your SRL folder (the one that contains the core, misc, and skill folders), and create a new folder ~ msi.
  • Do an SVN checkout using the following link:

  • http://www.villavu.com/repositories/msi/
  • Wait for all the files to download. Take a look through the include if you feel inclined to do so. There's some pretty neat code floating around. ;)

How to setup MSI for autoing:
  • I know we originally planned on having an awesome MSI player form, but for right now, we've stuck with the traditional DeclarePlayers. Sorry if we've disappointed you. :o
  • To setup MSI, simply open up RunMe.scar and follow the instructions in the script header.
  • Since MSI will support multiple skills and multiple items for those skills, the PlayerSkills and PlayerObjects are multi-dimensional arrays, so you have to be careful to format the array properly. Here's an extra explanation if you're interested.

  • var
    PlayerSkills: Array of TVariantArray; //2D array
    PlayerObjects: Array of Array of TVariantArray; //3D array

    //Basically, the PlayerSkills array will be declared like this:
    PlayerSkills[0] := [SKILL_WOODCUTTING, SKILL_MINING, SKILL_FIGHTING];
    //So the 0 represents the CurrentPlayer, and inside the TVariantArray are the multiple skills

    { Notice how there are 3 arrays inside the outside square brackets. Each one of
    these arrays correspond to each skill in the PlayerSkills array, understand? }
    PlayerObjects[0] := [ [OBJ_TREE, OBJ_OAK, OBJ_YEW], [OBJ_COAL, OBJ_IRON], [OBJ_COW, OBJ_CHICKEN] ];

    //It's very important you set these up properly, otherwise you'll get all sorts of errors :p

How to use reflection walking (optional):
  • Our hybrid walking system uses color with reflection backup. Basically, if the point on the minimap found by the color walking is too far away from the reflection tile of that point (in other words, it failed), then the script will walk to that reflection tile.
  • In order to use this hybrid walking system, you need to download the reflection include via SVN.
    • In the same folder you created your SRL folder (SCAR/Includes/SRL/SRL), create a folder called reflection, and do an SVN checkout with the following link:

    • http://scardevreflection.googlecode.com/svn/trunk/
    • In order for reflection to work properly, you need to obtain the most up to date hooks. As far as I know, the automatic hook updater built into reflection is broken. Therefore you must replace the proper hooks manually.
    • Here is a list of the hooks you need for walking:
      • RSBuild
      • MyPlayer
      • BaseX
      • BaseY
      • FlagX
      • FlagY
      • CharMotion
      • CurrentX
      • CurrentY
    • Thanks to TriLez, we are able to get updated hooks. Simply open up Hooks.scar (found in the reflection folder), and replace each constant in the above list's string with the corresponding hooks found here.
    • If you're having trouble getting this to work, you may be better off using just the color walking, in which case you would comment out this line in RunMe.scar:

    • {$DEFINE REFLECTION} // Comment out if you don't want to use reflection walking
  • Keep in mind that the only reflection MSI is using is for walking. If you plan on power skilling, or anything that doesn't require walking, there's really no need to include reflection. Just keep that in mind when you're setting up MSI. :)

I think that's everything you need to know. If you have any questions/suggestions/problems feel free to post here.

Cheers,
The MSI Team

Sir R. M8gic1an

2010-04-14 16:10:04

Damn nice post o.O

I think it's nearly time to pop the champagne bottles!

~RM

Coh3n

2010-04-14 16:15:00

From: rasta magician
damn nice post o.o

i think it's nearly time to pop the champagne bottles!

~rm

:d:d:d:d:d:d:d:d:d:d

Apparently it doesn't want to do a bunch of big smiles >.<

:):):):):):):):):):):):)

E: I found and added the reflection link.

Sir R. M8gic1an

2010-05-13 14:18:30

Has this been posted publicly..?

~RM

Coh3n

2010-05-13 14:26:28

From: Rasta Magician
Has this been posted publicly..?

~RM

Not really no, I just kind of summed it up in the Jr. thread I made.

Sir R. M8gic1an

2010-05-13 14:28:22

I knew I found Ray's reply to that thread a bit strange for some reason..
I'll take care of it.

Edit: Actually it had already been done. It's in general discussion in MSI forums. Seems like i had already made a Copy thread.

~RM

Coh3n

2010-05-13 14:31:10

From: Rasta Magician
I knew I found Ray's reply to that thread a bit strange for some reason..
I'll take care of it.

Edit: Actually it had already been done. It's in general discussion in MSI forums. Seems like i had already made a Copy thread.

~RM

Lol when I read that I didn't even think of this thread. :o

Sir R. M8gic1an

2010-09-06 03:11:49

I'm guessing this can be unstuck by now?

~RM