PDA

View Full Version : .NET (C#) - Open Source Cruise Server


Pages : [1] 2

dougie-lampkin
16th May 2008, 18:07
This is an open source InSim cruise application, released under the BSD licence (http://en.wikipedia.org/wiki/BSD_license).

However, if you do not understand even basic programming concepts or are unfamiliar with InSim and/or .NET, then this is not for you. In the current state you will need to modify the source in order to get it to work as you wish. There is also no documentation aside from the code itself.

It started out as a little hobby for myself 6 months ago, but turned into so much more. I eventually had it on a server, as UKTC cruise, but then changed to [MCC]Cruise. I grew tired of it all yesterday, and decided to just release the bloody thing! So here it is!

It uses T-RonX's LFS_External (http://www.lfsforum.net/showthread.php?t=30012) as a base, with parts of mcgas001's cruise tutorial (http://www.lfsforum.net/showthread.php?t=39706) thrown in for good measure. Both of these are excellent pieces of work, and a big thanks to both parties :thumb: It is written in Visual C# by myself, dougie-lampkin (Rob Fenlon), and with no warranty or support whatsoever! I will try and help you if you ask an intelligent question, but please don't try and use this if you have no C# experience.

As this is an open project you do not need to wait for myself to fix bugs or add features. If you do modify it, please feel free to post an updated version.

I'm truly sorry for the slightly messy code, but it was my first ever C# experience, so I learnt as I progressed. This can be seen as parts of it are better practice than others...

Features:
Cash flow
Buy/Sell cars
Bank
Advanced police system
Trading mini-game
Random speed traps
Intelligent pit fines
Pitting from garages check
KM system (NOTE: It does count KMs, I just haven't added an on-screen display!)
Intelligent price-list
Admin refunds
Admin InSim update/restart features
Displays other's cash/cars at !stats
Swear filter
Negative cash protectionAnd much more...

Once again, this is a very large starting block to run your own cruise server. You will need at least basic understanding of programming concepts and what the InSim protocol is and can do, to take it further. There is little documentation aside from the code itself. If you do not heed this and at least try, then you will not get assistance.

v1.0.2 - http://www.lfsforum.net/showthread.php?p=801201#post801201

v1.0.1 - http://www.lfsforum.net/showthread.php?p=800515#post800515

v1.0.0 - Attached

kiss me
16th May 2008, 18:09
i'll be the first to reply, when tested ill tell you how great it is

well, i dunno how to become a cop, the code says it reads it from a folder, wich i added, and still no result :)

dougie-lampkin
16th May 2008, 18:49
well, i dunno how to become a cop, the code says it reads it from a folder, wich i added, and still no result :)

Eh? All of the folders are there...In-game type "!addpolice USERNAME", and then you have officer rights :)

91mason91
16th May 2008, 20:36
can u use it in single player mode?

dougie-lampkin
16th May 2008, 20:45
can u use it in single player mode?

You "can" but it won't work 100%. It's easier to start a local host, and then use that...

91mason91
16th May 2008, 21:05
i have no experiance with C# :D so how do i strt it up?

dougie-lampkin
16th May 2008, 21:16
please don't try and use this if you have no C# experience.

i have no experiance with C# :D so how do i strt it up?

:really: You read the instructions for a start...

You have to open the solution, go to form1.cs, change the admin password to be your own. Open the port in the LFS server (/insim=29969). Then run bin/release/LFS_External.exe...

My whole reasoning for posting a fully functional open source application was so that people wouldn't have to keep asking how to do this and that...

ReVoX
17th May 2008, 09:10
91mason91: You need have same data in setup.cfg and in the proyect.

master_lfs.5101: For .cfg: http://www.lfsforum.net/showthread.php?p=666922#post666922

Shaun:
Avalible tracks:
AS5
South City Long
Fern Bay 6
Blackwood 1

Dougie-Lampkin: np, I prefer try insimreboot made by myself.

dougie-lampkin
17th May 2008, 10:49
You can add/remove tracks to your liking, I just have them there, as AFAIK the other cruise servers have a different application for each track, and I wanted one application to do them all :shrug:

v1.0.1 added, now has a settings.ini file, and the website is now a string at the top of the file :)

ReVoX
17th May 2008, 11:32
Thanks Rob,I am going to see it.
I can't get addpolice, I use "!addpolice USERNAME", but insim say Not Autorized.

dougie-lampkin
17th May 2008, 11:40
I can't find the source for insimreboot, but here's the program, just to keep it complete ;) I'll include it with the next update, or if someone else makes an update please include it also :)

shaun463
17th May 2008, 15:16
//
//Distance Button
//
InSim.Send_BTN_CreateButton("^6Distance: ^40." + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance + "km", Flags.ButtonStyles.ISB_DARK, 5, 25, 5, 5, 162, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);

This is my distance code so far, how do I get it to count properly?

dougie-lampkin
17th May 2008, 15:29
It does count it ATM:

decimal SpeedMS = (decimal)(((MCI.Info[i].Speed / 32768f) * 100f) / 2);
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance += Convert.ToInt32(SpeedMS);It just doesn't display it on screen. That's in metres too, BTW...

shaun463
17th May 2008, 15:33
So how on earth do I make it km? :S

dougie-lampkin
17th May 2008, 15:34
lol don't you do maths? :razz: Divide by 1000 :shrug:

(1000m = 1km)

shaun463
17th May 2008, 15:39
Sorry I know I figured that I should do / 1000 literally 30 seconds after my post :).

master_lfs.5101
17th May 2008, 16:58
douge what is the insimreboot program?

and can you set it to display a custom welcome message?\

edit: and whats the date thing in the users.txt file? whats the goods thingy mean? and can i remove cop rites? could you make a list of what each coumand and what it does.? when will you add the km counter?

and whats the seporator for the .txt file in the users folder if i want them to begin with more cars?

dougie-lampkin
17th May 2008, 17:28
doug imho you should release it under copyleft to avoid the stupidity that surfaced in the cruise tutorial thread

I haven't thought of copyleft...I'll take a look, thanks :)


douge what is the insimreboot program?

http://www.lfsforum.net/showthread.php?p=800141#post800141

Basically it just restarts InSim remotely after I closed it to update it...


can you set it to display a custom welcome message?

Yes, just edit it...it's in the NCN method.


whats the date thing in the users.txt file? whats the goods thingy mean? and can i remove cop rites? could you make a list of what each coumand and what it does.? when will you add the km counter?

The date is the time the file was last edited, which is the time that the person left the server. It's put there for those people who try and say "But I've never been on the server!"...

The goods thing is a trading game, you can buy goods in bulk at the warehouse, and then send them on to other players at a higher price. It does need a bit of tinkering to be something that's worth it, probably by upping the amount of minimum goods you can buy.

If you open up form1.cs, and go to the MSO packet, you can see exactly what each command does. I'll add a list though next update.

As I said, it does count KMs. You just need to make a button to display them.


and whats the seporator for the .txt file in the users folder if i want them to begin with more cars?

It's a space between each car, like this:

"UF1 XFG XRG"

If you want someone to start out with more cars, go to FileInfo.NewUser, and there you can edit the cash and cars added to new accounts...

gatebil94
17th May 2008, 21:14
some know where to fins lotto ticets ? ?? for collect it..

dougie-lampkin
17th May 2008, 21:30
They are currently mapped to my layout (which wasn't made by me, that's why it isn't in there), so you'll have to move them yourself...

Robbo01
17th May 2008, 23:13
the warehouse is in the un used pits (fake pits, old pits) and so is the lottery just drive in them and find out the lotto drop of point is near the corner that splits in two u can go round the outside or the inside but the inside has a barrier going across is on one of them sides, and the bank is at the first corner i think the one with the deep hole in the sand trap.

dougie-lampkin
18th May 2008, 00:34
There's already a button for it in the BL section, but it will only show onto my username currently. Move it around as you need it, and set it to your username :)

dougie-lampkin
18th May 2008, 02:49
Error in the Bank robber's UCID, pointed out by imthebestracerthereis. I've changed the RobberUCID's default from 0, to -1, so it doesn't interfere with normal UCIDs. It just means changing it to an int, and setting it to -1 anywhere it was being set to 0. Updated version here:

shaun463
18th May 2008, 14:19
Thanks again Rob for this :). I am currently working on the [NC] Cruise App and this has taught me loads. BTW / 1609 = Miles and / 1000 = KM.

Nadeo4441
18th May 2008, 14:54
decimal SpeedMS = (decimal)(((MCI.Info[i].Speed / 32768f) * 100f) / 2);
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].TotalDistance += Convert.ToInt32(SpeedMS);

This method doesnt works , in a bl lap it counts over 4 km (bl has 3.3)

dougie-lampkin
18th May 2008, 14:57
Yes, it is inaccurate sometimes due to acceleration/deceleration. But it could also be done by pythagoras' theorem, which I didn't do. KMs were an after-thought, so I just bodged 'em in :razz:

shashdev
18th May 2008, 17:27
Before I download it, can demo users use it on demo servers? Or is that only going to work on S2 servers?

Also, now with patch y19, there are S2 servers, that demo racers can run on. Can the cruise be run on that or is it not possible?

dougie-lampkin
18th May 2008, 18:04
It will work with anything after the Y test patches, as it relies on having usernames. If there was a server using XFG, XRG and FBM, at BL1, with maximum 12 players, then this program could be run, and demo and S2 users could both play. But there would be no layout :shrug:

