Mat
02-15-2012, 01:39 AM
Okay.
I have seen people ask for this so I thought might aswell while I'm a bit awake:).
Covering?
Making the Image
Making the Code for SPS file
How to Test it :)
Making the Image!
First of go to the Location you want to create the Map for and see if you can use the world Map on it.
Lets look at FoG.
Perfect its has a world Map :)
http://i.imgur.com/26Bd8.png
Map it 100% Zoom! (MUST)
Now Take a screen shot of the map. and paste in to the editing program of your Choice I'll be using Adobe FireWorks CS5 as its a lot easier :).
http://i.imgur.com/nwr95.png
Crop the image so there is abit of black around the outter of the map.
http://i.imgur.com/FN3KZ.png
Now create a New Canvas which is 500px by 500px and make sure it has a Black Background!
http://i.imgur.com/A8nSe.png
As you can see from the image above I Have placed the Map in the middle of the image, you must do this!
Now save as 0_0.PNG
Finished Map
http://i.imgur.com/tThfc.png
MAP IS MADE!!!!
Modifying SPS.Simba to have a new area!
Open SPS.Simba and you should see this: http://i.imgur.com/5O6eW.png
Then scroll down still you see this:
http://i.imgur.com/Xvagc.png
Copy it, scroll down and re paste it at the bottom.
FoG:// Name of the area
with SPS_Surface do
begin
Name := 'Fog';//Name
ImagePath := SPS_IMG_PATH + 'Fog\';//Folder in which we will create shortly
FactorX := 400;//No Touchy
FactorY := 400;//No Touchy
TileOffsetX := -1;//No Touchy
TileOffSetY := -1;//No Touchy
Tolerance := 0.4;//Tolerance Change this is you are having problems with walking.
end;As you can see the code above is for FoG. all you do is copy it and paste it in, then change the folder Name etc.
Once you have done this the SPS.Simba File is Modified!
Making the Folder(Really Simple)
Go to
C:\Simba\Includes\SPS\img
Next create new folder to what you called it in the SPS.Simba which I called FoG.
Once the folder is created add the 0_0.PNG File you create first in to it.
Testing Your Map!
Testing your Map is quite easy.
I uses this to test my SPS Maps:program SPS_Tester;
{$i srl/srl.Simba}
{$i sps/sps.simba}
begin
SetupSRL;
SPS_Setup({Here you put the name of the area in my case FoG},[{The map Name Our case '0_0'}]);
Writeln(SPS_GetMyPos);
end.
http://i.imgur.com/fQ0t1.png
If you look at this image where I am testing it you will see a number like this (255, 245) this is the point in which you are at in that Map which means it has worked. Move around the area and keep testing it to see if it changes.
Creating a path, if that is the only Image in there you can use the path creator, but I'd find it easier to move around rs and run that little script which gives you your location, take a note of it and keep walking till you created your path(Like Reflection and Injection Bots Were).
Congratuations you have created and tested a Custom SPS Map!
If you have any question please feel free to post and I'll do the best I can to assist you :)
Mat
P.S. Bed time Now 2am ... HardCore Much :D :spot: Also I may do a Tutorial on How to use the MiniMap to Create SPS Maps. (Maybe)
I have seen people ask for this so I thought might aswell while I'm a bit awake:).
Covering?
Making the Image
Making the Code for SPS file
How to Test it :)
Making the Image!
First of go to the Location you want to create the Map for and see if you can use the world Map on it.
Lets look at FoG.
Perfect its has a world Map :)
http://i.imgur.com/26Bd8.png
Map it 100% Zoom! (MUST)
Now Take a screen shot of the map. and paste in to the editing program of your Choice I'll be using Adobe FireWorks CS5 as its a lot easier :).
http://i.imgur.com/nwr95.png
Crop the image so there is abit of black around the outter of the map.
http://i.imgur.com/FN3KZ.png
Now create a New Canvas which is 500px by 500px and make sure it has a Black Background!
http://i.imgur.com/A8nSe.png
As you can see from the image above I Have placed the Map in the middle of the image, you must do this!
Now save as 0_0.PNG
Finished Map
http://i.imgur.com/tThfc.png
MAP IS MADE!!!!
Modifying SPS.Simba to have a new area!
Open SPS.Simba and you should see this: http://i.imgur.com/5O6eW.png
Then scroll down still you see this:
http://i.imgur.com/Xvagc.png
Copy it, scroll down and re paste it at the bottom.
FoG:// Name of the area
with SPS_Surface do
begin
Name := 'Fog';//Name
ImagePath := SPS_IMG_PATH + 'Fog\';//Folder in which we will create shortly
FactorX := 400;//No Touchy
FactorY := 400;//No Touchy
TileOffsetX := -1;//No Touchy
TileOffSetY := -1;//No Touchy
Tolerance := 0.4;//Tolerance Change this is you are having problems with walking.
end;As you can see the code above is for FoG. all you do is copy it and paste it in, then change the folder Name etc.
Once you have done this the SPS.Simba File is Modified!
Making the Folder(Really Simple)
Go to
C:\Simba\Includes\SPS\img
Next create new folder to what you called it in the SPS.Simba which I called FoG.
Once the folder is created add the 0_0.PNG File you create first in to it.
Testing Your Map!
Testing your Map is quite easy.
I uses this to test my SPS Maps:program SPS_Tester;
{$i srl/srl.Simba}
{$i sps/sps.simba}
begin
SetupSRL;
SPS_Setup({Here you put the name of the area in my case FoG},[{The map Name Our case '0_0'}]);
Writeln(SPS_GetMyPos);
end.
http://i.imgur.com/fQ0t1.png
If you look at this image where I am testing it you will see a number like this (255, 245) this is the point in which you are at in that Map which means it has worked. Move around the area and keep testing it to see if it changes.
Creating a path, if that is the only Image in there you can use the path creator, but I'd find it easier to move around rs and run that little script which gives you your location, take a note of it and keep walking till you created your path(Like Reflection and Injection Bots Were).
Congratuations you have created and tested a Custom SPS Map!
If you have any question please feel free to post and I'll do the best I can to assist you :)
Mat
P.S. Bed time Now 2am ... HardCore Much :D :spot: Also I may do a Tutorial on How to use the MiniMap to Create SPS Maps. (Maybe)