The online racing simulator
Searching in All forums
(921 results)
broken
S3 licensed
Quote from matijapkc :You get fined for touching the wires and dying?

Of course you do... You fail - you pay. And they have to transport your body... That's petrol expenses, and also since you're adding an additional weight to the vehicle, even more petrol is used.
And it could get even worse if the vehicle is old and not burning the fuel efficiently...
broken
S3 licensed
It didn't work, because of the exactly same thing blackbird said.
That is -> Connections[GetConnIdx(Players[GetPlyIdx(BTC.UCID)].UniqueID)]

It says GetPlyIdx(Get PLAYER Index, not connection, which means PLID, not UCID)

The right snippet of code for there would be (just as blackbird said again): Connections[GetConnIdx(BTC.UCID)]

And so the example he gave, would obviously look more right like this: clsConnection C = Connections[GetConnIdx(BTC.UCID)]
Saving both coding and processing time.

And after his explanation you still didn't get what's wrong... It was more than obvious if you ask me, but whatever.
broken
S3 licensed
Quote from Bremskiller18akaHeinz :Edit the redline !


watch here in red


Code:
InSim.Send_BTN_CreateButton("^6Welcome to the ^7Bank", Flags.ButtonStyles.ISB_DARK, 8, 40, 25, 80, 211, Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].UniqueID, 2, false);

UniqueID)].UniqueID - waste of both processing and coding time. If you need to get the UniqueID from the MCI thread, just get it from the Players list. Like this: Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID
Faster and more simple.
broken
S3 licensed
The very simple question here would be: Do you even see enough space on the dedi window to display buttons? I don't..

Unless the host is you, you will get no buttons on the server side.
broken
S3 licensed
Quote from Bass-Driver :hi
i have done what u said but MCI.NumC was already created.
and u have done what they siad on MCI Fix threads. But still i got the same error

this is what i add to the code before i got this error
without these lines it runs perfect.

sry for my noobishy
i learn to program


