The online racing simulator
Searching in All forums
(263 results)
Stuff
S2 licensed
You're not supposed to see the white circle (?) objects. They are what appear if there is a problem, such as the index or a missing .png. For the group rotation, I can do that. Just have to figure out the math and all for placing them correctly.
Stuff
S2 licensed
Well, I poked around and found it wasn't finding the right object based on its index. I would have sworn I triple checked all those. Anyway, I corrected the indexes and made sure it won't happen again. It will show the unknown object (white circle with a ? inside) and give it a name of "index error!?".

Thanks for the thanks and letting me know.
Stuff
S2 licensed
Writing to a text file wouldn't be that slow. Plenty fast when it comes to laps. It's the method I used when I made a manager program for NAL a while ago. It wrote to a .csv file, which VB6 makes very easy to both read and write. It all depends on what you need to write and how often. For the database method, I've actually never messed with VB6 and a database. Seems to be a lot of work to set all that up when it comes to just using the system for LFS and distributing it to others.

For storing stuff temporarily, like in the array the_angry_angel mentioned, the VB6 method would either be a user-defined-type (the struct) or create a class and stick it into a dynamic array or a collection.

Hmm, since NAL is out of business I was thinking of releasing the source for that manager program I wrote. Especially if Im planning to really learn C++ or develop my skills more in Java.

Also, maybe move this thread to the programming section?
Stuff
S2 licensed
If all else fails, you could try manually registering the .dlls and .ocxs. On XP the command is: regsvr32 path\to\file.dll

And! Nice xmas present too! A lot of features that will be very handy to everyone. Thanks a ton for this
Stuff
S2 licensed
Quote from Sgt.Gunlee :I have a problem.

Hmm, I did a quick investigation and found a recent change I made messed up the save function. I added the 1 line of code I was missing and made 0.5.0.1. That should work for you/everyone
Last edited by Stuff, . Reason : just because! :P
Stuff
S2 licensed
To add an object just drag it from the object bar on the left. It will/should pop up as soon you release the mouse button. LYTe.html should tell all.

And for MSN, its been forever since I used that I'd like any and all errors to be posted here or through PM so everyone can have access to the solution if its their system. Its going to be added here anyway through my change log.
LYTe - layout editor
Stuff
S2 licensed
Introducing LYTe! a Live for Speed layout editor

LYTe is just what it says, a LaYouT editor for LFS! It is able to open up S2 layouts from AU1, AU2, AU3, AU4 and mostly BL3 so you can quickly edit all objects on the layout. There are also tools for such things as drawing a line of objects or saving them to a group called a pack. The are quite a few features and I'm not one for making long, drawn-out speeches so please check out the screenie, download the program below and experiment. And of course, if you have any problems or feedback please post it below or give me a PM.

It is programmed in VB6 and uses GDI+ to draw. XP users will have no problem as thats the only system I've tested this on. All other users, please reply to help get it working. The speed is decent as I use nothing but API calls.

NOTE: versions with the e suffix mean they are the exe only. Download the latest one with and without the e, then overwrite the exe with the one from the e zip.