ReVoX
18th May 2008, 20:21
master_lfs.5101: You only need read MSO packets, in the case.
Read all case and you have all commands.
case "!thisonecommand":


Remember:

If you can't code, please don't try and do this...it's not supposed to teach you to code, it does require some knowledge to edit it...

dougie-lampkin
18th May 2008, 21:30
Please note I've added the BSD License (http://en.wikipedia.org/wiki/BSD_License) to this project. It's hard to explain, so take a look at the wikipedia link if you need more info :)

I've updated v1.0.2 to include it also.

faster111
18th May 2008, 22:09
The read me don't tell u anything how to install it please fix it.

dougie-lampkin
18th May 2008, 22:33
The readme (documentation.doc) comes with LFS_External. It's not for the cruise part specifically...I didn't think it needed a readme TBH. Change the settings in settings.ini to suit yourself, open the port in the server, and start the program...

the_angry_angel
18th May 2008, 22:34
The read me don't tell u anything how to install it please fix it.There isn't a pleb friendly version/distribution yet faster111. It's more aimed at programmers or packagers still, for the moment. I'm sure this will change over time as more people get involved, however.

Mikjen
21st May 2008, 08:21
ok i got a prob :0

when i restart insim, i have to add cops to my user list, because it does this. Officer = MikjenOfficer = Mikjen.

Also i did !bank and it says bank open for 9 mins, i sat in pit lane, whilst browsing web, when i went back in, it says u are banned, move from bank, (but i didnt get kicked or banned ,)

Mick

p.s still cant change that link at top of screen

ReVoX
21st May 2008, 14:59
Officer = username
for example Officer = ReVoX
and you need IN-GAME type !addpolice Username.

I dont see kicked or banned, insim only say move out of the bank, you have 20 sec.

Mikjen
21st May 2008, 15:06
I can add my name to officer = Mikjen, its when i restart LFS it show as "officer = Mikjenofficer = Mikjen" so i have to edit it, so it works again,

Now i get username not found lol

Mick

ReVoX
21st May 2008, 15:23
You DONT need put "Mikjenoffice"
reemplace the last line to:

Officer = Mikjen

And in game type !addpolice Mikjen

Mikjen
21st May 2008, 16:35
I can add my name to officer = Mikjen, its when i restart LFS it show as "officer = Mikjenofficer = Mikjen" so i have to edit it, so it works again,


Want to read it again :) :) :)

Seems to be working fine now, :) as for the message about being banned for 5 days, it did ban me from master server, i had to type /unban Mikjen to unban me :)

Ti
Mick

ReVoX
21st May 2008, 16:45
What do you want? I dont understand you.
action = ban
But I dont know than is the action what you want.

dougie-lampkin
21st May 2008, 20:30
when i got to many ppl in server comes up with mci max amount out of bounds of array how can i stop that its begining to become a problem thanks great work by the way keep it up

I haven't come across that before...has anybody else seen this? BTW, how many people were on the server? Was there more than 8?


I can add my name to officer = Mikjen, its when i restart LFS it show as "officer = Mikjenofficer = Mikjen" so i have to edit it, so it works again,

Now i get username not found lol

Mick

In the police file, there has to be a newline at the end of the file, or else it won't read/write properly. EG:

Officer = A
Officer = B
*newline, with no text*

You do have to edit manually to remove someone from the group, but you can add them from in-game. It gets messed up if C# tries to remove people...

jonny211984
22nd May 2008, 02:58
yes as soon as i get more than 10 ppl in it come up mci array out of bounds its either that lot ppl or to many police on at same time im not sure ive been trying to fix for days now but no luck keep having to go back to start again with fresh insim carnt find the problem any help from anybody would be great help thanks alot insim great buy the way :thumb:

dougie-lampkin
22nd May 2008, 11:26
I'll have an investigation later tonight ;)

I have an idea what it may be...

jonny211984
22nd May 2008, 12:10
thanks dougie its doing my head in its a great insim just carnt use it much as i have lot ppl in and crashes every 10 mins i carnt leave have to watch all the time hope to see fixed ver soon thanks:thumb:

ReVoX
22nd May 2008, 15:42
It's work perfect to me :nod:

sun
22nd May 2008, 17:15
Thanks Rob ! its helped me with my lottery pick up :D

Mikjen
22nd May 2008, 18:54
Is it possible to start this app whilst in the LFS server. :)

i turn it on with /insim 29999 , but then have to go to my dedi and run it :)

Mick

ReVoX
22nd May 2008, 18:58
You only can make your own aplication, VB is the more simply for that.
You can use Shell() for run some aplications with one .exe

dougie-lampkin
22nd May 2008, 19:34
Is it possible to start this app whilst in the LFS server. :)

i turn it on with /insim 29999 , but then have to go to my dedi and run it :)

Mick

If you mean to run the dedi and the InSim app from one program, then you can use a batch file, or you could make a small C# program to do it.

If you want to start the InSim app by typing /insim=29999 into the dedi, then I'm afraid you can't :shrug:

If you wanted to though, you could copy the contents of Release into the same folder as the dedi, and they would still work, as long as they're together. Then you'd be in the same folder at least :)

master_lfs.5101
23rd May 2008, 00:42
the bank diesnt work.

when i try to rob the bank (dave0 form DWLYTS was on duty testing it with me)
it says (user) was caught by the security for both of us


HELP!!QWETRYTI

dougie-lampkin
23rd May 2008, 06:13
the bank diesnt work.

when i try to rob the bank (dave0 form DWLYTS was on duty testing it with me)
it says (user) was caught by the security for both of us


HELP!!QWETRYTI

Don't say the bank doesn't work...maybe it's you that doesn't work :rolleyes:

When someone wants to rob the bank, it must be open. Only Officers and Cadets can check how long is left, with !bank. Each person also has extra time assigned individually. You get extra time when you're a new connection, or if you were the last one to rob the bank. This is so that someone can't take advantage of the bank, and that everyone gets a fair chance. Each person can check their added time with !addedtime. This must be 0 when someone wants to rob the bank...


Hey, how to make officer on-duty?

You'll have to take a look at the !addpolice section in the code. You'll see it's only set up for my name. You can change it to your name. In-game you type !addpolice USERNAME. This gives that user officer rights. They can go on-duty with !officer then :)

Mikjen
23rd May 2008, 21:18
Got it loaded on my Server now. Great insim btw :) :) :)


Couple of questions,

1. How do you rob the bank
2, How do you close the bank
3. How do you set the speedtrap, (it says trap not set yet)

Thanks
Mick

ReVoX
23rd May 2008, 21:34
Mikjen: 3. How do you set the speedtrap, (it says trap not set yet)

first you need stay on duty, and type !settrap SPEEDLIMIT
for example, I want make a speedtrap with 120km/h limit: !settrap 120

Sorry :ashamed:, the others question I can't reply because I wasn't want for my insim.

Mikjen
23rd May 2008, 22:46
Thanks Revox, for coming to server and helping :) how did i know my cop stats was suppose to be ON DUTY :) :) :) :)


Mick

Mikjen
24th May 2008, 23:02
Couple of questions :)

1. How do i change the fines for pitting 1500 is a bit high
2. I tried changing the www.yoursite.com (http://www.yoursite.com) in Form.cs using VB but its still the same :(

Ti
Mick

BOSCHO
24th May 2008, 23:17
yea i got the same problem... but when i put !addpolice or !bank it says me Not Authorized i have read the comments but i can't fix it .. help?

ReVoX
24th May 2008, 23:18
For change the pit fine, in packets PLP:
if (Connections[GetConnIdx(Players[GetPlyIdx(PLP.PLID)].UniqueID)].PitOK == 0)
{
InSim.Send_MST_Message("/msg ^1" + Connections[GetConnIdx(Players[GetPlyIdx(PLP.PLID)].UniqueID)].Username + " was fined €1500 for pitting on track");
Connections[GetConnIdx(Players[GetPlyIdx(PLP.PLID)].UniqueID)].Cash -= 1500;
}

For change the web, in the top:
const string Website = "www.your.site";

ReVoX
24th May 2008, 23:21
yea i got the same problem... but when i put !addpolice or !bank it says me Not Authorized i have read the comments but i can't fix it .. help?

You need modify in groups/police.txt
Officer = username
for example Officer = ReVoX
and you need IN-GAME type !addpolice Username.

Mikjen
24th May 2008, 23:21
yea i got the same problem... but when i put !addpolice or !bank it says me Not Authorized i have read the comments but i can't fix it .. help?

Have added your name to the police.txt file,

Whilst in game, type !officer YOURNAME and u should be online, i sometimes type !cadet and it does it :)

Type !officers and it shows ur on duty status


Mick

dougie-lampkin
24th May 2008, 23:29
I really wouldn't advise editing police.txt unless you know what you're doing...it has a particular system of storing names, and it has to be stored like that :shrug:

Sheepy1977
25th May 2008, 07:25
Where can i get the layout ? I want AS5's ,just as a example to understand how it works.thank you...

One more question:

How to defined a drive-lane?

I mean I want ppl drive though a path with the right side.I have checked the code ,and found nothing to define the drive-lane..so pls help me.

PS.......I translated it to simplified-Chinese..it works good in Y20....

dougie-lampkin
25th May 2008, 09:58
Where can i get the layout ? I want AS5's ,just as a example to understand how it works.thank you...

As I've said, you can't get the layout. It was made privately, so I can't release it.


How to defined a drive-lane?