if (Connections[GetConnIdx([B]NPL.UCID[/B])].PlayerName.Contains("^0[COP]") || Connections[GetConnIdx([B]NPL.UCID[/B])].PlayerName.Contains("^1[COP]") || Connections[GetConnIdx([B]NPL.UCID[/B])].PlayerName.Contains("^2[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^3[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^4[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^5[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^6[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^7[COP]") || Connections[GetConnIdx(NPL.UCID)].PlayerName.Contains("^8[COP]"))
{
if (Connections[GetConnIdx([B]NPL.UCID[/B])].TotalDistance >= (1000000))
{


We are in the MCI thread, not the NPL one. Therefore to get the UCID of a player you have to do something like.. uh... damn MCI has only PLID doesn't it... So then try Connections[GetConnIdx(MCI.Info[i].UCID)] and if that doesn't work umm... try this: Connections[GetConnIdc(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)]

Hope that helped, cause I'm not sure if it's 100% correct. And, obviously, this example will only work if the name of the variable you are using to loop thorough the connections is i. But my guess is that you haven't changed it, so it has to work.
broken
S3 licensed
While we're on that topic, there's one more thing you might want to do on the app from dougie - if you want to prevent more weird errors and stuff like that, make sure that you assign a default value to every variable in the clsPlayer class, and to prevent startup and on-user-connect errors you might also want to assign some default values to some variables in the clsConnection too.

Just thought I'd share it cause when I was making a cruise app out of dougie's one this thing was bugging me a lot.
broken
S3 licensed
It was explained somewhere. Sorry, I know that this post isn't any much helpful, but at least I can show you the direction.

This is only if you are using dougie's insim app. - Try looking in the open source cruise insim thread. There has to be a link there. Or if not the thread was somewhere in the Programmer Forum.. Its name was something like "MCI fix".

It's pretty easy really. Connection.Count is used incorrectly in the MCI thread itself and has to be replaced with MCI.NumC, but only in the MCI thread, so don't replace Connection.Count in the Connections function(or whatever it is if it's not a function).
broken
S3 licensed
Edit: The site seems to be working normally again.

In case you need to visit LS' site use this link: http://lightning-servers.co.cc/index2.php

I don't see how the index.php file can be hacked, unless someone with access to the webhost account decided to mess it up, but anyway, as long as you don't press the "Home" button, you should be able to browse around the site, I hope.
Last edited by broken, . Reason : IT'S ALI-I-IVE!
broken
S3 licensed
Ok, I decided to get the server back for a while. The stats are of course intact.

The track at the moment is set to Oval (KY1). So if you want to have some fun on the server, you are more than welcome to visit.

The server is back up thanks to Lightning Servers.

See you on the track(or if not me, you will at least see Ales ).
broken
S3 licensed
Buy S2, and you won't need a register/login system anymore.

Wait.. what? 6th April, 2009... :doh:
Last edited by broken, . Reason : Cause I failed
broken
S3 licensed
Quote from matijapkc :Sorry, had to.
The inevitable picture thread III: Revenge of the funnies

Just laugh and enjoy. What more do you need?
broken
S3 licensed
Almost beats Laddergoat... Almost..
The hardest Flash project I'm working on.. Stuck meters before the finish line
broken
S3 licensed
So.. I'm gonna go directly to the topic: I am making a book page flip effect in flash.. Imagine a thin book page and yourself opening that - Well that's what I have to recreate. I found 2 or 3 examples, and just picked the one I liked the most. The problem is that it's in AS1(the oldest version of flash's programming language), and I need to make it in AS3(for a reason of course). Anyway, I used the AS1 code as much as I could, but now it seems I have to go on on my own.. Enough history, let's get to the problem.

So, the current problem: Imagine 2 pages... 2 rectangles next to each other. Then imagine a 3rd one lying next to them... I better give you an example of what I'm trying to say.

There: Just did it fast on paint :P


That basically shows how should the 3rd rectangle move. The red circle at the top of the image shows where the registration point of the 3rd rectangle is. In case you are wondering what a registration point is - Well, it's the point around which a specific object rotates, and which specifies the object's X and Y coordinates(Z too, but that's totally unnecessary in this case).

And something important I almost forgot to say: The top left corner of the 1st rectangle is the place where X and Y are both 0.
Also, in Flash the Y axis(or w.e word I had to use) is kind of inverted. -100 means 100pixels up for example, and, obviously, +100 means 100px down. The X axis is normal. -100 means 100px to the left and +100: 100px to the right.

And here's what I came up with so far(and obviously this is AS3):

<?php 
function flip(currVal):void
{
    
//currVal returns the progress of the animation(0 to 1)
    
var rot transDirection 45 currVal;
    
/*var posY = imagesHeight - imagesHeight*(currVal);
    if (FBPage.rotation < 0)
    {
        posY = 0;
    }
    rect3.y = posY;/**/
    
rect3.rotation = (transDirection*90)-(rot*2);
    var 
posX = (imagesWidth*- ((currVal)*imagesWidth*2))*transDirection;
    if (
posX >= imagesWidth)
    {
        
rect3.imagesHeight - (imagesHeight/1.5*currVal);
    }
    else
    {
        
rect3.imagesHeight - ((imagesHeight/1.5) - imagesHeight/1.5*currVal);
    }
    
rect3.posX;
}
?>

transDirection is either +1 or -1, specifying which direction are we animating in. I'm not taking it in mind for this animation currently. I'm testing with +1 always... I'm going to fix the code up when I actually have progress on this. So, if you like to, you can just ignore it, like it isn't there. Other variables are self-explanatory I hope. rect3 is obviously the 3rd rectangle.

I'd be really grateful if I get any help on this, since I'm gonna be at school almost the whole day and I have to get it done by tomorrow evening, and yeah... Tomorrow I do have school again, and again - almost the whole day.
Going to ask my math teacher about it too.

[E] Here's the AS1 example, that I'm using: http://www.pixelwit.com/blog/w ... 7/09/pageflip_notypos.zip

Thanks.
Last edited by broken, .
broken
S3 licensed
Quote from Fire_optikz001 :the mysql is down thats not even the real pass...

I never said anything about a password in any of my posts.
broken
S3 licensed
Well, I'm the same. I just find my way thru, unless I really should learn something new.

And, yes, the die command is one way, but it just "kills"(as the command states itself :razz everything else in the website too.

Tbh, I don't really remember what the way to disable these errors is, but I'm sure that a quick peek at Google would give you the answer(and I am sure that there is a way, because I have discussed it with 2 programmers). It's simply cause I'm a bad programmer and don't use the stuff I recommend myself.
broken
S3 licensed
Quote from bunder9999 :[...]
that can be fixed by putting @ before the sql connect/fetch commands.

I never needed to do that, but anyway, some hosts have the bad habit of putting/changing passwords for this and that from time to time, so that could be checked out too.
broken
S3 licensed
Yep, same here. Something is wrong with the database.

Unable to establish connection to MySQL
1045 : Access denied for user '*******' (using password: ****)

BTW: I suggest you disable these error messages in php. I didn't post them, but everyone can see what it says right now.
broken
S3 licensed
Quote from GeForz :It's only possible by editing the layout and reloading it. But it's terribly laggy

http://www.youtube.com/watch?v=9SNZe6_RjHw

I don't really take that as an option.

As you said - it's terribly laggy.
broken
S3 licensed
Totally +1..

It's possible on the client side(if you are logged with admin pass obviously), but in no way possible from the server side... That's kind of... Well... Weird.
broken
S3 licensed
I have never received a penalty, before I have entered the pit lane, and I don't see how this is possible. Doesn't the host get X, Y, Z coordinates in the same time it gets the speed, direction, heading, etc..(much like the same way the insim apps receive it)? And if that's so, then I can't be sure how authentic this screenie is. You can always have a penalty before that and head for the pit lane.

And, yes, making penalties be dealt on client-side would definitely make it vulnerable to hacking.
broken
S3 licensed
Quote from BurnOut69 :If you expect me to go through all this madness in this thread...think twice lol

It's actually right on the previous page.
broken
S3 licensed
Quote from Dac :A monthly report or just a reassurance that development is happening takes 30 minutes tops and would mean a great deal to the community. To the fanboi's who have enough patience and a life outside LFS and are fine with the delays I bet if we did have a monthly report you'd read it without hesitation knowing they wouldn't actually have a specified release time

Sorry, but rofl... I just had to re-phrase your sentence.. See, in my vision, the so called "fanbois" should be the ones who keep on complaining that there is not anything new... I just can't pass the opportunity to reply to stupid posts like this.

Define "fanboy".. =]
In my opinion the ones shouting and whining and flaming the devs, cause it's taking so long for their beloved game to be updated are more of "fanboys" than the ones who are just fine to wait, cause they actually have what else to do.

And actually, if you don't realize this, making threads like this one is just going to waste developing time. Progress reports also do the same. Just thought I should let you know, as I presume that you prefer a faster release, more than regular progress reports, which will then take even more time of the development time, to moderate the forums, cause of angry and hungry for more information and content people.

Flame me as much as you like, I'm just not getting impressed anymore when someone does that in this forum. It's something regular, no matter what you say. It's even funny to see posts of people and imagine their faces, while they have been reading mine and have been replying with an angry comment afterwards.. This pretty much shows what I imagine: :gnasher:


broken
S3 licensed
Ah, I almost got it.


Thanks.
broken
S3 licensed
Quote from Makao :I had similar problem. I have noticed that app is staying in processes when the inSim isn't closed on exit. If you have copied code form LFS_External sample you have to check if Form1_FormClosing event is declared in events. You can also debug it with LFS chat messages, it shows every time you connect and disconnect.

I hope it's a helpful tip, especially for beginners.

Well, I'm trying to learn C++ now and am not really that interested in C# anymore, but thanks nevertheless.

Btw: Process.getCurrentProcess().Kill(); was the latest solution for me(it might be wrong, I just wrote it by heart ... but it is something similar.. getCurrentProcess maybe doesn't have brackets... Or maybe that was Kill.. Not sure).
FGED GREDG RDFGDR GSFDG