The online racing simulator
Searching in All forums
(135 results)
JogDive
S2 licensed
Quote from Scawen :Has that guaranteed delivery thing been overdone now? I'm just wondering, I've just kept using that for all the new packets. Please let me know if some of them really shouldn't have the guaranteed delivery switched on.

which new packets? i use the guaranteed delivery
JogDive
S2 licensed
Hi!
I hope you can test everything on V2.0

It´s not possible to connect more than 1 app on insim. This is your problem right now and still the problem with DediLink V2. I´m working on a virtual Insim port but it´s not finished and available yet. Monky made a nice Java app to connect more than 1 app to insim:
http://www.lfsforum.net/showthread.php?t=16300
Last edited by JogDive, .
JogDive
S2 licensed
Hey guys!
LFS DediLink 2.0 is ready for beta testing now Who wants to test the release build 2.0?

[Changes:]
-Fixed many small bugs.
-When a game password is set on DediLink server startup config, the "old" password which has been created via insim sync (DediLinkS.bak), will not be set on insim login.
-Added a bans screen on DediLink Client to unban players.
-Removed SSL selection on Server/Client. It was a bit confusing for many users. DediLink works with SSL V2 now.
-Renamed GUI descriptions to make it more clearly.

[Still in testing phase and not beta ready (DediLink Server):]
"Virtual" insim port to make it possible to use X insim apps at the same time.


If you have some new suggestions for DediLink, please let me know
JogDive
S2 licensed
Thank you very much for your help!!!
i think its time to rename some stuff to make it more clearly
JogDive
S2 licensed
Yeahhh!!!! it works. thank you mate
i made a great mistake.....

After that we use inet_ntoa to convert the 32-bit ip address into char for demo bans
Last edited by JogDive, .
JogDive
S2 licensed
Thank you for your help ! i hope you can make a example based on my code....I can´t imagine why this code reads in junk....
here comes my ban file:
JogDive
S2 licensed
I don´t got it working Angel, could you explain me your fread example please? that would be cool
JogDive
S2 licensed
Mhhh, thank you Angel! please give me a try....
Function to read ban files...Help needed!!! [ok now]
JogDive
S2 licensed
Hello again,
i can´t figure out whats going wrong with the code. I try to read the bans.ban file but the function reads the main form captions and label captions :guilty: could it be that i made a mistake with a pointer?



//---------------Header File
#ifndef __int64
#define __int64 long long
#endif

#ifndef LFS_BAN_VER
#define LFS_BAN_VER 246
#endif

struct demo_ban
{
struct in_addr ip_address;
__int64 time;
long _pad;
};
//----
struct name_ban
{
char username[24];
__int64 time;
int banhours;
int _pad;
};
//----
struct core
{
char id[7]; // null terminated string LFSBAN\0
unsigned char version;
int Demobans;
struct demo_ban *demo;
int Namebans;
struct name_ban *name;
};
//-----------------------------------Function

struct core bancore;
FILE *file = NULL;
long fsize;
int i;


memset(&bancore, 0, sizeof(core));
file = fopen("F:\\Arbeitsordner\\LFS-Remote Manager\\data\\misc\\bans.ban", "rb");

if (file != NULL)
{
fseek(file , 0 , SEEK_END);
fsize = ftell(file);
rewind(file);

// minimum size for a ban
if (fsize >= 16)
{

fread((void *)&bancore.id, 7, 1, file);
bancore.id[6] = '\0';

// read ban file version
fread((void *)&bancore.version, 1, 1, file);


// read number of bans
fread((void *)&bancore.demo, 4, 1, file);


// Check the num_demo bans is > 0
if (bancore.demo > 0)
{
// get memory to store the bans
bancore.demo = (struct demo_ban *) malloc(sizeof(struct demo_ban) * bancore.Demobans);

// read demo bans
fread((void *)bancore.demo, bancore.Demobans, sizeof(struct demo_ban), file);
}

// read number of names
fread((void *)&bancore.Namebans, 4, 1, file);

if (bancore.Namebans > 0)
{
// get memory to store the names
bancore.name = (struct name_ban *) malloc(sizeof(struct name_ban) * bancore.Namebans);

// read name bans
fread((void *)bancore.name, bancore.Namebans, sizeof(struct name_ban), file);

}


for(i = 0; i < bancore.Namebans; i++)
{
Memo2->Lines->Add(bancore.name[i].username);
}


}

}

free(bancore.demo);
free(bancore.name);
fclose(file);


JogDive
S2 licensed
Quote from ORION :what about this one? http://www.fragthe.net/viewtopic.php?t=250

Hey great!is this attachment available for you (public)? if yes,the admins fixed the links
JDZ is my username in the Fragthe.net community if somebody wants to contact me