I mean I want ppl drive though a path with the right side.I have checked the code ,and found nothing to define the drive-lane..so pls help me.

You can't really do that without a lot of work...InSim allows you to take the XY position of each player, and the current Node of each player. But of course, the tracks aren't all straight lines perpendicular to each other, so using XY would be very hard, and take ages. The Nodes can't split the track in half, they just tell you what "sector" of the track you're in :shrug:

Sheepy1977
25th May 2008, 10:52
I just figured out a way to defined a lane.

When a car is in a lane's exit or entry,check the car's angle

.if wrong,the car drive in a wrong side.just like the method that used in checking the direction of pit-lane exit and entry.

Anyway...thank for your code and help!

elmohellno
26th May 2008, 08:58
Switching to MySQL won't have any effect at all. The only time files are touched is when someone joins the server or leaves the server. They are also backed up every 5 minutes, but again, that's no problem. They're not the problem, it's the MCI array. I did have a look, but it didn't crash for me when I joined a local host 10 times. If it doesn't crash, I can't see what's wrong :shrug:

Try removing the try-catch statement, and run the app in debug mode. That'll highlight what line it's stopping at.


Well here let me clarify what he was saying.

I switched to MySql just because it is easier to handle then flat files. Also I was getting annoyed that when a person have no cars it doesn't add them to Connections. (Causing many many problems with collisions from a person ingame not being in Connections)

Now there is a 8 Players limit (not connections).

What happens is when you have 9+ people on the track. you have a line like this

for (int i = 0; i < Players.Count; i++)

loop through MCI 9+ times when it itself has only 8 elements. giving you an index out of bounds of array error.

I fixed this by completely rewriting how you handle MCI. (Also my rewrite makes it run faster :P).

dougie-lampkin
26th May 2008, 16:27
What happens is when you have 9+ people on the track. you have a line like this

for (int i = 0; i < Players.Count; i++)

loop through MCI 9+ times when it itself has only 8 elements. giving you an index out of bounds of array error.

I fixed this by completely rewriting how you handle MCI. (Also my rewrite makes it run faster :P).

Could you PM me with the changes you made? I'm curious as to what the problem was. If you don't want the fix to be included in this project in the future though, that's no problem. The PM will stay private ;)


Ok i downloaded the insim again, then opened it in MX visual c#,

Now when i edit and save and then click Build it says build succesful :) :) :)

So i upload the form1.cs to my dedi, and it still doesnt change anything in LFS,

So close but so far lol

Mick

Do you actually know how to use Visual Studio :confused:

You have to upload the exe, why is the source even on the server :really:

Victor
27th May 2008, 19:01
there's a bug that really needs fixing :

When a racer starts a client-host (so not a dedi host), that racer becomes the 'host user' that runs the host. This user cannot be banned or kicked, but the insim application doesn't take this into consideration. When the application tries to ban this user for some reason, it ends up in an infinite banning loop. This loop will not ban or kick the user but it will cause ban statistics to be sent to LFS World. This in turn causes an instant 30day master ban for that user.
So this requires fixing. Mostly because this appears to happen quite frequently.

It's very easy to detect whether a user (a connection) is local or remote. When you get an NCN packet, just look at the Flags byte to determine if a connection is a local one or a remote one. Store this flag with every connection and then when the application tries to ban someone, skip the ban if the user is local. Only allow bans on remote connections.

Thanks

dougie-lampkin
27th May 2008, 19:05
Does anyone know why the Speed doesnt go up in game, and PIT SAFE is green all the time, the money goes up fine..

I uploaded a new .exe just to make sure i hadnt messed a bit of the code ??

Ta
Mick

You have to use AS5, SO4 or BL1.


there's a bug that really needs fixing :

When a racer starts a client-host (so not a dedi host), that racer becomes the 'host user' that runs the host. This user cannot be banned or kicked, but the insim application doesn't take this into consideration. When the application tries to ban this user for some reason, it ends up in an infinite banning loop. This loop will not ban or kick the user but it will cause ban statistics to be sent to LFS World. This in turn causes an instant 30day master ban for that user.
So this requires fixing. Mostly because this appears to happen quite frequently.

It's very easy to detect whether a user (a connection) is local or remote. When you get an NCN packet, just look at the Flags byte to determine if a connection is a local one or a remote one. Store this flag with every connection and then when the application tries to ban someone, skip the ban if the user is local. Only allow bans on remote connections.

Thanks

Didn't think of that Victor, I'll sort it now. Thanks for the heads-up :) Sorry for any trouble it's been causing at ye're end :shy:

JasonJ
27th May 2008, 19:17
Until this is rectified..... Just put into the inSim App if the user is an admin, dont pass the banning function call onto him, just give a message instead if you have to do something to this guy offending and remove what ever it is causing the ban. What is it negative cash or something? A simple if<>Then<>rule will take care of this before the /ban call is executed.

or just blame dougie :scratchch lol
Actually no, the ppl running this should be using dedi host. SERIOUSLY !

shaun463
27th May 2008, 19:55
Dougie, it would be most appreciated if you could fix what Victor said. The bug has affected me and now I have a global 30 day ban :(.

dougie-lampkin
27th May 2008, 19:59
Yes, I assumed that those using this would be on dedi's, I didn't even think of this...:x The only time a /ban was called was at negative cash, and /kick was only called at spectating.

Anyway, here's the fixed version. v1.0.2 has also been modified to include the fix. If you don't want to start again, please make sure to take a look anyway, and then fix your own version...

mcgas001
28th May 2008, 14:53
Ever fix the car renting problem? Just wondering before I spend time fixing.
I don't know what you mean by 'Car renting problem', but there is a little bug I found in LFS_External when I used to use it. I thought It had been fixed, but I just checked and it hasn't. Anyway, Look for the following code in LFS_External....

privatevoid TOC_PlayerCarTakeOver(Packets.IS_TOC TOC)
{
Players[GetPlyIdx(TOC.OldUCID)].UniqueID = TOC.NewUCID; // Update Players[] list
Players[GetPlyIdx(TOC.OldUCID)].PlayerID = TOC.PLID; // Update Players[] list
// Your code here
}


Once found, You want to change it to the following....

privatevoid TOC_PlayerCarTakeOver(Packets.IS_TOC TOC)
{
Players[GetPlyIdx(TOC.PLID)].UniqueID = TOC.NewUCID; // Update Players[] list
Players[GetPlyIdx(TOC.PLID)].PlayerName = Connections[GetConnIdx(TOC.NewUCID)].PlayerName; // Update Players[] list
// Your code here
}


That should work, Although I don't use LFS_External any more now. So I cant say for sure.

Hope that helps. :)

[Edit] I'll give T-RonX a little nudge about this when I next catch him, Maybe he can fix it in a future release or something.

elmohellno
28th May 2008, 16:06
Does the playerid change when they take over a vehicle?

elmohellno
28th May 2008, 18:06
I haven't heard of this problem, car taking over is still as LFS_External default in this project...

if you rent more then 1 car, the last person to rent will be effected by everyone that rented before (Fined, money,etc).


lol I rewrote your whole example dougie.

It goes a lot faster if you don't stick 1000 things in MCI receive :P.

I think I'll post an example of how I rewrote the command system in this section later. Anyone interested? It makes it a lot easier to add more commands and keep them organized.

elmohellno
29th May 2008, 16:34
I haven't found a way yet, but there is a way, CCC had it ;)

I guess I will look at the flags.

Evilvan911
30th May 2008, 05:03
Okay guys i got an error from the LFS_External_Client.exe , a box pop and told me "MCI- L'index se trouve en dehors des limites du tableau." Translated mean "Index goin out of the table limit" or something like that... anyones can help me please thanks you

dougie-lampkin
30th May 2008, 12:22
Okay guys i got an error from the LFS_External_Client.exe , a box pop and told me "MCI- L'index se trouve en dehors des limites du tableau." Translated mean "Index goin out of the table limit" or something like that... anyones can help me please thanks you

People have been reporting this, but it hasn't happened to me. Until it does, I can't fix it. Maybe someone who already fixed it could post an updated version? :shrug:

Sheepy1977
30th May 2008, 13:53
I think this should fixed the MCI errors.but I still haven't test it yet.

