The online racing simulator
Searching in All forums
(943 results)
PoVo
S3 licensed
Quote from NotAnIllusion :Well, insim.txt says

So when you're in SP, you are the host and zero works. In MP, 0 is presumably reserved for the remote host and you should use the UCID assigned to your connection. Maybe.

That's correct.

When the connection joins the server you retrieve the UCID from the IS_NCN packet event and use it later to send out the buttons.
PoVo
S3 licensed
Seems legit.
PoVo
S3 licensed
Quote :40% of the populated servers are cruise servers

I don't understand what's wrong with this? A person who sets up a cruise server isn't forcing people to play on the server. People who play LFS choose to play on cruise servers.

I think you should be asking yourself a totally different question. Maybe "Why cruise servers attract more players than racing servers?" and then try and improve your racing server?

It's kinda stupid to blame it on cruise and drift servers. If the player doesn't like your race server then he obviously won't play on it.
PoVo
S3 licensed
Quote :LFS | Team Black vs The Condoms

Are you taking the pistachio?
PoVo
S3 licensed
Quote from (The Stig) :Guys comeone,

Right I know this isn't any of my bussness but i've read the last 4 pages of the thread and the fact you cannot give any sympathy to a person who as a person has single handingly ran a company for 5 stright years without a single break apart from the days where he HAS TO take a break.

Now listen there is one person who is here to help you all you need to do is WAIT YOUR TURN. If not what is the point of him helping you on his OWN TIME to get you up and running?


And to be honest I think people today are all focused on getting thigns they want when they pay for something but if you are given a reason to why that single techinican isn't here to help you sort the problem you should RESPECT That reason and NOT disrespect that reason like its a piece of "*(*%"( on the road. Franky is here to help and run a service that is paramount to Live For Speed! Don't treat him like a piece of *"%*(".


Without going any further that is all I want to say.

Cool story bro.
PoVo
S3 licensed
I'd personally recommend PRISM, since it's very easy to use and the single instance can connect to multiple LFS hosts.

LOL'd at OP's username.
PoVo
S3 licensed
I've recreated one of my issue posts:
https://github.com/Dygear/PRISM/issues/32

Seems like this is still happening
PoVo
S3 licensed
Good work, looks so good when it matches the layout of the main page.
PoVo
S3 licensed
Okay this is totally weird.

Even with this fix, sometimes a random timer stops working. I have 4 timers and I've noticed during development time that some stop.

Now I'm guaranteed there's nothing wrong with the code in them, because I print a text line saying "XYZ Timer elapsed" before any other code is executed.

Right now I've decided to set my timer repeat to 0 and recreate the timer after it has elapsed with repeat as 0 and just repeat it every time.

I will continue to test this and try to figure it out...

EDIT: After testing for 40 mins, it seems setting repeat to 0 and just recreating the timer after it elapses seems to work, so it's most likely another problem within prism_timers.php.

EDIT2: *facepalm*. For some reason I had the prism_timers.php file from 0.4.2. LOL.
Last edited by PoVo, .
PoVo
S3 licensed
Android 4.0.3 (Ice Cream Sandwich) has a built in data usage monitor
PoVo
S3 licensed
Cheers, it's all working now!
PoVo
S3 licensed
Thanks for that, I'm all sorted again.

Seems like there is a mistake somewhere in JInSim. Whenever I try to send a message to a player using MessageToConnectionRequest, an exception is thrown:
java.lang.NullPointerException
at net.sf.jinsim.request.MessageToConnectionRequest.assemble(MessageToConnectionRequest.java:35)
at net.sf.jinsim.AbstractChannel.send(AbstractChannel.java:127)
at net.sf.jinsim.Client.send(Client.java:184)

PoVo
S3 licensed
u ninja
PoVo
S3 licensed
Set up my Git repo. Learned all the useful commands, realised it has a GUI
PoVo
S3 licensed
Hmm... I'll check it out later. I've always used SVN for private code projects.
PoVo
S3 licensed
Same poop, different letters.
PoVo
S3 licensed
I saw that you changed getConnectionId() to a int value.

Most setConnectionId() functions have also been changed except for the ButtonRequest.setConnectionId() function, which still uses a byte

I've added a cast in my application but it shouldn't be like that methinks.

EDIT: My app also started throwing exceptions with the new JInSim:
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at net.sf.jinsim.AbstractChannel.<clinit>(AbstractChannel.java:18)
at jCruise.Main.Init(Main.java:45)
at jCruise.Main.main(Main.java:66)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

Seems like I'm missing the slf4j JAR file. I've looked a couple of pages back and the links are dead, so I downloaded the SLF4J-1.6.4 binaries, and I'm unsure which JAR file I've to add since it has many
Last edited by PoVo, .
PoVo
S3 licensed
Alright, so today I got another exception:
Mar 19, 2012 6:20:26 PM net.sf.jinsim.AbstractChannel run
SEVERE: Something went wrong!
java.lang.IllegalArgumentException: The specified id is not a packet type id: 55
at net.sf.jinsim.PacketType.getPacket(PacketType.java:76)
at net.sf.jinsim.response.ResponseFactory.getPacketData(ResponseFactory.java:130)
at net.sf.jinsim.AbstractChannel.run(AbstractChannel.java:106)
at java.lang.Thread.run(Unknown Source)

Seems like the new Admin Command Report packet isn't added to the library:
ISP_ACR, // 55 - info : admin command report

Can anyone add it? Because if it's not added, my InSim app crashes
PoVo
S3 licensed
R.i.p
PoVo
S3 licensed
Quote from HonzaNB :I think, that you didn't register any listener to SimpleClient instance.
Just look at examples, there are many of its in JInsim lib

That was it, didn't spot it when I was writing my own code when I took helloworld as an example. Cheers, I'm all sorted now!
PoVo
S3 licensed
Alright, I've finally got it to start.

Another problem I'm having is I'm getting an exception whenever I receive a packet:
Mar 15, 2012 7:00:53 PM net.sf.jinsim.AbstractChannel run
SEVERE: Something went wrong!
java.lang.NullPointerException
at net.sf.jinsim.SimpleClient.notifyListeners(SimpleClient.java:23)
at net.sf.jinsim.AbstractChannel.run(AbstractChannel.java:112)
at java.lang.Thread.run(Unknown Source)

This happened with my newly exported JAR and also with the one you provided. Any ideas?
PoVo
S3 licensed
Here it is
PoVo
S3 licensed
Alright, I followed everything in those websites and I still get exceptions...

C:\>java -jar Vortex.jar
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/jinsim/respons
e/InSimListener
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: net.sf.jinsim.response.InSimListene
r
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 13 more

PoVo
S3 licensed
Now I get this error:
Exception in thread "main" java.lang.NullPointerException
at sun.launcher.LauncherHelper.getMainClassFromJar(Unknown Source)
at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Anyone mind setting up an Eclipse project with the helloworld example for me?
PoVo
S3 licensed
Ugh... as usual I'm having trouble setting this library up in Eclipse. I added the external JAR file, copied code from the examples, compiled to JAR, tried to launch it using "java Compiled.jar" and it says "Error: Could not find or load main class VortexDrift".

Any ideas?
FGED GREDG RDFGDR GSFDG