The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
Quote from Dygear :So, this is a bad time to start programming for PRISM as a lot of things are going to change.

Exactly why i haven't started on the cruise plugin :angel: i already have the stuff i need to make ... but it will be better to wait
Fire_optikz001
S2 licensed
Quote from ViKTOOR-LFS :yea thnx bro for help

lfslapper starting now good drift score and other stuff!

when i put !help i see crusie commaneds

i try to put !cars and all of list showing
(id cruise_hud_car notfound)

polise
Access Denied


!cars i will fix asap

!police you need to add yourself to police.txt
Fire_optikz001
S2 licensed
whats the status of this? its been over a week

Quote from Dygear :Just to follow up, there is no really clean way to do this, so I guess I'll push the 0.3.1 update tomorrow with a bunch of fixes to make this possible and clean.

(That's right kids, you heard it here first, 0.3.1 is coming out tomorrow.)

Fire_optikz001
S2 licensed
Very Nice Sinanju!
Quote from Dygear :I implemented this in PRISM, your math is pretty close, enough for it to work.

are buttons even out yet? :3
Fire_optikz001
S2 licensed
Hey all, i will be releasing a small update this weekend that fixes small bugs, and fixes the lotto probbability
Fire_optikz001
S2 licensed
Quote from DarkTimes :where is the Lapper or AIRIO of cruise servers?

i have made a script but no one uses it... :sadbanana
http://www.lfsforum.net/showthread.php?t=64274
DI : Effect - DIERR_NOTEXCLUSIVEACQUIRED
Fire_optikz001
S2 licensed
Ok, so yesterday i installed my g25 and now i keep getting this

DI : Effect - DIERR_NOTEXCLUSIVEACQUIRED
Fire_optikz001
S2 licensed
i was just curious(testing v3 o.o....)

i got this:

<?php 
Do you want to use the plugin "admin"? [yes/no] : yes
ID 
Host details
---+----------------
PHP WARNING:
        
Invalid argument supplied for foreach() in C:\Users\T3charmy\Documents\D
ygear
-PRISM-e453111\Dygear-PRISM-e453111\modules\prism_interactive.php on line 1
18
        1 
:: queryPlugins in C:\Users\T3charmy\Documents\Dygear-PRISM-e453111\Dy
gear
-PRISM-e453111\modules\prism_plugins.php:42
        2 
:: initialise in C:\Users\T3charmy\Documents\Dygear-PRISM-e453111\Dyge
ar
-PRISM-e453111\PHPInSimMod.php:162
        3 
:: initialise in C:\Users\T3charmy\Documents\Dygear-PRISM-e453111\Dyge
ar
-PRISM-e453111\PHPInSimMod.php:38

Enter the ID numbers of the hosts you want to tie to this plugin
.
Separate each ID number by a space :
?>

Fire_optikz001
S2 licensed
Quote from Victor :in ./modules/prism_connections.php, find this line :


<?php 
$ISP
->Flags        ISF_LOCAL ISF_MSO_COLS ISF_NLP;
?>

change the ISF_NLP to ISF_MCI

... or wait for the next release.

Thanks
Fire_optikz001
S2 licensed
Quote from GeForz :That's because of the NPL in the connections module

how to fix? o.o
Fire_optikz001
S2 licensed
Quote from GeForz :The constants are named ISP_xxx
-> ISP_MCI, ISP_CPR etc.

tried that .... gives me

ok now it doesn't.... but for some reason the MCI packet isn't sent/found by PRISM
Fire_optikz001
S2 licensed
Quote from Dygear :Everyone has full access to the InSim system, at the lowest level from version 0.1.8 onwards. I'll be adding the higher level abstraction to PRISM around version 0.5.0.



The measure distance thing can be done by getting the cords of the last MCI packet, and the current MCI packets. From there you have to do some maths! As for the current location, that's in the MCI packets so sign up for that in the registerPacket function. Buttons are not quite working right now ... so I'll look over their packet definitions.



Sign up for the IS_NPL NewPLayer, packet. Sign up for the IS_CPR (Connection (Player) Renamed), and IS_NCN (New Connection). You can get the UName from these packets.

Use of undefined constant IS_MCI - assumed 'IS_MCI' in C:\Users\T3charmy\Documents\PRISM 0.2.0\plugins\MSO.php on line 13

Fire_optikz001
S2 licensed
wow, i just realized that i could already start on a very basic cruise plugin... all i really need is something to measure distance, get current location (x,y,z) and buttons... cif i was to do a very basic one it would only store cash... problem is i don't know how to get the username
Fire_optikz001
S2 licensed
Quote from sinanju :Or one of the prizes for winning the lottery is getting rental or even a new car? Bigger the win, the better the car?

actually... i was thinking of doing something like this... i have it coded already... just have to actually add to where you can get free car
Fire_optikz001
S2 licensed
Quote from tam3535 :Hey Man zip file is corrupted, please reload the site
http://t3charmy.net/LFSLapper-Cruise/
pls HELP

Re uploaded try now
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Dygear :I'm thinking of putting track into it's own level and anything to do with tracks. Also thinking about setting cars with it's own admin level. What do you think?

that sounds good
Fire_optikz001
S2 licensed
Quote from Dygear :Like up in the chat are it would say "Welcome, $PName ($UName)"?

yes :P
Fire_optikz001
S2 licensed
Quote from GeForz :Thats not yet implemented

oh :3 ok
Fire_optikz001
S2 licensed
Quote from Dygear :In game, press control, or alt, or shift and it will show up in place of the player name on the connections list (bottom right side of the screen). Also if you talk to them on the forum then it's the username here. LFS Username = Forum Username, they use the same database.

no i meant in the insim like welcome blah(username)
Fire_optikz001
S2 licensed
how do i get a users Username?
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from franky500 :The one thing that i would like to be added to such a program would be the ability for users to send (and ideally read) messages and commands to the system from the web-admin page.

i think this could be done, where when it puts a message in the console it also adds it to a MYSQL database -> then output it on a web page which also has a form that you can enter what you want into the console(and mysql) :P just a thought ... dont know if it would fully work though
Fire_optikz001
S2 licensed
i was just reading through the PHPInSimMod.php happened to see this:


<?php 
                
if ($pps || $pps 100)
                {
                    
console('Invalid pps '.$ps.' for '.$hostID);
                    
console('Host '.$hostID.' will be excluded.');
                    continue;
                }
?>

shouldn't that be this?:



<?php 
console
('Invalid pps '.$pps.' for '.$hostID);
?>

Fire_optikz001
S2 licensed
Looks good

also is there a way to do a /msg with PRISM
Last edited by Dygear, . Reason : Double post
Fire_optikz001
S2 licensed
Quote from Dygear :Fixed it?

ye i found out
Fire_optikz001
S2 licensed
Quote from Dygear :Anything that your version of PHP can understand, yes.

However, don't make main loops in your code. You'll stall out the whole thing. Never put while(true) anywhere in a plugin. It's bad juju.

nvm
Last edited by Fire_optikz001, .
FGED GREDG RDFGDR GSFDG