private void MCI_CarInformation(Packets.IS_MCI MCI)
{
try
{

for (int i = 0; i < MCI.NumC; i++)
{
decimal SpeedMS = (decimal)(((MCI.Info[i].Speed / 32768f) * 100f) / 2);
......

In this section,replace all Players.Count with MIC.NumC.

Evilvan911
30th May 2008, 14:03
People have been reporting this, but it hasn't happened to me. Until it does, I can't fix it. Maybe someone who already fixed it could post an updated version? :shrug:


okay np ... still waiting its does it sometimes but not everytimes its pretty strange error, btw do you minds about maybe makin' a real !pay stuff to the cops around the busted?:scratchch:D

where did i put it ill remplace it ?? thanks

elmohellno
30th May 2008, 15:24
You get that error because MCI is 8 elements long no matter what. Player idx(cars on track) can go over 8. So when you have a loop going through Players it hits idx 8 but MCI doesn't have that so you are overflowing.

I think this should fixed the MCI errors.but I still haven't test it yet.

private void MCI_CarInformation(Packets.IS_MCI MCI)
{
try
{

for (int i = 0; i < MCI.NumC; i++)
{
decimal SpeedMS = (decimal)(((MCI.Info[i].Speed / 32768f) * 100f) / 2);
......
In this section,replace all Players.Count with MIC.NumC.

That is a terrible way to fix it. With that players 1-8 will only be able to engage eachother same with 9-16, 17-24 etc.

because the MCI packet sends a max of 8 players data. So if you have 9 people it send 2 packets. 1 with 8 and another with 1.

elmohellno
31st May 2008, 19:35
Can playerid be 0? Or is it always non zero?

Nadeo4441
31st May 2008, 19:46
Only UCID can be zero ... afaik PLID no

Evilvan911
31st May 2008, 23:51
i have tryed with for (int i = 0; i < MCI.NumC; i++)
but still getting this errror MCI - Index and elngth must refer to a location within the string. Parameter name: length i dont really know what to do :\

elmohellno
1st June 2008, 00:37
Can you add barriers with LFS_External? Or insim for that matter?

the_angry_angel
1st June 2008, 14:23
Can you add barriers with LFS_External? Or insim for that matter?Nope. The only thing you can do is load a or clear a complete layout.

shaun463
4th June 2008, 06:47
I am getting two errors that are really bugging me. I wrote this code but it always give me:

1. No overload method for 'Send_MST_Message' takes '3' arguments.
2. No overload method for 'Send_MST_Message' takes '3' arguments.

My code is: case "!giveticket":
if (StrMsg.Length == 1)
{
foreach (clsConnection i in Connections)
{
i.Cash -= 100;
if (i.Username == Msg.Remove(0, 9 + StrMsg[1].Length))
{
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet == 0)
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
if (Connections[GetConnIdx(MSO.UCID)].IsOfficerORCadet == 1)
{
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(MSO.UCID)].Username + " gave " + StrMsg[1], MSO.UCID, 0);
InSim.Send_MST_Message("/msg ^7A fine of 100 for illegal parking!", MSO.UCID, 0);
}
}

}
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;

Could someone please help me? :)

elmohellno
4th June 2008, 08:07
I guess no ones have found yet the solution to fix this mci-error :scratchch:(

I did, just waiting to write up an article. So leechers can't copy and paste.

Shaun, msg to connection uses 3 parameters. Msg to all uses 1.

jur
4th June 2008, 11:29
I saw someone asking for a way to see if a player gets out of track and takes a wrong route. I've figured this out in my insim. You can check the LFS messages for a string, ending with "took the wrong route", then parse this whole string to get the player name. Afterwards you just find the player with this name and make him "safe", so he's not fined after being kicked to spectate. AFAIK this is the only way. Hope this helps someone. :)

shaun463
4th June 2008, 16:07
How can I fix this error then?

dougie-lampkin
4th June 2008, 17:36
I saw someone asking for a way to see if a player gets out of track and takes a wrong route. I've figured this out in my insim. You can check the LFS messages for a string, ending with "took the wrong route", then parse this whole string to get the player name. Afterwards you just find the player with this name and make him "safe", so he's not fined after being kicked to spectate. AFAIK this is the only way. Hope this helps someone. :)

That's what CCC & LTC have done. But the problem is, the message comes after the spectate. So LFS sends the packet saying he's spectated, before the message. The problem then is, having to delay processing the spectate packet enough, to be able to find the message. That's why I haven't tried :schwitz:


How can I fix this error then?

It's MTC that uses (message, UCID, PLID). MST just takes (message). So just get rid of the last 2 arguments :)

Nadeo4441
4th June 2008, 18:40
Sorry for OT ( i dont want to make a new thread) , but how to make an "private chat" ? I have seen it an some cruise servers ... How to "mute" a chat message?

ReVoX
4th June 2008, 19:02
you can use the packets III
possible?:shrug:

jur
4th June 2008, 19:03
Sorry for OT ( i dont want to make a new thread) , but how to make an "private chat" ? I have seen it an some cruise servers ... How to "mute" a chat message?
AFAIK there is no way to mute a chat message. i've implemented PM's in my insim though. you can do it using the insim info messages (don't remember what packet it is). it looks like this in my insim: "/i pm <nick> <message>"

Mikjen
4th June 2008, 19:22
I seen it on another server as well, but u have to be close together, and someone parks near you, they listen as well


Mick


p.s i need a databse making for me insim:) :)

elmohellno
4th June 2008, 19:24
I seen it on another server as well, but u have to be close together, and someone parks near you, they listen as well


Mick


p.s i need a databse making for me insim:) :)

Simple check how close people are before dispatching the message.

ReVoX
4th June 2008, 19:38
or creating ID for the message, for example typing !chat ReVoX and in the message put the ID created in clsplayer.cs
possible?:shrug:

elmohellno
4th June 2008, 19:51
take the username, search through connections till you find it. If you find it send them a message.

master_lfs.5101
4th June 2008, 20:51
actaully what TC does is use cordinates and when you type fro example !local Hi

it sends a /msg message not the typing message.

Nadeo4441
4th June 2008, 20:52
you can use the packets III
possible?:shrug:

I think yes ... user types /i <message> , insim recieves a packet, then we need to make a cycle to check if car(s) is in the 150 m circle ... possible :D

dougie-lampkin
4th June 2008, 20:53
It would be very easy to do, but I still don't see the point :shrug:

Nadeo4441
4th June 2008, 20:56
Well , not that easy , how to combine mci and iii ? :shrug:

dougie-lampkin
4th June 2008, 21:05
III is the packet sent when a user types "/i MESSAGE", and is sent to all InSim connections on the host. It's the same as using MSO really in this instance.

To combine it with MCI, just use a variable that's in the parent scope. So that it can be shared by both methods. I already have a couple of those done, for going between the MSO and MCI. Speedtraps, engaging, etc. all use it.

Nadeo4441
4th June 2008, 21:15
Well, im programming in Python ,thats a bit different than C# :D
I dont know how to make a "global" variable , eh, a i need to make a global cycle..

dougie-lampkin
4th June 2008, 21:35
I don't know a word of python, so I'm not sure how different packets are handled :shrug: Why are you posting in the C# thread so :scratchch

Nadeo4441
4th June 2008, 21:52
Yeah, you are right , i was only searching for ideas ... :)

ReVoX
4th June 2008, 22:23
uhm, this proyect have defined a variable for see civilians in a range X meters, you cant use that for the chat range?:schwitz:

jur
5th June 2008, 08:23
from your discussion about the chat range i got confused. can anyone tell me if there's a way to mute the chat / control the messages? if you write !local <message>, is there a way to display it only to people within range, not the global chat? I thought it was impossible.

Evilvan911
5th June 2008, 12:50
I did, just waiting to write up an article. So leechers can't copy and paste.

Shaun, msg to connection uses 3 parameters. Msg to all uses 1. allright thanks you mister, ill wait about your fix :thumb:

the_angry_angel
5th June 2008, 15:00
allright thanks you mister, ill wait about your fix :thumb:See this thread:
http://www.lfsforum.net/showthread.php?t=43933

DarkNightX
9th June 2008, 14:37
Please where can delete big white button ?

And in lotery place in deposit i want insim say

welcome in lotery



//
// Lotto Drop-Off
//

if ((Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Lotto == 1) && ((MCI.Info[i].X / 196608) <= 301) && ((MCI.Info[i].X / 196608) >= 297) && ((MCI.Info[i].Y / 196608) >= -185) && ((MCI.Info[i].Y / 196608) <= -182) && ((MCI.Info[i].Speed / 147) <= 3))

{
InSim.Send_MTC_MessageToConnection("^6| ^Welcome in lotery!", Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 0);
}
{
InSim.Send_MST_Message("/msg ^6|^7 " + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username) + " win at lotery!");
int prize = new Random().Next(750, 2800);
if (prize >= 2770)
{
int jackpot = new Random().Next(2900, 3700);
InSim.Send_MST_Message("/msg ^7/\\^6/\\^7/\\^7 Big Lotery Winer! ^7/\\^6/\\^7/\\");
InSim.Send_MST_Message("/msg ^6|^7 " + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username) + " received a ^6cash ^7 of €" + jackpot + "!");
InSim.Send_MST_Message("/msg ^7/\\^6/\\^7/\\^7 Big Lotery Winer! ^7/\\^6/\\^7/\\");
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += jackpot;
}
else
{
InSim.Send_MST_Message("/msg ^6|^7 " + (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Username) + " won ^2€" + prize + "!");
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Cash += prize;
}
Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].Lotto = 2;
}
}
break;
#endregion

