The online racing simulator
Searching in All forums
(38 results)
2
DaY_WaLkeR_TR
S3 licensed
I'm getting millions of string like this
14.07.08 20:08:07 #10 AEGIO INFO - Split TCP packet : 72 < 136

It's flooding log file. What is this and how can i block?
DaY_WaLkeR_TR
S3 licensed
Today, I got hundreds of this error:



EDIT: I found it when. It's giving error when someone joined to server.



as well as on Airio PROS:



Looks like it's unsolvable but Airio recovered itself and everything is fine. But other insim (I developed it) crashes. Is there a way to recover on this?

Second question is:

InSim Error: The given key was not present in the dictionary.

This happens if someone does connect-disconnect-connect-disconnect. Time doesn't matter. It can be like this:
10:00-connected
10:10-disconnected
23:00-connected
23:10-disconnected

I debugged with IntelliTrace:

I took it:



on foreach:




private void time_Elapsed(object sender, ElapsedEventArgs e)
{

foreach (var user in conns)
{

UpdateUser(user);
showWindows(user);
}


}

Other things:

List<Connection> conns = new List<Connection>();


private void TimeOneSec() //It's called on initiliazing insim
{
time = new System.Timers.Timer();
time.Interval = 1000; // Milliseconds.
time.AutoReset = true;
time.Elapsed += new ElapsedEventHandler(time_Elapsed);
time.Start();
}



This is how "conns" works:


addConnToList(ncn);


int ucidToIdx(byte ucid) {
for (int i = 0; i < conns.Count; i++)
if (conns[i].UCID == ucid)
return i;
return 0;
}


void addConnToList(IS_NCN ncn) {
Connection conn = new Connection();

conn.UCID = ncn.UCID;
conn.UName = ncn.UName;
conn.PName = ncn.PName;
conn.Admin = ncn.Admin;
conn.Health = Convert.ToInt32(Database.loadHealth(conn.UName));
conn.Money = Convert.ToInt32(Database.loadMoney(conn.UName));
conn.Distance = Convert.ToInt32(Database.loadDistance(conn.UName));
conns.Add(conn);
}

void removeConnFromList(byte ucid) {
conns.Remove(conns[ucidToIdx(ucid)]);

}


void newConnection(InSim insim, IS_NCN pack) {

// Add connection to list
addConnToList(pack);
var conn = conns[ucidToIdx(pack.UCID)];
}

Thanks for all help
Last edited by DaY_WaLkeR_TR, .
DaY_WaLkeR_TR
S3 licensed
I binded it. And used UName.No luck. I debugged it with writeline, it couldn't read values. speed gives 0 always.

Edit; Wow, now i can read values but i can't pair user with speed. I found problem is in this function, what is the wrong?;


private Connection GetUser(byte plid)
{
IS_NPL npl;
if (_players.TryGetValue(plid, out npl))
{
return _users[npl.UCID];
}
return null;
}

Last edited by DaY_WaLkeR_TR, .
DaY_WaLkeR_TR
S3 licensed
Now i have problems with IS_MCI packets. I can't read 'em. I want to apply speed limits to users.

private void speedChecked(InSim insim, IS_MCI mci)
{
foreach (CompCar car in mci.Info)
{
var speed = MathHelper.SpeedToKph(car.Speed);
if (speed > 131)
{
_players.TryGetValue(car.PLID, out npl);
insim.Send("/kick " + npl.PName);
}
}}

DaY_WaLkeR_TR
S3 licensed
Continuing saga: Crash on kyril/korean/china alphabet
Every char on kyril korean china crashes insim instance :F
can i prevent shutting down instance or i must fix the issue with chars?

http://prntscr.com/37blcf
Last edited by DaY_WaLkeR_TR, .
DaY_WaLkeR_TR
S3 licensed
I solved it with installing asian fonts.

If I remember true error was: Unable to convert [F6][BC] bytes to string bla bla bla
DaY_WaLkeR_TR
S3 licensed
I have problem with asian chars. App is crashing when someone wrote with asian chars. Is it library bug?
DaY_WaLkeR_TR
S3 licensed
I talked with freelancers, they said we don't know what is the InSim so go and find someone knows this.

I think we have enough budget, where collect from donates. Not $10 :P
DaY_WaLkeR_TR
S3 licensed
LFSLapper isn't enough for my depends. I need a InSim written from bottom. I can't explain all of project. We are using Airio PROS on our servers. We need to fix deficiencies of Airio. Because Airio is closed-source program and looks like It is discontinued.
DaY_WaLkeR_TR
S3 licensed
Still I'm looking for a coder.
Looking for InSim coder
DaY_WaLkeR_TR
S3 licensed
We have a private project. Looking for InSim coder. If you interested, pm me.
DaY_WaLkeR_TR
S3 licensed
Can we use more than 5 Limad level? (Airio PROS)
DaY_WaLkeR_TR
S3 licensed
It happened to me too. And few weeks ago, and month ago .... again again again...

And Eg.
Mine: BlaBla ||| Rally Hacker opens: BlaBla ||| Formula
2
FGED GREDG RDFGDR GSFDG