I decided I was going to move the traders for my server running Napf. I figured out most of what I have to do, but I'm kind of stuck on something.
What I did, I took out all of the environment materials out of the main server sqf file and only left the trader AI and empty heli pads for the vehicle traders. I moved the traders to places with "static" buildings that I could use to reference their positions by and built around those positions in a different sqf file. That way I can fine tune the AI's positions easier if need be, easier to find them in the file, easier to change the lines required for them to function properly, etc.
All of that seems to work fine. Then, I started changing the SQM file, and that's where its throwing errors. First off, I changed the markers to the locations of the traders. To get those locations, I simply placed a random item where I wanted the marker and grabbed the location from the SQF file. However, when I went to add those locations, I noticed the default locations looked a lot different. Most of the default location numbers were higher, and almost all of mine, the third group of numbers were a negative number. So I'm guessing something with that is wrong. If so, I'm not sure how to get the correct location for a marker.
However, the line that the location is on in the SQM file isn't what threw an error. It was the line where I changed a variable and what I believe to be the distance radius for the trader zone, under the class Sensors.
For instance, I changed
class Item0
{
position[]={8246.3184,15.544708,15485.867};
activationBy=WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="Lenz";
expCond="(player distance Lenz) < 50;";
expActiv="[""trader city Lenzburg"",true,"enter] spawn player_traderCity;";
expDesactiv="[""trader city Lenzburg"",true,"leave"] spawn player_traderCity;";
The line that threw the error was the expCond line. I changed the Lenz variable to Homburg, and the distance from 50 to 200. Is that variable referenced in another file somewhere, is that why it's throwing an error there? If anyone has any idea what I'm doing wrong and could point it out, I'd be grateful.
Question
cring0
I decided I was going to move the traders for my server running Napf. I figured out most of what I have to do, but I'm kind of stuck on something.
What I did, I took out all of the environment materials out of the main server sqf file and only left the trader AI and empty heli pads for the vehicle traders. I moved the traders to places with "static" buildings that I could use to reference their positions by and built around those positions in a different sqf file. That way I can fine tune the AI's positions easier if need be, easier to find them in the file, easier to change the lines required for them to function properly, etc.
All of that seems to work fine. Then, I started changing the SQM file, and that's where its throwing errors. First off, I changed the markers to the locations of the traders. To get those locations, I simply placed a random item where I wanted the marker and grabbed the location from the SQF file. However, when I went to add those locations, I noticed the default locations looked a lot different. Most of the default location numbers were higher, and almost all of mine, the third group of numbers were a negative number. So I'm guessing something with that is wrong. If so, I'm not sure how to get the correct location for a marker.
However, the line that the location is on in the SQM file isn't what threw an error. It was the line where I changed a variable and what I believe to be the distance radius for the trader zone, under the class Sensors.
For instance, I changed
The line that threw the error was the expCond line. I changed the Lenz variable to Homburg, and the distance from 50 to 200. Is that variable referenced in another file somewhere, is that why it's throwing an error there? If anyone has any idea what I'm doing wrong and could point it out, I'd be grateful.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now