stfc2 / UI

User Interface
http://www.stfc.it
4 stars 5 forks source link

Sensor page somtimes not work #14

Closed Caberhagen closed 9 years ago

Caberhagen commented 9 years ago

Hi

i see the sensorpage somtimes make a php error. in case of a ship is near et a enemy planet.

so i can see sensor page over long time when the ship is far away. but the ship is near the error occurs.

error:

PHP Fatal error: Call to undefined function get_system_planetary_sensors() in /var/www/game/modules/tactical_sensors.php on line 159, referer: https://stfc.mining-pools.ch/game/index.php?a=tactical_moves

kirirur commented 9 years ago

Hmm,

it could be a work in progress function not stored on github yet.

Caberhagen commented 9 years ago

Hi

i found in tactical_sensor.php on line 158, 159 and 160 3 otions of this function. So now i can say we need the planetary sensors. This is the part the php not can found. I activated now line 158, is most the same as line 159 just without the planetary sensor. So it works. But nice thing we can bring the planetary sensors to wrok.

Kail72 commented 9 years ago

Hi,

get_system_planetary_sensors() is the new version of the sensor core function and is still in test, but if u want, u can grab that version from the repo right now.

Keep in mind that this new version has been "disliked" by most of our players, we could be "forced" to do a rollback to the old version without any warning.

You have been warned :)

Caberhagen commented 9 years ago

Thx for your input.