Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: wistler on May 08, 2009, 10:14:25 am

Title: error message when setting camera coordinates.
Post by: wistler on May 08, 2009, 10:14:25 am
I get a error: not a number whenever I put in the X Y Z coordinates, yet despite this they work fine in the mission. Am i doing it wrong?



[attachment deleted by ninja]
Title: Re: error message when setting camera coordinates.
Post by: Rodo on May 08, 2009, 10:18:29 am
make it an integer... I'm guessing no floating point numbers are allowed.

And the mission is playing ok despite this error in Fred?
Title: Re: error message when setting camera coordinates.
Post by: karajorma on May 08, 2009, 11:05:08 am
Yep. The SEXP system can only ever deal with integers. That's why sometimes it suddenly has arguments in milliseconds rather than seconds (like send-message-list).
Title: Re: error message when setting camera coordinates.
Post by: wistler on May 08, 2009, 03:23:26 pm
thanks thats fixed the problem. Why would it give a problem message but work fine? Does the game just ignore the decimal at the end?
Title: Re: error message when setting camera coordinates.
Post by: karajorma on May 08, 2009, 03:43:50 pm
I can't remember what it would do without looking at the code but release builds usually either try correct in some way or display an error message.

Debug builds are much more likely to complain.
Title: Re: error message when setting camera coordinates.
Post by: Skullar on May 25, 2009, 03:52:15 am
Additional advise :

I came to appreciate the folölowing method .

Place WAYPOINTS and name them like "camera 1", "camera 2", .....

The sexp would look like this :

- set camera position
    - getobjectx
         - camera1
    - getobjecty
         - camera1
    - getobjectz
         - camera1

Like this, you can easily try out different camera positions. You dont have to deal with numbers in the EVENTS editor, you simply have to drag and drop the waypoints around until you are satisfied with the results.

There is a cutscene article in the wiki I think. I wrote it and it contains this tip as well.