Giter VIP home page Giter VIP logo

prism's People

Contributors

dave-lb avatar dygear avatar lfspovo avatar makao avatar mkapal avatar pascalmd avatar scottlync avatar t3charmy avatar theangryangel avatar victorvanv avatar zenware avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

prism's Issues

Fix Module Names

Some modules fail to autoload on case-sensative linux or mac servers. Change the __autoload function to include a string to lower function, and move all files to a lowercase format.

I don't understand the abbreviations.

There are several classes that have abbreviations like TSTextArea or TSTextInput TSVline, etc...

And I can't figure out if they mean Telnet Screen, or Telnet Server, and it's making it hard for me to change stuff reasonably. Can anybody help?

PRISM crashes during pit situation

Not sure why this exactly happened, only have this log:

^7{S^J^1¤^7} Pilot ^4X^8 pitted
IS_PLP Packet from gtr.
PHP NOTICE:
Undefined offset: 31 in F:\php\PRISM033\modules\prism_statehandler.php on line 287
1 :: onPlayerPits in F:\php\PRISM033\modules\prism_statehandler.php:48
2 :: dispatchPacket in F:\php\PRISM033\modules\prism_hosts.php:504
3 :: inspectPacket in F:\php\PRISM033\modules\prism_hosts.php:437
4 :: handlePacket in F:\php\PRISM033\modules\prism_hosts.php:308
5 :: checkTraffic in F:\php\PRISM033\PHPInSimMod.php:225
PHP Fatal error: Call to a member function onPitGarage() on a non-object in F:\php\PRISM033\modules\prism_statehandler.php on line 287

Fatal error: Call to a member function onPitGarage() on a non-object in F:\php\PRISM033\modules\prism_statehandler.php on line 287

Full support for newest Live For Speed version

Full support for newest Live For Speed version 0.6U. Update Insim version to 8.
// New value PMO_POSITION for IS_AXM packet to report a blank position
// New packet IS_CIM reports a connection's interface mode
// New values TTC_SEL_START and TTC_SEL_STOP for IS_TTC
// New value PMO_GET_Z for IS_AXM packet to report Z values
// New values PMO_SELECTION_REAL, PMO_MOVE_MODIFY, PMO_AVOID_CHECK

MTC->Msg is now MTC->Text

As reported by T3 and Morpha, the Msg property of the MTC packet was renamed to Text. This needs to be fixed in the plugins that use it.

Prism plugin theTime has different command structure

public function __construct()
{
    $this->registerSayCommand('prism thetime', 'cmdTime', 'Displays the time.');
    $this->registerSayCommand('prism time', 'cmdTime', 'Displays the time.');
}

instead of;

public function __construct()
{
    $this->registerSayCommand('thetime', 'cmdTime', 'Displays the time.');
    $this->registerSayCommand('time', 'cmdTime', 'Displays the time.');
}

?

Short $Plate from IS_NPL and IS_CPR packets is parsed incorrectly?

If I set my car's plate to "d" in LFS, and I leave the pits, in the NPL packet, the following is outputted:
"d 00000" - d + [space] + [space] + 0 + 0 + 0 + 0 (8 chars as supposed, but the spaces and zeros should be not parsed)

If I set my car's plate to "dd" in LFS, I get this:
"dd 00000" - d + d + [space] + 0 + 0 + 0 + 0 (also 8 chars as supposed, but spaces and zeros shouldn't be parsed)

But if I set my car's plate to "dddddddd" (full 8 chars used), I get:
"dddddddd" as I'm supposed to.

The same results happen in the IS_CPR and IS_NPL packet :(

StateHandler and states

In prism_statehandler.php line 255, $this->State to be assigned a CPP state interferes with $this->State in line 224, to be assigned LFS state. Though they are both ISS state flags, they should be kept separate. Currently this is causing a bug where StateHandler::$State is always 0 after startup if LFS is not in shift-u mode (when there is no user-camera).

Propesed fix : rename the CPP $this->State to $this->CamState

will push a fix later when done working on this messaging feature.

Buttons stored by ButtonManager are not deleted once connection disconnects

I found out that the buttons stored by the ButtonManager aren't deleted from the $buttons array in prism_buttonmanager.php. This means that if a user connects, buttons are displayed, user disconnects and then reconnects again, buttons aren't shown anymore.

Solution to this is that a plugin developer must manually delete all buttons in the IS_CNL packet event.

It would be nice if it could be done automatically by PRISM! :)

Problem with IS_PLC

The pack/unpack is written wrong, works with the following

const PACK = 'CCCxCxxxV';
const UNPACK = 'CSize/CType/CReqI/CZero/CUCID/CSp1/CSp2/CSp3/VCars';

Parse error prism_file.php

public static function extensionLookup($extension, $fallback = 'application/octet-stream') {
    return (isset(SELF::EXTENSIONS[$extension])) ? SELF::EXTENSIONS[$extension] : $fallback;
}

expected (

MessageToAllHosts

Apparently back in 2013 I made a request to have the ability to send a message from a plugin to all PRISM connected hosts. Should this be allowed to send to ALL hosts or only host that are running the same plugin that called it?

ButtonManager: Buttons with UserID 255

Buttons created with UserID 255 using the ButtonManager aren't correctly handled for all users.

If UserID == 255 we'll need to do a foreach of all users on the server and init the button for each user so that they are created with an actually unused ClickID.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.