The online racing simulator
Searching in All forums
(927 results)
hyntty
S3 licensed
Quote from EMarci15 :I make an InSim program for an LFS server but I couldn't find the anwser to 3 questions. Please help me out.

1. How to show coloured text in chat from InSim?
(Now I can show only green text.)


By adding a colour code (for example ^3 or ^7) in the message
^3Hello ^7Colours

^0 = Black
^1 = Red
^2 = Green
^3 = Yellow
^4 = Blue
^5 = Pink
^6 = Light Blue
^7 = White
^8 = Default

Quote :

2. How to show tables on a player's screen? (E.g. like on AA at start)

They are just buttons. Examples here and here

Quote :
3. How to hide the "Host: " prefix in server messages?


The same way you can send messages ingame
/msg A message without the Host-prefix

hyntty
S3 licensed
Call confirm - my htc likes to make accidental phone calls while browsing the phone book.
hyntty
S3 licensed
Quote from Crashgate3 :Why do the letters' 'names' sound so different to the phonemes they represent?

Because a single speech sound can be incredibly difficult to pronounce on it's own.
hyntty
S3 licensed
Quote from IsaacPrice :how finnish

How come, you'll never get 1000 words out of him?
hyntty
S3 licensed
Quote from sh33d :

Reliability goes first. Money is not a problem.

You should get two wheels then, in case the first one breaks down.
hyntty
S3 licensed
Right, I've reconfigured the timer to actually time the lap (previously it didn't). Shit print screen previews attached. The timing window is of different size in the pics because it scales itself dynamically according to the string lengths of player name and time.
hyntty
S3 licensed
In other news Lewis Hamilton has a 5 place grid penalty for a gearbox change.
hyntty
S3 licensed
Quote from Deutschland2007 :Since I made the skin rules, and I have eyes to see your skin, I'm telling you it's not. The roof is not the hood/bonnet.

Technically he is right. Your wording can also be interpreted as "put two number boards on the car that are on each side of the car and on the bonnet." I can't imagine how the numberboard can simultaneously be on the side and on the bonnet but technically you've only said to use two number boards, not three. Stupid German man.
hyntty
S3 licensed
Yes
hyntty
S3 licensed
Quote from DarkTimes :

hosts = [pyinsim.insim('127.0.0.1', 29999, Admin='',
pyinsim.insim('127.0.0.1', 29999, Admin='',
pyinsim.insim('127.0.0.1', 29999, Admin='']



RIP missing parenthesis
hyntty
S3 licensed
Quote from JJ72 :pic

Were you the Chinese Stig in Top gear? O_o
bumpage
hyntty
S3 licensed
BUMP LE ****!!

I've no idea if anyone cares anymore but I've been playing with stuff again. (not that stuff, that other, less disgusting stuff.)

Quote from hyntty :
making a simple F1 (or more like motogp) style real-time timing

So here's a shitty video of it (I should have used screencapping software I know :| ) http://dl.dropbox.com/u/16059823/VIDEO0007.3gp
hyntty
S3 licensed
Quote from Storm_Cloud :I got Alt-F4'd by the missus! We started arguing about my dinner (which was on the table going cold) just after the restart and that made me spin. I got back on and we carried on shouting at each other until the main straight when she closed down LFS. Argument over!

Why've you got the pc in the kitchen??
hyntty
S3 licensed
Quote from Dygear :

<?php 
        $BTN
->T(50)->L(50)->W(30)->H(10)->BStyle(ISB_DARK ISB_LEFT 1);
?>


Sorry to derail the thread but could someone care to explain that line?
hyntty
S3 licensed
Incidentally, I know there are many people including me interested in android development. Code examples of of working things would be greatly appreciated if anyone could spare a few lines
hyntty
S3 licensed
Python was the first programming language I learned at uni, I'm currently on my second year doing BSc and MSc in computer science. I had no previous programming experience (or at least nothing worth mentioning). It was about half way through 'programming fundamentals' (=the first course in python) I started playing with insim things - DarkTimes' library (and documentation and examples) are quite simply awesome. I had literally no idea how to do anything but just by experimenting with things I was actually able to do something useful with it.

As experience grew I started noticing better, more intelligent ways to do things I had previously done very time consumingly. Amazing how much you can learn about shit by just ****ing about with things

Now a year and a half (and many programming courses) later I look back at what I was doing previously and I've actually been trying to put some effort into completing something I started with last year. Problems that a year ago seemed unsolvable are now self explanatory.

So do you need a cs degree to do insim stuff? No, just a lot of practice. Remember programming skill isn't bound to a specific programming language (even though for example python is quite good to start with. I've still no clue how the C library works :| ). It is however a hell of a lot of work to do, starting with the basics and progressing to more 'complicated' design patterns. Many have the noble idea of learning something on their own and most of them fail - except for mr. DarkTimes apparently, massive props to you for learning something so comprehensively.
hyntty
S3 licensed
LFSWorld -> online race results
hyntty
S3 licensed
Quote from TFalke55 : rear wing end plates are not the actual wings, but the sides of the rear wing. Please change it, then I can accept the skin

But different wing colours do make them substantially different Shirley, so they should be accepted as they are?
hyntty
S3 licensed
Quote from NitroNitrous :Well that's actually a camouflage paintjob to not be able to read the volumes... I saw the other thay a small electric bus being tested with exactly the same pattern.

No it isn't you silly man. You would spot that miles away. This is a camouflaged car:

hyntty
S3 licensed
Quote from DarknessPainF1 :nice skin

indeed, race car paintjobs get more ludicrous every year imo
hyntty
S3 licensed
I suggest you keep track of cadets and officers in a separate list. Then when you receive the 911-command you would do something like:


<?php 
clsConnection Conn 
Connections[GetConnIdx(MSO.UCID)];

if ( 
ListOfOfficersAndCadets.isEmpty() ) {  // Somehow figure out if it is empty or not. I'm sure C# has some smart data structures to do the work for you.
    
InSim.Send_MTC_MessageToConnection("There are no officers or cadets"MSO.UCID0);
    }
else {
    
InSim.Send_MTC_MessageToConnection("^1-^7 Please wait for awhile your Call is Accepted!"MSO.UCID0);
    foreach( 
clsConnection C in ListOfOfficersAndCadets ) {
        
InSim.Send_MTC_MessageToConnection(Conn.Name " called teh rozzers!"C.UCID0); // I've no idea what a clsConnection has or hasn't got for attributes but I suppose it should have a user id and a player name at least?
        
        
}
    }

?>

(Note that I know jack shit about C# and this isn't a working piece of code.)

This is the general idea how I would do it. It may or may not be the smartest way but we'll see if others take part in the 'get it right' competition.
hyntty
S3 licensed
Quote from MariusMM :If I have not misunderstood, it should be

Not really unless you want to call every single police officer there is and to print out "No policies found" for every player that is online and isn't an officer...

This is a very backwards approach to a problem that shouldn't even exist guys. There's absolutely no reason to do that kind of a loop every time someone wants to call the police just to find out if any are present: Wouldn't it be smarter to set a global variable indicating the amount of officers present that changes whenever an officer joins or leaves the server? (And it would also use less cpu cycles :P)

Also I reckon if you used an if-else structure when there's such a clear 2-option screnario the code would be nicer to the eye. Or if there are multiple choises use a switch case statement, putting multiple if-clauses one after another might be confusing to read afterwards.
hyntty
S3 licensed
Quote from Psysim :Your correct

And let that be a remind us of the importance of syntax in a language...
FGED GREDG RDFGDR GSFDG