The online racing simulator
Searching in All forums
(363 results)
T3charmy
S3 licensed
Finally!! Hey guys, I finally, got the new Account system working, some things I added, for next release (some time soon):
  • Account Class
  • New GUI(not sure how much I like it... SO it may be changing again soon...)
  • Insim now tracks Distance!!
  • Using PLC Packet, instead of on screen button to display cars
Also, I need some testers, so if your intrested come on over to -DzT- Combined
Last edited by T3charmy, .
T3charmy
S3 licensed
Quote from Krammeh :

<?php 
    
const PACK 'CCCxCxxxV';
    const 
UNPACK 'CSize/CType/CReqI/CZero/CUCID/CSp1/CSp2/CSp3/VCars';
?>

PACK and UNPACK are wrong, these are the fixed ones

Thanks!! now i can play around with this packet
T3charmy
S3 licensed
just tried your code, and it works perfectly fine for me, but then I join track, and PRISM loses connection to server

Edit: take that back, no matter what cars i select, it always includes the FBM
Last edited by T3charmy, .
T3charmy
S3 licensed
Quote from Scawen :Look more closely at the packets - there is a value "Speed" in the CarContact and CarContOBJ structures.

Oh wow, I didn't even see those *facepalm*
T3charmy
S3 licensed
Quote from vistaman :<snip>

I thought that, Speed bumps were supposed to slow you down? :P
T3charmy
S3 licensed
so is there an easy way to do the place object with out having to include all of your code?
T3charmy
S3 licensed
Quote from GeForz :AXM is definately working. What's your problem?
https://github.com/GeForz/PRIS ... urrent/plugins/pylons.php

The problem was more of me not knowing how to use it, and any help on the commands?
T3charmy
S3 licensed
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...
Last edited by T3charmy, .
T3charmy
S3 licensed
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();
    }
?>

Last edited by T3charmy, . Reason : Added Chalk
T3charmy
S3 licensed
Quote from EQ Worry :If I see correctly, HLV has no speed, only CON and OBH have it. And, maybe I am too tired, but what use would be the actual speed? The closing speed describes impact severity, which seems to be the perfect measure of contacts with other cars and objects.

yea, IDK why i said HLV, i mean CON and OBH, by actual speed, I meant the speed that the user was going, when he, hit the object :P
T3charmy
S3 licensed
only thing i wish, was on OBH and HLV that it is actual speed not closing speed...
T3charmy
S3 licensed
Quote from Dygear :flags in your hosts.ini file for the host to plus 2028.

flags = 2024


Oops? hmm, will test out the update... if i find any bugs, will let you know!
Last edited by Dygear, .
T3charmy
S3 licensed
Quote from Dygear :After dinner I'll be updating PRISM to include the new packets in 0.6A1.

Yay <3
T3charmy
S3 licensed
Quote from Victor :the packet size remains smaller than 256 bytes then. This is necessary because the packets' their sizebyte is only one byte. So packets may not be bigger than 255 bytes.

ohh, Ok, didn't think about it that way while posting.
T3charmy
S3 licensed
@Scawen Just curious, why 30 objects per packet... the current limit is 800? 800/30 = 26.667 wouldn't it just be simpler to make it 32 or did you pick 30 for a specific reason? or if you rather not explain, that is fine also
T3charmy
S3 licensed
Quote from Krammeh :maybe LFS should report what InSim applications are connected to the client to the server, and if a new one connects - by the looks of it, it uses InSim, outSim and outGauge

wouldn't an easy way to be, track there X,Y values, and if they match lap after lap, after lap, then handle it.... obv. isnt the best, but it could work, could it not?
T3charmy
S3 licensed
Quote from GeForz :Okay you are right!

I tried to put something together but the button concepts are killing me.
Stuff like adding a button for all connections and removing it for a single one... Oo

https://github.com/GeForz/PRIS ... gins/ButtonController.php
https://github.com/GeForz/PRIS ... rrent/plugins/welcome.php

nice nice, I like... will defanitly help me with coding my Cruise insim

This button system + LFS Z35 is gonna be banging... I am certianly looking forward to being able to place objects VIA Insim... really can't wait
Last edited by T3charmy, .
T3charmy
S3 licensed
Quote from Inouva :Except uf1

and XFG + XRG
T3charmy
S3 licensed
Quote from Dygear :Your never going to finish it, facebook will never be finished. It's organic, it grows with it's user base.

Yes, I have said that... before in one of my post here... I only meant the base of it so i can get it out for people to use
T3charmy
S3 licensed
Quote from Mikjen :Any news on this ?

nah, been quite busy, On my last week of school(for this year), and then I am free to do what ever, I got a huge list of things to do over the summer, got to finish my social network, got to finish this... etc :P
T3charmy
S3 licensed
Quote from PoVo :Thanks T3charmy, worked like a charm

No problem mate
T3charmy
S3 licensed
Quote from PoVo :Thanks for that!

Another problem I'm having is receiving MCI packets. I've binded my the ISP_MCI packet to my MCI function is the _construct, and it simply doesn't receive packets.

I have set my hosts config PPS to 2.

As far as I know I have to enable it in the ISI flags, but can't seem to know how to do it with PRISM

if you have the latest version, go to configs, and then open host.ini, and add this line to your host:

This includes ISP_CON

<?php 
flags 
104
?>


If you don't want it:


<?php 
flags 
40
?>


should look like this:


<?php 
[localhost]
ip "localhost"
port 29999
socketType 
1
pps 
4
flags 
104
?>


T3charmy
S3 licensed
Quote from Dygear :I'm not sure what you mean, it's normally better to just post the code and then to state the problem. It let's me know what your trying to do, and let's me see how your trying to do it.

He meant, he put the line which assigns a function to the MCI Packet...
T3charmy
S3 licensed
Quote from Scawen : to be able to specify which cars an individual player can drive.

I LOVE YOU! I have always wanted this feature, as stated, it could be used for racing as well as cruising, I am really looking forward to this, take as much time as you need.
T3charmy
S3 licensed
Quote from Dygear :I really should work on a db module for you guys.

Heh, I am using a SQLite3 dbs at the moment, just got the account system sorted out last week, but next time i have free time i will try and finish it up :P I don't really have any free time till after June 8th(last day of school). But i have alot on my plate... Been working on my own social network, and this... but other than that, I should have some time to do some stuff
Last edited by T3charmy, .
FGED GREDG RDFGDR GSFDG