Adding new objects into the world
Working directories: Content/maps, Content/pack
Maps hold the logic, of how everything in the world looks.
It has info about every loc (object in rs terms) in the chunk.
If editing a map manually (without an editor), this is the main place you will tinker with.
Pack holds all the lists of obj (items), loc (objects), models etc.
We will use it to find loc ID of what you want to add.
In this Tutorial, I’m adding iron rock to a new place.
PART 1: Getting coordinates
First we need to find the spot, where we want to add our new loc.
To get coords, walk to the right place and run command: ::~coord
For example, I’m putting my loc in Lumbridge courtyard.
My ::~coord: 0_50_50_22_15
Coord info is as follows: level_chunkx_chunky_coordx_coordy
Now you have coords of your new loc.
PART 2: Adding loc
Go to Content/maps and find your chunk.
You can either scroll or look up: "m(chunkx)_(chunky).jm2
For example, my file is called m50_50.jm2
Scroll or ctrl+f “==== LOC ====” to find the right place to start.
Now scroll til you find the right place for your coordinates.
In my example, the right place is between those lines:
0 22 11: 2771 22
0 22 26: 2771 22
It is structured like this:
level coordx coordy: locID locType rotation
there are many locTypes, we are using 10 for the iron rock.
Iron rock locID is 2092
For example, I’m adding:
0 22 15: 2092 10 1
PART 3: Finding locID
If you want to add anything other than iron rock, you need to know its ID
Open Content/pack and find loc.pack.
Scroll or ctrl+f and find your desired item.
For example, iron rock is 2092 and runite rock is 2106.
PS! Rocks have 2 different shapes and macro versions, you can use either of the types.
Macro versions are anti-bot mechanic, you can add them, but they don’t function as normal rocks.
You can also use object id lists like this one:
https://www.rulocus.com/tools/osrs-object-id-list/
PS! This link has up to osrs level objects, 225 revision natively only has 3386 loc-s available.
If you have your desired locID, change it in your map file.
Don’t forget to save it!
Build and launch your game, the loc should be in your desired location.
Now you can add new loc-s to your game and know how others are loaded in.
In the same way, you can also remove locs and modify your game.
Good luck with developing and happy scaping!