The online racing simulator
PHPInSimMod - PRISM 0.3.6 Discussion
You can download PHPInSimMod - PRISM 0.3.6 from that link. Please use this thread to talk about this release.

Thank you.

PHPInSimMod (PRISM) 0.3.6
  • Changed flag ADMIN_LEVEL_O to ADMIN_OBJECT to as to be used with the AutoX related admin commands.
  • Updated welcome plugin now works correctly.
  • Fixed bug when issuing a command as the host.
  • Added isFemale, isAI & isRemote functions to IS_NPL packet.
  • Made some changes to the pth parser for use in a future version.
  • Added the following new packets from LFS version 0.6A1
    • IS_OBH reports information about any object hit.
    • IS_HLV reports incidents that would violate HLVC.
    • IS_PLC sets allowed cars for individual players.
    • IS_AXM to add / remove / clear autocross objects.
    • IS_ACR to report (attempted) admin commands.
Took, the time and made up a list of objects:


<?php 
$this
->registerPacket('onObjectHit'ISP_OBH);
?>


<?php 
    
public function onObjectHit(IS_OBH $OBH)
    {
        
$Objects = array(=> 'Scenery Object',
                         
=> 'Long Chalk Line'=> 'Short Chalk Line',
                         
=> 'Short Ahead Arrow'=> 'Long Ahead Arrow',
                         
=> 'Short Left Curve Arrow'=> 'Left Turn Arrow'10 => 'Long Left Curve Arrow',
                        
11 => 'Short Right Curve Arrow'12 => 'Right Turn Arrow'13 => 'Long Right Curve Arrow',
                        
20 => 'Red+White Cone'21 => 'Red Cone'22 => 'Striped Red Cone',
                        
23 => 'Striped Blue Cone'24 => 'Blue Cone',
                        
25 => 'Striped Green Cone'26 => 'Green Cone',
                        
27 => 'Orange Cone'28 => 'White Cone',
                        
29 => 'Striped Yellow Cone'30 => 'Yellow Cone',
                        
40 => 'Red Directional Cone'41 => 'Blue Directional Cone',
                        
42 => 'Green Directional Cone'43 => 'Yellow Directional Cone',
                        
48 => 'Single Tire'49 => 'Tire Stack of 2',
                        
50 => 'Tire Stack of 3'51 => 'Tire Stack of 4',
                        
52 => 'Big Single Tire'53 => 'Big Tire Stack of 2',
                        
54 => 'Big Tire Stack of 3'55 => 'Big Tire Stack of 4',
                        
64 => 'Left Curve Marker'65 => 'Right Curve Marker',
                        
66 => 'Left Turn Marker'67 => 'Right Turn Marker',
                        
68 => 'Hard Left Turn Marker'69 => 'Hard Right Turn Marker',
                        
70 => 'Left->Right Road Marker'71 => 'Right->Left Road Marker',
                        
72 => 'U-Turn->Right Turn Marker'73 => 'U-Turn->Left Turn Marker',
                        
74 => 'Left Winding Turn Marker'75 => 'Right Winding Turn Marker',
                        
76 => 'Left U-Turn Marker'77 => 'Right U-Turn Marker',
                        
84 => '25m Sign'85 => '50m Sign',
                        
86 => '75m Sign'87 => '100m Sign',
                        
88 => '125m Sign'89 => '150m Sign',
                        
90 => '200m Sign'91 => '250m Sign',
                        
96 => 'Short Railing'97 => 'Medium Railing'98 => 'Long Railing',
                        
104 => 'Long Barrier'105 => 'Red Barrier'106 => 'White Barrier',
                        
112 => 'Banner'113 => 'Banner',
                        
120 => 'Ramp'121 => 'Wide Ramp',
                        
128 => '10m Speed Bump'129 => '6m Speed Bump',
                        
136 => 'Green Post'137 => 'Orange Post',
                        
138 => 'Red Post'139 => 'White Post',
                        
144 => 'Hay Bale'148 => 'Railing',
                        
160 => 'Keep Left Sign'161 => 'Keep Right Sign',
                        
168 => '80 KM/H Sign'169 => '50 KM/H Sign');
        
$MTC = new IS_MTC;
        
$MTC->UCID(255)->Text('^2> ^7'.$this->getClientByPLID($OBH->PLID)->PName.' ^7Hit a(n) ^3'.$Objects[$OBH->Index])->Send();
    }