#region South City Long
case "SO4":
for (int i = 0; i < Players.Count; i++)
{

ReVoX
9th June 2008, 19:15
DarkNightX: The white background; In the top, under the strings of the cars.

Mikjen
17th June 2008, 21:34
Is anyone else having problems with there insim,

It was working 95% (9 connections, still broke :( ) and it went off, so i restarted insim and now you cannot click the X to close welcome message. Have tried restarting server and then insim, but still wont go away

thanks
Mick

the_angry_angel
18th June 2008, 23:21
Is it only rob who knows how to fix the connection limit of 8 players.No.. more over it's been explained several times. dougie (rob) however is the person who made the original release. Given that several people have detailed how to fix it (including those who do actually have the tools to compile and package a fix [which for the 5 billioneth time, so people don't ask me again - I don't and will not have anything to do with .NET whatsoever]), I'm not entirely sure why, given that the original code was released under a BSD licence, haven't actually contributed back.

By default the code uses some mad method of calculating the number of compcar structs (consider these to be "sub-insim-packets" if you will), rather than using the actual value given in the MCI packet (NumC). Fixing this will prevent the crash. However, the issue is more complex as doing this, with the current state of code, will merely only allow racers in the same MCI packet to interact with each other. This meaning that if there are only 8 people in the server there are no issues, but if there are 9 then the first 8 cannot interact with the 9th, which comes in the next packet. For this reason a larger fix is required, which is described by elmohellno in this thread;
http://www.lfsforum.net/showthread.php?t=43933

Mick/Mikjen, without being rude (please don't take this the wrong way, I mean this very kindly - you're clearly a nice chap and mean well) this tool is not yet ready for those who cannot program even a little bit. There is acknowledgement that there are bugs, but it is a better base than was previously available. For this reason, and because it's under a BSD licence, it was moved into the libraries and tools subforum. For these combined reasons you'll find it here not in the Unofficial Addons, which is where you'll find packages ready and that will work out of the box (i.e. LFSLapper).

For all those bleating on that you need dougie to fix it; you don't need him to fix it. It's BSD licence. This means you can make your changes and either contribute them back or release it as a new product, or thirdly fix it in your copy, send him a patch for when he returns from holiday so that it can go into the main source tree (i.e. the "official" dougie version) and also release an updated set of source and/or a precompiled version.

dougie-lampkin
22nd June 2008, 16:21
TAA hit the nail on the head there...It's BSD licensed, which means that users can modify it and re-release it (hopefully for the good of the community :shrug:) as they like. Therefore, I don't want to have to keep fixing every bug, it's not up to me :shrug:

The fix has been posted in the other thread, and it's not really that hard to sort. I realise that some people using this app mightn't be able to do this fix, but I'm sure there are those who can :shrug:

PoVo
30th June 2008, 22:27
Hi, well my cousin went on holidays, and i borrowed his PC tu play LFS S2 Online :nod: I heard about cruise servers so i made a dedi host and downloaded this mod, it works fine, but i have the following questions:

1. How do i login as an Admin?

2. Where is the bank in SO1?

3. How come the safe to pit is always safe?

4. How do i load a layout?

5. When i put a speed trap (!settrap 200) anywhere after a few secs i get: Traps removed or something like that :(

6. And how do you fine people?

7. how do you know if someone is going faster than the speed limit?

Thanks d

imthebestracerthereis
1st July 2008, 15:47
Hi, well my cousin went on holidays, and i borrowed his PC tu play LFS S2 Online :nod: I heard about cruise servers so i made a dedi host and downloaded this mod, it works fine, but i have the following questions:
1. How do i login as an Admin?
2. Where is the bank in SO1?
3. How come the safe to pit is always safe?
4. How do i load a layout?
5. When i put a speed trap (!settrap 200) anywhere after a few secs i get: Traps removed or something like that :(
6. And how do you fine people?
7. how do you know if someone is going faster than the speed limit?
1. When you connect to the server, just put the admin pass into the password field
2. Doesn't work for SO1
3. see above
4. /axload {layout name}
5. dont add AI, dont move
6. negative refund [!refund -1000 ...]
7. through speedtrap

shaun463
1st July 2008, 18:00
Do !added time to see how many seconds till they can rob it! ;)

PoVo
2nd July 2008, 08:59
What do you mean !added time? So i wait till the bank is open, mt fried parks his car near the bank and i write for example !added 100 ???

And also how do i become the admin?
In Form1.cs it says: string AdminPW = "default";

And in the Setup.cfg od the dedi server it says: // optional: admin password
/admin=

Does it mean the admin password is default? like in the password box when im logging into the server i type in Default right?

So cofusing... :D

And i tried to edit the Form1.CS using Visual Studio C#, i changed the welcome message saved it but still i get the original message :(

Am i supposed to save it a diffrent way? Becouse i opened up the edited file and all the things that i changed are there but they dont apear when i play the game, they're the original ones that appear :scratchch

ALT0160
7th July 2008, 14:01
I have a problems:

- Where can i change the uf1 car (the one new players start with) to xfg? I can't find it anywhere and the uf1 is unavailable to demo-players.

And don't worry about credit, it's all for you.

case "!version":
if (StrMsg.Length == 1)
{
InSim.Send_MTC_MessageToConnection("^6|^7 Currently running Open Source Cruise Server (1.0.3)", MSO.UCID, 0);
InSim.Send_MTC_MessageToConnection("^6|^7 By dougie-lampkin (Rob Fenlon)", MSO.UCID, 0);
}
else
{
InSim.Send_MTC_MessageToConnection("^6|^7 Invalid command. Please see ^2!help^7 for a command list", MSO.UCID, 0);
}
break;
PS: sorry if my english isn't good.

Mikjen
7th July 2008, 14:47
Open .sln
Press Ctrl F
Search For - Sr.WriteLine("Cars = UF1");


Change this to
Sr.WriteLine("Cars = UF1 XFG");


Job Done,


Mick

shaun463
8th July 2008, 06:43
Sr.WriteLine("Cars = XFG");

Mick, your code was so that they could have UF1 and XFG mine is only so they have XFG :).

PoVo
8th July 2008, 20:18
Please help me i cant figure out how to setup the admin password in the Dedi servers SETUP.CFG
// optional: admin password
/admin=

In the Form1.CS it says
string AdminPW = "Artas";

Ive tried it like this, i login and use the password Artas to login but im still not the admin, ive changed SETUP.CFG to
// optional: admin password
/admin=Artas

Then it says the INSIM password is wrong, i tried it this way too
// optional: admin password
/admin="Artas"

Wrong password in INSIM

SO PLEASE HELP

ReVoX
8th July 2008, 20:38
You need change the admin password in the settings.ini

Mikjen
8th July 2008, 22:24
In the Form1.CS it says
string AdminPW = "Artas";

Dont change the password inForm1.CS. leave it as default

goto settings.ini and set your password in there,

then goto your LFS directory, find setup.cfg and make sure it is the same in there

HTH
Mick

PoVo
28th July 2008, 22:27
Whats the Command for Officers to kick and ban?

P.S nearly finished setting this up for demo servers :smileypul

master_lfs.5101
29th July 2008, 23:14
there is none

PoVo
31st July 2008, 19:56
Could anyone help me make the mod password protected, like if somone logs on they have to type a password, becouse on my Demo Cruise server several people started robbing everyones money :jawdrop: I would thank you so much, + i could host you a server maybye for abaout 4 months :nod:

dieselfuelonly
31st July 2008, 22:40
Does anyone understand how the positioning of the speed limit & location names positioned?

I see that it has something to do with the coordinates. I'm confused as to how to create my own "zones" for a track that doesn't currently have them. It appears that there is one X coordinate, and 2 y coordinates??

case "AS5":
for (int i = 0; i < Players.Count; i++)
{
if ((MCI.Info[i].Node >= 731) && ((MCI.Info[i].X / 196608) <= -203) && ((MCI.Info[i].Y / 196608) <= -63) && ((MCI.Info[i].Y / 196608) >= -147))
{
InSim.Send_BTN_CreateButton("^2Pit Lane", Flags.ButtonStyles.ISB_DARK, 5, 25, 0, 64, 171, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);


I'm assuming you use the coordinates to create a "box" around the area that you want to zone off. You use two x,y coordinates to create that box.

But, thats where I'm completely lost.

I'm new to programming, but I'd really like to give it a shot. I've been digging through the source for hours to try to understand it, along with using the program that the creator of this OSS server also made (the coordinate viewer), and I just can't understand how it works.

In the meantime, I'll continue working on my own modifications to the code.

Streetr
20th August 2008, 11:28
Hi, I have problem with that - can someone add me to msn and help me ?
My msn ...



/EDIT:: NVM, Robbo helped me ;) !

Robbo01
22nd August 2008, 22:25
Does anyone understand how the positioning of the speed limit & location names positioned?

I see that it has something to do with the coordinates. I'm confused as to how to create my own "zones" for a track that doesn't currently have them. It appears that there is one X coordinate, and 2 y coordinates??

case "AS5":
for (int i = 0; i < Players.Count; i++)
{
if ((MCI.Info[i].Node >= 731) && ((MCI.Info[i].X / 196608) <= -203) && ((MCI.Info[i].Y / 196608) <= -63) && ((MCI.Info[i].Y / 196608) >= -147))
{
InSim.Send_BTN_CreateButton("^2Pit Lane", Flags.ButtonStyles.ISB_DARK, 5, 25, 0, 64, 171, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
I'm assuming you use the coordinates to create a "box" around the area that you want to zone off. You use two x,y coordinates to create that box.

But, thats where I'm completely lost.

I'm new to programming, but I'd really like to give it a shot. I've been digging through the source for hours to try to understand it, along with using the program that the creator of this OSS server also made (the coordinate viewer), and I just can't understand how it works.

In the meantime, I'll continue working on my own modifications to the code.


no no no dont use x,y position to create locations on a track lol use MCI.Info[i].Node instead you use it kinder the same way as x and y but first off make something that shows you what node you are at and its easier starting at Node 0 then use
if (MCI.Info[i].Node > 0 & MCI.Info[i].Node < "your end node for that location")
{
do what ever you want it to do when you are in that location
}

not used that kind of code for awhile so dno if that still works

Robbo01
22nd August 2008, 22:29
Could anyone help me make the mod password protected, like if somone logs on they have to type a password, becouse on my Demo Cruise server several people started robbing everyones money :jawdrop: I would thank you so much, + i could host you a server maybye for abaout 4 months :nod:

how are they doing that

PoVo
24th August 2008, 21:07
how are they doing that

Making new Demo licences :(

Robbo01
24th August 2008, 22:00
Making new Demo licences :(

i dont understand what u mean by "mod password"

PoVo
25th August 2008, 10:43
i dont understand what u mean by "mod password"
Like if anyone could make a mod OR plugin so that thios mod would be passwor protected? Once you join the host you have to wrte like /login PASSWORD or when the first time you play like /register PASSWORD :thumb:

Dygear
25th August 2008, 17:49
The only reason I could think of doing some thing like this would be for some one sharing an account with some one else, that happens to be aginst the Live For Speed TOS.

SkinCast
31st August 2008, 05:43
how do I use a MySQL database (and .txt)? I'm trying it to make a php site for statistics, total distance, etc.

Have possibiliy to do this without using MySQL?


Thanks

sun
13th September 2008, 18:22
if you want to read from a txt file on a website, then i suggest in the fileinfo.cs add

Sr.Writeline("<?php");

and at the bottom of the Sr's, put in:

Sr.Writeline("?>");

Its Just messing with the php tags really :P

i dont now about reading from a MySQL database... Sorry :(

Sandisck
1st October 2008, 23:30
i need help whit insim buttons .. i have learn some stuff and i cant still understand how to edit the buttons and location can someone help me?and how to make a bank... pliz pm me

Magronmhr
8th October 2008, 03:58
How do I remove the campfine? :)

have tried, but insim was broken... im not so good in programming yet:P

and how can i make a button for KM ? i dont understand it :P

Thanks :)

xtremeracer[nl]
16th October 2008, 13:25
could someone please tell me where i do find the bank etc on as5r ? i already found the bank ? but whre is the lottery pick up etc could someone tell me ?

SunSonik
25th October 2008, 00:45
AS5!
I found lottery ticket!
What me do now?
:)
Friends, help me pls))

imthebestracerthereis
25th October 2008, 02:55
Its the first open right on the straight

z0ne13
28th October 2008, 11:42
Hello people.
I and my friend Trying to create server (s2)
But i have a problem. i Dont know how to add a new track.
I want to add Fern Bay Black but i dont know how. please help me.
__________________________________________________ _________
Sorry for bad english.

Robbo01
28th October 2008, 23:50
Hello people.
I and my friend Trying to create server (s2)
But i have a problem. i Dont know how to add a new track.
I want to add Fern Bay Black but i dont know how. please help me.
__________________________________________________ _________
Sorry for bad english.


Your a Demo Racer?

Shadowww
29th October 2008, 05:33
AS5!
I found lottery ticket!
What me do now?
:)
Friends, help me pls))
What? Post a screenshot please, i don't trust you because i think there is no route for demoers at AS5
Your a Demo Racer?
He still can make a dedicated host.

z0ne13
29th October 2008, 10:30
Yes I'm Demo but my friend is S2 Licenzed.

imthebestracerthereis
29th October 2008, 11:22
Excuse #2 :razz:

Shadowww
29th October 2008, 14:40
Yes I'm Demo but my friend is S2 Licenzed.
What is your friend's license name? :scratchch

z0ne13
30th October 2008, 08:21
FuXaS. Happy now?

SunSonik
30th October 2008, 21:32
What? Post a screenshot please, i don't trust you because i think there is no route for demoers at AS5
He still can make a dedicated host.

yes, im demo racer!
my friend have S2 license
Im not cracker, trust me.
I have one hour playtime in week)
sorry, my english is very bad

