The online racing simulator
Searching in All forums
(235 results)
yankman
S2 licensed
Well of today morning all hosts of mine are marked as "invalid".
Before there was a series of disconnects of insim relay service.
All connections shut down finally at 2:38 CET.

Mar 23 02:37:36 InSim - TCP : InSim Relay
Mar 23 02:38:00 InSim guest closed : InSim Relay

yankman
S2 licensed
Quote from dawesdust_12 :OSX is (and I'm the biggest advocate of OSX on these boards), however it's not worth Scawens effort for a few reasons:
Second: DirectX offers a relatively complete package for Networking, Graphics, Sound, Input and Force Feedback. On Linux and OSX, this doesn't exist. You need to manually implement your Graphics from scratch (in OpenGL, possibly with an aide like GLUT), where DirectX offers a lot of helpers for this.
Sound you need to decide what to support. OpenAL? Core Audio? ALSA? This raises platform issues and keeping multiple sound engines working similarly across platforms.

Input/FFB (I'll group them as they're related). DirectX offers a lot of frameworks, to the extent that it's like "Oh hai wheel.. force = 10345" and DirectX does the medium work to send the correct signal to the wheel. Linux/OSX doesn't have such luxuries, so you need to either leave the feature out, or limit your support to specific devices that you've targeted.

http://www.libsdl.org/
yankman
S2 licensed
Ok.
If there is anything to help, let me know.
yankman
S2 licensed
I think I put it in the wrong words.
I don't look for help as I could easly remove it from host list and add it again to solve the issue.

It shall be more of a bug report with facts:

- host claimed to be invalid
- but insim works and server is reachable

You can't help much here as you don't know the reasons for the entry marked invalid.
InSim Relay
yankman
S2 licensed
Lately I run into a few problems with insim relay.
First insim relay loses connection from time to time.
About a week ago all my servers disappeared from the insim relay tab in lfsw and I had to add them again.

Now there is a new problem, lfsw says "invalid host".
I got no idea what to do, as there a now options.

Currently there are runing 3 lfs hosts on one computer. It is a dedicated server with linux os.
But only for one host it says "invalid host".



The log for this host says:

Mar 20 01:29:00 InSim guest closed : InSim Relay
Mar 20 01:29:27 InSim - TCP : InSim Relay
Mar 20 01:29:58 InSim guest closed : InSim Relay

I also checked if due to strange things the host might not listen on insim port but netstat says it does:

tcp 0 0 0.0.0.0:29996 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:29997 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:29999 0.0.0.0:* LISTEN

Normally if the insim connection is lost I can choose to reactivate ... but what to do now ?
yankman
S2 licensed
I wasn't talking about binding port tho.

It is like I said, if I stopped a host (via kill) and then started it with no delay,
it did not appear on lfsworld.

But shame on me I just tested it 2 times and now it appears even with no delay.

Little OT: If you really going in gentoo, I could give you same valueable tipps.
yankman
S2 licensed
It might not have directly to do with recomplining the kernel,
but my experience is, that stopping/starting a host running via wine makes it not showing up in server list.
When I put a delay between stopping and starting however non such problem occures.

One other thing, if you like to have full control of your binaries (=compile them from source) and squeeze the last bit out of your hardware try gentoo distribution.
yankman
S2 licensed
Well the shop is hosted in a different location.

But none of the lfs.net-IPs was reachable (alpha.lfs.net,beta.lfs.net,gamma.lfs.net,delta.lfs.net) and I doubt they all belong to the same server so it seems to me that the datacentre had a problem.
yankman
S2 licensed
Quote from Swiss-Spirit :Wow Quick-Nick, nicely done. Even if it's just testing.

+1
Beaten Senna by a second and Petrov by two.
I hope people here are realize Heidfeld is the best option for Kubicas cockpit no matter what.
There is nothing about Senna nor Petrov, both are good drivers but at the level for current F1.
yankman
S2 licensed
Quote from Litro :Is this joke ?? Pitstop can't be longer than 50+ seconds. But your "refuel" is just started after 153 seconds ??

No the pitstop was just about 153 sec long when I took the screenshot.
But there was no sign of an end .
yankman
S2 licensed
This is the bugs section, not the post comment even if you don't got a clue section.

I play this game for quite some time ... and I know when I set the amount of fuel to add to zero percent.
If afterwards at the pitstop there is a refuel message and the pitstop has no finished message I consider it a bug.

You should really keep your thoughts for yourself as long as they don't add anything valueable, otherwise it is nothing but spam.
Refueling @Pitstop w/ no fuel to add [hopefully fixed in Z33]
yankman
S2 licensed
I went to pits on cruise server to fix some damage.
When repairing was finished, lfs said it is refueling,
but there was no fuel to add selected.

Edit: I could provide a replay, if it would help in any way.
Last edited by yankman, .
yankman
S2 licensed
Did he probably created this world in 6 days ?
yankman
S2 licensed
Ever thought that about the facts what you would need to run LFS on PS2 ?

So first you would need a x86 emulator cause LFS binaries are compiled to run on x86 processors (and don't forget it must be pretty quick).
Next you would need a win32 enviroment cause LFS is made for win32, uses win32 windowhandles, messaging system and of course win32 libraries.
All that is a bit much for a 300 mhz processor and 32 mb ram .

On top of that it runs from CD ... and loads that fast
But of course, if you know him you would believe it.:doh:

In case you're still believe him ... the video is not even showing a PSX.
yankman
S2 licensed
Quote from bishtop :8 processors on one chip,still good its not like hyperthreading on intel chips,,plus the proccessors are for dedicated gaming and not so much as an os

You can't be more wrong with that.
There is a Linux for PS3 and works very well. Also the computing performance relative to power consumption is very good.
There is even a Supercomputer build from PS3. Have a look here:http://www.escapistmagazine.co ... puter-of-Epic-Proportions.
yankman
S2 licensed
Well my car already has 4 wheels same as F1, next I am going to buy pirelli tires .
yankman
S2 licensed
Quote from deggis :
Likely those same viewers that vowed to never watch F1 again after every wrong rule change, scandal and political war.

+1
Can't agree more.

I just remember the discussion about the new points system, which somehow has proven good.
Less fuel consumption as well as usage of kers is something that can be later adapted for series production.
F1 will never be eco green sports or whatever but it may be become an innovator for new technologies again.
yankman
S2 licensed
How about ... Alonsos car got a technical failure.
Vettel and Webber will fight a furious battle for the WDC with nothing to loose on each side.
yankman
S2 licensed
In german tv Dr. Marko said there will be no team order as it is against the spirit of sport.
Both drivers are just instructed not to kill themselves like they did in istanbul.
This will not change for Abu Dhabi.

Anything else is up to them.

On the other hand if they are in the same positions as in Interlagos towards race end, I expect Vettel to let Webber pass.
At the point where Vettel has no chance to win this years title, I think he will help Webber.
Somehow I hope for such a scenario, so Vettel might get some reputation back, he has lost over the season.
yankman
S2 licensed
Well the only difference is, that I don't try every possible controller just the controller with id 0 (the wheel in my case).

essential app code



void Activate()
{
if(g_pWheelHandler == NULL)
{
g_pWheelHandler = new bw::WheelHandler();
}
try
{
g_pWheelHandler->Init();
SetTimer(hWindow, 1, 5000, NULL);
hDebugWindow = CreateWindow(L"EDIT",ClassDebug,WS_DLGFRAME|ES_MULTILINE,CW_USEDEFAULT,CW_USEDEFAULT,300,300,hWindow,NULL,hInst, NULL);
SetWindowText(hDebugWindow,L"");
memset(strDebugBuf,0,1024);
ShowWindow(hDebugWindow,1);

}
catch(std::exception& ex)
{
MessageBox(hWindow, CA2CT(ex.what()), L"ERROR", MB_ICONSTOP);
}
}

WindowProc

LRESULT CALLBACK WndProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
switch (uMsg)
{
/* .... */
case WM_TIMER :
{
if(rangeIdx == sizeof(ranges) / sizeof(ranges[0]))
{
rangeIdx = 0;
}
try {
g_pWheelHandler->SetRange(ranges[rangeIdx]);
}
catch(std::exception &ex)
{
MessageBox(hWindow, CA2CT(ex.what()), L"ERROR", MB_ICONSTOP);
}
rangeIdx++;
}
default: return DefWindowProc(hWnd,uMsg,wParam,lParam);
}
return 0;
}

Again the vital part of wheel handler


WheelHandler::WheelHandler(void)
: m_pControllerInput(NULL),m_pWheel(NULL)
, m_iOldRange(0)
{
}

// get handle of LFS window
HWND WheelHandler::GetLFSWindow(void)
{
HWND hwnd = FindWindow(L"LFS", NULL);
if(hwnd == NULL)
{
throw std::exception("LFS window not found");
}
return hwnd;
}

// initialise wheel member
void WheelHandler::InitWheel(void)
{
HWND hLFSWindow = this->GetLFSWindow();
this->m_pControllerInput = new LogitechControllerInput::ControllerInput(hLFSWindow, TRUE);
this->m_pWheel = new LogitechSteeringWheel::Wheel(this->m_pControllerInput);
}

// initialise class
void WheelHandler::Init(void)
{
this->Close();
this->InitWheel();
this->m_iOldRange = this->GetRange();
}

// set the wheel range
void WheelHandler::SetRange(int _range)
{
if(_range < 40 || _range > 900)
{
throw std::exception("Argument out of Range");
}
LogitechSteeringWheel::ControllerPropertiesData propertiesData_;
ZeroMemory(&propertiesData_, sizeof(propertiesData_));
this->Update();
if (!this->m_pWheel->IsConnected(0))
{
throw std::exception("No wheel connected");
}
if(!this->m_pWheel->GetCurrentControllerProperties(0, propertiesData_))
{
// default properties
}
propertiesData_.wheelRange = _range;

this->m_pWheel->SetPreferredControllerProperties(propertiesData_);
this->Update();
HRESULT hRes = this->m_pWheel->PlayLeds(0, 2000.0, 1000.0, 2000.0);
switch(hRes)
{
case 0x80070005:
//MessageBox(NULL, NULL, L"E_ACCESSDENIED", NULL);
Debug(L"E_ACCESSDENIED");
break;
case 0x80004001:
//MessageBox(NULL, NULL, L"E_NOTIMPL", NULL);
Debug(L"E_NOTIMPL");
break;
default:
//MessageBox(NULL, NULL, L"Something else has happened", NULL);
Debug(L"Something else has happened");
}
}


yankman
S2 licensed
To bad I can't help with this as I don't own a G27 and I won't buy one as long as the G25 works *knockonwood*.
yankman
S2 licensed
I called PlayLeds via SetTimer every 5 seconds and put LFS in foreground.
The hres is E_NOTIMPL (guess I own a G25) but no E_ACCESSDENIED.

Are you 100% sure you supply the LFS window handle when creating the ControllerInput class ?
yankman
S2 licensed
I don't know if the leds are special thing,
but I have an application running in the background, that sets the wheel range via Wheel::SetPreferredControllerProperties, while I play LFS and it works.
yankman
S2 licensed
Well, all the functions the SDK provides, are realized through Logitech profiler.
I guess profiler itself uses the window handle to distinguish between games/application cause it is used to init the profiler classes.

So what need to be done is, get the window handle of LFS and init the controller classes using the Lfs window handle.

I made application myself but for the reason to set the steering range in game.
Here is a part of the code the class that handles the communication with the wheel.
I hope it helps.


// get handle of LFS window
HWND WheelHandler::GetLFSWindow(void)
{
HWND hwnd = FindWindow(L"LFS", NULL);
if(hwnd == NULL)
{
throw std::exception("LFS window not found");
}
return hwnd;
}

// initialise wheel member
void WheelHandler::InitWheel(void)
{
HWND hLFSWindow = this->GetLFSWindow();
this->m_pControllerInput = new LogitechControllerInput::ControllerInput(hLFSWindow, TRUE);
this->m_pWheel = new LogitechSteeringWheel::Wheel(this->m_pControllerInput);
}


Last edited by yankman, .
yankman
S2 licensed
Congratz Spain.
Not much to add here, you simply were the better team.

Anyway Germany played a good tournament, some nice matches to watch.
Hopefully Jogi will stay with the team, his is the best coach the germans had so far.

Lets hope for a good final, I don't even know who to support.
I think spain ist the better team, but you never know .

PS: Timo1992 it was about time to learn your lesson. Treat other (teams) with more respect and you will get the same.
Last edited by yankman, .
FGED GREDG RDFGDR GSFDG