Author Topic: error message when setting camera coordinates.  (Read 1597 times)

0 Members and 1 Guest are viewing this topic.

Offline wistler

  • 28
error message when setting camera coordinates.
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]

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: error message when setting camera coordinates.
make it an integer... I'm guessing no floating point numbers are allowed.

And the mission is playing ok despite this error in Fred?
el hombre vicio...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: error message when setting camera coordinates.
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).
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline wistler

  • 28
Re: error message when setting camera coordinates.
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?

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: error message when setting camera coordinates.
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.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

  

Offline Skullar

  • 29
Re: error message when setting camera coordinates.
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.