Xzelicon
2nd November 2008, 07:49
Does anyone haves a list with all the admin commands?
I searched, but i can't find it.
I found !refund myself :P

Greets,
Xzelicon

Heiko1
2nd November 2008, 10:40
Here the commands which i found.


!fine = !refund -[amount] [user] - to fine someone.
!addpolice [username] - to add a Officer.
!settrap [speed] - to set a speedtrap.
!reinit - to reinit the insim.
!officer - to go on/off duty as officer| Only Officer/Cadet
!cadet - to go on/off duty as cadet |
!reset [username] - reset somebodys insim account.
!engage/!disengage (only officer) - to start a chase at a person who is near you.
!bank (officeronly) - watch time when bank open?


if im wrong correct me please

SunSonik
6th November 2008, 14:23
!addedtime - add bank time

misiek08
17th December 2008, 14:49
How to recompile it to console (without GUI)

elmohellno
21st December 2008, 03:41
How to recompile it to console (without GUI)

You can't really without a major rewrite. It is all stuffed in Form1.cs instead of being spread between classes.

Bose321
25th December 2008, 02:14
@elmohellno,
Why SQL? I do not find it any more stable. Could you recode it withOUT the SQL? Because this insim will not connect with my SQL database.

master_lfs.5101
25th December 2008, 02:16
@elmohellno
Elmo. Could you please provide a tut on how to setup mysql to work with this?

elmohellno
25th December 2008, 05:38
My mod needs extensive work. But if you do want to use it, all you have to do a provide it a database with the username/password and it creates the tables.

Bose321
25th December 2008, 13:26
My mod needs extensive work. But if you do want to use it, all you have to do a provide it a database with the username/password and it creates the tables.
I have created that. But it won't connect. Because you need an IP right? Is that the IP of the database? because i don't know that.

Robbo01
26th December 2008, 00:58
I have created that. But it won't connect. Because you need an IP right? Is that the IP of the database? because i don't know that.

i think you just need the IP which i think is normally localhost,then u need the Database_User
Database_Password
Database_Name

master_lfs.5101
26th December 2008, 03:51
robbo as i host the mysql server. I will need to forward port 3306 and then will my computers ip work?

Bose321
26th December 2008, 12:51
i think you just need the IP which i think is normally localhost,then u need the Database_User
Database_Password
Database_Name
But I don't host the SQL where the insim runs, so how should the insim know how to connect then :shrug:

mcgas001
26th December 2008, 15:09
But I don't host the SQL where the insim runs, so how should the insim know how to connect then :shrug:

Well you need to find out the I.P, Then you need log in details of the MySql server. I also hope you havnt got the MySql server on a connection that isnt very fast or else you will end up having problems when the server begins to get more then a few people. Bascially when the MySql server gets used a lot. Ideally, It should be on the same machine as the program using it.

master_lfs.5101
26th December 2008, 17:55
Well the internet connections where i run my servers is a 5mb con. I dont think thatll do good when there are a media server running (survalance system) as it is a mini mart, and 5-7 lfs servers running + 1 ts server.

Bose321
26th December 2008, 21:40
Well you need to find out the I.P, Then you need log in details of the MySql server. I also hope you havnt got the MySql server on a connection that isnt very fast or else you will end up having problems when the server begins to get more then a few people. Bascially when the MySql server gets used a lot. Ideally, It should be on the same machine as the program using it.
Well, I'm on a private dutch host, but they don't give an IP adress. So i don't know how te retrieve it or whatever.

Bose321
28th December 2008, 16:11
just found the IP. Filled everything in, tried all possible variation, but it just wont work :really:

sun
29th December 2008, 17:40
This is a quick example for you:

DatabaseDomainorIp: xx.xx.xx.xx
DatabaseName: LFS
DatabaseUserName: BOB Port: 3306
DatabasePassword: bob12



Connect

Basically if you are on the Dedi server with the InSim / Server / MySQL runing on it then the domain / IP will then be localhost. If your trying to connect to a MySQL database on a diffrent server then you need the ip address and the username or password of an account. If you dont know then read from here:

http://mysql.com

Its very simple when you know what your doing :nod:

Bose321
29th December 2008, 18:38
Please sun. I know what I am doing. The SQL database is not on the same IP as the Dedi as I told.

sun
30th December 2008, 17:08
I know what i'm doing to.

Heiko1
30th December 2008, 17:10
Thats right sun! bose just talks bad (nothing against him) if u wanna see watch My 1st thread (in lyt forum)

plz have a watch there all other programmers: http://www.lfsforum.net/showthread.php?t=52038

Mikjen
1st January 2009, 13:01
OMg is this post still ongoing,

Did u fix the 8 player limit then :)

Mikc

master_lfs.5101
1st January 2009, 20:46
No, Mikjen. But there is a MySQL version setup that has the 8 player limit fixed. I could host the insim and database for you.

240sxDrifTeR
3rd January 2009, 12:33
How to force to pay? Thx (i use that insim on demo):shrug:

Echo51
3rd January 2009, 15:08
one of my friends tried this on a local server, works fine without modification, and i somewhat understand the code in the *.cs files, but found a bug, when the server was created, the last car he had used was what the game threw him in and on the track, so he got fined for trying to steal it.

Requires some work for be suitable for online work, but its a good starting point ;)

KassadGLA
3rd January 2009, 17:37
i'm programing my own cruise insim and i addeded a force pay system for speed radars :).

If someone need help tell me and i see if i can solve that problem because i didn't know a lot of C#...

Echo51
3rd January 2009, 18:18
Saw a demo server running this insim, every 5 mins the insim would crash, with no overlay, and then it have resettet euro balance this day, along with sometimes the speed wont register :P

