The online racing simulator
Searching in All forums
(12 results)
akoolrolla23
Demo licensed
Hello,

I'm just asking if its me or the library itself was not working...

...currently porting my race insim project from LFS_External but it seems IS_PLC packet doesn't really work i tried it so many times but it seems no work and whenever launch the insim on the server i wrote my pw, port on the insim but when it connects it doesn't message any packet until i disconnect and comeback to the server and thats the time all packets is going to function..

is there any code sample for this library?

thanks!
IS_PLC Question
akoolrolla23
Demo licensed
hi, im asking a question how IS_PLC functions?

because i'm creating a race insim in my server using .net C# LFS_External modified source by DarkTimes and added PLC Packet
i tried to create a string for allowed cars list for ex


<?php 
vars Conn 
Connection[GetConnIDX(PLC.UCID)];
if (
Conn.CarsList.contains("XRG"))
{
    
PLC.Cars 2;
}
?>

but seems it doesn't work
any help?
a little SQL help?
akoolrolla23
Demo licensed
recently I'm coding my insim into MYSQL database and I downloaded this source

when I tried to add this query tables

<?php 
Query
("CREATE TABLE IF NOT EXISTS lfsusers(id INT NOT NULL AUTO_INCREMENT,PRIMARY KEY(id),username char(23) NOT NULL,cars char(84) NOT NULL,cash INT NOT NULL,bbal INT NOT NULL,gold INT NOT NULL,distance INT NOT NULL,lastlotto TINYINT NOT NULL,joindate INT NOT NULL,health TINYINT NOT NULL,jobsdone INT NOT NULL,goods1 TINYINT NOT NULL,goods2 TINYINT NOT NULL,Member TINYINT NOT NULL,Officer TINYINT NOT NULL,Cadet TINYINT NOT NULL,TowTruck TINYINT NOT NULL,Interface TINYINT NOT NULL,Speedo TINYINT NOT NULL,Odometer TINYINT NOT NULL,Panels TINYINT NOT NULL,Renting TINYINT NOT NULL,Rented char(30) NOT NULL,Renterer char(30) NOT NULL,Rentering TINYINT NOT NULL);");
                
?>

I got errors when closing or updating the database


<?php 
        
public void UpdateUser(clsConnection u)
        {
            try
            {
                if (
u.Username == "")
                    return;
                
string query "UPDATE lfsusers SET ";
                foreach (
FieldInfo mi in typeof(clsConnection).GetFields())
                {
                    foreach (
StatsAttribute a in mi.GetCustomAttributes(typeof(StatsAttribute), false))
                    {
                        if ((
a.Name != "username" && a.Name != "joindate"))
                            
query += a.Name "='" Escape(mi.GetValue(u).ToString()) + "', ";
                    }
                }
                
query query.Substring(0query.Length 2);
                
query += " WHERE username='" Escape(u.Username) + "';";
                
Query(query);
            }
            catch (
Exception EX) { globalVoids.ErrorLog("UpdateUsers - " EX.Message); }
        }
?>

Exception Errors
[6/19/2011 8:52:25 AM] : UpdateUsers - Object reference not set to an instance of an object.

any help guys ?
akoolrolla23
Demo licensed
みなさん、こんにちは!

Hello Everyone!

this is my first time going off-topic thread on LFS Forums.
btw, who guys upon you watched IS: Infinite Stratos, AngelBeats, Death Note and played some Visual Novels.

I`m just interested on this thread
IS_VTN Question
akoolrolla23
Demo licensed
Hello guys although its another nooby question.

when I send a IS_VTN for vote call in END RACE or RESTART RACE I need to know how to cancel it as it cancels the vote call. i tried to use VTC to cancel it but it doesn't work

C# in LFS_External Library.

Thanks
akoolrolla23
Demo licensed
tbh, it will span 1 - 12 buttons on the connections so i really mean when i pressed the ClickID on the BTN showed on my screen is how to get the string written on the BTN so when I foreach the string line the insim will identify itself I tried every ToString() code in BTC to get the answer and get the playername on BTN

probably its hard to understand but never mind I'll just delete the code for it
akoolrolla23
Demo licensed
not BTT packet

all i want to know how to get the string line on the showed button

so when I click it will show on the MSO it on the message

uploaded image below
how to get the string on BTC
akoolrolla23
Demo licensed
Hello guys again.

i'm trying to find out how to get the string on the BTC?

for example i have written in the BTC string "My Name" so in my screen showed on it but the problem is I want them to click and retrieve from what i put on the string and show it to the message to mso.

I tried the coding in .ToString() but it doesn't work
akoolrolla23
Demo licensed
hello are you still looking for the people who can host at your server?
I need help tho but can you help me to host a Demo Server with insim?

My insim is a modified Dougie-Lampkin cruise insim with its original Cruise insim name RF because im lazy getting a good name for it but the insim physics and codes changed and removed some fines and added more interesting codes in my insim like KM Trip Rewards, 2 Robbery System, Cop System Chasing with Siren and Backup chasing, Bonus System (expanding 16x from the prize), Job System, aligned street names and fixed speed limits around the track, Cash Banking (depositing and withdraw) and KM Car Distance requirements. although im a demo racer so i only coded the BL1 and BL2

you can contact me on my forums at http://rfcruising.freeforums.org/ im looking forward to you
Last edited by akoolrolla23, .
akoolrolla23
Demo licensed
I've been with this in ages when my cars flies like rolling somersault on xrg the sound pops up like echo and starts fps to get lower and lower but when i reinitialize the sound the fps returns normal well i just avoiding my car flips around rofl..
akoolrolla23
Demo licensed
tnx very much!
how to put , in cash?
akoolrolla23
Demo licensed
Hello guys,

I've been coding my own cruise insim (without a team) in blackwood although the streets arrangement, xy's and the jobs are done but my problem is how to put a , in the cash?

like for example i reached 1000 its like 1,000


well just help a little thanks

EDIT: I'm using LFS_External in dougie-lampkins open source cruise or I mean C#
FGED GREDG RDFGDR GSFDG