Change log:
0.5.0.0 - Initial release!
0.5.0.1 - Fixed lame save error reported by Sgt.Gunlee
0.5.0.2 - Fixed some incorrect indexes (cone yellow ptr and barrier red) on BL3, which caused an overflow error. reported by zipper
0.5.0.3:
- Added a single default start position for each layout
- Tweaked the way angles are converted to LFS format, should solve dragon13's angle problem
0.5.0.4:
- registry entry said Layout Thingy..
- added ctrl+c and ctrl+v clipboard stuff
- language file support
- added highlight to selected object in the object bar
- switched keep left/right signs, oops
- blue pointer cone had wrong index for AU
- changed from .ini to .cfg
- a lot of internal tweaks..! (updated tab control and how child forms are handled, new subclassing method, etc, etc.
0.5.0.5:
- stupid initialize bug from 0.5.0.4 fixed
- changed fonts to hopefully fix language character problems
- made new objects from the side panel visible while dragging
- mouse wheel finally moves the layout vertically +/- 40 BG pixels
- shift + mouse wheel zooms in/out
- arrow keys now move selected objects 1 BG pixel, 10 if shift is down (if nothing is selected, arrows keys pan as usual)
0.5.0.6:
- will now open AU1-4 layouts but will fail on BL3 if it saved after patch Y (revision > 250)
- added object zoom in/out
- added recent files list as dropdown of open menu
- added French, Deutsch and Spanish langs
- added more language strings for the new menu and objects
- added ctrl + mouse wheel to zoom in/out (along with shift)
- added drag to resize object bar, double click to expand/collapse
- fixed shift + mouse scroll down (zoom out) bug
- tweaked about box..
0.5.0.7e (exe only):
- fixed crash when using the object line the first time without moving the mouse
- removed header version check! no more errors but possible BL3 accuracy errors
Last edited by Stuff, . Reason : update+++;
Stuff
S2 licensed
Yeah, like BurnOut said, DoEvents is a keyword that allows your program to process other stuff (like pending events) in the middle of other stuff (like loops). MSDN linkage

If something like that doesn't work then look into other ways of counting or looping. Check out VBspeed for some articles on the fastest way to do things, including their class, CTiming (under Rules). It may help with ideas on how to count an interval differently using API calls.
Stuff
S2 licensed
Hrm.. I don't have much experience with loops really. I try to avoid them as much as possible because they are some of the worst offenders of lock-ups. Never heard of any problems with any time intervals with them. Not even sure how a time interval comes into play with the loop?

For a solution, maybe a DoEvents will help. Giving your program a chance at something else while the loop is going. Other than that, maybe try to accomplish the same goal without the loop? Hmm..
Stuff
S2 licensed
woohoot! happy birthday too.. resent::cake::yummy:
Stuff
S2 licensed
Grand opening!

55 Street Car Ave.
South City, LFS
Stuff
S2 licensed
Identifier As String * 6 '0

I'm pretty sure that won't be 6 bytes. VB6 strings are unicode so they take 2 bytes each. Doing a LenB() on a string gives double its length. The way I've done it is to make it an array of bytes then use StrConv.

Unless, there is some secret you know that I don't. If so, please spill it.
Stuff
S2 licensed
Hmm.. what I do in VB6 is when filling out the packet to be sent I make the port 2 bytes instead an integer. Since VB bytes are the only unsigned data types it tends to work better. Something like..

Packet.Port(0) = intPort Mod 256
Packet.Port(1) = intPort \ 256

Might work for ya.
Stuff
S2 licensed
If you don't add the start point, people start all at once behind the lights. Add start point or not, the checkpoints and finish still work.
Stuff
S2 licensed
The only person Ive seen create "weird" stuff for autox is Kegetys on the leaked screenies. If you're bored one day, maybe you can try changing the indexes in the .lyt file and see what happens. My guess is LFS will say invalid file.
Stuff
S2 licensed
Yeah sorry for now. My site is waaay out dated and needs to be updated. That version of it won't do you much good anyway as its only for S1 layouts, at AU1, and only for viewing on a background.
Stuff
S2 licensed
For mine you won't need a red line because you can see a top view of the layout. For example, here is the beta background I will use for the carpark
Stuff
S2 licensed
Yeah, the background image is easily modifiable. Its simply a .jpg that anyone can edit. After that you would just draw lines and arcs onto the layout. So far I have the backgrounds for AU1 and BL3 but not AU2-AU4. If anyone would like to help with the backgrounds or object images, let me know and I will tell ya how
Stuff
S2 licensed
I am in the process of making a layout editor that can do what you want. Next version of my little Layout Thingy. It will be able to open up all AU# and BL3 for editing. Below is what I have so far. Haven't made all the backgrounds yet, haven't made the object pics yet, but would say that the core part is done and most of the UI. If all goes well, should be finished in a month or so.
Last edited by Stuff, .
Stuff
S2 licensed
Hrm.. only thing I can think of is to double check your cfg file (like below) and know that OutGauge only works for the car you're in and in your car in replays (if mode is 2).. Have it match this:

OutGauge Mode 2
OutGauge Delay 1
OutGauge IP 127.0.0.1
OutGauge Port 55
OutGauge ID 0

The port can be different of course as long as it matches the port in the .ConnectTo line.

If nothing else works I will be happy to help more if I can..
Stuff
S2 licensed
pretty sure the start command will only create new dos windows. just take out that word and leave it with.

"C:\Program Files\Logitech\Profiler\LWEMon.exe"
"C:\Program Files\LFS\lfs.exe"



Edit.. spoke too soon. Doing that gives some message about asking if LFS is correctly installed. The solution is to switch to that folder first and then run it.. Like

cd "C:\Program Files\Logitech\Profiler"
LWEMon.exe
cd "C:\Program Files\LFS"
LFS.exe
Last edited by Stuff, .
Stuff
S2 licensed
This is what i have.. (besides the colors of course)

^a = *
^c = :
^d = \
^l = <
^q = ?
^r = >
^s = /
^t = "
^v = |

^L = Latin 1
^G = Greek
^C = Cyrillic
^J = Japanese
^E = Central Europe
^T = Turkish
^B = Baltic
Stuff
S2 licensed
A new version of the Layout Thingy is in development. If everything goes well, it should be completed in a few weeks.
What are you working on?
Stuff
S2 licensed
With all the little mods out there and in development, I thought it would be a good idea for everyone to let everyone else know what they are working on. Mainly because it might be a shame for someone to develop an app and someone else releases almost the same thing a week or so earlier.. Rare but it could happen. Other advantages would be people could give ideas or advice to other developers on features, names or whatever comes to mind.

So! Here goes.. My current project is the next version of the Layout Thingy! Features will/should be opening up all autox layouts and the Blackwood car park for both viewing and editing. It will be GDI+, allow you to group objects into "object packs", distributing objects along a line or a curve, easy replacement of objects, etc.

What's your project?
Stuff
S2 licensed
This what you need?

Blackwood
0: Clear Day
1: Cloudy Afternoon
2: Cloudy Sunset

South City
0: Clear Afternoon
1: Overcast Day
2: Cloudy Sunset

Fern Bay
0: Clear Day
1: Cloudy Sunset
2: Overcast Dusk

Autocross
0: Overcast Afternoon
1: Clear Morning
2: Cloudy Sunset

Kyoto Ring
0: Clear Day
1: Cloudy Afternoon
2: Cloudy Morning

Westhill
0: Clear Day
1: Cloudy Afternoon
2: Cloudy Sunset

Aston
0: Clear Day
1: Cloudy Afternoon
FGED GREDG RDFGDR GSFDG