240sxDrifTeR
3rd January 2009, 18:47
The demo server you saw its my. The problem is when someone connect i need to close insim go to his account.txt and put XFG. I dont like do this all time :shrug: :(

GPDark
10th January 2009, 19:00
I tried changing the www.yoursite.com (http://www.yoursite.com/) in Form.cs using VB but its still the same :scratchch:scratchch:scratchch

corewar
17th January 2009, 16:52
Hi, i new in this foro. I download a code for version 1.0.3 of mod cruise but this code is only for 8 players. I have read post and i have located this post:

http://www.lfsforum.net/showthread.php?t=43933

I´m not implant this new code in version 1.0.3

One of us can help me?

Thanks.

leonardo555
22nd January 2009, 14:53
Please guys help me!!!!!
I put the correct code in form1.cs but it doesnt work look...

Pls help me guys! Thanks

DarkTimes
22nd January 2009, 15:11
It looks like you're editing the program in Notepad, but you also need to compile the code into an executable file before the changes you've made will take effect.

Using Notepad isn't a good idea, the easiest way to edit the cruise server is to download and install Visual C# 2008 Express (http://www.microsoft.com/express/download/), which will allow you to edit the program and compile any changes you've made.

leonardo555
22nd January 2009, 15:54
It looks like you're editing the program in Notepad, but you also need to compile the code into an executable file before the changes you've made will take effect.

Using Notepad isn't a good idea, the easiest way to edit the cruise server is to download and install Visual C# 2008 Express (http://www.microsoft.com/express/download/), which will allow you to edit the program and compile any changes you've made.

THANKS SO MUCH MAN, I'LL TRY IT.:thumb:

leonardo555
22nd January 2009, 17:31
It looks like you're editing the program in Notepad, but you also need to compile the code into an executable file before the changes you've made will take effect.

Using Notepad isn't a good idea, the easiest way to edit the cruise server is to download and install Visual C# 2008 Express (http://www.microsoft.com/express/download/), which will allow you to edit the program and compile any changes you've made.

Thanks for ur help man, but when i open the Form1.cs with the program u said said me, i cant this part(image under here=cruiseproblem2),and when i open with notepad i can see.So tell me pls how can i change this part with "Visual C# 2008 Express". FOR THE LOVE OF GOD SOMEONE HELP ME!!!

DarkTimes
22nd January 2009, 18:42
Open the project in Visual C# Express, go to the Solution Explorer (View > Solution Explorer), right-click on the file Form1.cs in the explorer, and select View Code from the right-click menu. You would need to give more information about your problem in order for me to help you more.

leonardo555
22nd January 2009, 20:04
DarkTimes thanks so much to help me but, how u can see in the photo (untitled-1,2) i did what u said me but it keeps happening the same thing :(
if u have msn, pass me then we can talk more :D
(Forget the name of my server in host, i want a cruise server, after i just need to change it =] )

stickylfs
23rd January 2009, 18:06
Open the solution, open the Form1, edit it and compile with F6 :thumb:

leonardo555
23rd January 2009, 18:26
open the solution, open the form1, edit it and compile with f6 :thumb:

thanks so much man!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Danny LFS
23rd January 2009, 21:29
That works for me, but, can someone adapt it to demo so i can use it on my demo cruise server?

ANYWAY speedemon57 told me that he started [RF] Cruise server (please tell me if he can't use that servername. He could not adapt it to our team's server) with this cruise insim. If anyone wants to check it out, just join.

Azzano62
24th January 2009, 03:53
Why cant i change the name of the insim i altered the form1 and it still dont work can some one help please

Azzano62
24th January 2009, 04:00
I've got the same problem as danny

DarkTimes
24th January 2009, 04:15
Why cant i change the name of the insim i altered the form1 and it still dont work can some one help please
Cause you need to compile the program before any changes will take affect. If you're using Visual Studio, then go to Build > Build Solution, then find the program executable file in the bin\release folder, in the projects directory. If you're not using Visual Studio, then you will need to look at the documentation for the Windows SDK to figure out how to compile it.

Has this forum been reduced to actually telling people they need to compile programs before they can run them? Of course, if LFS_External had been written in Python, we wouldn't be having this problem. :D

Azzano62
24th January 2009, 04:33
ok thanks mate now it works:thumb:

stickylfs
24th January 2009, 10:24
can someone adapt it to demo so i can use it on my demo cruise server?

Yes, if you want a demo cruise insim, add me on msn and I put insim as you want :thumb:

Danny LFS
24th January 2009, 13:08
Yes, if you want a demo cruise insim, add me on msn and I put insim as you want :thumb:
/me adds you on MSN

/me loves reflex avatar

stickylfs
24th January 2009, 15:30
Im editing insim now :thumb:

Azzano62
25th January 2009, 02:12
I have a problem I cant figure out the command to give cars,km or happyhour and i cant add police can some one help it would be very appreciated.

master_lfs.5101
25th January 2009, 04:50
I have a problem I cant figure out the command to give cars,km or happyhour and i cant add police can some one help it would be very appreciated.

oh and does anyone know code for adding jobs to the insim
First of all Azzano. This isnim does not allow you to "give cars and km, and do happy hour" And the second question can be answered back into the thread.

[720] Mogey

(We are still warming up your seat in the team :D)

Azzano62
25th January 2009, 09:20
ok thanks Mogey :D

Azzano62
26th January 2009, 22:28
How do i make a distance travelled button ive been fidling but cannot find how can some one help me please

DarkTimes
26th January 2009, 23:34
I was sure I'd answered this question before, and a quick search showed me that I had indeed done so. Not the best answer ever, but it should give you something to go on. If you look around you will probably find someone has posted the exact code to do this, as it comes up a lot.

http://www.lfsforum.net/showthread.php?p=742170#post742170

Azzano62
26th January 2009, 23:42
but where do i put that because i cant seem to get it in the right spot?

DarkTimes
27th January 2009, 01:29
As I said, the code I posted back then was not something you can just copy and paste, it was an example to show the principles of how you would go about writing it yourself. If you search through the many, many code samples which have been posted for LFS_External in the last year or so, you may be able to find something you can copy. I can't help you on specific code though, as I don't know how LFS_External works.

Azzano62
27th January 2009, 01:54
ok thanks for your help i got one :thumb:

[SkinCast]
14th February 2009, 14:57
Azzano62... Want this Distance Button in C# ?

Azzano62
15th February 2009, 04:29
my first post was incorrect
( sorry wrong thread :( )

sure if u have a code it would be helpful

[SkinCast]
16th February 2009, 15:09
For clsConnectionc C:

InSim.Send_BTN_CreateButton(C.TotalDistance / 1000 + " KM", Flags.ButtonStyles.ISB_DARK, 5, 25, 12, 64, 20, C.UniqueID, 2, false);


For MSO_MessageOut:

InSim.Send_BTN_CreateButton(Connections[GetConnIdx(MSO.UCID)].TotalDistance / 1000 + " KM", Flags.ButtonStyles.ISB_DARK, 5, 25, 12, 64, 20, MSO.UCID, 40, false);


Say if u need this button in other classes. Remember, change 12 and 64 for positions.

Azzano62
16th February 2009, 23:38
thank you very much just what i needed :D

opi4613
23rd February 2009, 19:22
Hi,

I just set this up on my server and am having a few issues I was wondering if anyone could resolve.


I can't get it to appear in the server browser as a cruise server
How to change the speed limit?
Im an admin but can seem to do the !office thing as it says im not authorised.
How do we get speed guns or radars if were police? And how do we enter into chase.
It says wrong way, allthough weve enabled wrong way on the game panel it still says it.
We can't seem to set layouts it says " no file found "

Any help greatly appreciated,

imthebestracerthereis
24th February 2009, 02:25
Hi,

I just set this up on my server and am having a few issues I was wondering if anyone could resolve.


I can't get it to appear in the server browser as a cruise server
How to change the speed limit?
Im an admin but can seem to do the !office thing as it says im not authorised.
How do we get speed guns or radars if were police? And how do we enter into chase.
It says wrong way, allthough weve enabled wrong way on the game panel it still says it.
We can't seem to set layouts it says " no file found "

Any help greatly appreciated,


/cruise=yes
change the part that's red
if ((MCI.Info[i].Node >= 0) && (MCI.Info[i].Node < 322))
{
InSim.Send_BTN_CreateButton("^7The Track", Flags.ButtonStyles.ISB_CLICK, 4, 20, 3, 85, 171, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
InSim.Send_BTN_CreateButton("^775 km/h", Flags.ButtonStyles.ISB_CLICK, 4, 20, 3, 95, 172, (Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID), 2, false);
}
You need to manually add your username to police in /users/groups/police.txt as format: Officer = <username>
!settrap <speed you want to clock the person at> / afaik, there is no command to enter chase, someone clarify
/cruise=yes
the layout needs to be in your /data/layout in your dedicated server or LFS host.

opi4613
28th February 2009, 10:50
Thanks for your help ^^^

Are you guys sure there is not a chase function? I had a guy on my server saying there was he was the guy who supposedly made the script.



Also I have a coyple of other questions?
1) it says your site on the top right control bit is there a way to change this.
2) Surely there must be a chase function somewhere?????

Azzano62
28th February 2009, 11:14
Thanks for your help ^^^

Are you guys sure there is not a chase function? I had a guy on my server saying there was he was the guy who supposedly made the script.



Also I have a coyple of other questions?
1) it says your site on the top right control bit is there a way to change this.
2) Surely there must be a chase function somewhere?????



yes here is the code in form1 at the top

using System;
using System.Windows.Forms;
using System.Collections.Generic;
using LFS_External;
using LFS_External.InSim;
using System.Threading;
using System.IO;

