The online racing simulator
Searching in All forums
(167 results)
Brilwing
S3 licensed
http://setupgrid.net does work fine on my box
Brilwing
S3 licensed
The problem is that on the setup grid website only LFS up to version 0.5Z is supported. So if you use a newer version, than SIG does not work.

The following instructions should make SIG work again:
- In the SIG install folder navigate to the bin folder.
- In this folder the localization files are located named setupgrid_??.properties with the language as suffix
- You can open the localization file in a normal text editor like notepad
- e.g. if you have a german Windows edit the setupgird_de.properties (for english, or a language not listed use the setupgrid.properties)
- When you have open the file in notepad, then navigate to the bottom where you find the following line: baseUrl = http://setupgrid.net/setups.php?car={0}&track={1}&patch={2}
- Change this to: baseUrl = http://setupgrid.net/setups.php?car={0}&track={1}&patch=0.5z&dummy={2}
- Now you have hardcoded to always get setups for the LFS 0.5z version.
- Restart SIG and this should work.
Brilwing
S3 licensed
Quote from Scawen :As far as I understand (and I'm probably wrong, because I haven't checked) DX10 and later don't work on XP. If that is true then it would be a terrible idea to go further than DX9 because XP is still the best OS.

The problem with XP is that the support ends in april 2014, so no security fixes are made anymore. It is not a wise idea to use XP on a PC with internet connection after that date.
Brilwing
S3 licensed
Quote from ToxicKlay :Not sure, but setupgrid.net only goes up to 0.5Z in terms of patches. Maybe the mod is checking version types and is coming back with 0 setups because there are no setups for 0.6E?

Correct. I did not remember how it works, so I had a look into the source code and the LFS Version is used the fetch the correct setups from the setupgrid website. So with the new 0.6E you will not receive any setups, because the setupgrid.net website (in my opinion) needs to be updated.
Brilwing
S3 licensed
You have used the wrong constructor that does not initialized the sound value.
I have fixed that now, and if you use the build.gradle from my previous post you should get the new version.
Brilwing
S3 licensed
I've created an example using gradle (http://gradle.org/) that takes care of everything:

In the SVN repo you find it here: https://jinsim.svn.sourceforge ... nsim/branch/0.6b/example/

After you checked out the example and installed gradle you can execute the command 'gradle run' in the example directory and the example is build and run.
The example is the Hello World example that connects to LFS in the local PC on Port 29999. If you want to change this in the example look for localhost an 29999 in the build.gradle file.

If you want to create a zip file with everything you need just type 'gradle distZip' and you find the created zip in build/distribution. Here also a .bat file is created to run the app.

To create a eclipse project just type 'gradle eclipse' and the project file are created that can be imported into eclipse.
Last edited by Brilwing, .
Brilwing
S3 licensed
Try this jar:
http://openbakery.org/reposito ... .0-RC1/jinsim-6.0-RC1.jar

The Admin Command is not yet fully implemented, but the app shouldn't crash anymore.
Brilwing
S3 licensed
Yes.

I have not release a 0.6b version in binary yet, but you can easy build it yourself from the svn repo on source forge (using gradle):
https://jinsim.svn.sourceforge ... nroot/jinsim/branch/0.6b/
Brilwing
S3 licensed
Quote from ghowden :I noticed you updated the Track list, how about the MessageToConnectionRequest? Is that alright?

I have updated both now. I changed the MessageToConnectionRequest to use the existing Sound enum for the setter.
Brilwing
S3 licensed
Quote from ghowden :Here is the latest source code plus my collision packet code seems to work fine now. Learnt bitwise operators in java at long last lol

I have created a new development branch for the Z30+ changes add have added your changes (with some modifications):
https://jinsim.svn.sourceforge.net/svnroot/jinsim/branch/z30

I have not applied the changes in the OutGaugeResponse file, cause the current version is correct.