@Bapaf: Yes, i think only one insim port can be used for a single app
Last edited by JogDive, .
JogDive
S2 licensed
Quote from CLRS530 :you don´t have to search to long in this sub- forum...

JogDive
S2 licensed
Hey guys, i found a way to get the ban file reading method working

Please stay tuned for LFS DediLink V2.0 in one or two months
JogDive
S2 licensed
Hey Guy!
a server name change is only possible with DediLink Server. You need to restart the dedicated LFS server process to get this change working with the DediLink config possibilities.

We got a new page at www.fragthe.net and some guys are still working on it. A Dedilink download is not possible at this time.

I´m working on DediLink V2.0 i bet you all will like it

Please stay tuned for DediLink V2.0 in one or two months
Last edited by JogDive, .
JogDive
S2 licensed
Thank you !
yes Dygear you are right but i want to work on each time when i get a a chance. i fixed some bugs and reworked some features...

CrazIce is working with some Delphi based stuff and i had no plans to code these specific functions into c++. this problem is very annoying
in need only the names and ips to show them in a listbox on the client to send unban commands. i figured out a small nice programm thread to monitor the bans.ban file for changes and hold the ban list on the client up to date



Happy new year !
JogDive
S2 licensed
Sorry for the delay.... I´m in a hospital for a while. My health situation makes it impossible to release LFS DediLink V2.0 in this time but i will work on when i can.

I have big problems to read (C/C++) the banned names and demo ip bans in the bans.ban file. Could somebody help me to figure it out ? the base is the code snippet above
JogDive
S2 licensed
All right, got it working. This example shows the first banned name. the buffer buffer0 could be used anyway. i will write a while loop to parse until the file ends. the position integer of the reading stream is a bit headaching for me now so i think i don´t understood all well yet but please give me a try


struct core bancore;
FILE *file = NULL;
long fsize;


memset(&bancore, 0, sizeof(core));
file = fopen("data\\misc\\bans.ban", "rb");

if (file != NULL)
{
fseek(file , 0 , SEEK_END);
fsize = ftell(file);
rewind(file);

// minimum size for a ban
if (fsize >= 16)
{

// read the first 12 bytes
fread((void *)&bancore, 12, 1, file);



if (bancore.Demobans > 0)
{
fseek(file, sizeof(struct demo_ban) * bancore.Demobans, SEEK_CUR);
}


char buffer0[24];
fread((void *)&bancore.Namebans, 4, 1, file);
strcpy(buffer0,file->curp);
Memo2->Lines->Add(buffer0);


// Check the num_name bans is > 0
if (bancore.Namebans > 0)
{
fseek(file, sizeof(struct name_ban) * bancore.Namebans, SEEK_CUR);
}

}

}


fclose(file);

JogDive
S2 licensed
Very great work guy ! give me a try to get all workin tonight
JogDive
S2 licensed
I wrote these 3 structs:


struct demo_ban
{
in_addr IP_address;
__int64 Time;
};
//----
struct name_ban
{
char username [24];
__int64 Time;
int BanHours;
};
//----
struct File
{
char Id [6];
byte Zero [1];
byte Version [1];
int Demobans;
int Namebans;
};
//----

The bans.txt file includes the following lines:
1 integer num_demo_bans
[demo ban * num_demo_bans]
1 integer num_name_bans
[name ban * num_name_bans]

but what does it mean? i don´t know how to use this information. could somebody help me please
JogDive
S2 licensed
Great, Thx !
How to edit ban files ?
JogDive
S2 licensed
Hi,
does somebody knows how to read and write the ban files ? A tutorial would be great
JogDive
S2 licensed
Hello guys !
i will work on a new version if the next LFS patch isn´t 100% compatible with Dedilink. Please notice me
JogDive
S2 licensed
Quote from the_angry_angel :Jogdive, I think you've been reusing the bong water too much That doesnt make a lot of sense (although it could be because I'm tired). You can connect an InSim/OutSim app to a local client, not just servers, and get data about yourself - which is the goal. Or have I totally misread your post?

drill me, my fault
JogDive
S2 licensed
Your idea is possible. But you want to compute insim/outsim data on your client at home during a race, so you must have a dedicated server connection by an own written client/server app to get insim/outsim data at the client side because insim/outsim is only available on a local root server machine. that means every server must run that "interface" and have to interact with the client.

i don´t know if it´s possible to get this data out of the client only to avoid a client/server solution. i don´t know anything about memory manipulation
Last edited by JogDive, .
JogDive
S2 licensed
..the point of view...

never seen such a detailed programming help in an app
FGED GREDG RDFGDR GSFDG