namespace LFS_External_Client
{
public partial class Form1 : Form
{
// Main InSim object
InSimInterface InSim;

const string UserInfo = @"users";
const string Website = "^2720team.co.uk";

// Note - do NOT change the settings here. Use the settings.ini file instead!
string AdminPW = "default";
ushort Port = 29999;
string IPAddress = "127.0.0.1";

System.Timers.Timer PayUser = new System.Timers.Timer(1000);
System.Timers.Timer CheckUser = new System.Timers.Timer(2000);
System.Timers.Timer BankTimer = new System.Timers.Timer(1);
System.Timers.Timer BankCooldown = new System.Timers.Timer(1);
System.Timers.Timer BackUp = new System.Timers.Timer(300000);


// These are the main lists that contain all Players and Connections (Being maintained automatically)
List<clsConnection> Connections = new List<clsConnection>();
List<clsPlayer> Players = new List<clsPlayer>();

type !engage to start a chase if you are on duty type !officer to go on duty if you dont know how

hope this helps :thumb:

Etem
28th February 2009, 13:20
I translatet a lot of it in german but it wouldn´t work it´s still in english:scratchch:scratchch:scratchch

stickylfs
28th February 2009, 15:19
Open in in Visual Studio, then compile with F6

Etem
28th February 2009, 17:40
OK Thanks

zimuli
19th March 2009, 14:54
I use MS Visual C# 2008 EE.

Heiko1
19th March 2009, 17:42
I use MS Visual C# 2008 EE.

erm lol :x

change coordinates from buttons

zimuli
19th March 2009, 18:27
Can i move it in the game?
Or if in the the source, where there, what i have to change?

I have a working LFS dedicated server at home with this cruising server.
Its first time a try to "program" my self :-/
I change the admin password and small text things etc. so i get it to work but to move the button in screen, that i dont know....

Robbo01
19th March 2009, 19:38
Can i move it in the game?
Or if in the the source, where there, what i have to change?

I have a working LFS dedicated server at home with this cruising server.
Its first time a try to "program" my self :-/
I change the admin password and small text things etc. so i get it to work but to move the button in screen, that i dont know....

you need to find them in the code and then u can edit the co-ordinates

co-ordinates are like this

InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 30, 100, 40, 50, 1, NCN.UCID, 2, false);

Height
30,

Width
100,

Position Up/Down
40,

Position Left/Right
50,

Button ID
1

zimuli
21st March 2009, 16:05
you need to find them in the code and then u can edit the co-ordinates

co-ordinates are like this

InSim.Send_BTN_CreateButton(" ", Flags.ButtonStyles.ISB_DARK, 30, 100, 40, 50, 1, NCN.UCID, 2, false);

Height
30,

Width
100,

Position Up/Down
40,

Position Left/Right
50,

Button ID
1

Thank you!

I get i work, it was suprise to me in how many place in code you have to change this to get the button to move ....

Another thing, how and where is the right way to leave the game?
Im in the garage when i leave and text is green, but i get fined 1500.

zuze1991
10th May 2009, 22:02
Hi
Where i can find all command list off cruise server ?

PoVo
11th May 2009, 07:45
You can find every command in Form1.CS :shrug:

Bmxtwins
22nd May 2009, 22:22
Im interested in this but dont really understand. Is there a track for this insim? Idk is some1 would be willing to make a generic track and the insim to correspond with it for free. But im not really all that sure of this. Just a basic track with bank kindergarten pizza etc. It can be premade allready or existing i just am not sure how to get this insim to know what place is what etc.

broken
27th May 2009, 09:43
Im interested in this but dont really understand. Is there a track for this insim? Idk is some1 would be willing to make a generic track and the insim to correspond with it for free. But im not really all that sure of this. Just a basic track with bank kindergarten pizza etc. It can be premade allready or existing i just am not sure how to get this insim to know what place is what etc.

Do like we all did. Start modding tiny things till you get it. To me personally it wasn't really easy to understand how to locate a player on the map but once you get it it's pretty easy. It doesn't work just like that.. click and you get a bank, click and you get a shop(but I'm sure you're aware of that).. Do it step by step and you might become a really good programmer. ;)

I'm saying this because if you want someone to do it for you it's going to take you longer than the variant to learn how to make it yourself imo. But it's your call, I'm just suggesting, you know. Anyway, whatever you choose - good luck with it. :)

Bmxtwins
30th May 2009, 21:42
Like i said 0% code awareness.

broken
2nd June 2009, 14:14
Like i said 0% code awareness.

You know english => you can understand how to code. Coding is like learning a new language... Thats why they call them languages too. Coding on C# is like learning a bit different way to type in english. Excuses can always be found tho, so if you don't want to learn how to code then just don't, noone will force you to.

Mikjen
2nd June 2009, 23:22
Instead of it saying (LFS username) Mikjen Pitted, how do i make it say [cop] Mick Pitted

Did see it somehwere once, but cant find it again :)

tia
Mick

oops sorry thought it was in the insim post dougie created :)

Azzano62
3rd June 2009, 03:56
u will have something like this

foreach (clsConnection C in Connections)
{
InSim.Send_MST_Message("/msg ^6|^3 " + C.PlayerName + " Pitted");

or

InSim.Send_MST_Message("/msg ^6|^3 " + Connections[GetConnIdx(Players[GetPlyIdx(PLP.PLID)].UniqueID)].PlayerName + " Pitted");

Mikjen
3rd June 2009, 09:02
Thanks m8

Changed it from this and it works fine

.Username + " Pitted
UniqueID)].PlayerName + " Pitted");


Mick :thumb:

Bmxtwins
7th June 2009, 00:49
How do i get this up on an ingame server?

broken
7th June 2009, 19:16
How do i get this up on an ingame server?

Sometimes google is your best friend (http://www.google.bg/search?rlz=1C1CHMF_bgBG303BG303&sourceid=chrome&ie=UTF-8&q=C%23+tutorials+for+beginners).

Bmxtwins
7th June 2009, 20:28
My question was how do I go about placing this stuff into LFS server like i did with LFSlapper. I cant seem to find the .exe file for the cruise thing. I dont want to develop a new code.

MariusMM
7th June 2009, 20:34
C:\Users\Marius\Desktop\InSim\lfs_external_csf11\l fs_external_csf11\bin\Release

Edit the settings file to the correct info, and double click "LFS_External_Client".

Hope that helps. :)

Bmxtwins
7th June 2009, 21:49
Thanks! i got it

Bmxtwins
7th June 2009, 22:06
Is there a layout to go along with this insim? Like so that the bank is somehwere nad when u stop there u can put $ in. And stuff like that.

MariusMM
7th June 2009, 23:36
Nope, no layout is following with the insim (mentioned earler in the thread) as it was privet.

Bmxtwins
8th June 2009, 18:49
Thanks. Maybe ill release mine when its done. I found the bank but cant find anything else.

Bmxtwins
9th June 2009, 20:59
Does any1 know where the lotto building is located on AS5R for this insim?

Nevermind the Shop and Lotto are in the old pit garages.

Bmxtwins
10th June 2009, 02:25
About the Bank. What exactly does it to. It always says not authorised! or the bank is open. but what is the function. Same with lotto tickets and the good what do i do with them? help appreciated.

Azzano62
10th June 2009, 05:20
You do nothing with them lotto you drive to a certain place and cash your ticket in.

With the bank you need an officer on duty to rob it and thats all it does you rob it and thats it.

The shop does nothing only you can trade goods with other people.

I think the point of the insim was to get your brain thinking as the basic codes are there and those little codes for shop bank and lotto do so much if you learn to code them better hope this helps.

and nearly everyone with this insim knows where all the locations are so you dont need to release a layout as there are probebly tons of them on the forum as it is.

Bmxtwins
10th June 2009, 12:05
So where do i cash the ticket in? I have found where to get it but not where to cash it.

Mikjen
12th June 2009, 09:10
Cash lotto at bottom of long road (autobahn) near the gravel, in front of the solid barrier !

Left, right, Left, out of old pits

Bmxtwins
12th June 2009, 17:58
Ok thnx. Now final ?... what do i do with goods.

broken
12th June 2009, 23:02
Ok thnx. Now final ?... what do i do with goods.

Trade with them. Buy from warehouse or a player, sell to other player. And that's it I think.

Bmxtwins
13th June 2009, 13:01
Well that doesnt really have a good point. Would i be aloud to post my LYT on here it has all the stuff marked off and has a few sideroads and splitting lanes.


Whenever I go to rob the bank im spotted by security? Am i not in the right spot or is this a glitch? If im in the wrong spot someone plz take screeny with a nice circle so i can see lol.
Thnx fer all yer helps
Bmx

PoVo
13th June 2009, 20:30
The spotted by security is random, you´re just unlucky :D:D

Bmxtwins
14th June 2009, 14:36
I did that nonstop for a half hour and no luck lol?

Azzano62
14th June 2009, 23:11
was an officer on duty? because you need an officer on duty to be able to rob it

Bmxtwins
15th June 2009, 03:37
Yes two and one or two robbers

Azzano62
15th June 2009, 03:54
im not sure why it isnt working sorry :(

a7x-syn-a7x
17th June 2009, 23:21
How Do You Change The Settings So It Works In MP/H Not KM/H

Thanks

MariusMM
18th June 2009, 10:04
It's not a "Setting". You need to have some sort of basic understanding in C#. You also need a C# program, like Microsoft Visual C#2008 Express Edition. If you dont even got that, then there is no point explain any more. Do you got that?

a7x-syn-a7x
18th June 2009, 10:44
i've got all that, i've changed some of the coding to suit my needs aswell.

But i can't figure out how to adjust the coding so it calculates MP/H