?>

o.o


<?php 
PHP NOTICE
:
        
Undefined variablecommand in C:\Users\T3charmy\SpiderOak\PRISM\modules
\prism_plugins.php on line 252
        1 
:: canUserAccessCommand in C:\Users\T3charmy\SpiderOak\PRISM\modules\p
rism_plugins
.php:212
        2 
:: handleCmd in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugin
s
.php:156
        3 
:: dispatchPacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_h
osts
.php:440
        4 
:: handlePacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hos
ts
.php:323
        5 
:: checkTraffic in C:\Users\T3charmy\SpiderOak\PRISM\PHPInSimMod.php:2
25
PHP NOTICE
:
        
Indirect modification of overloaded property ClientHandler::$UName has n
o effect in C
:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugins.php on line
256
        1 
:: canUserAccessCommand in C:\Users\T3charmy\SpiderOak\PRISM\modules\p
rism_plugins
.php:212
        2 
:: handleCmd in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugin
s
.php:156
        3 
:: dispatchPacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_h
osts
.php:440
        4 
:: handlePacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hos
ts
.php:323
        5 
:: checkTraffic in C:\Users\T3charmy\SpiderOak\PRISM\PHPInSimMod.php:2
25
PHP NOTICE
:
        
Undefined variablecommand in C:\Users\T3charmy\SpiderOak\PRISM\modules
\prism_plugins.php on line 257
        1 
:: canUserAccessCommand in C:\Users\T3charmy\SpiderOak\PRISM\modules\p
rism_plugins
.php:212
        2 
:: handleCmd in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugin
s
.php:156
        3 
:: dispatchPacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_h
osts
.php:440
        4 
:: handlePacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hos
ts
.php:323
        5 
:: checkTraffic in C:\Users\T3charmy\SpiderOak\PRISM\PHPInSimMod.php:2
25
T3charmy tried to access cmdHelp
.
?>

Hmm, also, I can't seem to get the AXM working...
so is there an easy way to do the place object with out having to include all of your code?
I think including the LayoutObject is the easy way if you don't want to set the bytes manually yourself.
I'll pull it when I get home, nice work and fix the errors mentioned.
Heh, had some fun with AXM:
Attached images
lfs_00000019.jpg
ahaha, ok who's first to make an actual animation with this

And a new version of Tetris (filur was it?)
Quote from Victor :And a new version of Tetris

I was actually, thinking of making a Tetris like game with this...
Quote from Victor :ahaha, ok who's first to make an actual animation with this

And a new version of Tetris (filur was it?)

Gotta love the InSim Tetris!
Quote from Victor :ahaha, ok who's first to make an actual animation with this

And a new version of Tetris (filur was it?)

Lol, yeah it was filur. I wonder if I have the source code. I'll see if I can't change it around to use AXM & objects.
Has this error been fixed yet?:

PHP NOTICE:
Indirect modification of overloaded property ClientHandler::$UName has no effect in C:\Users\T3charmy\SpiderOak\
PRISM\modules\prism_plugins.php on line 256
1 :: canUserAccessCommand in C:\Users\T3charmy\SpiderOak\PRISM\plugins\admin.php:218
2 :: cmdHelp in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugins.php:213
3 :: handleCmd in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_plugins.php:156
4 :: dispatchPacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hosts.php:440
5 :: handlePacket in C:\Users\T3charmy\SpiderOak\PRISM\modules\prism_hosts.php:323
6 :: checkTraffic in C:\Users\T3charmy\SpiderOak\PRISM\PHPInSimMod.php:225

No, I'm not home to submit the fix. I'm sitting in my ambulance corps right now.
Quote from Dygear :No, I'm not home to submit the fix. I'm sitting in my ambulance corps right now.

ahh ok, no rush, so far, I love A2, and 0.3.6 updates, and all of it's packets :P

PHPInSimMod - PRISM 0.3.6 Discussion
(20 posts, started )
FGED GREDG RDFGDR GSFDG