(If you want build the jinsim jar use gradle (http://www.gradle.org/))
Brilwing
S3 licensed
I have renamed the latest 0.5rc6 JInSim version to 0.5 and uploaded the version to Sourceforge and here:
http://liveforspeed.at/download/jinsim-0.5.zip

I should have done that a long time ago: :sorry:

JInSim 0.5 covers LFS Z28

I have not yet started to add the new insim features that come with Z30+. I indent to do this in the near future. If anyone wants to help me with that I gladly accept patches or can give commit privileges on sourceforge.
Brilwing
S3 licensed
Just use the MessageRequest class.

e.g.

MessageRequest msgRequest = new MessageRequest();
msgRequest.setMessage("/press 3"); // turns on and off the headlights
client.send(msgRequest);

You can use the helloworld/Main.java example that is included in jinsim so see a full example how a message request is send.
Brilwing
S3 licensed
Log4j comes with all you need. Here is an example configuration that sets the global log level to info and the log level for all classes under com.mypackage to debug.


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
</layout>
</appender>

<logger name="com.mypackage">
<level value="debug"/>
</logger>

<root>
<priority value ="info"/>
<appender-ref ref="STDOUT"/>
</root>

</log4j:configuration>

Brilwing
S3 licensed
To get the correct result from the getResultPosition method that returns a byte just perform an bitwise & operation:

int resultPosition = resultResponse.getResultPosition() & 0xFF;

I'll keep in mine to update the getters for bytes so that this is performed internally.
e.g. change

public byte getResultPosition() {
return resultPosition;
}

to

public int getResultPosition() {
return resultPosition & 0xFF;
}

Brilwing
S3 licensed
Quote from amp88 :Bit of a necrobump here. I was just playing about with pth files. After facing the same problem as you I got it to work by using little endian ordering. I've attached a few of the classes I've created to test this out with.

<snip>

Do you want to include this into JInSim?
If yes, you can do it yourself. I can add you as developer to the JInSim project on sourceforge if you like.
Brilwing
S3 licensed
Quote from amp88 :

public void construct(ByteBuffer buffer) throws BufferUnderflowException {
super.construct(buffer);
connectionId = buffer.get();
playerType = buffer.get();;
playerFlags = buffer.getShort();
playerName = getString(buffer, 24);
numberPlate = getString(buffer, 8);
[b]String carName = getString(buffer, 4);
car = Car.getCarByName(carName);[/b]
skinName = getString(buffer, 16);
tyres = new Tyres(buffer);
addedMass = buffer.get();
intakeRestriction = buffer.get();
model = buffer.get();
passengers = buffer.get();
buffer.position(buffer.position()+5);
numberInRace = buffer.get();
buffer.position(buffer.position()+2);
}


changed that the Car.getCarByName() returns null if the carName is not defined instead of the IllegalArgumentException

Quote from amp88 :

isTimedRace(): false
isPractice(): false
geLaps(): -62

I would have expected the results to be:

isTimedRace(): true
isPractice(): false
getLaps(): 4

snip


Thats a bug in jinsim I have fixed now.

Both changes are in the updated jar: http://liveforspeed.at/download/jinsim-0.5rc6.jar

For the other two Issues I have to test it with LFS that I don't have on my computer now, cause I'm working on my Mac.
Last edited by Brilwing, .
Brilwing
S3 licensed
Quote from amp88 :I think I've found a small bug with the split count on AS5/AS5R. The Track class has it as 4 sectors (see first attached screenshot), but in reality it's only 3 sectors (as shown by LFS World, second screenshot). I didn't see any other problems with the sector counts but I haven't checked each one rigorously. Thanks.

Changed AS5 to have 3 sectors and updated the jar: http://liveforspeed.at/download/jinsim-0.5rc6.jar
Brilwing
S3 licensed
Quote from Ramon F. :It's a bug, I'm sure Brilwing will fix it in the next version, but meanwhile you could try this:

Here is a jar with the fix: http://liveforspeed.at/download/jinsim-0.5rc6.jar
Brilwing
S3 licensed
Quote from Trekkerfahrer :
Especially the protests... the admin team will not read spam!

What about that protests can only be placed by the team manager or co-manager. So in the protest thread it is only allowed by this two to post. That will keep the thread clean. Discussion about penalties can be done in another thread.

If some else posts this post can be ignored (or can also lead to a penalty for spaming).
Brilwing
S3 licensed
Quote from Mojo1987 :He was already aside you and your car turns more and more left. Only block cars, when they are behind you, not wenn they already started his overtaking maneuver. Next time let him more space.

I did a video of this incident and he was not aside me as I changed to the left: http://liveforspeed.at/files/gtal-rp.avi
(Video is in half speed)
Brilwing
S3 licensed
Driver to Report: #32 A.Copertine
Race Time:
1h 14min 10 sec
Lap/Sector:
Lap 60, S1
What Happened:
He leaves the pit and crashed Into #11 G.Haiderer
Brilwing
S3 licensed
Quote from Trekkerfahrer :DT for car 11
While overtaking a car, you should left enough space for your opponent and not close the door so that your opponent must use the gras.

I checked my Replay and there was enough room for him. He touched my car and that causes me to move to far left.
I cannot understand this penalty
Brilwing
S3 licensed
Quote from Ramon F. :Hi java friends

In OutGaugeResponse packet when i call getWaterTemperatur(), getOilPressure(), getTurbo() I always get a return of 0.0, other methods works perfect (fuel, brake, throttle, displays, etc.) ; could anyone confirm this please?

Hmm, I have checked the code, but cannot find any errors, so I have to run a test.

Quote from Ramon F. :
Also I think I found an error in Client class close() method:
...

Yes this could be a bug, I will change this.

P.S. If you want change such things yourself I can give you access to the svn repo at sourceforge
FGED GREDG RDFGDR GSFDG