The online racing simulator
Searching in All forums
(36 results)
1
Zazcoisa
S2 licensed
I actually don't know what happened, but i gave it a shot and connected successfully .. that's totally weird O.O
Anyway, thank you guys for trying to help
Zazcoisa
S2 licensed
I've already done that !!
Last edited by Zazcoisa, .
Zazcoisa
S2 licensed
But if there was a problem in my network, i would not be able to connect to other servers, right?
Zazcoisa
S2 licensed
Nope .. the 3 servers are on the master server.
and they're not from my pc and not mine.
Zazcoisa
S2 licensed
I've changed the code to use the Dictionary, and i'll test it
If anything goes wrong, i'll write about it here

Thank you MadCatx Wink
I'm having a trouble connecting to a server
Zazcoisa
S2 licensed
Hello guys ..
I've been trying since the morning to connect to a server, (HFR)Cruise City. but i keep getting "Connect timed out". Some people kept saying i was banned, but i'm not, cuz i can't open any HFR server ((HFR)Cruise City, (HFR)Cruise Server, or the server where we test the insim).
I tried to restart my pc, but i keep getting the same message. Also i tried to connect to other servers like WKD and TC, and some demo servers, and i connect successfully.
I asked someone else to connect to HFR (to check if the problem was from the server) but i found that there were many players there, so it's not the server's problem.
I also tried to reinstall the game, but i keep getting the same message, "Connect timed out".
There is nothing left to try, so i can't figure out where the problem is !!

So, is there any ideas about this thing?
Thank you all Smile
Last edited by Zazcoisa, .
Zazcoisa
S2 licensed
I think that what I'm doing is the same thing and that it won't matter much, right?
Zazcoisa
S2 licensed
Wow .. that was fast O.O
I'm facing a problem with the TOC packet.

I have this list:
Dictionary<byte, IS_NPL> Players = new Dictionary<byte, IS_NPL>();

and when the NPL packet is received, it gets added to the list:
Players[NPL.PLID] = NPL;

Now .. when a player takes over a car, the PLID should be transferred to the new player. I can remove the whole record of that NPL (Players.Remove(old.PLID)) but I can't add a new NPL packet and change the NPL.CName or NPL.PLID because all the bits in the packet are set as readonly.

Also I tried to request a new NPL for the new player, with this code:
Insim.Send(new IS_TINY { SubT = TinyType.TINY_NPL, ReqI = ConnNew.UniqueID });

but i get this error: "Collection was modified; enumeration operation may not execute.".

Sorry for all that, but it's a thing that must to be done
Thanks Smile
Zazcoisa
S2 licensed
Ok thank you and sorry for the late response.
I'll change the code from List<clsConnection> to Dictionary<byte, clsConnection>.
I've already started it and found a code for Spark Cruise, so i took a look at his codes, and saw that he uses dictionaries too.
So, i've made two dictionaries:
Dictionary<byte, User> Users = new Dictionary<byte, User>();
Dictionary<byte, IS_NPL> Players = new Dictionary<byte, IS_NPL>();

Let me finish it then i'll see if the problem is fixed or not. Smile
Zazcoisa
S2 licensed
Thank you, but i have the connections list as a List<clsConnection>:
List<clsConnection> Connections = new List<clsConnection>();

and it contains:
public byte UniqueID;
public byte PlayerID;

so your way isn't like mine.
Could you please do it in that way?
Should i change
public byte PlayerID;

to something like this
public List<byte> PlayerID;

?

Or should i create two different lists, each contains one of the IDs? (one for UCID and the other for PLID)
Zazcoisa
S2 licensed
Thanks for the reply

1) I have one list, and it holds 2 bytes (UCID and PLID) and i have two methods to get the index of a player in the list for each one:

int GetIDbyUCID(int UCID)
{
for (int i = 0; i < Connections.Count; i++)
{
if (Connections[i].UniqueID == UCID) return i;
}
return 0;
}

int GetIDbyPLID(int PLID)
{
for (int i = 0; i < Connections.Count; i++)
{
if (Connections[i].PlayerID == PLID) return i;
}
return 0;
}

and this is where the index is being searched for:

var Conn = Connections[GetIDbyPLID(PLL.PLID)];
----------------------------------------------
var Conn = Connections[GetIDbyPLID(PLP.PLID)];

2) yeah, i'm using AS2X .. maybe that's why

3) ok thnx, just making sure about that :P
Zazcoisa
S2 licensed
oh and btw .. i'm using C#
I have 3 problems in my insim, and i hope someone helps ;)
Zazcoisa
S2 licensed
Hello
I have found some problems in my insim, using InSim.NET. I actually don't know if these are simple problems, but i don't know how to fix them
Anyway .. those problems are:
1) Sometimes whenever someone spectates/pits, the methods which are supposed to take place for that users happen for another. What i mean is, when (for example) i pit, someone else loses his trip bonus, and sometimes i lose my trip bonus. I've checked the code but didn't find anything that would do that!!

2) In the CompCar, and after getting the MCI updates, the Node stays Zero and doesn't change while the other values like Speed, Coords, Direction, ... get new values whenever the MCI packet is updated. Why does the Node stays Zero??

3) Sometimes i get a bug in the Send method from the InSim class, which is ThrowIfNotConnected().
Is the solution for it using an event Insim.Disconnected?

Thank you so much Smile
Last edited by Zazcoisa, .
Zazcoisa
S2 licensed
Oh right .. I've totally forgot that!
In that case, i have to leave this idea and not work on it !!
Zazcoisa
S2 licensed
Well, what i want to do is, when the player starts a job, a button with a dot (•) appears on his screen (actually on his map), to show him where he needs to go.
I've tried it, but when i switched to the full screen mode, the dot changed its place.
Zazcoisa
S2 licensed
if that's so, then i'll have to show a message to the player to use the game in full screen so that he sees it in the place i want? lol

and yeah .. it's 200 by 200
Locating a button in different screen modes?
Zazcoisa
S2 licensed
Hello everyone
I placed a button in the game using the insim when the game was in full screen mode, but when i pressed Shift+F4, the button's location changed to somewhere else (possibly because of this screen re-sizing).
I consider that a problem for what i want to do with the button.
So, is there a way to fix that thing or not?? or is there someway to know what screen mode the player is using?

Thanks Smile
Zazcoisa
S2 licensed
oh .. so now we have to wait a long time for it to be released.
anyway .. thank you both Smile
Zazcoisa
S2 licensed
so it got released, then removed?
as a result, it's going to need so much time to release it again !!
Zazcoisa
S2 licensed
lol .. what am i missing?
Where is the VWS?
Zazcoisa
S2 licensed
Hello
I'm actually a bit confused now !!

In the CMX, you can see VWS. And in the forum, you can also see VWS skins in the skins section.
But VWS isn't in the s2 content, so where is it? am i missing something??
Zazcoisa
S2 licensed
Thanks Wink
Maps Layouts
Zazcoisa
S2 licensed
Hello
I'm sure this is the right section to post this
Anyway .. I need the images of tracks so that i can mark the locations on it for my server
I mean i want to do something like this:



Thanks Smile
Zazcoisa
S2 licensed
I tried to resize it to 1024*1024 and then uploaded it successfully
Thnx Smile
Trying to upload a skin
Zazcoisa
S2 licensed
Hello
I copied a skin that had been already uploaded before and changed its color and tried to upload it, but i got this message: "Skin doesn't have correct size - must be 1024*1024 (is 512*512)"
I didn't change the size of the skin, i just changed the color and its name
anyone can help??
Thnx Wink
1
FGED GREDG RDFGDR GSFDG