I use 010 Editor for this so the tutorial will explain how to do it in that
First off you need to take this and make a file called monster.bt(or anything you want .bt)
Now to add a spawn
Decide where you want to add a mob and go there ingame and type /mypos
This will output your coords in client end numbers, enter these coords into my coord converter View attachment MapCoordGui.rar here and click convert
The output will be a lower X and Y + a map on the server end data in the world folder look for a folder named what the map output was IE if it says 1-1 go to the 1-1 directory and open 1-1.monster in that directory using 010 Editor
Click Run Template and open the monster.bt you made earlier you will get a new window called template results
Change the header-> nCount to 1 higher then it was.
Scroll to the bottom and find the last time it says "struct mob mob_" click that and it will select it on the hex window. Select from the start of the selected window until the end of the file and copy that.
Select the very end of the file and paste(this is easier to do then writing it all from scratch)
Now run the template again and go to the last "struct mob mob_" Click the arrow beside it
Edit spawn_id to 1 higher then it is
Edit type to the monster type you want to spawn(from monster.bin)
Edit guessed_spawntime to the respawn time you want
Edit tempPosx, y and z use the x and y from the coord tool and the z from the output of /mypos
Edit Waypoints as needed
Now go to the next entry on the template output that should be "struct waypoint waypoint_" and click the arrow beside it if you edited waypointCount you will need to either add more of these or remove some there should be 1 waypoint_ for each waypointCount so 1 of them if you put 1 2 if you put 2 and so on edit those at this point by selecting it and copy -> pasting the data to the end of the file
Once you have the right number of them run the template again and go back to the bottom and edit the waypoint_'s you just made
Edit tempPosx, y and z use the x and y from the coord tool and the z from the output of /mypos
Anyone with time can also use this .BT struct to create a spawn editor... I had one working but lost it and don't have time to rewrite it sadly.
EDIT - Thx Yurn for minor corrections there it's been a while since I worked with these
First off you need to take this and make a file called monster.bt(or anything you want .bt)
Code:
typedef struct{ signed int nCount;
}header;
typedef struct{
signed int spawn_id;
signed int type;
signed int guessed_enable;
float guessed_spawntime;
float fInterval2;
signed int groupID;
float tempPosx;
float tempPosy;
float tempPosz;
float gen_fMinRadius;
float gen_fMaxRadius;
float act_fMinRadius;
float act_fMaxRadius;
signed int waypointcount;
} mob;
typedef struct{
float tempPosx;
float tempPosy;
float tempPosz;
} waypoint;
while( !FEof() )
{
local int i = 0;
local int j = 0;
header header_;
for( i = 0; i < header_.nCount; ++i )
{
mob mob_;
for( j = 0; j < mob_.waypointcount; ++j )
{
waypoint waypoint_;
}
}
}
Decide where you want to add a mob and go there ingame and type /mypos
This will output your coords in client end numbers, enter these coords into my coord converter View attachment MapCoordGui.rar here and click convert
The output will be a lower X and Y + a map on the server end data in the world folder look for a folder named what the map output was IE if it says 1-1 go to the 1-1 directory and open 1-1.monster in that directory using 010 Editor
Click Run Template and open the monster.bt you made earlier you will get a new window called template results
Change the header-> nCount to 1 higher then it was.
Scroll to the bottom and find the last time it says "struct mob mob_" click that and it will select it on the hex window. Select from the start of the selected window until the end of the file and copy that.
Select the very end of the file and paste(this is easier to do then writing it all from scratch)
Now run the template again and go to the last "struct mob mob_" Click the arrow beside it
Edit spawn_id to 1 higher then it is
Edit type to the monster type you want to spawn(from monster.bin)
Edit guessed_spawntime to the respawn time you want
Edit tempPosx, y and z use the x and y from the coord tool and the z from the output of /mypos
Edit Waypoints as needed
Now go to the next entry on the template output that should be "struct waypoint waypoint_" and click the arrow beside it if you edited waypointCount you will need to either add more of these or remove some there should be 1 waypoint_ for each waypointCount so 1 of them if you put 1 2 if you put 2 and so on edit those at this point by selecting it and copy -> pasting the data to the end of the file
Once you have the right number of them run the template again and go back to the bottom and edit the waypoint_'s you just made
Edit tempPosx, y and z use the x and y from the coord tool and the z from the output of /mypos
Anyone with time can also use this .BT struct to create a spawn editor... I had one working but lost it and don't have time to rewrite it sadly.
EDIT - Thx Yurn for minor corrections there it's been a while since I worked with these
Last edited: